From 4f7bbda88cbb24245991d7971989b137cfbec5e4 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 16 Jan 2024 21:13:46 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-recaptchaenterprise/README.md | 2 +- .../v1/RecaptchaEnterpriseServiceClient.java | 0 .../RecaptchaEnterpriseServiceSettings.java | 1 - .../v1/gapic_metadata.json | 0 .../recaptchaenterprise/v1/package-info.java | 0 ...ptchaEnterpriseServiceCallableFactory.java | 0 .../GrpcRecaptchaEnterpriseServiceStub.java | 1 - .../stub/RecaptchaEnterpriseServiceStub.java | 0 ...ecaptchaEnterpriseServiceStubSettings.java | 0 ...captchaEnterpriseServiceV1Beta1Client.java | 0 ...ptchaEnterpriseServiceV1Beta1Settings.java | 1 - .../v1beta1/gapic_metadata.json | 0 .../v1beta1/package-info.java | 0 ...terpriseServiceV1Beta1CallableFactory.java | 0 ...RecaptchaEnterpriseServiceV1Beta1Stub.java | 1 - ...terpriseServiceV1Beta1CallableFactory.java | 0 ...RecaptchaEnterpriseServiceV1Beta1Stub.java | 0 ...RecaptchaEnterpriseServiceV1Beta1Stub.java | 0 ...aEnterpriseServiceV1Beta1StubSettings.java | 0 .../reflect-config.json | 0 .../reflect-config.json | 0 .../v1/MockRecaptchaEnterpriseService.java | 0 .../MockRecaptchaEnterpriseServiceImpl.java | 0 .../RecaptchaEnterpriseServiceClientTest.java | 0 ...MockRecaptchaEnterpriseServiceV1Beta1.java | 0 ...RecaptchaEnterpriseServiceV1Beta1Impl.java | 0 ...priseServiceV1Beta1ClientHttpJsonTest.java | 0 ...chaEnterpriseServiceV1Beta1ClientTest.java | 0 .../v1/RecaptchaEnterpriseServiceGrpc.java | 2513 ++++++++++ ...RecaptchaEnterpriseServiceV1Beta1Grpc.java | 342 +- .../v1/AccountDefenderAssessment.java | 570 ++- .../AccountDefenderAssessmentOrBuilder.java | 100 + .../v1/AccountVerificationInfo.java | 911 ++-- .../v1/AccountVerificationInfoOrBuilder.java | 89 +- .../v1/AndroidKeySettings.java | 479 +- .../v1/AndroidKeySettingsOrBuilder.java | 58 +- .../v1/AnnotateAssessmentRequest.java | 1163 +++-- .../AnnotateAssessmentRequestOrBuilder.java | 122 +- .../v1/AnnotateAssessmentResponse.java | 255 +- .../AnnotateAssessmentResponseOrBuilder.java | 24 + .../v1/AppleDeveloperId.java | 491 +- .../v1/AppleDeveloperIdOrBuilder.java | 53 +- .../recaptchaenterprise/v1/Assessment.java | 1768 ++++--- .../v1/AssessmentName.java | 0 .../v1/AssessmentOrBuilder.java | 233 +- .../v1/ChallengeMetrics.java | 386 +- .../v1/ChallengeMetricsOrBuilder.java | 30 +- .../v1/CreateAssessmentRequest.java | 492 +- .../v1/CreateAssessmentRequestOrBuilder.java | 97 + .../v1/CreateFirewallPolicyRequest.java | 504 +- .../CreateFirewallPolicyRequestOrBuilder.java | 97 + .../v1/CreateKeyRequest.java | 478 +- .../v1/CreateKeyRequestOrBuilder.java | 97 + .../v1/DeleteFirewallPolicyRequest.java | 360 +- .../DeleteFirewallPolicyRequestOrBuilder.java | 56 + .../v1/DeleteKeyRequest.java | 347 +- .../v1/DeleteKeyRequestOrBuilder.java | 56 + .../v1/EndpointVerificationInfo.java | 698 +-- .../v1/EndpointVerificationInfoOrBuilder.java | 71 +- .../google/recaptchaenterprise/v1/Event.java | 1319 ++++-- .../v1/EventOrBuilder.java | 161 +- .../v1/FirewallAction.java | 2542 ++++++---- .../v1/FirewallActionOrBuilder.java | 82 +- .../v1/FirewallPolicy.java | 788 ++-- .../v1/FirewallPolicyAssessment.java | 475 +- .../v1/FirewallPolicyAssessmentOrBuilder.java | 46 +- .../v1/FirewallPolicyName.java | 0 .../v1/FirewallPolicyOrBuilder.java | 92 +- .../v1/FraudPreventionAssessment.java | 2030 +++++--- .../FraudPreventionAssessmentOrBuilder.java | 175 + .../recaptchaenterprise/v1/FraudSignals.java | 1476 +++--- .../v1/FraudSignalsOrBuilder.java | 110 + .../v1/GetFirewallPolicyRequest.java | 350 +- .../v1/GetFirewallPolicyRequestOrBuilder.java | 56 + .../recaptchaenterprise/v1/GetKeyRequest.java | 343 +- .../v1/GetKeyRequestOrBuilder.java | 56 + .../v1/GetMetricsRequest.java | 347 +- .../v1/GetMetricsRequestOrBuilder.java | 56 + .../v1/IOSKeySettings.java | 567 ++- .../v1/IOSKeySettingsOrBuilder.java | 59 +- .../google/recaptchaenterprise/v1/Key.java | 1391 ++++-- .../recaptchaenterprise/v1/KeyName.java | 0 .../recaptchaenterprise/v1/KeyOrBuilder.java | 147 +- .../v1/ListFirewallPoliciesRequest.java | 463 +- .../ListFirewallPoliciesRequestOrBuilder.java | 47 +- .../v1/ListFirewallPoliciesResponse.java | 557 ++- ...ListFirewallPoliciesResponseOrBuilder.java | 60 +- .../v1/ListKeysRequest.java | 450 +- .../v1/ListKeysRequestOrBuilder.java | 47 +- .../v1/ListKeysResponse.java | 479 +- .../v1/ListKeysResponseOrBuilder.java | 46 +- ...RelatedAccountGroupMembershipsRequest.java | 558 ++- ...countGroupMembershipsRequestOrBuilder.java | 47 +- ...elatedAccountGroupMembershipsResponse.java | 716 ++- ...ountGroupMembershipsResponseOrBuilder.java | 68 +- .../v1/ListRelatedAccountGroupsRequest.java | 487 +- ...tRelatedAccountGroupsRequestOrBuilder.java | 47 +- .../v1/ListRelatedAccountGroupsResponse.java | 633 ++- ...RelatedAccountGroupsResponseOrBuilder.java | 61 +- .../recaptchaenterprise/v1/Metrics.java | 776 +-- .../recaptchaenterprise/v1/MetricsName.java | 0 .../v1/MetricsOrBuilder.java | 91 +- .../v1/MigrateKeyRequest.java | 381 +- .../v1/MigrateKeyRequestOrBuilder.java | 38 +- .../v1/PrivatePasswordLeakVerification.java | 558 ++- ...vatePasswordLeakVerificationOrBuilder.java | 54 +- .../recaptchaenterprise/v1/ProjectName.java | 0 .../v1/RecaptchaEnterpriseProto.java | 1536 ++++++ .../v1/RelatedAccountGroup.java | 350 +- .../v1/RelatedAccountGroupMembership.java | 509 +- .../v1/RelatedAccountGroupMembershipName.java | 0 ...elatedAccountGroupMembershipOrBuilder.java | 54 +- .../v1/RelatedAccountGroupName.java | 0 .../v1/RelatedAccountGroupOrBuilder.java | 58 + .../v1/RetrieveLegacySecretKeyRequest.java | 376 +- ...trieveLegacySecretKeyRequestOrBuilder.java | 56 + .../v1/RetrieveLegacySecretKeyResponse.java | 356 +- ...rieveLegacySecretKeyResponseOrBuilder.java | 27 +- .../recaptchaenterprise/v1/RiskAnalysis.java | 754 ++- .../v1/RiskAnalysisOrBuilder.java | 96 +- .../v1/ScoreDistribution.java | 453 +- .../v1/ScoreDistributionOrBuilder.java | 48 +- .../recaptchaenterprise/v1/ScoreMetrics.java | 641 ++- .../v1/ScoreMetricsOrBuilder.java | 74 +- ...RelatedAccountGroupMembershipsRequest.java | 716 +-- ...countGroupMembershipsRequestOrBuilder.java | 70 +- ...elatedAccountGroupMembershipsResponse.java | 722 ++- ...ountGroupMembershipsResponseOrBuilder.java | 68 +- .../v1/TestingOptions.java | 444 +- .../v1/TestingOptionsOrBuilder.java | 35 +- .../v1/TokenProperties.java | 900 ++-- .../v1/TokenPropertiesOrBuilder.java | 88 +- .../v1/TransactionData.java | 4197 +++++++++++------ .../v1/TransactionDataOrBuilder.java | 228 +- .../v1/TransactionEvent.java | 750 ++- .../v1/TransactionEventOrBuilder.java | 61 +- .../v1/UpdateFirewallPolicyRequest.java | 532 ++- .../UpdateFirewallPolicyRequestOrBuilder.java | 55 +- .../v1/UpdateKeyRequest.java | 506 +- .../v1/UpdateKeyRequestOrBuilder.java | 55 +- .../google/recaptchaenterprise/v1/UserId.java | 558 ++- .../v1/UserIdOrBuilder.java | 54 +- .../recaptchaenterprise/v1/UserInfo.java | 711 ++- .../v1/UserInfoOrBuilder.java | 85 +- .../recaptchaenterprise/v1/WafSettings.java | 570 ++- .../v1/WafSettingsOrBuilder.java | 83 + .../v1/WebKeySettings.java | 769 +-- .../v1/WebKeySettingsOrBuilder.java | 73 +- .../v1/recaptchaenterprise.proto | 0 .../v1beta1/AccountDefenderAssessment.java | 597 ++- .../AccountDefenderAssessmentOrBuilder.java | 101 + .../v1beta1/AnnotateAssessmentRequest.java | 1136 +++-- .../AnnotateAssessmentRequestOrBuilder.java | 113 +- .../v1beta1/AnnotateAssessmentResponse.java | 276 +- .../AnnotateAssessmentResponseOrBuilder.java | 24 + .../v1beta1/Assessment.java | 1464 ++++-- .../v1beta1/AssessmentName.java | 0 .../v1beta1/AssessmentOrBuilder.java | 168 +- .../v1beta1/CreateAssessmentRequest.java | 513 +- .../CreateAssessmentRequestOrBuilder.java | 97 + .../recaptchaenterprise/v1beta1/Event.java | 798 ++-- .../v1beta1/EventOrBuilder.java | 86 +- .../v1beta1/FraudPreventionAssessment.java | 2123 ++++++--- .../FraudPreventionAssessmentOrBuilder.java | 171 + .../v1beta1/PasswordLeakVerification.java | 418 +- .../PasswordLeakVerificationOrBuilder.java | 33 +- .../v1beta1/ProjectName.java | 0 .../v1beta1/RecaptchaEnterpriseProto.java | 495 ++ .../v1beta1/TokenProperties.java | 725 +-- .../v1beta1/TokenPropertiesOrBuilder.java | 61 +- .../v1beta1/TransactionData.java | 4179 ++++++++++------ .../v1beta1/TransactionDataOrBuilder.java | 203 +- .../v1beta1/TransactionEvent.java | 761 ++- .../v1beta1/TransactionEventOrBuilder.java | 61 +- .../v1beta1/recaptchaenterprise.proto | 0 .../AsyncAnnotateAssessment.java | 0 .../SyncAnnotateAssessment.java | 0 ...meAnnotateassessmentrequestannotation.java | 0 ...ngAnnotateassessmentrequestannotation.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateAssessment.java | 0 .../SyncCreateAssessment.java | 0 ...CreateAssessmentProjectnameAssessment.java | 0 .../SyncCreateAssessmentStringAssessment.java | 0 .../AsyncCreateFirewallPolicy.java | 0 .../SyncCreateFirewallPolicy.java | 0 ...rewallPolicyProjectnameFirewallpolicy.java | 0 ...ateFirewallPolicyStringFirewallpolicy.java | 0 .../createkey/AsyncCreateKey.java | 0 .../createkey/SyncCreateKey.java | 0 .../SyncCreateKeyProjectnameKey.java | 0 .../createkey/SyncCreateKeyStringKey.java | 0 .../AsyncDeleteFirewallPolicy.java | 0 .../SyncDeleteFirewallPolicy.java | 0 ...eleteFirewallPolicyFirewallpolicyname.java | 0 .../SyncDeleteFirewallPolicyString.java | 0 .../deletekey/AsyncDeleteKey.java | 0 .../deletekey/SyncDeleteKey.java | 0 .../deletekey/SyncDeleteKeyKeyname.java | 0 .../deletekey/SyncDeleteKeyString.java | 0 .../AsyncGetFirewallPolicy.java | 0 .../SyncGetFirewallPolicy.java | 0 ...ncGetFirewallPolicyFirewallpolicyname.java | 0 .../SyncGetFirewallPolicyString.java | 0 .../getkey/AsyncGetKey.java | 0 .../getkey/SyncGetKey.java | 0 .../getkey/SyncGetKeyKeyname.java | 0 .../getkey/SyncGetKeyString.java | 0 .../getmetrics/AsyncGetMetrics.java | 0 .../getmetrics/SyncGetMetrics.java | 0 .../getmetrics/SyncGetMetricsMetricsname.java | 0 .../getmetrics/SyncGetMetricsString.java | 0 .../AsyncListFirewallPolicies.java | 0 .../AsyncListFirewallPoliciesPaged.java | 0 .../SyncListFirewallPolicies.java | 0 .../SyncListFirewallPoliciesProjectname.java | 0 .../SyncListFirewallPoliciesString.java | 0 .../listkeys/AsyncListKeys.java | 0 .../listkeys/AsyncListKeysPaged.java | 0 .../listkeys/SyncListKeys.java | 0 .../listkeys/SyncListKeysProjectname.java | 0 .../listkeys/SyncListKeysString.java | 0 ...yncListRelatedAccountGroupMemberships.java | 0 ...stRelatedAccountGroupMembershipsPaged.java | 0 ...yncListRelatedAccountGroupMemberships.java | 0 ...oupMembershipsRelatedaccountgroupname.java | 0 ...tRelatedAccountGroupMembershipsString.java | 0 .../AsyncListRelatedAccountGroups.java | 0 .../AsyncListRelatedAccountGroupsPaged.java | 0 .../SyncListRelatedAccountGroups.java | 0 ...ncListRelatedAccountGroupsProjectname.java | 0 .../SyncListRelatedAccountGroupsString.java | 0 .../migratekey/AsyncMigrateKey.java | 0 .../migratekey/SyncMigrateKey.java | 0 .../AsyncRetrieveLegacySecretKey.java | 0 .../SyncRetrieveLegacySecretKey.java | 0 .../SyncRetrieveLegacySecretKeyKeyname.java | 0 .../SyncRetrieveLegacySecretKeyString.java | 0 ...cSearchRelatedAccountGroupMemberships.java | 0 ...chRelatedAccountGroupMembershipsPaged.java | 0 ...cSearchRelatedAccountGroupMemberships.java | 0 ...hipsRelatedaccountgroupnameBytestring.java | 0 ...countGroupMembershipsStringBytestring.java | 0 .../AsyncUpdateFirewallPolicy.java | 0 .../SyncUpdateFirewallPolicy.java | 0 ...FirewallPolicyFirewallpolicyFieldmask.java | 0 .../updatekey/AsyncUpdateKey.java | 0 .../updatekey/SyncUpdateKey.java | 0 .../updatekey/SyncUpdateKeyKeyFieldmask.java | 0 .../SyncCreateAssessment.java | 0 .../SyncCreateAssessment.java | 0 .../AsyncAnnotateAssessment.java | 0 .../SyncAnnotateAssessment.java | 0 ...meAnnotateassessmentrequestannotation.java | 0 ...ngAnnotateassessmentrequestannotation.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateAssessment.java | 0 .../SyncCreateAssessment.java | 0 ...CreateAssessmentProjectnameAssessment.java | 0 .../SyncCreateAssessmentStringAssessment.java | 0 .../SyncCreateAssessment.java | 0 .../SyncCreateAssessment.java | 0 .../v1/RecaptchaEnterpriseServiceGrpc.java | 1829 ------- .../AccountDefenderAssessmentOrBuilder.java | 58 - .../AnnotateAssessmentResponseOrBuilder.java | 9 - .../v1/CreateAssessmentRequestOrBuilder.java | 58 - .../CreateFirewallPolicyRequestOrBuilder.java | 58 - .../v1/CreateKeyRequestOrBuilder.java | 58 - .../DeleteFirewallPolicyRequestOrBuilder.java | 31 - .../v1/DeleteKeyRequestOrBuilder.java | 31 - .../FraudPreventionAssessmentOrBuilder.java | 108 - .../v1/FraudSignalsOrBuilder.java | 66 - .../v1/GetFirewallPolicyRequestOrBuilder.java | 31 - .../v1/GetKeyRequestOrBuilder.java | 31 - .../v1/GetMetricsRequestOrBuilder.java | 31 - .../v1/RecaptchaEnterpriseProto.java | 1366 ------ .../v1/RelatedAccountGroupOrBuilder.java | 33 - ...trieveLegacySecretKeyRequestOrBuilder.java | 31 - .../v1/WafSettingsOrBuilder.java | 47 - .../AccountDefenderAssessmentOrBuilder.java | 58 - .../AnnotateAssessmentResponseOrBuilder.java | 9 - .../CreateAssessmentRequestOrBuilder.java | 58 - .../FraudPreventionAssessmentOrBuilder.java | 104 - .../v1beta1/RecaptchaEnterpriseProto.java | 422 -- versions.txt | 2 +- 288 files changed, 43829 insertions(+), 25299 deletions(-) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java (99%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java (99%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java (99%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java (99%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java (100%) create mode 100644 java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java (50%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java (61%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java (66%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java (59%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java (69%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java (65%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java (68%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java (61%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java (62%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java (69%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java (62%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java (57%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java (54%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java (70%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java (66%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java (61%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java (60%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java (62%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java (62%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java (63%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java (68%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java (69%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java (72%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java (77%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java (68%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java (80%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java (74%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java (67%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java (66%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java (77%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java (56%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java (64%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java (63%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java (63%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java (63%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java (69%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java (72%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java (67%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java (74%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java (67%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java (58%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java (69%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java (62%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java (68%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java (58%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java (71%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java (65%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java (61%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java (67%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java (57%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java (52%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java (67%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java (65%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java (63%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java (55%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java (75%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java (76%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java (68%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java (59%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java (67%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java (69%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java (100%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java (63%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java (64%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java (57%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java (100%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java (60%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java (65%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java (59%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java (66%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java (55%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java (64%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java (64%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java (61%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java (58%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java (64%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java (71%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java (56%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java (51%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java (66%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java (57%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java (70%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java (73%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java (71%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java (64%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java (73%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java (67%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java (63%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java (57%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java (65%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java (57%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java (71%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java (75%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java (66%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java (61%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java (64%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java (70%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java (71%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java (60%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java (65%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java (58%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java (59%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java (62%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java (62%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java (60%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java (71%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java (75%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java (54%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java (70%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java (70%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java (100%) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java (70%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java (70%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java (72%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java (78%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java (73%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java (67%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java (100%) rename {owl-bot-staging/java-recaptchaenterprise/v1beta1 => java-recaptchaenterprise}/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java (100%) delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java delete mode 100644 owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 4e1d8bf8632b..52388df55b1a 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java similarity index 99% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java index b2b13dda0eb1..366dfd02fc2c 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recaptchaenterprise.v1.stub.RecaptchaEnterpriseServiceStubSettings; diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java similarity index 99% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java index 8df5d2c6d003..a4ed107dc478 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java @@ -63,7 +63,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java similarity index 99% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java index 77badd03b42b..376dfcc4fd1d 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recaptchaenterprise.v1beta1.stub.RecaptchaEnterpriseServiceV1Beta1StubSettings; diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java similarity index 99% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java index 5226c508cac4..35a180167aaf 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java @@ -32,7 +32,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java rename to java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java new file mode 100644 index 000000000000..beb9bf10a6e6 --- /dev/null +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java @@ -0,0 +1,2513 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.recaptchaenterprise.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service to determine the likelihood an event is legitimate.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class RecaptchaEnterpriseServiceGrpc { + + private RecaptchaEnterpriseServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1.Assessment> + getCreateAssessmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAssessment", + requestType = com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, + responseType = com.google.recaptchaenterprise.v1.Assessment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1.Assessment> + getCreateAssessmentMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1.Assessment> + getCreateAssessmentMethod; + if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod = + getCreateAssessmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssessment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.CreateAssessmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "CreateAssessment")) + .build(); + } + } + } + return getCreateAssessmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse> + getAnnotateAssessmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnnotateAssessment", + requestType = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, + responseType = com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse> + getAnnotateAssessmentMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse> + getAnnotateAssessmentMethod; + if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getAnnotateAssessmentMethod = + RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod = + getAnnotateAssessmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnnotateAssessment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "AnnotateAssessment")) + .build(); + } + } + } + return getAnnotateAssessmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateKeyRequest, com.google.recaptchaenterprise.v1.Key> + getCreateKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateKey", + requestType = com.google.recaptchaenterprise.v1.CreateKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.Key.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateKeyRequest, com.google.recaptchaenterprise.v1.Key> + getCreateKeyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateKeyRequest, + com.google.recaptchaenterprise.v1.Key> + getCreateKeyMethod; + if ((getCreateKeyMethod = RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getCreateKeyMethod = RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod = + getCreateKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.CreateKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier("CreateKey")) + .build(); + } + } + } + return getCreateKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListKeysRequest, + com.google.recaptchaenterprise.v1.ListKeysResponse> + getListKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListKeys", + requestType = com.google.recaptchaenterprise.v1.ListKeysRequest.class, + responseType = com.google.recaptchaenterprise.v1.ListKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListKeysRequest, + com.google.recaptchaenterprise.v1.ListKeysResponse> + getListKeysMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListKeysRequest, + com.google.recaptchaenterprise.v1.ListKeysResponse> + getListKeysMethod; + if ((getListKeysMethod = RecaptchaEnterpriseServiceGrpc.getListKeysMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getListKeysMethod = RecaptchaEnterpriseServiceGrpc.getListKeysMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getListKeysMethod = + getListKeysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListKeysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListKeysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListKeys")) + .build(); + } + } + } + return getListKeysMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> + getRetrieveLegacySecretKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetrieveLegacySecretKey", + requestType = com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> + getRetrieveLegacySecretKeyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> + getRetrieveLegacySecretKeyMethod; + if ((getRetrieveLegacySecretKeyMethod = + RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getRetrieveLegacySecretKeyMethod = + RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod = + getRetrieveLegacySecretKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RetrieveLegacySecretKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "RetrieveLegacySecretKey")) + .build(); + } + } + } + return getRetrieveLegacySecretKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetKeyRequest, com.google.recaptchaenterprise.v1.Key> + getGetKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetKey", + requestType = com.google.recaptchaenterprise.v1.GetKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.Key.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetKeyRequest, com.google.recaptchaenterprise.v1.Key> + getGetKeyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetKeyRequest, com.google.recaptchaenterprise.v1.Key> + getGetKeyMethod; + if ((getGetKeyMethod = RecaptchaEnterpriseServiceGrpc.getGetKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getGetKeyMethod = RecaptchaEnterpriseServiceGrpc.getGetKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getGetKeyMethod = + getGetKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.GetKeyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetKey")) + .build(); + } + } + } + return getGetKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.UpdateKeyRequest, com.google.recaptchaenterprise.v1.Key> + getUpdateKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateKey", + requestType = com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.Key.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.UpdateKeyRequest, com.google.recaptchaenterprise.v1.Key> + getUpdateKeyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.UpdateKeyRequest, + com.google.recaptchaenterprise.v1.Key> + getUpdateKeyMethod; + if ((getUpdateKeyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getUpdateKeyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod = + getUpdateKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.UpdateKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier("UpdateKey")) + .build(); + } + } + } + return getUpdateKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.DeleteKeyRequest, com.google.protobuf.Empty> + getDeleteKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteKey", + requestType = com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.DeleteKeyRequest, com.google.protobuf.Empty> + getDeleteKeyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.DeleteKeyRequest, com.google.protobuf.Empty> + getDeleteKeyMethod; + if ((getDeleteKeyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getDeleteKeyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod = + getDeleteKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.DeleteKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier("DeleteKey")) + .build(); + } + } + } + return getDeleteKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.MigrateKeyRequest, + com.google.recaptchaenterprise.v1.Key> + getMigrateKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MigrateKey", + requestType = com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.Key.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.MigrateKeyRequest, + com.google.recaptchaenterprise.v1.Key> + getMigrateKeyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.MigrateKeyRequest, + com.google.recaptchaenterprise.v1.Key> + getMigrateKeyMethod; + if ((getMigrateKeyMethod = RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getMigrateKeyMethod = RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod = + getMigrateKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MigrateKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.MigrateKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier("MigrateKey")) + .build(); + } + } + } + return getMigrateKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetMetricsRequest, + com.google.recaptchaenterprise.v1.Metrics> + getGetMetricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMetrics", + requestType = com.google.recaptchaenterprise.v1.GetMetricsRequest.class, + responseType = com.google.recaptchaenterprise.v1.Metrics.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetMetricsRequest, + com.google.recaptchaenterprise.v1.Metrics> + getGetMetricsMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetMetricsRequest, + com.google.recaptchaenterprise.v1.Metrics> + getGetMetricsMethod; + if ((getGetMetricsMethod = RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getGetMetricsMethod = RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod = + getGetMetricsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.GetMetricsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Metrics.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetMetrics")) + .build(); + } + } + } + return getGetMetricsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getCreateFirewallPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFirewallPolicy", + requestType = com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, + responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getCreateFirewallPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getCreateFirewallPolicyMethod; + if ((getCreateFirewallPolicyMethod = + RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getCreateFirewallPolicyMethod = + RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod = + getCreateFirewallPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateFirewallPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.FirewallPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "CreateFirewallPolicy")) + .build(); + } + } + } + return getCreateFirewallPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse> + getListFirewallPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFirewallPolicies", + requestType = com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, + responseType = com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse> + getListFirewallPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse> + getListFirewallPoliciesMethod; + if ((getListFirewallPoliciesMethod = + RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getListFirewallPoliciesMethod = + RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod = + getListFirewallPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFirewallPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "ListFirewallPolicies")) + .build(); + } + } + } + return getListFirewallPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getGetFirewallPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFirewallPolicy", + requestType = com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, + responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getGetFirewallPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getGetFirewallPolicyMethod; + if ((getGetFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getGetFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod = + getGetFirewallPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFirewallPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.FirewallPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "GetFirewallPolicy")) + .build(); + } + } + } + return getGetFirewallPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getUpdateFirewallPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFirewallPolicy", + requestType = com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, + responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getUpdateFirewallPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy> + getUpdateFirewallPolicyMethod; + if ((getUpdateFirewallPolicyMethod = + RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getUpdateFirewallPolicyMethod = + RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod = + getUpdateFirewallPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateFirewallPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.FirewallPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "UpdateFirewallPolicy")) + .build(); + } + } + } + return getUpdateFirewallPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, com.google.protobuf.Empty> + getDeleteFirewallPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFirewallPolicy", + requestType = com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, com.google.protobuf.Empty> + getDeleteFirewallPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, + com.google.protobuf.Empty> + getDeleteFirewallPolicyMethod; + if ((getDeleteFirewallPolicyMethod = + RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getDeleteFirewallPolicyMethod = + RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod = + getDeleteFirewallPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteFirewallPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "DeleteFirewallPolicy")) + .build(); + } + } + } + return getDeleteFirewallPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> + getListRelatedAccountGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRelatedAccountGroups", + requestType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, + responseType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> + getListRelatedAccountGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> + getListRelatedAccountGroupsMethod; + if ((getListRelatedAccountGroupsMethod = + RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getListRelatedAccountGroupsMethod = + RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod = + getListRelatedAccountGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListRelatedAccountGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "ListRelatedAccountGroups")) + .build(); + } + } + } + return getListRelatedAccountGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> + getListRelatedAccountGroupMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRelatedAccountGroupMemberships", + requestType = + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, + responseType = + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> + getListRelatedAccountGroupMembershipsMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> + getListRelatedAccountGroupMembershipsMethod; + if ((getListRelatedAccountGroupMembershipsMethod = + RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getListRelatedAccountGroupMembershipsMethod = + RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod = + getListRelatedAccountGroupMembershipsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListRelatedAccountGroupMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1 + .ListRelatedAccountGroupMembershipsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1 + .ListRelatedAccountGroupMembershipsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "ListRelatedAccountGroupMemberships")) + .build(); + } + } + } + return getListRelatedAccountGroupMembershipsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> + getSearchRelatedAccountGroupMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchRelatedAccountGroupMemberships", + requestType = + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, + responseType = + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> + getSearchRelatedAccountGroupMembershipsMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> + getSearchRelatedAccountGroupMembershipsMethod; + if ((getSearchRelatedAccountGroupMembershipsMethod = + RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod) + == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getSearchRelatedAccountGroupMembershipsMethod = + RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod) + == null) { + RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod = + getSearchRelatedAccountGroupMembershipsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SearchRelatedAccountGroupMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1 + .SearchRelatedAccountGroupMembershipsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1 + .SearchRelatedAccountGroupMembershipsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceMethodDescriptorSupplier( + "SearchRelatedAccountGroupMemberships")) + .build(); + } + } + } + return getSearchRelatedAccountGroupMembershipsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static RecaptchaEnterpriseServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceStub(channel, callOptions); + } + }; + return RecaptchaEnterpriseServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RecaptchaEnterpriseServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceBlockingStub(channel, callOptions); + } + }; + return RecaptchaEnterpriseServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static RecaptchaEnterpriseServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceFutureStub(channel, callOptions); + } + }; + return RecaptchaEnterpriseServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates an Assessment of the likelihood an event is legitimate.
+     * 
+ */ + default void createAssessment( + com.google.recaptchaenterprise.v1.CreateAssessmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAssessmentMethod(), responseObserver); + } + + /** + * + * + *
+     * Annotates a previously created Assessment to provide additional information
+     * on whether the event turned out to be authentic or fraudulent.
+     * 
+ */ + default void annotateAssessment( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAnnotateAssessmentMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new reCAPTCHA Enterprise key.
+     * 
+ */ + default void createKey( + com.google.recaptchaenterprise.v1.CreateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateKeyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the list of all keys that belong to a project.
+     * 
+ */ + default void listKeys( + com.google.recaptchaenterprise.v1.ListKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListKeysMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the secret key related to the specified public key.
+     * You must use the legacy secret key only in a 3rd party integration with
+     * legacy reCAPTCHA.
+     * 
+ */ + default void retrieveLegacySecretKey( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRetrieveLegacySecretKeyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the specified key.
+     * 
+ */ + default void getKey( + com.google.recaptchaenterprise.v1.GetKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetKeyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified key.
+     * 
+ */ + default void updateKey( + com.google.recaptchaenterprise.v1.UpdateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateKeyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified key.
+     * 
+ */ + default void deleteKey( + com.google.recaptchaenterprise.v1.DeleteKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteKeyMethod(), responseObserver); + } + + /** + * + * + *
+     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
+     * Once a key is migrated, it can be used from either product. SiteVerify
+     * requests are billed as CreateAssessment calls. You must be
+     * authenticated as one of the current owners of the reCAPTCHA Key, and
+     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
+     * destination project.
+     * 
+ */ + default void migrateKey( + com.google.recaptchaenterprise.v1.MigrateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMigrateKeyMethod(), responseObserver); + } + + /** + * + * + *
+     * Get some aggregated metrics for a Key. This data can be used to build
+     * dashboards.
+     * 
+ */ + default void getMetrics( + com.google.recaptchaenterprise.v1.GetMetricsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetricsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
+     * Enterprise actions can be executed.
+     * A project may have a maximum of 1000 policies.
+     * 
+ */ + default void createFirewallPolicy( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFirewallPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the list of all firewall policies that belong to a project.
+     * 
+ */ + default void listFirewallPolicies( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFirewallPoliciesMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the specified firewall policy.
+     * 
+ */ + default void getFirewallPolicy( + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFirewallPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified firewall policy.
+     * 
+ */ + default void updateFirewallPolicy( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFirewallPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified firewall policy.
+     * 
+ */ + default void deleteFirewallPolicy( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFirewallPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * List groups of related accounts.
+     * 
+ */ + default void listRelatedAccountGroups( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRelatedAccountGroupsMethod(), responseObserver); + } + + /** + * + * + *
+     * Get memberships in a group of related accounts.
+     * 
+ */ + default void listRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRelatedAccountGroupMembershipsMethod(), responseObserver); + } + + /** + * + * + *
+     * Search group memberships related to a given account.
+     * 
+ */ + default void searchRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchRelatedAccountGroupMembershipsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service RecaptchaEnterpriseService. + * + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public abstract static class RecaptchaEnterpriseServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return RecaptchaEnterpriseServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service RecaptchaEnterpriseService. + * + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public static final class RecaptchaEnterpriseServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private RecaptchaEnterpriseServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecaptchaEnterpriseServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an Assessment of the likelihood an event is legitimate.
+     * 
+ */ + public void createAssessment( + com.google.recaptchaenterprise.v1.CreateAssessmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Annotates a previously created Assessment to provide additional information
+     * on whether the event turned out to be authentic or fraudulent.
+     * 
+ */ + public void annotateAssessment( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new reCAPTCHA Enterprise key.
+     * 
+ */ + public void createKey( + com.google.recaptchaenterprise.v1.CreateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns the list of all keys that belong to a project.
+     * 
+ */ + public void listKeys( + com.google.recaptchaenterprise.v1.ListKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListKeysMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns the secret key related to the specified public key.
+     * You must use the legacy secret key only in a 3rd party integration with
+     * legacy reCAPTCHA.
+     * 
+ */ + public void retrieveLegacySecretKey( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetrieveLegacySecretKeyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the specified key.
+     * 
+ */ + public void getKey( + com.google.recaptchaenterprise.v1.GetKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the specified key.
+     * 
+ */ + public void updateKey( + com.google.recaptchaenterprise.v1.UpdateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes the specified key.
+     * 
+ */ + public void deleteKey( + com.google.recaptchaenterprise.v1.DeleteKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
+     * Once a key is migrated, it can be used from either product. SiteVerify
+     * requests are billed as CreateAssessment calls. You must be
+     * authenticated as one of the current owners of the reCAPTCHA Key, and
+     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
+     * destination project.
+     * 
+ */ + public void migrateKey( + com.google.recaptchaenterprise.v1.MigrateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMigrateKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Get some aggregated metrics for a Key. This data can be used to build
+     * dashboards.
+     * 
+ */ + public void getMetrics( + com.google.recaptchaenterprise.v1.GetMetricsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMetricsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
+     * Enterprise actions can be executed.
+     * A project may have a maximum of 1000 policies.
+     * 
+ */ + public void createFirewallPolicy( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFirewallPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the list of all firewall policies that belong to a project.
+     * 
+ */ + public void listFirewallPolicies( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFirewallPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the specified firewall policy.
+     * 
+ */ + public void getFirewallPolicy( + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFirewallPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified firewall policy.
+     * 
+ */ + public void updateFirewallPolicy( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFirewallPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified firewall policy.
+     * 
+ */ + public void deleteFirewallPolicy( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFirewallPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List groups of related accounts.
+     * 
+ */ + public void listRelatedAccountGroups( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRelatedAccountGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get memberships in a group of related accounts.
+     * 
+ */ + public void listRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRelatedAccountGroupMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Search group memberships related to a given account.
+     * 
+ */ + public void searchRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service RecaptchaEnterpriseService. + * + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public static final class RecaptchaEnterpriseServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private RecaptchaEnterpriseServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecaptchaEnterpriseServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an Assessment of the likelihood an event is legitimate.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Assessment createAssessment( + com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAssessmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Annotates a previously created Assessment to provide additional information
+     * on whether the event turned out to be authentic or fraudulent.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse annotateAssessment( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnnotateAssessmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new reCAPTCHA Enterprise key.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Key createKey( + com.google.recaptchaenterprise.v1.CreateKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the list of all keys that belong to a project.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.ListKeysResponse listKeys( + com.google.recaptchaenterprise.v1.ListKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListKeysMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the secret key related to the specified public key.
+     * You must use the legacy secret key only in a 3rd party integration with
+     * legacy reCAPTCHA.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse + retrieveLegacySecretKey( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetrieveLegacySecretKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the specified key.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Key getKey( + com.google.recaptchaenterprise.v1.GetKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified key.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Key updateKey( + com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified key.
+     * 
+ */ + public com.google.protobuf.Empty deleteKey( + com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
+     * Once a key is migrated, it can be used from either product. SiteVerify
+     * requests are billed as CreateAssessment calls. You must be
+     * authenticated as one of the current owners of the reCAPTCHA Key, and
+     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
+     * destination project.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Key migrateKey( + com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMigrateKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get some aggregated metrics for a Key. This data can be used to build
+     * dashboards.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Metrics getMetrics( + com.google.recaptchaenterprise.v1.GetMetricsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMetricsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
+     * Enterprise actions can be executed.
+     * A project may have a maximum of 1000 policies.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.FirewallPolicy createFirewallPolicy( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFirewallPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the list of all firewall policies that belong to a project.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse listFirewallPolicies( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFirewallPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the specified firewall policy.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy( + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFirewallPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified firewall policy.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.FirewallPolicy updateFirewallPolicy( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFirewallPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified firewall policy.
+     * 
+ */ + public com.google.protobuf.Empty deleteFirewallPolicy( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFirewallPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List groups of related accounts.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + listRelatedAccountGroups( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRelatedAccountGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get memberships in a group of related accounts.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + listRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Search group memberships related to a given account.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + searchRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * RecaptchaEnterpriseService. + * + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public static final class RecaptchaEnterpriseServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private RecaptchaEnterpriseServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecaptchaEnterpriseServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an Assessment of the likelihood an event is legitimate.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.Assessment> + createAssessment(com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Annotates a previously created Assessment to provide additional information
+     * on whether the event turned out to be authentic or fraudulent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse> + annotateAssessment(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new reCAPTCHA Enterprise key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createKey(com.google.recaptchaenterprise.v1.CreateKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the list of all keys that belong to a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.ListKeysResponse> + listKeys(com.google.recaptchaenterprise.v1.ListKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListKeysMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the secret key related to the specified public key.
+     * You must use the legacy secret key only in a 3rd party integration with
+     * legacy reCAPTCHA.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> + retrieveLegacySecretKey( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetrieveLegacySecretKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the specified key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getKey(com.google.recaptchaenterprise.v1.GetKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateKey(com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteKey( + com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
+     * Once a key is migrated, it can be used from either product. SiteVerify
+     * requests are billed as CreateAssessment calls. You must be
+     * authenticated as one of the current owners of the reCAPTCHA Key, and
+     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
+     * destination project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + migrateKey(com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMigrateKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get some aggregated metrics for a Key. This data can be used to build
+     * dashboards.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.Metrics> + getMetrics(com.google.recaptchaenterprise.v1.GetMetricsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMetricsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
+     * Enterprise actions can be executed.
+     * A project may have a maximum of 1000 policies.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.FirewallPolicy> + createFirewallPolicy( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFirewallPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the list of all firewall policies that belong to a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse> + listFirewallPolicies( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFirewallPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the specified firewall policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.FirewallPolicy> + getFirewallPolicy(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFirewallPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified firewall policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.FirewallPolicy> + updateFirewallPolicy( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFirewallPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified firewall policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFirewallPolicy( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFirewallPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List groups of related accounts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> + listRelatedAccountGroups( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRelatedAccountGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get memberships in a group of related accounts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> + listRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRelatedAccountGroupMembershipsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Search group memberships related to a given account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> + searchRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_CREATE_ASSESSMENT = 0; + private static final int METHODID_ANNOTATE_ASSESSMENT = 1; + private static final int METHODID_CREATE_KEY = 2; + private static final int METHODID_LIST_KEYS = 3; + private static final int METHODID_RETRIEVE_LEGACY_SECRET_KEY = 4; + private static final int METHODID_GET_KEY = 5; + private static final int METHODID_UPDATE_KEY = 6; + private static final int METHODID_DELETE_KEY = 7; + private static final int METHODID_MIGRATE_KEY = 8; + private static final int METHODID_GET_METRICS = 9; + private static final int METHODID_CREATE_FIREWALL_POLICY = 10; + private static final int METHODID_LIST_FIREWALL_POLICIES = 11; + private static final int METHODID_GET_FIREWALL_POLICY = 12; + private static final int METHODID_UPDATE_FIREWALL_POLICY = 13; + private static final int METHODID_DELETE_FIREWALL_POLICY = 14; + private static final int METHODID_LIST_RELATED_ACCOUNT_GROUPS = 15; + private static final int METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS = 16; + private static final int METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS = 17; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_ASSESSMENT: + serviceImpl.createAssessment( + (com.google.recaptchaenterprise.v1.CreateAssessmentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ANNOTATE_ASSESSMENT: + serviceImpl.annotateAssessment( + (com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse>) + responseObserver); + break; + case METHODID_CREATE_KEY: + serviceImpl.createKey( + (com.google.recaptchaenterprise.v1.CreateKeyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_KEYS: + serviceImpl.listKeys( + (com.google.recaptchaenterprise.v1.ListKeysRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RETRIEVE_LEGACY_SECRET_KEY: + serviceImpl.retrieveLegacySecretKey( + (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse>) + responseObserver); + break; + case METHODID_GET_KEY: + serviceImpl.getKey( + (com.google.recaptchaenterprise.v1.GetKeyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_KEY: + serviceImpl.updateKey( + (com.google.recaptchaenterprise.v1.UpdateKeyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_KEY: + serviceImpl.deleteKey( + (com.google.recaptchaenterprise.v1.DeleteKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MIGRATE_KEY: + serviceImpl.migrateKey( + (com.google.recaptchaenterprise.v1.MigrateKeyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_METRICS: + serviceImpl.getMetrics( + (com.google.recaptchaenterprise.v1.GetMetricsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FIREWALL_POLICY: + serviceImpl.createFirewallPolicy( + (com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FIREWALL_POLICIES: + serviceImpl.listFirewallPolicies( + (com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse>) + responseObserver); + break; + case METHODID_GET_FIREWALL_POLICY: + serviceImpl.getFirewallPolicy( + (com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FIREWALL_POLICY: + serviceImpl.updateFirewallPolicy( + (com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_FIREWALL_POLICY: + serviceImpl.deleteFirewallPolicy( + (com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RELATED_ACCOUNT_GROUPS: + serviceImpl.listRelatedAccountGroups( + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse>) + responseObserver); + break; + case METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS: + serviceImpl.listRelatedAccountGroupMemberships( + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse>) + responseObserver); + break; + case METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS: + serviceImpl.searchRelatedAccountGroupMemberships( + (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1 + .SearchRelatedAccountGroupMembershipsResponse>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateAssessmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1.Assessment>( + service, METHODID_CREATE_ASSESSMENT))) + .addMethod( + getAnnotateAssessmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse>( + service, METHODID_ANNOTATE_ASSESSMENT))) + .addMethod( + getCreateKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.CreateKeyRequest, + com.google.recaptchaenterprise.v1.Key>(service, METHODID_CREATE_KEY))) + .addMethod( + getListKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.ListKeysRequest, + com.google.recaptchaenterprise.v1.ListKeysResponse>( + service, METHODID_LIST_KEYS))) + .addMethod( + getRetrieveLegacySecretKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse>( + service, METHODID_RETRIEVE_LEGACY_SECRET_KEY))) + .addMethod( + getGetKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.GetKeyRequest, + com.google.recaptchaenterprise.v1.Key>(service, METHODID_GET_KEY))) + .addMethod( + getUpdateKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.UpdateKeyRequest, + com.google.recaptchaenterprise.v1.Key>(service, METHODID_UPDATE_KEY))) + .addMethod( + getDeleteKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.DeleteKeyRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_KEY))) + .addMethod( + getMigrateKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.MigrateKeyRequest, + com.google.recaptchaenterprise.v1.Key>(service, METHODID_MIGRATE_KEY))) + .addMethod( + getGetMetricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.GetMetricsRequest, + com.google.recaptchaenterprise.v1.Metrics>(service, METHODID_GET_METRICS))) + .addMethod( + getCreateFirewallPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy>( + service, METHODID_CREATE_FIREWALL_POLICY))) + .addMethod( + getListFirewallPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse>( + service, METHODID_LIST_FIREWALL_POLICIES))) + .addMethod( + getGetFirewallPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy>( + service, METHODID_GET_FIREWALL_POLICY))) + .addMethod( + getUpdateFirewallPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy>( + service, METHODID_UPDATE_FIREWALL_POLICY))) + .addMethod( + getDeleteFirewallPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_FIREWALL_POLICY))) + .addMethod( + getListRelatedAccountGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse>( + service, METHODID_LIST_RELATED_ACCOUNT_GROUPS))) + .addMethod( + getListRelatedAccountGroupMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse>( + service, METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS))) + .addMethod( + getSearchRelatedAccountGroupMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse>( + service, METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS))) + .build(); + } + + private abstract static class RecaptchaEnterpriseServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RecaptchaEnterpriseServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("RecaptchaEnterpriseService"); + } + } + + private static final class RecaptchaEnterpriseServiceFileDescriptorSupplier + extends RecaptchaEnterpriseServiceBaseDescriptorSupplier { + RecaptchaEnterpriseServiceFileDescriptorSupplier() {} + } + + private static final class RecaptchaEnterpriseServiceMethodDescriptorSupplier + extends RecaptchaEnterpriseServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + RecaptchaEnterpriseServiceMethodDescriptorSupplier(java.lang.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 (RecaptchaEnterpriseServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceFileDescriptorSupplier()) + .addMethod(getCreateAssessmentMethod()) + .addMethod(getAnnotateAssessmentMethod()) + .addMethod(getCreateKeyMethod()) + .addMethod(getListKeysMethod()) + .addMethod(getRetrieveLegacySecretKeyMethod()) + .addMethod(getGetKeyMethod()) + .addMethod(getUpdateKeyMethod()) + .addMethod(getDeleteKeyMethod()) + .addMethod(getMigrateKeyMethod()) + .addMethod(getGetMetricsMethod()) + .addMethod(getCreateFirewallPolicyMethod()) + .addMethod(getListFirewallPoliciesMethod()) + .addMethod(getGetFirewallPolicyMethod()) + .addMethod(getUpdateFirewallPolicyMethod()) + .addMethod(getDeleteFirewallPolicyMethod()) + .addMethod(getListRelatedAccountGroupsMethod()) + .addMethod(getListRelatedAccountGroupMembershipsMethod()) + .addMethod(getSearchRelatedAccountGroupMembershipsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java similarity index 50% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java rename to java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java index 1672848b9255..a89e2ddde4a7 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.recaptchaenterprise.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Service to determine the likelihood an event is legitimate.
  * 
@@ -15,82 +32,124 @@ public final class RecaptchaEnterpriseServiceV1Beta1Grpc { private RecaptchaEnterpriseServiceV1Beta1Grpc() {} - public static final java.lang.String SERVICE_NAME = "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"; + public static final java.lang.String SERVICE_NAME = + "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateAssessmentMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.Assessment> + getCreateAssessmentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateAssessment", requestType = com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, responseType = com.google.recaptchaenterprise.v1beta1.Assessment.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAssessmentMethod() { - io.grpc.MethodDescriptor getCreateAssessmentMethod; - if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.Assessment> + getCreateAssessmentMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.Assessment> + getCreateAssessmentMethod; + if ((getCreateAssessmentMethod = + RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod) + == null) { synchronized (RecaptchaEnterpriseServiceV1Beta1Grpc.class) { - if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod) == null) { - RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod = getCreateAssessmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssessment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceV1Beta1MethodDescriptorSupplier("CreateAssessment")) - .build(); + if ((getCreateAssessmentMethod = + RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod) + == null) { + RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod = + getCreateAssessmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssessment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1beta1.Assessment + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceV1Beta1MethodDescriptorSupplier( + "CreateAssessment")) + .build(); } } } return getCreateAssessmentMethod; } - private static volatile io.grpc.MethodDescriptor getAnnotateAssessmentMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> + getAnnotateAssessmentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "AnnotateAssessment", requestType = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, responseType = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAnnotateAssessmentMethod() { - io.grpc.MethodDescriptor getAnnotateAssessmentMethod; - if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> + getAnnotateAssessmentMethod() { + io.grpc.MethodDescriptor< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> + getAnnotateAssessmentMethod; + if ((getAnnotateAssessmentMethod = + RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod) + == null) { synchronized (RecaptchaEnterpriseServiceV1Beta1Grpc.class) { - if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod) == null) { - RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod = getAnnotateAssessmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnnotateAssessment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceV1Beta1MethodDescriptorSupplier("AnnotateAssessment")) - .build(); + if ((getAnnotateAssessmentMethod = + RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod) + == null) { + RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod = + getAnnotateAssessmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnnotateAssessment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceV1Beta1MethodDescriptorSupplier( + "AnnotateAssessment")) + .build(); } } } return getAnnotateAssessmentMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static RecaptchaEnterpriseServiceV1Beta1Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceV1Beta1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceV1Beta1Stub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceV1Beta1Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceV1Beta1Stub(channel, callOptions); + } + }; return RecaptchaEnterpriseServiceV1Beta1Stub.newStub(factory, channel); } @@ -100,31 +159,32 @@ public RecaptchaEnterpriseServiceV1Beta1Stub newStub(io.grpc.Channel channel, io public static RecaptchaEnterpriseServiceV1Beta1BlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceV1Beta1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceV1Beta1BlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceV1Beta1BlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceV1Beta1BlockingStub(channel, callOptions); + } + }; return RecaptchaEnterpriseServiceV1Beta1BlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static RecaptchaEnterpriseServiceV1Beta1FutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static RecaptchaEnterpriseServiceV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceV1Beta1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceV1Beta1FutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceV1Beta1FutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceV1Beta1FutureStub(channel, callOptions); + } + }; return RecaptchaEnterpriseServiceV1Beta1FutureStub.newStub(factory, channel); } /** + * + * *
    * Service to determine the likelihood an event is legitimate.
    * 
@@ -132,43 +192,58 @@ public RecaptchaEnterpriseServiceV1Beta1FutureStub newStub(io.grpc.Channel chann public interface AsyncService { /** + * + * *
      * Creates an Assessment of the likelihood an event is legitimate.
      * 
*/ - default void createAssessment(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAssessmentMethod(), responseObserver); + default void createAssessment( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAssessmentMethod(), responseObserver); } /** + * + * *
      * Annotates a previously created Assessment to provide additional information
      * on whether the event turned out to be authentic or fradulent.
      * 
*/ - default void annotateAssessment(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnnotateAssessmentMethod(), responseObserver); + default void annotateAssessment( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAnnotateAssessmentMethod(), responseObserver); } } /** * Base class for the server implementation of the service RecaptchaEnterpriseServiceV1Beta1. + * *
    * Service to determine the likelihood an event is legitimate.
    * 
*/ - public static abstract class RecaptchaEnterpriseServiceV1Beta1ImplBase + public abstract static class RecaptchaEnterpriseServiceV1Beta1ImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return RecaptchaEnterpriseServiceV1Beta1Grpc.bindService(this); } } /** - * A stub to allow clients to do asynchronous rpc calls to service RecaptchaEnterpriseServiceV1Beta1. + * A stub to allow clients to do asynchronous rpc calls to service + * RecaptchaEnterpriseServiceV1Beta1. + * *
    * Service to determine the likelihood an event is legitimate.
    * 
@@ -187,31 +262,46 @@ protected RecaptchaEnterpriseServiceV1Beta1Stub build( } /** + * + * *
      * Creates an Assessment of the likelihood an event is legitimate.
      * 
*/ - public void createAssessment(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createAssessment( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Annotates a previously created Assessment to provide additional information
      * on whether the event turned out to be authentic or fradulent.
      * 
*/ - public void annotateAssessment(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void annotateAssessment( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request, + io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), + request, + responseObserver); } } /** - * A stub to allow clients to do synchronous rpc calls to service RecaptchaEnterpriseServiceV1Beta1. + * A stub to allow clients to do synchronous rpc calls to service + * RecaptchaEnterpriseServiceV1Beta1. + * *
    * Service to determine the likelihood an event is legitimate.
    * 
@@ -230,29 +320,37 @@ protected RecaptchaEnterpriseServiceV1Beta1BlockingStub build( } /** + * + * *
      * Creates an Assessment of the likelihood an event is legitimate.
      * 
*/ - public com.google.recaptchaenterprise.v1beta1.Assessment createAssessment(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { + public com.google.recaptchaenterprise.v1beta1.Assessment createAssessment( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAssessmentMethod(), getCallOptions(), request); } /** + * + * *
      * Annotates a previously created Assessment to provide additional information
      * on whether the event turned out to be authentic or fradulent.
      * 
*/ - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse annotateAssessment(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse annotateAssessment( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAnnotateAssessmentMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service RecaptchaEnterpriseServiceV1Beta1. + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * RecaptchaEnterpriseServiceV1Beta1. + * *
    * Service to determine the likelihood an event is legitimate.
    * 
@@ -271,24 +369,31 @@ protected RecaptchaEnterpriseServiceV1Beta1FutureStub build( } /** + * + * *
      * Creates an Assessment of the likelihood an event is legitimate.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createAssessment( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1beta1.Assessment> + createAssessment(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request); } /** + * + * *
      * Annotates a previously created Assessment to provide additional information
      * on whether the event turned out to be authentic or fradulent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture annotateAssessment( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> + annotateAssessment( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request); } @@ -297,11 +402,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -315,12 +420,17 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_ASSESSMENT: - serviceImpl.createAssessment((com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createAssessment( + (com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_ANNOTATE_ASSESSMENT: - serviceImpl.annotateAssessment((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.annotateAssessment( + (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -341,24 +451,25 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateAssessmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.Assessment>( - service, METHODID_CREATE_ASSESSMENT))) + getCreateAssessmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.Assessment>( + service, METHODID_CREATE_ASSESSMENT))) .addMethod( - getAnnotateAssessmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>( - service, METHODID_ANNOTATE_ASSESSMENT))) + getAnnotateAssessmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>( + service, METHODID_ANNOTATE_ASSESSMENT))) .build(); } - private static abstract class RecaptchaEnterpriseServiceV1Beta1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class RecaptchaEnterpriseServiceV1Beta1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { RecaptchaEnterpriseServiceV1Beta1BaseDescriptorSupplier() {} @java.lang.Override @@ -400,11 +511,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (RecaptchaEnterpriseServiceV1Beta1Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceV1Beta1FileDescriptorSupplier()) - .addMethod(getCreateAssessmentMethod()) - .addMethod(getAnnotateAssessmentMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new RecaptchaEnterpriseServiceV1Beta1FileDescriptorSupplier()) + .addMethod(getCreateAssessmentMethod()) + .addMethod(getAnnotateAssessmentMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java similarity index 61% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java index 97f87a0ce18a..24cd7b5b4ef7 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Account defender risk assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment} */ -public final class AccountDefenderAssessment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccountDefenderAssessment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) AccountDefenderAssessmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccountDefenderAssessment.newBuilder() to construct. private AccountDefenderAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccountDefenderAssessment() { labels_ = 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 AccountDefenderAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.class, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder.class); + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.class, + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder.class); } /** + * + * *
    * Labels returned by account defender for this request.
    * 
* - * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel} + * Protobuf enum {@code + * google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel} */ - public enum AccountDefenderLabel - implements com.google.protobuf.ProtocolMessageEnum { + public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified type.
      * 
@@ -61,6 +84,8 @@ public enum AccountDefenderLabel */ ACCOUNT_DEFENDER_LABEL_UNSPECIFIED(0), /** + * + * *
      * The request matches a known good profile for the user.
      * 
@@ -69,6 +94,8 @@ public enum AccountDefenderLabel */ PROFILE_MATCH(1), /** + * + * *
      * The request is potentially a suspicious login event and must be further
      * verified either through multi-factor authentication or another system.
@@ -78,6 +105,8 @@ public enum AccountDefenderLabel
      */
     SUSPICIOUS_LOGIN_ACTIVITY(2),
     /**
+     *
+     *
      * 
      * The request matched a profile that previously had suspicious account
      * creation behavior. This can mean that this is a fake account.
@@ -87,6 +116,8 @@ public enum AccountDefenderLabel
      */
     SUSPICIOUS_ACCOUNT_CREATION(3),
     /**
+     *
+     *
      * 
      * The account in the request has a high number of related accounts. It does
      * not necessarily imply that the account is bad but can require further
@@ -100,6 +131,8 @@ public enum AccountDefenderLabel
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified type.
      * 
@@ -108,6 +141,8 @@ public enum AccountDefenderLabel */ public static final int ACCOUNT_DEFENDER_LABEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The request matches a known good profile for the user.
      * 
@@ -116,6 +151,8 @@ public enum AccountDefenderLabel */ public static final int PROFILE_MATCH_VALUE = 1; /** + * + * *
      * The request is potentially a suspicious login event and must be further
      * verified either through multi-factor authentication or another system.
@@ -125,6 +162,8 @@ public enum AccountDefenderLabel
      */
     public static final int SUSPICIOUS_LOGIN_ACTIVITY_VALUE = 2;
     /**
+     *
+     *
      * 
      * The request matched a profile that previously had suspicious account
      * creation behavior. This can mean that this is a fake account.
@@ -134,6 +173,8 @@ public enum AccountDefenderLabel
      */
     public static final int SUSPICIOUS_ACCOUNT_CREATION_VALUE = 3;
     /**
+     *
+     *
      * 
      * The account in the request has a high number of related accounts. It does
      * not necessarily imply that the account is bad but can require further
@@ -144,7 +185,6 @@ public enum AccountDefenderLabel
      */
     public static final int RELATED_ACCOUNTS_NUMBER_HIGH_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -169,12 +209,18 @@ public static AccountDefenderLabel valueOf(int value) {
      */
     public static AccountDefenderLabel forNumber(int value) {
       switch (value) {
-        case 0: return ACCOUNT_DEFENDER_LABEL_UNSPECIFIED;
-        case 1: return PROFILE_MATCH;
-        case 2: return SUSPICIOUS_LOGIN_ACTIVITY;
-        case 3: return SUSPICIOUS_ACCOUNT_CREATION;
-        case 4: return RELATED_ACCOUNTS_NUMBER_HIGH;
-        default: return null;
+        case 0:
+          return ACCOUNT_DEFENDER_LABEL_UNSPECIFIED;
+        case 1:
+          return PROFILE_MATCH;
+        case 2:
+          return SUSPICIOUS_LOGIN_ACTIVITY;
+        case 3:
+          return SUSPICIOUS_ACCOUNT_CREATION;
+        case 4:
+          return RELATED_ACCOUNTS_NUMBER_HIGH;
+        default:
+          return null;
       }
     }
 
@@ -182,29 +228,31 @@ public static AccountDefenderLabel forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AccountDefenderLabel> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AccountDefenderLabel findValueByNumber(int number) {
-              return AccountDefenderLabel.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public AccountDefenderLabel findValueByNumber(int number) {
+                return AccountDefenderLabel.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.recaptchaenterprise.v1.AccountDefenderAssessment.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final AccountDefenderLabel[] VALUES = values();
@@ -212,8 +260,7 @@ public AccountDefenderLabel findValueByNumber(int number) {
     public static AccountDefenderLabel 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;
@@ -231,36 +278,62 @@ private AccountDefenderLabel(int value) {
   }
 
   public static final int LABELS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List labels_;
+
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-      java.lang.Integer, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel> labels_converter_ =
+          java.lang.Integer,
+          com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>
+      labels_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
-              java.lang.Integer, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>() {
-            public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel convert(java.lang.Integer from) {
-              com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel result = com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel.forNumber(from);
-              return result == null ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel.UNRECOGNIZED : result;
+              java.lang.Integer,
+              com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>() {
+            public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel
+                convert(java.lang.Integer from) {
+              com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel
+                  result =
+                      com.google.recaptchaenterprise.v1.AccountDefenderAssessment
+                          .AccountDefenderLabel.forNumber(from);
+              return result == null
+                  ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel
+                      .UNRECOGNIZED
+                  : result;
             }
           };
   /**
+   *
+   *
    * 
    * Output only. Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the labels. */ @java.lang.Override - public java.util.List getLabelsList() { + public java.util.List< + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel> + getLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>(labels_, labels_converter_); + java.lang.Integer, + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>( + labels_, labels_converter_); } /** + * + * *
    * Output only. Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of labels. */ @java.lang.Override @@ -268,37 +341,52 @@ public int getLabelsCount() { return labels_.size(); } /** + * + * *
    * Output only. Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The labels at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index) { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels( + int index) { return labels_converter_.convert(labels_.get(index)); } /** + * + * *
    * Output only. Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for labels. */ @java.lang.Override - public java.util.List - getLabelsValueList() { + public java.util.List getLabelsValueList() { return labels_; } /** + * + * *
    * Output only. Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of labels at the given index. */ @@ -306,9 +394,11 @@ public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefend public int getLabelsValue(int index) { return labels_.get(index); } + private int labelsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,8 +410,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getLabelsList().size() > 0) { output.writeUInt32NoTag(10); @@ -342,14 +431,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < labels_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(labels_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(labels_.get(i)); } size += dataSize; - if (!getLabelsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }labelsMemoizedSerializedSize = dataSize; + if (!getLabelsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + labelsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,12 +448,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AccountDefenderAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AccountDefenderAssessment other = (com.google.recaptchaenterprise.v1.AccountDefenderAssessment) obj; + com.google.recaptchaenterprise.v1.AccountDefenderAssessment other = + (com.google.recaptchaenterprise.v1.AccountDefenderAssessment) obj; if (!labels_.equals(other.labels_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -388,131 +478,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.AccountDefenderAssessment prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.AccountDefenderAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Account defender risk assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.class, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder.class); + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.class, + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AccountDefenderAssessment.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -523,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; } @java.lang.Override @@ -544,14 +639,18 @@ public com.google.recaptchaenterprise.v1.AccountDefenderAssessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AccountDefenderAssessment buildPartial() { - com.google.recaptchaenterprise.v1.AccountDefenderAssessment result = new com.google.recaptchaenterprise.v1.AccountDefenderAssessment(this); + com.google.recaptchaenterprise.v1.AccountDefenderAssessment result = + new com.google.recaptchaenterprise.v1.AccountDefenderAssessment(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.AccountDefenderAssessment result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.AccountDefenderAssessment result) { if (((bitField0_ & 0x00000001) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); bitField0_ = (bitField0_ & ~0x00000001); @@ -567,38 +666,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AccountDefenderAsse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AccountDefenderAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1.AccountDefenderAssessment)other); + return mergeFrom((com.google.recaptchaenterprise.v1.AccountDefenderAssessment) other); } else { super.mergeFrom(other); return this; @@ -606,7 +706,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AccountDefenderAssessment other) { - if (other == com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance()) + return this; if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; @@ -643,29 +744,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - int tmpRaw = input.readEnum(); - ensureLabelsIsMutable(); - labels_.add(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 8: + { int tmpRaw = input.readEnum(); ensureLabelsIsMutable(); labels_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureLabelsIsMutable(); + labels_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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) { @@ -675,10 +779,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List labels_ = - java.util.Collections.emptyList(); + private java.util.List labels_ = java.util.Collections.emptyList(); + private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { labels_ = new java.util.ArrayList(labels_); @@ -686,52 +791,78 @@ private void ensureLabelsIsMutable() { } } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the labels. */ - public java.util.List getLabelsList() { + public java.util.List< + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel> + getLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>(labels_, labels_converter_); + java.lang.Integer, + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>( + labels_, labels_converter_); } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of labels. */ public int getLabelsCount() { return labels_.size(); } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The labels at the given index. */ - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index) { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel + getLabels(int index) { return labels_converter_.convert(labels_.get(index)); } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( - int index, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value) { + int index, + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value) { if (value == null) { throw new NullPointerException(); } @@ -741,15 +872,21 @@ public Builder setLabels( return this; } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The labels to add. * @return This builder for chaining. */ - public Builder addLabels(com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value) { + public Builder addLabels( + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value) { if (value == null) { throw new NullPointerException(); } @@ -759,29 +896,44 @@ public Builder addLabels(com.google.recaptchaenterprise.v1.AccountDefenderAssess return this; } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The labels to add. * @return This builder for chaining. */ public Builder addAllLabels( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.recaptchaenterprise.v1.AccountDefenderAssessment + .AccountDefenderLabel> + values) { ensureLabelsIsMutable(); - for (com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value : values) { + for (com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value : + values) { labels_.add(value.getNumber()); } onChanged(); return this; } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearLabels() { @@ -791,23 +943,32 @@ public Builder clearLabels() { return this; } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for labels. */ - public java.util.List - getLabelsValueList() { + public java.util.List getLabelsValueList() { return java.util.Collections.unmodifiableList(labels_); } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of labels at the given index. */ @@ -815,28 +976,37 @@ public int getLabelsValue(int index) { return labels_.get(index); } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for labels to set. * @return This builder for chaining. */ - public Builder setLabelsValue( - int index, int value) { + public Builder setLabelsValue(int index, int value) { ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for labels to add. * @return This builder for chaining. */ @@ -847,16 +1017,20 @@ public Builder addLabelsValue(int value) { return this; } /** + * + * *
      * Output only. Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The enum numeric values on the wire for labels to add. * @return This builder for chaining. */ - public Builder addAllLabelsValue( - java.lang.Iterable values) { + public Builder addAllLabelsValue(java.lang.Iterable values) { ensureLabelsIsMutable(); for (int value : values) { labels_.add(value); @@ -864,9 +1038,9 @@ public Builder addAllLabelsValue( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +1050,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) private static final com.google.recaptchaenterprise.v1.AccountDefenderAssessment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AccountDefenderAssessment(); } @@ -890,27 +1064,27 @@ public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountDefenderAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountDefenderAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -925,6 +1099,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.recaptchaenterprise.v1.AccountDefenderAssessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java new file mode 100644 index 000000000000..3107a0a9c655 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface AccountDefenderAssessmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the labels. + */ + java.util.List + getLabelsList(); + /** + * + * + *
+   * Output only. Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of labels. + */ + int getLabelsCount(); + /** + * + * + *
+   * Output only. Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The labels at the given index. + */ + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels( + int index); + /** + * + * + *
+   * Output only. Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for labels. + */ + java.util.List getLabelsValueList(); + /** + * + * + *
+   * Output only. Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of labels at the given index. + */ + int getLabelsValue(int index); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java similarity index 66% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java index e6ef51c57fed..eeee11e3a8af 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Information about account verification, used for identity verification.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} */ -public final class AccountVerificationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccountVerificationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) AccountVerificationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccountVerificationInfo.newBuilder() to construct. private AccountVerificationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccountVerificationInfo() { endpoints_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -28,25 +46,28 @@ private AccountVerificationInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccountVerificationInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AccountVerificationInfo.class, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder.class); + com.google.recaptchaenterprise.v1.AccountVerificationInfo.class, + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder.class); } /** + * + * *
    * Result of the account verification as contained in the verdict token issued
    * at the end of the verification flow.
@@ -54,9 +75,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result}
    */
-  public enum Result
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Result implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No information about the latest account verification.
      * 
@@ -65,6 +87,8 @@ public enum Result */ RESULT_UNSPECIFIED(0), /** + * + * *
      * The user was successfully verified. This means the account verification
      * challenge was successfully completed.
@@ -74,6 +98,8 @@ public enum Result
      */
     SUCCESS_USER_VERIFIED(1),
     /**
+     *
+     *
      * 
      * The user failed the verification challenge.
      * 
@@ -82,6 +108,8 @@ public enum Result */ ERROR_USER_NOT_VERIFIED(2), /** + * + * *
      * The site is not properly onboarded to use the account verification
      * feature.
@@ -91,6 +119,8 @@ public enum Result
      */
     ERROR_SITE_ONBOARDING_INCOMPLETE(3),
     /**
+     *
+     *
      * 
      * The recipient is not allowed for account verification. This can occur
      * during integration but should not occur in production.
@@ -100,6 +130,8 @@ public enum Result
      */
     ERROR_RECIPIENT_NOT_ALLOWED(4),
     /**
+     *
+     *
      * 
      * The recipient has already been sent too many verification codes in a
      * short amount of time.
@@ -109,6 +141,8 @@ public enum Result
      */
     ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED(5),
     /**
+     *
+     *
      * 
      * The verification flow could not be completed due to a critical internal
      * error.
@@ -118,6 +152,8 @@ public enum Result
      */
     ERROR_CRITICAL_INTERNAL(6),
     /**
+     *
+     *
      * 
      * The client has exceeded their two factor request quota for this period of
      * time.
@@ -127,6 +163,8 @@ public enum Result
      */
     ERROR_CUSTOMER_QUOTA_EXHAUSTED(7),
     /**
+     *
+     *
      * 
      * The request cannot be processed at the time because of an incident. This
      * bypass can be restricted to a problematic destination email domain, a
@@ -137,6 +175,8 @@ public enum Result
      */
     ERROR_VERIFICATION_BYPASSED(8),
     /**
+     *
+     *
      * 
      * The request parameters do not match with the token provided and cannot be
      * processed.
@@ -149,6 +189,8 @@ public enum Result
     ;
 
     /**
+     *
+     *
      * 
      * No information about the latest account verification.
      * 
@@ -157,6 +199,8 @@ public enum Result */ public static final int RESULT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The user was successfully verified. This means the account verification
      * challenge was successfully completed.
@@ -166,6 +210,8 @@ public enum Result
      */
     public static final int SUCCESS_USER_VERIFIED_VALUE = 1;
     /**
+     *
+     *
      * 
      * The user failed the verification challenge.
      * 
@@ -174,6 +220,8 @@ public enum Result */ public static final int ERROR_USER_NOT_VERIFIED_VALUE = 2; /** + * + * *
      * The site is not properly onboarded to use the account verification
      * feature.
@@ -183,6 +231,8 @@ public enum Result
      */
     public static final int ERROR_SITE_ONBOARDING_INCOMPLETE_VALUE = 3;
     /**
+     *
+     *
      * 
      * The recipient is not allowed for account verification. This can occur
      * during integration but should not occur in production.
@@ -192,6 +242,8 @@ public enum Result
      */
     public static final int ERROR_RECIPIENT_NOT_ALLOWED_VALUE = 4;
     /**
+     *
+     *
      * 
      * The recipient has already been sent too many verification codes in a
      * short amount of time.
@@ -201,6 +253,8 @@ public enum Result
      */
     public static final int ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED_VALUE = 5;
     /**
+     *
+     *
      * 
      * The verification flow could not be completed due to a critical internal
      * error.
@@ -210,6 +264,8 @@ public enum Result
      */
     public static final int ERROR_CRITICAL_INTERNAL_VALUE = 6;
     /**
+     *
+     *
      * 
      * The client has exceeded their two factor request quota for this period of
      * time.
@@ -219,6 +275,8 @@ public enum Result
      */
     public static final int ERROR_CUSTOMER_QUOTA_EXHAUSTED_VALUE = 7;
     /**
+     *
+     *
      * 
      * The request cannot be processed at the time because of an incident. This
      * bypass can be restricted to a problematic destination email domain, a
@@ -229,6 +287,8 @@ public enum Result
      */
     public static final int ERROR_VERIFICATION_BYPASSED_VALUE = 8;
     /**
+     *
+     *
      * 
      * The request parameters do not match with the token provided and cannot be
      * processed.
@@ -238,7 +298,6 @@ public enum Result
      */
     public static final int ERROR_VERDICT_MISMATCH_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -263,56 +322,65 @@ public static Result valueOf(int value) {
      */
     public static Result forNumber(int value) {
       switch (value) {
-        case 0: return RESULT_UNSPECIFIED;
-        case 1: return SUCCESS_USER_VERIFIED;
-        case 2: return ERROR_USER_NOT_VERIFIED;
-        case 3: return ERROR_SITE_ONBOARDING_INCOMPLETE;
-        case 4: return ERROR_RECIPIENT_NOT_ALLOWED;
-        case 5: return ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED;
-        case 6: return ERROR_CRITICAL_INTERNAL;
-        case 7: return ERROR_CUSTOMER_QUOTA_EXHAUSTED;
-        case 8: return ERROR_VERIFICATION_BYPASSED;
-        case 9: return ERROR_VERDICT_MISMATCH;
-        default: return null;
+        case 0:
+          return RESULT_UNSPECIFIED;
+        case 1:
+          return SUCCESS_USER_VERIFIED;
+        case 2:
+          return ERROR_USER_NOT_VERIFIED;
+        case 3:
+          return ERROR_SITE_ONBOARDING_INCOMPLETE;
+        case 4:
+          return ERROR_RECIPIENT_NOT_ALLOWED;
+        case 5:
+          return ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED;
+        case 6:
+          return ERROR_CRITICAL_INTERNAL;
+        case 7:
+          return ERROR_CUSTOMER_QUOTA_EXHAUSTED;
+        case 8:
+          return ERROR_VERIFICATION_BYPASSED;
+        case 9:
+          return ERROR_VERDICT_MISMATCH;
+        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<
-        Result> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Result findValueByNumber(int number) {
-              return Result.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Result findValueByNumber(int number) {
+            return Result.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.recaptchaenterprise.v1.AccountVerificationInfo.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Result[] VALUES = values();
 
-    public static Result valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Result 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;
@@ -330,59 +398,82 @@ private Result(int value) {
   }
 
   public static final int ENDPOINTS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List endpoints_;
   /**
+   *
+   *
    * 
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getEndpointsList() { + public java.util.List + getEndpointsList() { return endpoints_; } /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> getEndpointsOrBuilderList() { return endpoints_; } /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getEndpointsCount() { return endpoints_.size(); } /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.EndpointVerificationInfo getEndpoints(int index) { return endpoints_.get(index); } /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEndpointsOrBuilder( @@ -391,15 +482,19 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEn } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * Optional. Language code preference for the verification message, set as a
    * IETF BCP 47 language code.
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ @java.lang.Override @@ -408,30 +503,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Optional. Language code preference for the verification message, set as a
    * IETF BCP 47 language code.
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -442,75 +537,98 @@ public java.lang.String getLanguageCode() { public static final int LATEST_VERIFICATION_RESULT_FIELD_NUMBER = 7; private int latestVerificationResult_ = 0; /** + * + * *
    * Output only. Result of the latest account verification challenge.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for latestVerificationResult. */ - @java.lang.Override public int getLatestVerificationResultValue() { + @java.lang.Override + public int getLatestVerificationResultValue() { return latestVerificationResult_; } /** + * + * *
    * Output only. Result of the latest account verification challenge.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The latestVerificationResult. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result getLatestVerificationResult() { - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result result = com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.forNumber(latestVerificationResult_); - return result == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result + getLatestVerificationResult() { + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result result = + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.forNumber( + latestVerificationResult_); + return result == null + ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.UNRECOGNIZED + : result; } public static final int USERNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * Username of the account that is being verified. Deprecated. Customers
    * should now provide the `account_id` field in `event.user_info`.
    * 
* * string username = 2 [deprecated = true]; + * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The username. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getUsername() { + @java.lang.Deprecated + public java.lang.String getUsername() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Username of the account that is being verified. Deprecated. Customers
    * should now provide the `account_id` field in `event.user_info`.
    * 
* * string username = 2 [deprecated = true]; + * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The bytes for username. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getUsernameBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -519,6 +637,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -530,8 +649,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < endpoints_.size(); i++) { output.writeMessage(1, endpoints_.get(i)); } @@ -541,7 +659,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } - if (latestVerificationResult_ != com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.RESULT_UNSPECIFIED.getNumber()) { + if (latestVerificationResult_ + != com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.RESULT_UNSPECIFIED + .getNumber()) { output.writeEnum(7, latestVerificationResult_); } getUnknownFields().writeTo(output); @@ -554,8 +674,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < endpoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, endpoints_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, endpoints_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); @@ -563,9 +682,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } - if (latestVerificationResult_ != com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.RESULT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, latestVerificationResult_); + if (latestVerificationResult_ + != com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.RESULT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, latestVerificationResult_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -575,20 +695,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.recaptchaenterprise.v1.AccountVerificationInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AccountVerificationInfo other = (com.google.recaptchaenterprise.v1.AccountVerificationInfo) obj; + com.google.recaptchaenterprise.v1.AccountVerificationInfo other = + (com.google.recaptchaenterprise.v1.AccountVerificationInfo) obj; - if (!getEndpointsList() - .equals(other.getEndpointsList())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getEndpointsList().equals(other.getEndpointsList())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (latestVerificationResult_ != other.latestVerificationResult_) return false; - if (!getUsername() - .equals(other.getUsername())) return false; + if (!getUsername().equals(other.getUsername())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -616,131 +734,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.AccountVerificationInfo prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.AccountVerificationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about account verification, used for identity verification.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AccountVerificationInfo.class, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder.class); + com.google.recaptchaenterprise.v1.AccountVerificationInfo.class, + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AccountVerificationInfo.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -759,9 +882,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; } @java.lang.Override @@ -780,14 +903,18 @@ public com.google.recaptchaenterprise.v1.AccountVerificationInfo build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AccountVerificationInfo buildPartial() { - com.google.recaptchaenterprise.v1.AccountVerificationInfo result = new com.google.recaptchaenterprise.v1.AccountVerificationInfo(this); + com.google.recaptchaenterprise.v1.AccountVerificationInfo result = + new com.google.recaptchaenterprise.v1.AccountVerificationInfo(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.AccountVerificationInfo result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.AccountVerificationInfo result) { if (endpointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { endpoints_ = java.util.Collections.unmodifiableList(endpoints_); @@ -816,38 +943,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AccountVerification public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AccountVerificationInfo) { - return mergeFrom((com.google.recaptchaenterprise.v1.AccountVerificationInfo)other); + return mergeFrom((com.google.recaptchaenterprise.v1.AccountVerificationInfo) other); } else { super.mergeFrom(other); return this; @@ -855,7 +983,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AccountVerificationInfo other) { - if (other == com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance()) + return this; if (endpointsBuilder_ == null) { if (!other.endpoints_.isEmpty()) { if (endpoints_.isEmpty()) { @@ -874,9 +1003,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.AccountVerificationIn endpointsBuilder_ = null; endpoints_ = other.endpoints_; bitField0_ = (bitField0_ & ~0x00000001); - endpointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEndpointsFieldBuilder() : null; + endpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEndpointsFieldBuilder() + : null; } else { endpointsBuilder_.addAllMessages(other.endpoints_); } @@ -921,40 +1051,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.recaptchaenterprise.v1.EndpointVerificationInfo m = - input.readMessage( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.parser(), - extensionRegistry); - if (endpointsBuilder_ == null) { - ensureEndpointsIsMutable(); - endpoints_.add(m); - } else { - endpointsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 26: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 56: { - latestVerificationResult_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.recaptchaenterprise.v1.EndpointVerificationInfo m = + input.readMessage( + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.parser(), + extensionRegistry); + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(m); + } else { + endpointsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 56: + { + latestVerificationResult_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -964,28 +1099,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List endpoints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEndpointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - endpoints_ = new java.util.ArrayList(endpoints_); + endpoints_ = + new java.util.ArrayList( + endpoints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.EndpointVerificationInfo, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> endpointsBuilder_; + com.google.recaptchaenterprise.v1.EndpointVerificationInfo, + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, + com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> + endpointsBuilder_; /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getEndpointsList() { + public java.util.List + getEndpointsList() { if (endpointsBuilder_ == null) { return java.util.Collections.unmodifiableList(endpoints_); } else { @@ -993,11 +1140,15 @@ public java.util.List * Optional. Endpoints that can be used for identity verification. *
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getEndpointsCount() { if (endpointsBuilder_ == null) { @@ -1007,11 +1158,15 @@ public int getEndpointsCount() { } } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo getEndpoints(int index) { if (endpointsBuilder_ == null) { @@ -1021,11 +1176,15 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo getEndpoints(i } } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpoints( int index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo value) { @@ -1042,14 +1201,19 @@ public Builder setEndpoints( return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpoints( - int index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); endpoints_.set(index, builderForValue.build()); @@ -1060,11 +1224,15 @@ public Builder setEndpoints( return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEndpoints(com.google.recaptchaenterprise.v1.EndpointVerificationInfo value) { if (endpointsBuilder_ == null) { @@ -1080,11 +1248,15 @@ public Builder addEndpoints(com.google.recaptchaenterprise.v1.EndpointVerificati return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEndpoints( int index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo value) { @@ -1101,11 +1273,15 @@ public Builder addEndpoints( return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEndpoints( com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { @@ -1119,14 +1295,19 @@ public Builder addEndpoints( return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEndpoints( - int index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); endpoints_.add(index, builderForValue.build()); @@ -1137,18 +1318,22 @@ public Builder addEndpoints( return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllEndpoints( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, endpoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpoints_); onChanged(); } else { endpointsBuilder_.addAllMessages(values); @@ -1156,11 +1341,15 @@ public Builder addAllEndpoints( return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEndpoints() { if (endpointsBuilder_ == null) { @@ -1173,11 +1362,15 @@ public Builder clearEndpoints() { return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeEndpoints(int index) { if (endpointsBuilder_ == null) { @@ -1190,39 +1383,53 @@ public Builder removeEndpoints(int index) { return this; } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder getEndpointsBuilder( int index) { return getEndpointsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEndpointsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder + getEndpointsOrBuilder(int index) { if (endpointsBuilder_ == null) { - return endpoints_.get(index); } else { + return endpoints_.get(index); + } else { return endpointsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getEndpointsOrBuilderList() { + public java.util.List< + ? extends com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> + getEndpointsOrBuilderList() { if (endpointsBuilder_ != null) { return endpointsBuilder_.getMessageOrBuilderList(); } else { @@ -1230,49 +1437,68 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEn } } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder addEndpointsBuilder() { - return getEndpointsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder + addEndpointsBuilder() { + return getEndpointsFieldBuilder() + .addBuilder( + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()); } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder addEndpointsBuilder( int index) { - return getEndpointsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()); + return getEndpointsFieldBuilder() + .addBuilder( + index, + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()); } /** + * + * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getEndpointsBuilderList() { + public java.util.List + getEndpointsBuilderList() { return getEndpointsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.EndpointVerificationInfo, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> + com.google.recaptchaenterprise.v1.EndpointVerificationInfo, + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, + com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> getEndpointsFieldBuilder() { if (endpointsBuilder_ == null) { - endpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.EndpointVerificationInfo, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder>( - endpoints_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + endpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.EndpointVerificationInfo, + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, + com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder>( + endpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); endpoints_ = null; } return endpointsBuilder_; @@ -1280,19 +1506,21 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder addEnd private java.lang.Object languageCode_ = ""; /** + * + * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1301,21 +1529,22 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1323,30 +1552,37 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1356,18 +1592,22 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000002; @@ -1377,22 +1617,33 @@ public Builder setLanguageCodeBytes( private int latestVerificationResult_ = 0; /** + * + * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for latestVerificationResult. */ - @java.lang.Override public int getLatestVerificationResultValue() { + @java.lang.Override + public int getLatestVerificationResultValue() { return latestVerificationResult_; } /** + * + * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for latestVerificationResult to set. * @return This builder for chaining. */ @@ -1403,28 +1654,44 @@ public Builder setLatestVerificationResultValue(int value) { return this; } /** + * + * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The latestVerificationResult. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result getLatestVerificationResult() { - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result result = com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.forNumber(latestVerificationResult_); - return result == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.UNRECOGNIZED : result; + public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result + getLatestVerificationResult() { + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result result = + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.forNumber( + latestVerificationResult_); + return result == null + ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The latestVerificationResult to set. * @return This builder for chaining. */ - public Builder setLatestVerificationResult(com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result value) { + public Builder setLatestVerificationResult( + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result value) { if (value == null) { throw new NullPointerException(); } @@ -1434,11 +1701,16 @@ public Builder setLatestVerificationResult(com.google.recaptchaenterprise.v1.Acc return this; } /** + * + * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearLatestVerificationResult() { @@ -1450,21 +1722,24 @@ public Builder clearLatestVerificationResult() { private java.lang.Object username_ = ""; /** + * + * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the `account_id` field in `event.user_info`.
      * 
* * string username = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 + * + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The username. */ - @java.lang.Deprecated public java.lang.String getUsername() { + @java.lang.Deprecated + public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1473,23 +1748,25 @@ public Builder clearLatestVerificationResult() { } } /** + * + * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the `account_id` field in `event.user_info`.
      * 
* * string username = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 + * + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The bytes for username. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getUsernameBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1497,66 +1774,80 @@ public Builder clearLatestVerificationResult() { } } /** + * + * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the `account_id` field in `event.user_info`.
      * 
* * string username = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 + * + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @param value The username to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the `account_id` field in `event.user_info`.
      * 
* * string username = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 + * + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearUsername() { + @java.lang.Deprecated + public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** + * + * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the `account_id` field in `event.user_info`.
      * 
* * string username = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 + * + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @param value The bytes for username to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1566,12 +1857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) private static final com.google.recaptchaenterprise.v1.AccountVerificationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AccountVerificationInfo(); } @@ -1580,27 +1871,27 @@ public static com.google.recaptchaenterprise.v1.AccountVerificationInfo getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountVerificationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountVerificationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1615,6 +1906,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.AccountVerificationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java similarity index 59% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java index 116b0b8789e1..ce8aeb9e47e9 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java @@ -1,120 +1,177 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AccountVerificationInfoOrBuilder extends +public interface AccountVerificationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getEndpointsList(); + java.util.List getEndpointsList(); /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.EndpointVerificationInfo getEndpoints(int index); /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getEndpointsCount(); /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getEndpointsOrBuilderList(); /** + * + * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEndpointsOrBuilder( int index); /** + * + * *
    * Optional. Language code preference for the verification message, set as a
    * IETF BCP 47 language code.
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Optional. Language code preference for the verification message, set as a
    * IETF BCP 47 language code.
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Output only. Result of the latest account verification challenge.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for latestVerificationResult. */ int getLatestVerificationResultValue(); /** + * + * *
    * Output only. Result of the latest account verification challenge.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The latestVerificationResult. */ com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result getLatestVerificationResult(); /** + * + * *
    * Username of the account that is being verified. Deprecated. Customers
    * should now provide the `account_id` field in `event.user_info`.
    * 
* * string username = 2 [deprecated = true]; + * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The username. */ - @java.lang.Deprecated java.lang.String getUsername(); + @java.lang.Deprecated + java.lang.String getUsername(); /** + * + * *
    * Username of the account that is being verified. Deprecated. Customers
    * should now provide the `account_id` field in `event.user_info`.
    * 
* * string username = 2 [deprecated = true]; + * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=556 * @return The bytes for username. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getUsernameBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getUsernameBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java similarity index 69% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java index 6521b8ded4b4..e223e7810470 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java @@ -1,57 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Settings specific to keys that can be used by Android apps.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AndroidKeySettings} */ -public final class AndroidKeySettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AndroidKeySettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) AndroidKeySettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AndroidKeySettings.newBuilder() to construct. private AndroidKeySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AndroidKeySettings() { - allowedPackageNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AndroidKeySettings(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AndroidKeySettings.class, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.AndroidKeySettings.class, + com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder.class); } public static final int ALLOW_ALL_PACKAGE_NAMES_FIELD_NUMBER = 2; private boolean allowAllPackageNames_ = false; /** + * + * *
    * Optional. If set to true, allowed_package_names are not enforced.
    * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllPackageNames. */ @java.lang.Override @@ -60,41 +81,53 @@ public boolean getAllowAllPackageNames() { } public static final int ALLOWED_PACKAGE_NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedPackageNames. */ - public com.google.protobuf.ProtocolStringList - getAllowedPackageNamesList() { + public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList() { return allowedPackageNames_; } /** + * + * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedPackageNames. */ public int getAllowedPackageNamesCount() { return allowedPackageNames_.size(); } /** + * + * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedPackageNames at the given index. */ @@ -102,30 +135,38 @@ public java.lang.String getAllowedPackageNames(int index) { return allowedPackageNames_.get(index); } /** + * + * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedPackageNames at the given index. */ - public com.google.protobuf.ByteString - getAllowedPackageNamesBytes(int index) { + public com.google.protobuf.ByteString getAllowedPackageNamesBytes(int index) { return allowedPackageNames_.getByteString(index); } public static final int SUPPORT_NON_GOOGLE_APP_STORE_DISTRIBUTION_FIELD_NUMBER = 3; private boolean supportNonGoogleAppStoreDistribution_ = false; /** + * + * *
    * Optional. Set to true for keys that are used in an Android application that
    * is available for download in app stores in addition to the Google Play
    * Store.
    * 
* - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The supportNonGoogleAppStoreDistribution. */ @java.lang.Override @@ -134,6 +175,7 @@ public boolean getSupportNonGoogleAppStoreDistribution() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedPackageNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedPackageNames_.getRaw(i)); } @@ -174,12 +215,12 @@ public int getSerializedSize() { size += 1 * getAllowedPackageNamesList().size(); } if (allowAllPackageNames_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowAllPackageNames_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowAllPackageNames_); } if (supportNonGoogleAppStoreDistribution_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, supportNonGoogleAppStoreDistribution_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, supportNonGoogleAppStoreDistribution_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,17 +230,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.recaptchaenterprise.v1.AndroidKeySettings)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AndroidKeySettings other = (com.google.recaptchaenterprise.v1.AndroidKeySettings) obj; + com.google.recaptchaenterprise.v1.AndroidKeySettings other = + (com.google.recaptchaenterprise.v1.AndroidKeySettings) obj; - if (getAllowAllPackageNames() - != other.getAllowAllPackageNames()) return false; - if (!getAllowedPackageNamesList() - .equals(other.getAllowedPackageNamesList())) return false; + if (getAllowAllPackageNames() != other.getAllowAllPackageNames()) return false; + if (!getAllowedPackageNamesList().equals(other.getAllowedPackageNamesList())) return false; if (getSupportNonGoogleAppStoreDistribution() != other.getSupportNonGoogleAppStoreDistribution()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -214,161 +254,164 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_ALL_PACKAGE_NAMES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowAllPackageNames()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAllPackageNames()); if (getAllowedPackageNamesCount() > 0) { hash = (37 * hash) + ALLOWED_PACKAGE_NAMES_FIELD_NUMBER; hash = (53 * hash) + getAllowedPackageNamesList().hashCode(); } hash = (37 * hash) + SUPPORT_NON_GOOGLE_APP_STORE_DISTRIBUTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportNonGoogleAppStoreDistribution()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSupportNonGoogleAppStoreDistribution()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.AndroidKeySettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Settings specific to keys that can be used by Android apps.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AndroidKeySettings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AndroidKeySettings.class, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.AndroidKeySettings.class, + com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AndroidKeySettings.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; allowAllPackageNames_ = false; - allowedPackageNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); supportNonGoogleAppStoreDistribution_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; } @java.lang.Override @@ -387,8 +430,11 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettings build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AndroidKeySettings buildPartial() { - com.google.recaptchaenterprise.v1.AndroidKeySettings result = new com.google.recaptchaenterprise.v1.AndroidKeySettings(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.AndroidKeySettings result = + new com.google.recaptchaenterprise.v1.AndroidKeySettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -411,38 +457,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AndroidKeySettings public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AndroidKeySettings) { - return mergeFrom((com.google.recaptchaenterprise.v1.AndroidKeySettings)other); + return mergeFrom((com.google.recaptchaenterprise.v1.AndroidKeySettings) other); } else { super.mergeFrom(other); return this; @@ -450,7 +497,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AndroidKeySettings other) { - if (other == com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance()) + return this; if (other.getAllowAllPackageNames() != false) { setAllowAllPackageNames(other.getAllowAllPackageNames()); } @@ -493,28 +541,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedPackageNamesIsMutable(); - allowedPackageNames_.add(s); - break; - } // case 10 - case 16: { - allowAllPackageNames_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 24: { - supportNonGoogleAppStoreDistribution_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedPackageNamesIsMutable(); + allowedPackageNames_.add(s); + break; + } // case 10 + case 16: + { + allowAllPackageNames_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: + { + supportNonGoogleAppStoreDistribution_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -524,15 +576,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean allowAllPackageNames_ ; + private boolean allowAllPackageNames_; /** + * + * *
      * Optional. If set to true, allowed_package_names are not enforced.
      * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllPackageNames. */ @java.lang.Override @@ -540,11 +596,14 @@ public boolean getAllowAllPackageNames() { return allowAllPackageNames_; } /** + * + * *
      * Optional. If set to true, allowed_package_names are not enforced.
      * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowAllPackageNames to set. * @return This builder for chaining. */ @@ -556,11 +615,14 @@ public Builder setAllowAllPackageNames(boolean value) { return this; } /** + * + * *
      * Optional. If set to true, allowed_package_names are not enforced.
      * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowAllPackageNames() { @@ -572,6 +634,7 @@ public Builder clearAllowAllPackageNames() { private com.google.protobuf.LazyStringArrayList allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAllowedPackageNamesIsMutable() { if (!allowedPackageNames_.isModifiable()) { allowedPackageNames_ = new com.google.protobuf.LazyStringArrayList(allowedPackageNames_); @@ -579,38 +642,49 @@ private void ensureAllowedPackageNamesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedPackageNames. */ - public com.google.protobuf.ProtocolStringList - getAllowedPackageNamesList() { + public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList() { allowedPackageNames_.makeImmutable(); return allowedPackageNames_; } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedPackageNames. */ public int getAllowedPackageNamesCount() { return allowedPackageNames_.size(); } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedPackageNames at the given index. */ @@ -618,33 +692,41 @@ public java.lang.String getAllowedPackageNames(int index) { return allowedPackageNames_.get(index); } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedPackageNames at the given index. */ - public com.google.protobuf.ByteString - getAllowedPackageNamesBytes(int index) { + public com.google.protobuf.ByteString getAllowedPackageNamesBytes(int index) { return allowedPackageNames_.getByteString(index); } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The allowedPackageNames to set. * @return This builder for chaining. */ - public Builder setAllowedPackageNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAllowedPackageNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedPackageNamesIsMutable(); allowedPackageNames_.set(index, value); bitField0_ |= 0x00000002; @@ -652,18 +734,23 @@ public Builder setAllowedPackageNames( return this; } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowedPackageNames to add. * @return This builder for chaining. */ - public Builder addAllowedPackageNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedPackageNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedPackageNamesIsMutable(); allowedPackageNames_.add(value); bitField0_ |= 0x00000002; @@ -671,53 +758,64 @@ public Builder addAllowedPackageNames( return this; } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The allowedPackageNames to add. * @return This builder for chaining. */ - public Builder addAllAllowedPackageNames( - java.lang.Iterable values) { + public Builder addAllAllowedPackageNames(java.lang.Iterable values) { ensureAllowedPackageNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedPackageNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedPackageNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowedPackageNames() { - allowedPackageNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the allowedPackageNames to add. * @return This builder for chaining. */ - public Builder addAllowedPackageNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedPackageNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAllowedPackageNamesIsMutable(); allowedPackageNames_.add(value); @@ -726,15 +824,20 @@ public Builder addAllowedPackageNamesBytes( return this; } - private boolean supportNonGoogleAppStoreDistribution_ ; + private boolean supportNonGoogleAppStoreDistribution_; /** + * + * *
      * Optional. Set to true for keys that are used in an Android application that
      * is available for download in app stores in addition to the Google Play
      * Store.
      * 
* - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The supportNonGoogleAppStoreDistribution. */ @java.lang.Override @@ -742,13 +845,18 @@ public boolean getSupportNonGoogleAppStoreDistribution() { return supportNonGoogleAppStoreDistribution_; } /** + * + * *
      * Optional. Set to true for keys that are used in an Android application that
      * is available for download in app stores in addition to the Google Play
      * Store.
      * 
* - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The supportNonGoogleAppStoreDistribution to set. * @return This builder for chaining. */ @@ -760,13 +868,18 @@ public Builder setSupportNonGoogleAppStoreDistribution(boolean value) { return this; } /** + * + * *
      * Optional. Set to true for keys that are used in an Android application that
      * is available for download in app stores in addition to the Google Play
      * Store.
      * 
* - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSupportNonGoogleAppStoreDistribution() { @@ -775,9 +888,9 @@ public Builder clearSupportNonGoogleAppStoreDistribution() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -787,12 +900,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) private static final com.google.recaptchaenterprise.v1.AndroidKeySettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AndroidKeySettings(); } @@ -801,27 +914,27 @@ public static com.google.recaptchaenterprise.v1.AndroidKeySettings getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AndroidKeySettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AndroidKeySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -836,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.AndroidKeySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java similarity index 65% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java index 1126b310e3b7..3d0ee4504a91 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java @@ -1,75 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AndroidKeySettingsOrBuilder extends +public interface AndroidKeySettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. If set to true, allowed_package_names are not enforced.
    * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllPackageNames. */ boolean getAllowAllPackageNames(); /** + * + * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedPackageNames. */ - java.util.List - getAllowedPackageNamesList(); + java.util.List getAllowedPackageNamesList(); /** + * + * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedPackageNames. */ int getAllowedPackageNamesCount(); /** + * + * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedPackageNames at the given index. */ java.lang.String getAllowedPackageNames(int index); /** + * + * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedPackageNames at the given index. */ - com.google.protobuf.ByteString - getAllowedPackageNamesBytes(int index); + com.google.protobuf.ByteString getAllowedPackageNamesBytes(int index); /** + * + * *
    * Optional. Set to true for keys that are used in an Android application that
    * is available for download in app stores in addition to the Google Play
    * Store.
    * 
* - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The supportNonGoogleAppStoreDistribution. */ boolean getSupportNonGoogleAppStoreDistribution(); diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java similarity index 68% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java index 1e620419d111..739bc670e292 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The request message to annotate an Assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest} */ -public final class AnnotateAssessmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) AnnotateAssessmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateAssessmentRequest.newBuilder() to construct. private AnnotateAssessmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateAssessmentRequest() { name_ = ""; annotation_ = 0; @@ -29,34 +47,38 @@ private AnnotateAssessmentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateAssessmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder.class); } /** + * + * *
    * Enum that represents the types of annotations.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation} */ - public enum Annotation - implements com.google.protobuf.ProtocolMessageEnum { + public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified type.
      * 
@@ -65,6 +87,8 @@ public enum Annotation */ ANNOTATION_UNSPECIFIED(0), /** + * + * *
      * Provides information that the event turned out to be legitimate.
      * 
@@ -73,6 +97,8 @@ public enum Annotation */ LEGITIMATE(1), /** + * + * *
      * Provides information that the event turned out to be fraudulent.
      * 
@@ -81,6 +107,8 @@ public enum Annotation */ FRAUDULENT(2), /** + * + * *
      * Provides information that the event was related to a login event in which
      * the user typed the correct password. Deprecated, prefer indicating
@@ -92,6 +120,8 @@ public enum Annotation
     @java.lang.Deprecated
     PASSWORD_CORRECT(3),
     /**
+     *
+     *
      * 
      * Provides information that the event was related to a login event in which
      * the user typed the incorrect password. Deprecated, prefer indicating
@@ -106,6 +136,8 @@ public enum Annotation
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified type.
      * 
@@ -114,6 +146,8 @@ public enum Annotation */ public static final int ANNOTATION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Provides information that the event turned out to be legitimate.
      * 
@@ -122,6 +156,8 @@ public enum Annotation */ public static final int LEGITIMATE_VALUE = 1; /** + * + * *
      * Provides information that the event turned out to be fraudulent.
      * 
@@ -130,6 +166,8 @@ public enum Annotation */ public static final int FRAUDULENT_VALUE = 2; /** + * + * *
      * Provides information that the event was related to a login event in which
      * the user typed the correct password. Deprecated, prefer indicating
@@ -140,6 +178,8 @@ public enum Annotation
      */
     @java.lang.Deprecated public static final int PASSWORD_CORRECT_VALUE = 3;
     /**
+     *
+     *
      * 
      * Provides information that the event was related to a login event in which
      * the user typed the incorrect password. Deprecated, prefer indicating
@@ -150,7 +190,6 @@ public enum Annotation
      */
     @java.lang.Deprecated public static final int PASSWORD_INCORRECT_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -175,51 +214,55 @@ public static Annotation valueOf(int value) {
      */
     public static Annotation forNumber(int value) {
       switch (value) {
-        case 0: return ANNOTATION_UNSPECIFIED;
-        case 1: return LEGITIMATE;
-        case 2: return FRAUDULENT;
-        case 3: return PASSWORD_CORRECT;
-        case 4: return PASSWORD_INCORRECT;
-        default: return null;
+        case 0:
+          return ANNOTATION_UNSPECIFIED;
+        case 1:
+          return LEGITIMATE;
+        case 2:
+          return FRAUDULENT;
+        case 3:
+          return PASSWORD_CORRECT;
+        case 4:
+          return PASSWORD_INCORRECT;
+        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<
-        Annotation> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Annotation findValueByNumber(int number) {
-              return Annotation.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Annotation findValueByNumber(int number) {
+            return Annotation.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.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Annotation[] VALUES = values();
 
-    public static Annotation valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Annotation 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;
@@ -237,15 +280,18 @@ private Annotation(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Enum that represents potential reasons for annotating an assessment.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason} */ - public enum Reason - implements com.google.protobuf.ProtocolMessageEnum { + public enum Reason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified reason.
      * 
@@ -254,6 +300,8 @@ public enum Reason */ REASON_UNSPECIFIED(0), /** + * + * *
      * Indicates that the transaction had a chargeback issued with no other
      * details. When possible, specify the type by using CHARGEBACK_FRAUD or
@@ -264,6 +312,8 @@ public enum Reason
      */
     CHARGEBACK(1),
     /**
+     *
+     *
      * 
      * Indicates that the transaction had a chargeback issued related to an
      * alleged unauthorized transaction from the cardholder's perspective (for
@@ -274,6 +324,8 @@ public enum Reason
      */
     CHARGEBACK_FRAUD(8),
     /**
+     *
+     *
      * 
      * Indicates that the transaction had a chargeback issued related to the
      * cardholder having provided their card details but allegedly not being
@@ -285,6 +337,8 @@ public enum Reason
      */
     CHARGEBACK_DISPUTE(9),
     /**
+     *
+     *
      * 
      * Indicates that the completed payment transaction was refunded by the
      * seller.
@@ -294,6 +348,8 @@ public enum Reason
      */
     REFUND(10),
     /**
+     *
+     *
      * 
      * Indicates that the completed payment transaction was determined to be
      * fraudulent by the seller, and was cancelled and refunded as a result.
@@ -303,6 +359,8 @@ public enum Reason
      */
     REFUND_FRAUD(11),
     /**
+     *
+     *
      * 
      * Indicates that the payment transaction was accepted, and the user was
      * charged.
@@ -312,6 +370,8 @@ public enum Reason
      */
     TRANSACTION_ACCEPTED(12),
     /**
+     *
+     *
      * 
      * Indicates that the payment transaction was declined, for example due to
      * invalid card details.
@@ -321,6 +381,8 @@ public enum Reason
      */
     TRANSACTION_DECLINED(13),
     /**
+     *
+     *
      * 
      * Indicates the transaction associated with the assessment is suspected of
      * being fraudulent based on the payment method, billing details, shipping
@@ -331,6 +393,8 @@ public enum Reason
      */
     PAYMENT_HEURISTICS(2),
     /**
+     *
+     *
      * 
      * Indicates that the user was served a 2FA challenge. An old assessment
      * with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
@@ -342,6 +406,8 @@ public enum Reason
      */
     INITIATED_TWO_FACTOR(7),
     /**
+     *
+     *
      * 
      * Indicates that the user passed a 2FA challenge.
      * 
@@ -350,6 +416,8 @@ public enum Reason */ PASSED_TWO_FACTOR(3), /** + * + * *
      * Indicates that the user failed a 2FA challenge.
      * 
@@ -358,6 +426,8 @@ public enum Reason */ FAILED_TWO_FACTOR(4), /** + * + * *
      * Indicates the user provided the correct password.
      * 
@@ -366,6 +436,8 @@ public enum Reason */ CORRECT_PASSWORD(5), /** + * + * *
      * Indicates the user provided an incorrect password.
      * 
@@ -374,6 +446,8 @@ public enum Reason */ INCORRECT_PASSWORD(6), /** + * + * *
      * Indicates that the user sent unwanted and abusive messages to other users
      * of the platform, such as spam, scams, phishing, or social engineering.
@@ -386,6 +460,8 @@ public enum Reason
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified reason.
      * 
@@ -394,6 +470,8 @@ public enum Reason */ public static final int REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the transaction had a chargeback issued with no other
      * details. When possible, specify the type by using CHARGEBACK_FRAUD or
@@ -404,6 +482,8 @@ public enum Reason
      */
     public static final int CHARGEBACK_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates that the transaction had a chargeback issued related to an
      * alleged unauthorized transaction from the cardholder's perspective (for
@@ -414,6 +494,8 @@ public enum Reason
      */
     public static final int CHARGEBACK_FRAUD_VALUE = 8;
     /**
+     *
+     *
      * 
      * Indicates that the transaction had a chargeback issued related to the
      * cardholder having provided their card details but allegedly not being
@@ -425,6 +507,8 @@ public enum Reason
      */
     public static final int CHARGEBACK_DISPUTE_VALUE = 9;
     /**
+     *
+     *
      * 
      * Indicates that the completed payment transaction was refunded by the
      * seller.
@@ -434,6 +518,8 @@ public enum Reason
      */
     public static final int REFUND_VALUE = 10;
     /**
+     *
+     *
      * 
      * Indicates that the completed payment transaction was determined to be
      * fraudulent by the seller, and was cancelled and refunded as a result.
@@ -443,6 +529,8 @@ public enum Reason
      */
     public static final int REFUND_FRAUD_VALUE = 11;
     /**
+     *
+     *
      * 
      * Indicates that the payment transaction was accepted, and the user was
      * charged.
@@ -452,6 +540,8 @@ public enum Reason
      */
     public static final int TRANSACTION_ACCEPTED_VALUE = 12;
     /**
+     *
+     *
      * 
      * Indicates that the payment transaction was declined, for example due to
      * invalid card details.
@@ -461,6 +551,8 @@ public enum Reason
      */
     public static final int TRANSACTION_DECLINED_VALUE = 13;
     /**
+     *
+     *
      * 
      * Indicates the transaction associated with the assessment is suspected of
      * being fraudulent based on the payment method, billing details, shipping
@@ -471,6 +563,8 @@ public enum Reason
      */
     public static final int PAYMENT_HEURISTICS_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates that the user was served a 2FA challenge. An old assessment
      * with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
@@ -482,6 +576,8 @@ public enum Reason
      */
     public static final int INITIATED_TWO_FACTOR_VALUE = 7;
     /**
+     *
+     *
      * 
      * Indicates that the user passed a 2FA challenge.
      * 
@@ -490,6 +586,8 @@ public enum Reason */ public static final int PASSED_TWO_FACTOR_VALUE = 3; /** + * + * *
      * Indicates that the user failed a 2FA challenge.
      * 
@@ -498,6 +596,8 @@ public enum Reason */ public static final int FAILED_TWO_FACTOR_VALUE = 4; /** + * + * *
      * Indicates the user provided the correct password.
      * 
@@ -506,6 +606,8 @@ public enum Reason */ public static final int CORRECT_PASSWORD_VALUE = 5; /** + * + * *
      * Indicates the user provided an incorrect password.
      * 
@@ -514,6 +616,8 @@ public enum Reason */ public static final int INCORRECT_PASSWORD_VALUE = 6; /** + * + * *
      * Indicates that the user sent unwanted and abusive messages to other users
      * of the platform, such as spam, scams, phishing, or social engineering.
@@ -523,7 +627,6 @@ public enum Reason
      */
     public static final int SOCIAL_SPAM_VALUE = 14;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -548,61 +651,75 @@ public static Reason valueOf(int value) {
      */
     public static Reason forNumber(int value) {
       switch (value) {
-        case 0: return REASON_UNSPECIFIED;
-        case 1: return CHARGEBACK;
-        case 8: return CHARGEBACK_FRAUD;
-        case 9: return CHARGEBACK_DISPUTE;
-        case 10: return REFUND;
-        case 11: return REFUND_FRAUD;
-        case 12: return TRANSACTION_ACCEPTED;
-        case 13: return TRANSACTION_DECLINED;
-        case 2: return PAYMENT_HEURISTICS;
-        case 7: return INITIATED_TWO_FACTOR;
-        case 3: return PASSED_TWO_FACTOR;
-        case 4: return FAILED_TWO_FACTOR;
-        case 5: return CORRECT_PASSWORD;
-        case 6: return INCORRECT_PASSWORD;
-        case 14: return SOCIAL_SPAM;
-        default: return null;
+        case 0:
+          return REASON_UNSPECIFIED;
+        case 1:
+          return CHARGEBACK;
+        case 8:
+          return CHARGEBACK_FRAUD;
+        case 9:
+          return CHARGEBACK_DISPUTE;
+        case 10:
+          return REFUND;
+        case 11:
+          return REFUND_FRAUD;
+        case 12:
+          return TRANSACTION_ACCEPTED;
+        case 13:
+          return TRANSACTION_DECLINED;
+        case 2:
+          return PAYMENT_HEURISTICS;
+        case 7:
+          return INITIATED_TWO_FACTOR;
+        case 3:
+          return PASSED_TWO_FACTOR;
+        case 4:
+          return FAILED_TWO_FACTOR;
+        case 5:
+          return CORRECT_PASSWORD;
+        case 6:
+          return INCORRECT_PASSWORD;
+        case 14:
+          return SOCIAL_SPAM;
+        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);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    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() {
       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.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     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.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -620,15 +737,21 @@ private Reason(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The resource name of the Assessment, in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * string name = 1 [(.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 @@ -637,30 +760,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -671,64 +796,101 @@ public java.lang.String getName() { public static final int ANNOTATION_FIELD_NUMBER = 2; private int annotation_ = 0; /** + * + * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for annotation. */ - @java.lang.Override public int getAnnotationValue() { + @java.lang.Override + public int getAnnotationValue() { return annotation_; } /** + * + * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotation. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation getAnnotation() { - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation result = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.forNumber(annotation_); - return result == null ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation getAnnotation() { + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation result = + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.forNumber( + annotation_); + return result == null + ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED + : result; } public static final int REASONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List reasons_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason> reasons_converter_ = + java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason> + reasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>() { - public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason convert(java.lang.Integer from) { - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason result = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason.forNumber(from); - return result == null ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason.UNRECOGNIZED : result; + java.lang.Integer, + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>() { + public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason convert( + java.lang.Integer from) { + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason result = + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason.forNumber( + from); + return result == null + ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason.UNRECOGNIZED + : result; } }; /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the reasons. */ @java.lang.Override - public java.util.List getReasonsList() { + public java.util.List + getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>(reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>( + reasons_, reasons_converter_); } /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of reasons. */ @java.lang.Override @@ -736,11 +898,16 @@ public int getReasonsCount() { return reasons_.size(); } /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ @@ -749,24 +916,33 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getRea return reasons_converter_.convert(reasons_.get(index)); } /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ @java.lang.Override - public java.util.List - getReasonsValueList() { + public java.util.List getReasonsValueList() { return reasons_; } /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -774,12 +950,16 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getRea public int getReasonsValue(int index) { return reasons_.get(index); } + private int reasonsMemoizedSerializedSize; public static final int ACCOUNT_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** + * + * *
    * Optional. A stable account identifier to apply to the assessment. This is
    * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -787,6 +967,7 @@ public int getReasonsValue(int index) {
    * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ @java.lang.Override @@ -795,14 +976,15 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** + * + * *
    * Optional. A stable account identifier to apply to the assessment. This is
    * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -810,16 +992,15 @@ public java.lang.String getAccountId() {
    * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -830,6 +1011,8 @@ public java.lang.String getAccountId() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Optional. A stable hashed account identifier to apply to the assessment.
    * This is an alternative to setting `hashed_account_id` in
@@ -838,6 +1021,7 @@ public java.lang.String getAccountId() {
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ @java.lang.Override @@ -848,12 +1032,17 @@ public com.google.protobuf.ByteString getHashedAccountId() { public static final int TRANSACTION_EVENT_FIELD_NUMBER = 5; private com.google.recaptchaenterprise.v1.TransactionEvent transactionEvent_; /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionEvent field is set. */ @java.lang.Override @@ -861,32 +1050,47 @@ public boolean hasTransactionEvent() { return transactionEvent_ != null; } /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionEvent. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionEvent getTransactionEvent() { - return transactionEvent_ == null ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() : transactionEvent_; + return transactionEvent_ == null + ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() + : transactionEvent_; } /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionEventOrBuilder getTransactionEventOrBuilder() { - return transactionEvent_ == null ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() : transactionEvent_; + public com.google.recaptchaenterprise.v1.TransactionEventOrBuilder + getTransactionEventOrBuilder() { + return transactionEvent_ == null + ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() + : transactionEvent_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -898,13 +1102,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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (annotation_ != com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.ANNOTATION_UNSPECIFIED.getNumber()) { + if (annotation_ + != com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation + .ANNOTATION_UNSPECIFIED + .getNumber()) { output.writeEnum(2, annotation_); } if (getReasonsList().size() > 0) { @@ -935,29 +1141,29 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (annotation_ != com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.ANNOTATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, annotation_); + if (annotation_ + != com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation + .ANNOTATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, annotation_); } { int dataSize = 0; for (int i = 0; i < reasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(reasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); } size += dataSize; - if (!getReasonsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }reasonsMemoizedSerializedSize = dataSize; + if (!getReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + reasonsMemoizedSerializedSize = dataSize; } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, hashedAccountId_); } if (transactionEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTransactionEvent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTransactionEvent()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, accountId_); @@ -970,25 +1176,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest other = (com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) obj; + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest other = + (com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (annotation_ != other.annotation_) return false; if (!reasons_.equals(other.reasons_)) return false; - if (!getAccountId() - .equals(other.getAccountId())) return false; - if (!getHashedAccountId() - .equals(other.getHashedAccountId())) return false; + if (!getAccountId().equals(other.getAccountId())) return false; + if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; if (hasTransactionEvent() != other.hasTransactionEvent()) return false; if (hasTransactionEvent()) { - if (!getTransactionEvent() - .equals(other.getTransactionEvent())) return false; + if (!getTransactionEvent().equals(other.getTransactionEvent())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1023,131 +1226,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message to annotate an Assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) com.google.recaptchaenterprise.v1.AnnotateAssessmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1167,9 +1375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override @@ -1188,14 +1396,18 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest buildPartial() { - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest result = new com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest(this); + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest result = + new com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest result) { if (((bitField0_ & 0x00000004) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); bitField0_ = (bitField0_ & ~0x00000004); @@ -1218,9 +1430,8 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AnnotateAssessmentR result.hashedAccountId_ = hashedAccountId_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.transactionEvent_ = transactionEventBuilder_ == null - ? transactionEvent_ - : transactionEventBuilder_.build(); + result.transactionEvent_ = + transactionEventBuilder_ == null ? transactionEvent_ : transactionEventBuilder_.build(); } } @@ -1228,38 +1439,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AnnotateAssessmentR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) other); } else { super.mergeFrom(other); return this; @@ -1267,7 +1479,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest other) { - if (other == com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1323,56 +1536,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - annotation_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - int tmpRaw = input.readEnum(); - ensureReasonsIsMutable(); - reasons_.add(tmpRaw); - break; - } // case 24 - case 26: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + annotation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { int tmpRaw = input.readEnum(); ensureReasonsIsMutable(); reasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: { - input.readMessage( - getTransactionEventFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 58: { - accountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: + { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + getTransactionEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 58: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -1382,23 +1602,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * string name = 1 [(.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; @@ -1407,21 +1632,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -1429,30 +1657,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * string 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() { @@ -1462,18 +1701,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1483,26 +1728,37 @@ public Builder setNameBytes( private int annotation_ = 0; /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for annotation. */ - @java.lang.Override public int getAnnotationValue() { + @java.lang.Override + public int getAnnotationValue() { return annotation_; } /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for annotation to set. * @return This builder for chaining. */ @@ -1513,32 +1769,47 @@ public Builder setAnnotationValue(int value) { return this; } /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotation. */ @java.lang.Override public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation getAnnotation() { - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation result = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.forNumber(annotation_); - return result == null ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED : result; + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation result = + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.forNumber( + annotation_); + return result == null + ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The annotation to set. * @return This builder for chaining. */ - public Builder setAnnotation(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation value) { + public Builder setAnnotation( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation value) { if (value == null) { throw new NullPointerException(); } @@ -1548,13 +1819,18 @@ public Builder setAnnotation(com.google.recaptchaenterprise.v1.AnnotateAssessmen return this; } /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAnnotation() { @@ -1564,8 +1840,8 @@ public Builder clearAnnotation() { return this; } - private java.util.List reasons_ = - java.util.Collections.emptyList(); + private java.util.List reasons_ = java.util.Collections.emptyList(); + private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { reasons_ = new java.util.ArrayList(reasons_); @@ -1573,46 +1849,69 @@ private void ensureReasonsIsMutable() { } } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the reasons. */ - public java.util.List getReasonsList() { + public java.util.List + getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>(reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>( + reasons_, reasons_converter_); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of reasons. */ public int getReasonsCount() { return reasons_.size(); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ - public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getReasons(int index) { + public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getReasons( + int index) { return reasons_converter_.convert(reasons_.get(index)); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The reasons to set. * @return This builder for chaining. @@ -1628,15 +1927,21 @@ public Builder setReasons( return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The reasons to add. * @return This builder for chaining. */ - public Builder addReasons(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason value) { + public Builder addReasons( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason value) { if (value == null) { throw new NullPointerException(); } @@ -1646,16 +1951,23 @@ public Builder addReasons(com.google.recaptchaenterprise.v1.AnnotateAssessmentRe return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The reasons to add. * @return This builder for chaining. */ public Builder addAllReasons( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason> + values) { ensureReasonsIsMutable(); for (com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason value : values) { reasons_.add(value.getNumber()); @@ -1664,11 +1976,16 @@ public Builder addAllReasons( return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearReasons() { @@ -1678,23 +1995,32 @@ public Builder clearReasons() { return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ - public java.util.List - getReasonsValueList() { + public java.util.List getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -1702,28 +2028,37 @@ public int getReasonsValue(int index) { return reasons_.get(index); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for reasons to set. * @return This builder for chaining. */ - public Builder setReasonsValue( - int index, int value) { + public Builder setReasonsValue(int index, int value) { ensureReasonsIsMutable(); reasons_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for reasons to add. * @return This builder for chaining. */ @@ -1734,16 +2069,20 @@ public Builder addReasonsValue(int value) { return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The enum numeric values on the wire for reasons to add. * @return This builder for chaining. */ - public Builder addAllReasonsValue( - java.lang.Iterable values) { + public Builder addAllReasonsValue(java.lang.Iterable values) { ensureReasonsIsMutable(); for (int value : values) { reasons_.add(value); @@ -1754,6 +2093,8 @@ public Builder addAllReasonsValue( private java.lang.Object accountId_ = ""; /** + * + * *
      * Optional. A stable account identifier to apply to the assessment. This is
      * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -1761,13 +2102,13 @@ public Builder addAllReasonsValue(
      * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -1776,6 +2117,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
      * Optional. A stable account identifier to apply to the assessment. This is
      * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -1783,15 +2126,14 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -1799,6 +2141,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
      * Optional. A stable account identifier to apply to the assessment. This is
      * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -1806,18 +2150,22 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A stable account identifier to apply to the assessment. This is
      * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -1825,6 +2173,7 @@ public Builder setAccountId(
      * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAccountId() { @@ -1834,6 +2183,8 @@ public Builder clearAccountId() { return this; } /** + * + * *
      * Optional. A stable account identifier to apply to the assessment. This is
      * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -1841,12 +2192,14 @@ public Builder clearAccountId() {
      * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000008; @@ -1856,6 +2209,8 @@ public Builder setAccountIdBytes( private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. A stable hashed account identifier to apply to the assessment.
      * This is an alternative to setting `hashed_account_id` in
@@ -1864,6 +2219,7 @@ public Builder setAccountIdBytes(
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ @java.lang.Override @@ -1871,6 +2227,8 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** + * + * *
      * Optional. A stable hashed account identifier to apply to the assessment.
      * This is an alternative to setting `hashed_account_id` in
@@ -1879,17 +2237,22 @@ public com.google.protobuf.ByteString getHashedAccountId() {
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } hashedAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. A stable hashed account identifier to apply to the assessment.
      * This is an alternative to setting `hashed_account_id` in
@@ -1898,6 +2261,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) {
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -1909,42 +2273,61 @@ public Builder clearHashedAccountId() { private com.google.recaptchaenterprise.v1.TransactionEvent transactionEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionEvent, com.google.recaptchaenterprise.v1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1.TransactionEventOrBuilder> transactionEventBuilder_; + com.google.recaptchaenterprise.v1.TransactionEvent, + com.google.recaptchaenterprise.v1.TransactionEvent.Builder, + com.google.recaptchaenterprise.v1.TransactionEventOrBuilder> + transactionEventBuilder_; /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionEvent field is set. */ public boolean hasTransactionEvent() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionEvent. */ public com.google.recaptchaenterprise.v1.TransactionEvent getTransactionEvent() { if (transactionEventBuilder_ == null) { - return transactionEvent_ == null ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() : transactionEvent_; + return transactionEvent_ == null + ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() + : transactionEvent_; } else { return transactionEventBuilder_.getMessage(); } } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransactionEvent(com.google.recaptchaenterprise.v1.TransactionEvent value) { if (transactionEventBuilder_ == null) { @@ -1960,12 +2343,16 @@ public Builder setTransactionEvent(com.google.recaptchaenterprise.v1.Transaction return this; } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransactionEvent( com.google.recaptchaenterprise.v1.TransactionEvent.Builder builderForValue) { @@ -1979,18 +2366,23 @@ public Builder setTransactionEvent( return this; } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1.TransactionEvent value) { if (transactionEventBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - transactionEvent_ != null && - transactionEvent_ != com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && transactionEvent_ != null + && transactionEvent_ + != com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) { getTransactionEventBuilder().mergeFrom(value); } else { transactionEvent_ = value; @@ -2003,12 +2395,16 @@ public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1.Transacti return this; } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTransactionEvent() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2021,12 +2417,16 @@ public Builder clearTransactionEvent() { return this; } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionEvent.Builder getTransactionEventBuilder() { bitField0_ |= 0x00000020; @@ -2034,45 +2434,58 @@ public com.google.recaptchaenterprise.v1.TransactionEvent.Builder getTransaction return getTransactionEventFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.TransactionEventOrBuilder getTransactionEventOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionEventOrBuilder + getTransactionEventOrBuilder() { if (transactionEventBuilder_ != null) { return transactionEventBuilder_.getMessageOrBuilder(); } else { - return transactionEvent_ == null ? - com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() : transactionEvent_; + return transactionEvent_ == null + ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() + : transactionEvent_; } } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionEvent, com.google.recaptchaenterprise.v1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1.TransactionEventOrBuilder> + com.google.recaptchaenterprise.v1.TransactionEvent, + com.google.recaptchaenterprise.v1.TransactionEvent.Builder, + com.google.recaptchaenterprise.v1.TransactionEventOrBuilder> getTransactionEventFieldBuilder() { if (transactionEventBuilder_ == null) { - transactionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionEvent, com.google.recaptchaenterprise.v1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1.TransactionEventOrBuilder>( - getTransactionEvent(), - getParentForChildren(), - isClean()); + transactionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionEvent, + com.google.recaptchaenterprise.v1.TransactionEvent.Builder, + com.google.recaptchaenterprise.v1.TransactionEventOrBuilder>( + getTransactionEvent(), getParentForChildren(), isClean()); transactionEvent_ = null; } return transactionEventBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2082,12 +2495,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) private static final com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest(); } @@ -2096,27 +2509,27 @@ public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateAssessmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateAssessmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2131,6 +2544,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java index 2c10b5019fae..1d98e15d6f6c 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java @@ -1,107 +1,169 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AnnotateAssessmentRequestOrBuilder extends +public interface AnnotateAssessmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for annotation. */ int getAnnotationValue(); /** + * + * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotation. */ com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation getAnnotation(); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the reasons. */ - java.util.List getReasonsList(); + java.util.List + getReasonsList(); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of reasons. */ int getReasonsCount(); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getReasons(int index); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ - java.util.List - getReasonsValueList(); + java.util.List getReasonsValueList(); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ int getReasonsValue(int index); /** + * + * *
    * Optional. A stable account identifier to apply to the assessment. This is
    * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -109,10 +171,13 @@ public interface AnnotateAssessmentRequestOrBuilder extends
    * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ java.lang.String getAccountId(); /** + * + * *
    * Optional. A stable account identifier to apply to the assessment. This is
    * an alternative to setting `account_id` in `CreateAssessment`, for example
@@ -120,12 +185,14 @@ public interface AnnotateAssessmentRequestOrBuilder extends
    * 
* * string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ - com.google.protobuf.ByteString - getAccountIdBytes(); + com.google.protobuf.ByteString getAccountIdBytes(); /** + * + * *
    * Optional. A stable hashed account identifier to apply to the assessment.
    * This is an alternative to setting `hashed_account_id` in
@@ -134,37 +201,52 @@ public interface AnnotateAssessmentRequestOrBuilder extends
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ com.google.protobuf.ByteString getHashedAccountId(); /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionEvent field is set. */ boolean hasTransactionEvent(); /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionEvent. */ com.google.recaptchaenterprise.v1.TransactionEvent getTransactionEvent(); /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TransactionEventOrBuilder getTransactionEventOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java similarity index 62% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java index ab404259ba6d..de6713e3dfd4 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Empty response for AnnotateAssessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse} */ -public final class AnnotateAssessmentResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateAssessmentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) AnnotateAssessmentResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateAssessmentResponse.newBuilder() to construct. private AnnotateAssessmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateAssessmentResponse() { - } + + private AnnotateAssessmentResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateAssessmentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.Builder.class); + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse other = (com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse) obj; + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse other = + (com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Empty response for AnnotateAssessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) com.google.recaptchaenterprise.v1.AnnotateAssessmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.Builder.class); + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,13 +253,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.getDefaultInstance(); } @@ -250,7 +275,8 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse buildPartial() { - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse result = new com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse(this); + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse result = + new com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse(this); onBuilt(); return result; } @@ -259,38 +285,39 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse)other); + return mergeFrom((com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse) other); } else { super.mergeFrom(other); return this; @@ -298,7 +325,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse other) { - if (other == com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +354,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -340,9 +370,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -352,12 +382,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) - private static final com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse(); } @@ -366,27 +397,27 @@ public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateAssessmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateAssessmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -401,6 +432,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java new file mode 100644 index 000000000000..8f477c03725e --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface AnnotateAssessmentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java similarity index 69% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java index ff30b4f639f1..972491a5d260 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Contains fields that are required to perform Apple-specific integrity checks.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AppleDeveloperId} */ -public final class AppleDeveloperId extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AppleDeveloperId extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) AppleDeveloperIdOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppleDeveloperId.newBuilder() to construct. private AppleDeveloperId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AppleDeveloperId() { privateKey_ = ""; keyId_ = ""; @@ -27,35 +45,42 @@ private AppleDeveloperId() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AppleDeveloperId(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AppleDeveloperId.class, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder.class); + com.google.recaptchaenterprise.v1.AppleDeveloperId.class, + com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder.class); } public static final int PRIVATE_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object privateKey_ = ""; /** + * + * *
    * Required. Input only. A private key (downloaded as a text file with a .p8
    * file extension) generated for your Apple Developer account. Ensure that
    * Apple DeviceCheck is enabled for the private key.
    * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The privateKey. */ @java.lang.Override @@ -64,31 +89,33 @@ public java.lang.String getPrivateKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKey_ = s; return s; } } /** + * + * *
    * Required. Input only. A private key (downloaded as a text file with a .p8
    * file extension) generated for your Apple Developer account. Ensure that
    * Apple DeviceCheck is enabled for the private key.
    * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for privateKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateKeyBytes() { + public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = privateKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateKey_ = b; return b; } else { @@ -97,14 +124,18 @@ public java.lang.String getPrivateKey() { } public static final int KEY_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object keyId_ = ""; /** + * + * *
    * Required. The Apple developer key ID (10-character string).
    * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The keyId. */ @java.lang.Override @@ -113,29 +144,29 @@ public java.lang.String getKeyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } } /** + * + * *
    * Required. The Apple developer key ID (10-character string).
    * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for keyId. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyIdBytes() { + public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyId_ = b; return b; } else { @@ -144,15 +175,19 @@ public java.lang.String getKeyId() { } public static final int TEAM_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** + * + * *
    * Required. The Apple team ID (10-character string) owning the provisioning
    * profile used to build your application.
    * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The teamId. */ @java.lang.Override @@ -161,30 +196,30 @@ public java.lang.String getTeamId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } } /** + * + * *
    * Required. The Apple team ID (10-character string) owning the provisioning
    * profile used to build your application.
    * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for teamId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTeamIdBytes() { + public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); teamId_ = b; return b; } else { @@ -193,6 +228,7 @@ public java.lang.String getTeamId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateKey_); } @@ -241,19 +276,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.recaptchaenterprise.v1.AppleDeveloperId)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AppleDeveloperId other = (com.google.recaptchaenterprise.v1.AppleDeveloperId) obj; + com.google.recaptchaenterprise.v1.AppleDeveloperId other = + (com.google.recaptchaenterprise.v1.AppleDeveloperId) obj; - if (!getPrivateKey() - .equals(other.getPrivateKey())) return false; - if (!getKeyId() - .equals(other.getKeyId())) return false; - if (!getTeamId() - .equals(other.getTeamId())) return false; + if (!getPrivateKey().equals(other.getPrivateKey())) return false; + if (!getKeyId().equals(other.getKeyId())) return false; + if (!getTeamId().equals(other.getTeamId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,131 +310,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.AppleDeveloperId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains fields that are required to perform Apple-specific integrity checks.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AppleDeveloperId} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AppleDeveloperId.class, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder.class); + com.google.recaptchaenterprise.v1.AppleDeveloperId.class, + com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AppleDeveloperId.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; } @java.lang.Override @@ -434,8 +471,11 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AppleDeveloperId buildPartial() { - com.google.recaptchaenterprise.v1.AppleDeveloperId result = new com.google.recaptchaenterprise.v1.AppleDeveloperId(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.AppleDeveloperId result = + new com.google.recaptchaenterprise.v1.AppleDeveloperId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -457,38 +497,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AppleDeveloperId re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AppleDeveloperId) { - return mergeFrom((com.google.recaptchaenterprise.v1.AppleDeveloperId)other); + return mergeFrom((com.google.recaptchaenterprise.v1.AppleDeveloperId) other); } else { super.mergeFrom(other); return this; @@ -496,7 +537,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AppleDeveloperId other) { - if (other == com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance()) + return this; if (!other.getPrivateKey().isEmpty()) { privateKey_ = other.privateKey_; bitField0_ |= 0x00000001; @@ -538,27 +580,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - privateKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - keyId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - teamId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + privateKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + keyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -568,24 +614,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object privateKey_ = ""; /** + * + * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The privateKey. */ public java.lang.String getPrivateKey() { java.lang.Object ref = privateKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKey_ = s; return s; @@ -594,22 +645,25 @@ public java.lang.String getPrivateKey() { } } /** + * + * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for privateKey. */ - public com.google.protobuf.ByteString - getPrivateKeyBytes() { + public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = privateKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateKey_ = b; return b; } else { @@ -617,32 +671,43 @@ public java.lang.String getPrivateKey() { } } /** + * + * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } privateKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPrivateKey() { @@ -652,19 +717,25 @@ public Builder clearPrivateKey() { return this; } /** + * + * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); privateKey_ = value; bitField0_ |= 0x00000001; @@ -674,18 +745,20 @@ public Builder setPrivateKeyBytes( private java.lang.Object keyId_ = ""; /** + * + * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; @@ -694,20 +767,21 @@ public java.lang.String getKeyId() { } } /** + * + * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for keyId. */ - public com.google.protobuf.ByteString - getKeyIdBytes() { + public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyId_ = b; return b; } else { @@ -715,28 +789,35 @@ public java.lang.String getKeyId() { } } /** + * + * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The keyId to set. * @return This builder for chaining. */ - public Builder setKeyId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKeyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } keyId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearKeyId() { @@ -746,17 +827,21 @@ public Builder clearKeyId() { return this; } /** + * + * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for keyId to set. * @return This builder for chaining. */ - public Builder setKeyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); keyId_ = value; bitField0_ |= 0x00000002; @@ -766,19 +851,21 @@ public Builder setKeyIdBytes( private java.lang.Object teamId_ = ""; /** + * + * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; @@ -787,21 +874,22 @@ public java.lang.String getTeamId() { } } /** + * + * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for teamId. */ - public com.google.protobuf.ByteString - getTeamIdBytes() { + public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); teamId_ = b; return b; } else { @@ -809,30 +897,37 @@ public java.lang.String getTeamId() { } } /** + * + * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The teamId to set. * @return This builder for chaining. */ - public Builder setTeamId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTeamId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTeamId() { @@ -842,27 +937,31 @@ public Builder clearTeamId() { return this; } /** + * + * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for teamId to set. * @return This builder for chaining. */ - public Builder setTeamIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTeamIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -872,12 +971,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) private static final com.google.recaptchaenterprise.v1.AppleDeveloperId DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AppleDeveloperId(); } @@ -886,27 +985,27 @@ public static com.google.recaptchaenterprise.v1.AppleDeveloperId getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppleDeveloperId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppleDeveloperId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -921,6 +1020,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.AppleDeveloperId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java similarity index 62% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java index cc8e7288535b..e1c2b7e9901b 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java @@ -1,75 +1,110 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AppleDeveloperIdOrBuilder extends +public interface AppleDeveloperIdOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Input only. A private key (downloaded as a text file with a .p8
    * file extension) generated for your Apple Developer account. Ensure that
    * Apple DeviceCheck is enabled for the private key.
    * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The privateKey. */ java.lang.String getPrivateKey(); /** + * + * *
    * Required. Input only. A private key (downloaded as a text file with a .p8
    * file extension) generated for your Apple Developer account. Ensure that
    * Apple DeviceCheck is enabled for the private key.
    * 
* - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for privateKey. */ - com.google.protobuf.ByteString - getPrivateKeyBytes(); + com.google.protobuf.ByteString getPrivateKeyBytes(); /** + * + * *
    * Required. The Apple developer key ID (10-character string).
    * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The keyId. */ java.lang.String getKeyId(); /** + * + * *
    * Required. The Apple developer key ID (10-character string).
    * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for keyId. */ - com.google.protobuf.ByteString - getKeyIdBytes(); + com.google.protobuf.ByteString getKeyIdBytes(); /** + * + * *
    * Required. The Apple team ID (10-character string) owning the provisioning
    * profile used to build your application.
    * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The teamId. */ java.lang.String getTeamId(); /** + * + * *
    * Required. The Apple team ID (10-character string) owning the provisioning
    * profile used to build your application.
    * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for teamId. */ - com.google.protobuf.ByteString - getTeamIdBytes(); + com.google.protobuf.ByteString getTeamIdBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java similarity index 57% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java index 597372e3eb6c..ca9e14e15d56 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * A reCAPTCHA Enterprise assessment resource.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Assessment} */ -public final class Assessment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Assessment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.Assessment) AssessmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Assessment.newBuilder() to construct. private Assessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Assessment() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Assessment(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Assessment.class, com.google.recaptchaenterprise.v1.Assessment.Builder.class); + com.google.recaptchaenterprise.v1.Assessment.class, + com.google.recaptchaenterprise.v1.Assessment.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. Identifier. The resource name for the Assessment in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Identifier. The resource name for the Assessment in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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 { @@ -95,11 +122,16 @@ public java.lang.String getName() { public static final int EVENT_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.Event event_; /** + * + * *
    * Optional. The event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the event field is set. */ @java.lang.Override @@ -107,11 +139,16 @@ public boolean hasEvent() { return event_ != null; } /** + * + * *
    * Optional. The event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The event. */ @java.lang.Override @@ -119,11 +156,15 @@ public com.google.recaptchaenterprise.v1.Event getEvent() { return event_ == null ? com.google.recaptchaenterprise.v1.Event.getDefaultInstance() : event_; } /** + * + * *
    * Optional. The event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder() { @@ -133,11 +174,16 @@ public com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder() { public static final int RISK_ANALYSIS_FIELD_NUMBER = 3; private com.google.recaptchaenterprise.v1.RiskAnalysis riskAnalysis_; /** + * + * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the riskAnalysis field is set. */ @java.lang.Override @@ -145,37 +191,55 @@ public boolean hasRiskAnalysis() { return riskAnalysis_ != null; } /** + * + * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The riskAnalysis. */ @java.lang.Override public com.google.recaptchaenterprise.v1.RiskAnalysis getRiskAnalysis() { - return riskAnalysis_ == null ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() : riskAnalysis_; + return riskAnalysis_ == null + ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() + : riskAnalysis_; } /** + * + * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder getRiskAnalysisOrBuilder() { - return riskAnalysis_ == null ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() : riskAnalysis_; + return riskAnalysis_ == null + ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() + : riskAnalysis_; } public static final int TOKEN_PROPERTIES_FIELD_NUMBER = 4; private com.google.recaptchaenterprise.v1.TokenProperties tokenProperties_; /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tokenProperties field is set. */ @java.lang.Override @@ -183,38 +247,56 @@ public boolean hasTokenProperties() { return tokenProperties_ != null; } /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tokenProperties. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TokenProperties getTokenProperties() { - return tokenProperties_ == null ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() : tokenProperties_; + return tokenProperties_ == null + ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() + : tokenProperties_; } /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder() { - return tokenProperties_ == null ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() : tokenProperties_; + return tokenProperties_ == null + ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() + : tokenProperties_; } public static final int ACCOUNT_VERIFICATION_FIELD_NUMBER = 5; private com.google.recaptchaenterprise.v1.AccountVerificationInfo accountVerification_; /** + * + * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the accountVerification field is set. */ @java.lang.Override @@ -222,40 +304,59 @@ public boolean hasAccountVerification() { return accountVerification_ != null; } /** + * + * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The accountVerification. */ @java.lang.Override public com.google.recaptchaenterprise.v1.AccountVerificationInfo getAccountVerification() { - return accountVerification_ == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() : accountVerification_; + return accountVerification_ == null + ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() + : accountVerification_; } /** + * + * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder getAccountVerificationOrBuilder() { - return accountVerification_ == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() : accountVerification_; + public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder + getAccountVerificationOrBuilder() { + return accountVerification_ == null + ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() + : accountVerification_; } public static final int ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER = 6; private com.google.recaptchaenterprise.v1.AccountDefenderAssessment accountDefenderAssessment_; /** + * + * *
    * Output only. Assessment returned by account defender when an account
    * identifier is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accountDefenderAssessment field is set. */ @java.lang.Override @@ -263,41 +364,62 @@ public boolean hasAccountDefenderAssessment() { return accountDefenderAssessment_ != null; } /** + * + * *
    * Output only. Assessment returned by account defender when an account
    * identifier is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accountDefenderAssessment. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment getAccountDefenderAssessment() { - return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment + getAccountDefenderAssessment() { + return accountDefenderAssessment_ == null + ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() + : accountDefenderAssessment_; } /** + * + * *
    * Output only. Assessment returned by account defender when an account
    * identifier is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder() { - return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; + public com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder + getAccountDefenderAssessmentOrBuilder() { + return accountDefenderAssessment_ == null + ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() + : accountDefenderAssessment_; } public static final int PRIVATE_PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER = 8; - private com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification privatePasswordLeakVerification_; + private com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + privatePasswordLeakVerification_; /** + * + * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privatePasswordLeakVerification field is set. */ @java.lang.Override @@ -305,42 +427,62 @@ public boolean hasPrivatePasswordLeakVerification() { return privatePasswordLeakVerification_ != null; } /** + * + * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privatePasswordLeakVerification. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getPrivatePasswordLeakVerification() { - return privatePasswordLeakVerification_ == null ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() : privatePasswordLeakVerification_; + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + getPrivatePasswordLeakVerification() { + return privatePasswordLeakVerification_ == null + ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() + : privatePasswordLeakVerification_; } /** + * + * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder getPrivatePasswordLeakVerificationOrBuilder() { - return privatePasswordLeakVerification_ == null ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() : privatePasswordLeakVerification_; + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder + getPrivatePasswordLeakVerificationOrBuilder() { + return privatePasswordLeakVerification_ == null + ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() + : privatePasswordLeakVerification_; } public static final int FIREWALL_POLICY_ASSESSMENT_FIELD_NUMBER = 10; private com.google.recaptchaenterprise.v1.FirewallPolicyAssessment firewallPolicyAssessment_; /** + * + * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the firewallPolicyAssessment field is set. */ @java.lang.Override @@ -348,40 +490,59 @@ public boolean hasFirewallPolicyAssessment() { return firewallPolicyAssessment_ != null; } /** + * + * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The firewallPolicyAssessment. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getFirewallPolicyAssessment() { - return firewallPolicyAssessment_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() : firewallPolicyAssessment_; + return firewallPolicyAssessment_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() + : firewallPolicyAssessment_; } /** + * + * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder getFirewallPolicyAssessmentOrBuilder() { - return firewallPolicyAssessment_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() : firewallPolicyAssessment_; + public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder + getFirewallPolicyAssessmentOrBuilder() { + return firewallPolicyAssessment_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() + : firewallPolicyAssessment_; } public static final int FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER = 11; private com.google.recaptchaenterprise.v1.FraudPreventionAssessment fraudPreventionAssessment_; /** + * + * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the fraudPreventionAssessment field is set. */ @java.lang.Override @@ -389,40 +550,60 @@ public boolean hasFraudPreventionAssessment() { return fraudPreventionAssessment_ != null; } /** + * + * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The fraudPreventionAssessment. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment getFraudPreventionAssessment() { - return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment + getFraudPreventionAssessment() { + return fraudPreventionAssessment_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() + : fraudPreventionAssessment_; } /** + * + * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder() { - return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder + getFraudPreventionAssessmentOrBuilder() { + return fraudPreventionAssessment_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() + : fraudPreventionAssessment_; } public static final int FRAUD_SIGNALS_FIELD_NUMBER = 13; private com.google.recaptchaenterprise.v1.FraudSignals fraudSignals_; /** + * + * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the fraudSignals field is set. */ @java.lang.Override @@ -430,32 +611,46 @@ public boolean hasFraudSignals() { return fraudSignals_ != null; } /** + * + * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The fraudSignals. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals getFraudSignals() { - return fraudSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() : fraudSignals_; + return fraudSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() + : fraudSignals_; } /** + * + * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOrBuilder() { - return fraudSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() : fraudSignals_; + return fraudSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() + : fraudSignals_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -467,8 +662,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -512,40 +706,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvent()); } if (riskAnalysis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRiskAnalysis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRiskAnalysis()); } if (tokenProperties_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTokenProperties()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTokenProperties()); } if (accountVerification_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAccountVerification()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAccountVerification()); } if (accountDefenderAssessment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getAccountDefenderAssessment()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getAccountDefenderAssessment()); } if (privatePasswordLeakVerification_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getPrivatePasswordLeakVerification()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getPrivatePasswordLeakVerification()); } if (firewallPolicyAssessment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getFirewallPolicyAssessment()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getFirewallPolicyAssessment()); } if (fraudPreventionAssessment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getFraudPreventionAssessment()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getFraudPreventionAssessment()); } if (fraudSignals_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getFraudSignals()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFraudSignals()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -555,59 +748,54 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.Assessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.Assessment other = (com.google.recaptchaenterprise.v1.Assessment) obj; + com.google.recaptchaenterprise.v1.Assessment other = + (com.google.recaptchaenterprise.v1.Assessment) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasEvent() != other.hasEvent()) return false; if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) return false; + if (!getEvent().equals(other.getEvent())) return false; } if (hasRiskAnalysis() != other.hasRiskAnalysis()) return false; if (hasRiskAnalysis()) { - if (!getRiskAnalysis() - .equals(other.getRiskAnalysis())) return false; + if (!getRiskAnalysis().equals(other.getRiskAnalysis())) return false; } if (hasTokenProperties() != other.hasTokenProperties()) return false; if (hasTokenProperties()) { - if (!getTokenProperties() - .equals(other.getTokenProperties())) return false; + if (!getTokenProperties().equals(other.getTokenProperties())) return false; } if (hasAccountVerification() != other.hasAccountVerification()) return false; if (hasAccountVerification()) { - if (!getAccountVerification() - .equals(other.getAccountVerification())) return false; + if (!getAccountVerification().equals(other.getAccountVerification())) return false; } if (hasAccountDefenderAssessment() != other.hasAccountDefenderAssessment()) return false; if (hasAccountDefenderAssessment()) { - if (!getAccountDefenderAssessment() - .equals(other.getAccountDefenderAssessment())) return false; + if (!getAccountDefenderAssessment().equals(other.getAccountDefenderAssessment())) + return false; } - if (hasPrivatePasswordLeakVerification() != other.hasPrivatePasswordLeakVerification()) return false; + if (hasPrivatePasswordLeakVerification() != other.hasPrivatePasswordLeakVerification()) + return false; if (hasPrivatePasswordLeakVerification()) { - if (!getPrivatePasswordLeakVerification() - .equals(other.getPrivatePasswordLeakVerification())) return false; + if (!getPrivatePasswordLeakVerification().equals(other.getPrivatePasswordLeakVerification())) + return false; } if (hasFirewallPolicyAssessment() != other.hasFirewallPolicyAssessment()) return false; if (hasFirewallPolicyAssessment()) { - if (!getFirewallPolicyAssessment() - .equals(other.getFirewallPolicyAssessment())) return false; + if (!getFirewallPolicyAssessment().equals(other.getFirewallPolicyAssessment())) return false; } if (hasFraudPreventionAssessment() != other.hasFraudPreventionAssessment()) return false; if (hasFraudPreventionAssessment()) { - if (!getFraudPreventionAssessment() - .equals(other.getFraudPreventionAssessment())) return false; + if (!getFraudPreventionAssessment().equals(other.getFraudPreventionAssessment())) + return false; } if (hasFraudSignals() != other.hasFraudSignals()) return false; if (hasFraudSignals()) { - if (!getFraudSignals() - .equals(other.getFraudSignals())) return false; + if (!getFraudSignals().equals(other.getFraudSignals())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -663,132 +851,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.Assessment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Assessment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.Assessment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.Assessment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.Assessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.Assessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reCAPTCHA Enterprise assessment resource.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Assessment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.Assessment) com.google.recaptchaenterprise.v1.AssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Assessment.class, com.google.recaptchaenterprise.v1.Assessment.Builder.class); + com.google.recaptchaenterprise.v1.Assessment.class, + com.google.recaptchaenterprise.v1.Assessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.Assessment.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -843,9 +1035,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; } @java.lang.Override @@ -864,8 +1056,11 @@ public com.google.recaptchaenterprise.v1.Assessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1.Assessment buildPartial() { - com.google.recaptchaenterprise.v1.Assessment result = new com.google.recaptchaenterprise.v1.Assessment(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.Assessment result = + new com.google.recaptchaenterprise.v1.Assessment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -876,49 +1071,49 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Assessment result) result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.event_ = eventBuilder_ == null - ? event_ - : eventBuilder_.build(); + result.event_ = eventBuilder_ == null ? event_ : eventBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.riskAnalysis_ = riskAnalysisBuilder_ == null - ? riskAnalysis_ - : riskAnalysisBuilder_.build(); + result.riskAnalysis_ = + riskAnalysisBuilder_ == null ? riskAnalysis_ : riskAnalysisBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.tokenProperties_ = tokenPropertiesBuilder_ == null - ? tokenProperties_ - : tokenPropertiesBuilder_.build(); + result.tokenProperties_ = + tokenPropertiesBuilder_ == null ? tokenProperties_ : tokenPropertiesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.accountVerification_ = accountVerificationBuilder_ == null - ? accountVerification_ - : accountVerificationBuilder_.build(); + result.accountVerification_ = + accountVerificationBuilder_ == null + ? accountVerification_ + : accountVerificationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.accountDefenderAssessment_ = accountDefenderAssessmentBuilder_ == null - ? accountDefenderAssessment_ - : accountDefenderAssessmentBuilder_.build(); + result.accountDefenderAssessment_ = + accountDefenderAssessmentBuilder_ == null + ? accountDefenderAssessment_ + : accountDefenderAssessmentBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.privatePasswordLeakVerification_ = privatePasswordLeakVerificationBuilder_ == null - ? privatePasswordLeakVerification_ - : privatePasswordLeakVerificationBuilder_.build(); + result.privatePasswordLeakVerification_ = + privatePasswordLeakVerificationBuilder_ == null + ? privatePasswordLeakVerification_ + : privatePasswordLeakVerificationBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.firewallPolicyAssessment_ = firewallPolicyAssessmentBuilder_ == null - ? firewallPolicyAssessment_ - : firewallPolicyAssessmentBuilder_.build(); + result.firewallPolicyAssessment_ = + firewallPolicyAssessmentBuilder_ == null + ? firewallPolicyAssessment_ + : firewallPolicyAssessmentBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.fraudPreventionAssessment_ = fraudPreventionAssessmentBuilder_ == null - ? fraudPreventionAssessment_ - : fraudPreventionAssessmentBuilder_.build(); + result.fraudPreventionAssessment_ = + fraudPreventionAssessmentBuilder_ == null + ? fraudPreventionAssessment_ + : fraudPreventionAssessmentBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.fraudSignals_ = fraudSignalsBuilder_ == null - ? fraudSignals_ - : fraudSignalsBuilder_.build(); + result.fraudSignals_ = + fraudSignalsBuilder_ == null ? fraudSignals_ : fraudSignalsBuilder_.build(); } } @@ -926,38 +1121,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Assessment result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.Assessment) { - return mergeFrom((com.google.recaptchaenterprise.v1.Assessment)other); + return mergeFrom((com.google.recaptchaenterprise.v1.Assessment) other); } else { super.mergeFrom(other); return this; @@ -1024,80 +1220,79 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEventFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getRiskAnalysisFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getTokenPropertiesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getAccountVerificationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getAccountDefenderAssessmentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: { - input.readMessage( - getPrivatePasswordLeakVerificationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: { - input.readMessage( - getFirewallPolicyAssessmentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 82 - case 90: { - input.readMessage( - getFraudPreventionAssessmentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 90 - case 106: { - input.readMessage( - getFraudSignalsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRiskAnalysisFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getTokenPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getAccountVerificationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getAccountDefenderAssessmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: + { + input.readMessage( + getPrivatePasswordLeakVerificationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: + { + input.readMessage( + getFirewallPolicyAssessmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 90: + { + input.readMessage( + getFraudPreventionAssessmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 106: + { + input.readMessage(getFraudSignalsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1107,23 +1302,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Identifier. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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; @@ -1132,21 +1332,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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 { @@ -1154,30 +1357,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Identifier. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -1187,18 +1401,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Identifier. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1208,39 +1428,58 @@ public Builder setNameBytes( private com.google.recaptchaenterprise.v1.Event event_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Event, com.google.recaptchaenterprise.v1.Event.Builder, com.google.recaptchaenterprise.v1.EventOrBuilder> eventBuilder_; + com.google.recaptchaenterprise.v1.Event, + com.google.recaptchaenterprise.v1.Event.Builder, + com.google.recaptchaenterprise.v1.EventOrBuilder> + eventBuilder_; /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the event field is set. */ public boolean hasEvent() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The event. */ public com.google.recaptchaenterprise.v1.Event getEvent() { if (eventBuilder_ == null) { - return event_ == null ? com.google.recaptchaenterprise.v1.Event.getDefaultInstance() : event_; + return event_ == null + ? com.google.recaptchaenterprise.v1.Event.getDefaultInstance() + : event_; } else { return eventBuilder_.getMessage(); } } /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEvent(com.google.recaptchaenterprise.v1.Event value) { if (eventBuilder_ == null) { @@ -1256,14 +1495,17 @@ public Builder setEvent(com.google.recaptchaenterprise.v1.Event value) { return this; } /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEvent( - com.google.recaptchaenterprise.v1.Event.Builder builderForValue) { + public Builder setEvent(com.google.recaptchaenterprise.v1.Event.Builder builderForValue) { if (eventBuilder_ == null) { event_ = builderForValue.build(); } else { @@ -1274,17 +1516,21 @@ public Builder setEvent( return this; } /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEvent(com.google.recaptchaenterprise.v1.Event value) { if (eventBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - event_ != null && - event_ != com.google.recaptchaenterprise.v1.Event.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && event_ != null + && event_ != com.google.recaptchaenterprise.v1.Event.getDefaultInstance()) { getEventBuilder().mergeFrom(value); } else { event_ = value; @@ -1297,11 +1543,15 @@ public Builder mergeEvent(com.google.recaptchaenterprise.v1.Event value) { return this; } /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEvent() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1314,11 +1564,15 @@ public Builder clearEvent() { return this; } /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.Event.Builder getEventBuilder() { bitField0_ |= 0x00000002; @@ -1326,36 +1580,48 @@ public com.google.recaptchaenterprise.v1.Event.Builder getEventBuilder() { return getEventFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder() { if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilder(); } else { - return event_ == null ? - com.google.recaptchaenterprise.v1.Event.getDefaultInstance() : event_; + return event_ == null + ? com.google.recaptchaenterprise.v1.Event.getDefaultInstance() + : event_; } } /** + * + * *
      * Optional. The event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Event, com.google.recaptchaenterprise.v1.Event.Builder, com.google.recaptchaenterprise.v1.EventOrBuilder> + com.google.recaptchaenterprise.v1.Event, + com.google.recaptchaenterprise.v1.Event.Builder, + com.google.recaptchaenterprise.v1.EventOrBuilder> getEventFieldBuilder() { if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Event, com.google.recaptchaenterprise.v1.Event.Builder, com.google.recaptchaenterprise.v1.EventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); + eventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.Event, + com.google.recaptchaenterprise.v1.Event.Builder, + com.google.recaptchaenterprise.v1.EventOrBuilder>( + getEvent(), getParentForChildren(), isClean()); event_ = null; } return eventBuilder_; @@ -1363,39 +1629,58 @@ public com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder() { private com.google.recaptchaenterprise.v1.RiskAnalysis riskAnalysis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.RiskAnalysis, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder> riskAnalysisBuilder_; + com.google.recaptchaenterprise.v1.RiskAnalysis, + com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, + com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder> + riskAnalysisBuilder_; /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the riskAnalysis field is set. */ public boolean hasRiskAnalysis() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The riskAnalysis. */ public com.google.recaptchaenterprise.v1.RiskAnalysis getRiskAnalysis() { if (riskAnalysisBuilder_ == null) { - return riskAnalysis_ == null ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() : riskAnalysis_; + return riskAnalysis_ == null + ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() + : riskAnalysis_; } else { return riskAnalysisBuilder_.getMessage(); } } /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRiskAnalysis(com.google.recaptchaenterprise.v1.RiskAnalysis value) { if (riskAnalysisBuilder_ == null) { @@ -1411,11 +1696,15 @@ public Builder setRiskAnalysis(com.google.recaptchaenterprise.v1.RiskAnalysis va return this; } /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRiskAnalysis( com.google.recaptchaenterprise.v1.RiskAnalysis.Builder builderForValue) { @@ -1429,17 +1718,22 @@ public Builder setRiskAnalysis( return this; } /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeRiskAnalysis(com.google.recaptchaenterprise.v1.RiskAnalysis value) { if (riskAnalysisBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - riskAnalysis_ != null && - riskAnalysis_ != com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && riskAnalysis_ != null + && riskAnalysis_ + != com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance()) { getRiskAnalysisBuilder().mergeFrom(value); } else { riskAnalysis_ = value; @@ -1452,11 +1746,15 @@ public Builder mergeRiskAnalysis(com.google.recaptchaenterprise.v1.RiskAnalysis return this; } /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRiskAnalysis() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1469,11 +1767,15 @@ public Builder clearRiskAnalysis() { return this; } /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.recaptchaenterprise.v1.RiskAnalysis.Builder getRiskAnalysisBuilder() { bitField0_ |= 0x00000004; @@ -1481,36 +1783,48 @@ public com.google.recaptchaenterprise.v1.RiskAnalysis.Builder getRiskAnalysisBui return getRiskAnalysisFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder getRiskAnalysisOrBuilder() { if (riskAnalysisBuilder_ != null) { return riskAnalysisBuilder_.getMessageOrBuilder(); } else { - return riskAnalysis_ == null ? - com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() : riskAnalysis_; + return riskAnalysis_ == null + ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() + : riskAnalysis_; } } /** + * + * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.RiskAnalysis, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder> + com.google.recaptchaenterprise.v1.RiskAnalysis, + com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, + com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder> getRiskAnalysisFieldBuilder() { if (riskAnalysisBuilder_ == null) { - riskAnalysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.RiskAnalysis, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder>( - getRiskAnalysis(), - getParentForChildren(), - isClean()); + riskAnalysisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.RiskAnalysis, + com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, + com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder>( + getRiskAnalysis(), getParentForChildren(), isClean()); riskAnalysis_ = null; } return riskAnalysisBuilder_; @@ -1518,39 +1832,58 @@ public com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder getRiskAnalysisOr private com.google.recaptchaenterprise.v1.TokenProperties tokenProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TokenProperties, com.google.recaptchaenterprise.v1.TokenProperties.Builder, com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder> tokenPropertiesBuilder_; + com.google.recaptchaenterprise.v1.TokenProperties, + com.google.recaptchaenterprise.v1.TokenProperties.Builder, + com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder> + tokenPropertiesBuilder_; /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tokenProperties field is set. */ public boolean hasTokenProperties() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tokenProperties. */ public com.google.recaptchaenterprise.v1.TokenProperties getTokenProperties() { if (tokenPropertiesBuilder_ == null) { - return tokenProperties_ == null ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() : tokenProperties_; + return tokenProperties_ == null + ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() + : tokenProperties_; } else { return tokenPropertiesBuilder_.getMessage(); } } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTokenProperties(com.google.recaptchaenterprise.v1.TokenProperties value) { if (tokenPropertiesBuilder_ == null) { @@ -1566,11 +1899,15 @@ public Builder setTokenProperties(com.google.recaptchaenterprise.v1.TokenPropert return this; } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTokenProperties( com.google.recaptchaenterprise.v1.TokenProperties.Builder builderForValue) { @@ -1584,17 +1921,22 @@ public Builder setTokenProperties( return this; } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTokenProperties(com.google.recaptchaenterprise.v1.TokenProperties value) { if (tokenPropertiesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - tokenProperties_ != null && - tokenProperties_ != com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && tokenProperties_ != null + && tokenProperties_ + != com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance()) { getTokenPropertiesBuilder().mergeFrom(value); } else { tokenProperties_ = value; @@ -1607,11 +1949,15 @@ public Builder mergeTokenProperties(com.google.recaptchaenterprise.v1.TokenPrope return this; } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTokenProperties() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1624,11 +1970,15 @@ public Builder clearTokenProperties() { return this; } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.recaptchaenterprise.v1.TokenProperties.Builder getTokenPropertiesBuilder() { bitField0_ |= 0x00000008; @@ -1636,36 +1986,49 @@ public com.google.recaptchaenterprise.v1.TokenProperties.Builder getTokenPropert return getTokenPropertiesFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder() { + public com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder + getTokenPropertiesOrBuilder() { if (tokenPropertiesBuilder_ != null) { return tokenPropertiesBuilder_.getMessageOrBuilder(); } else { - return tokenProperties_ == null ? - com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() : tokenProperties_; + return tokenProperties_ == null + ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() + : tokenProperties_; } } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TokenProperties, com.google.recaptchaenterprise.v1.TokenProperties.Builder, com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder> + com.google.recaptchaenterprise.v1.TokenProperties, + com.google.recaptchaenterprise.v1.TokenProperties.Builder, + com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder> getTokenPropertiesFieldBuilder() { if (tokenPropertiesBuilder_ == null) { - tokenPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TokenProperties, com.google.recaptchaenterprise.v1.TokenProperties.Builder, com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder>( - getTokenProperties(), - getParentForChildren(), - isClean()); + tokenPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TokenProperties, + com.google.recaptchaenterprise.v1.TokenProperties.Builder, + com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder>( + getTokenProperties(), getParentForChildren(), isClean()); tokenProperties_ = null; } return tokenPropertiesBuilder_; @@ -1673,44 +2036,64 @@ public com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder getTokenProper private com.google.recaptchaenterprise.v1.AccountVerificationInfo accountVerification_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountVerificationInfo, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder> accountVerificationBuilder_; + com.google.recaptchaenterprise.v1.AccountVerificationInfo, + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, + com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder> + accountVerificationBuilder_; /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the accountVerification field is set. */ public boolean hasAccountVerification() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The accountVerification. */ public com.google.recaptchaenterprise.v1.AccountVerificationInfo getAccountVerification() { if (accountVerificationBuilder_ == null) { - return accountVerification_ == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() : accountVerification_; + return accountVerification_ == null + ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() + : accountVerification_; } else { return accountVerificationBuilder_.getMessage(); } } /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAccountVerification(com.google.recaptchaenterprise.v1.AccountVerificationInfo value) { + public Builder setAccountVerification( + com.google.recaptchaenterprise.v1.AccountVerificationInfo value) { if (accountVerificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1724,12 +2107,16 @@ public Builder setAccountVerification(com.google.recaptchaenterprise.v1.AccountV return this; } /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccountVerification( com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder builderForValue) { @@ -1743,18 +2130,24 @@ public Builder setAccountVerification( return this; } /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAccountVerification(com.google.recaptchaenterprise.v1.AccountVerificationInfo value) { + public Builder mergeAccountVerification( + com.google.recaptchaenterprise.v1.AccountVerificationInfo value) { if (accountVerificationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - accountVerification_ != null && - accountVerification_ != com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && accountVerification_ != null + && accountVerification_ + != com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance()) { getAccountVerificationBuilder().mergeFrom(value); } else { accountVerification_ = value; @@ -1767,12 +2160,16 @@ public Builder mergeAccountVerification(com.google.recaptchaenterprise.v1.Accoun return this; } /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAccountVerification() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1785,51 +2182,69 @@ public Builder clearAccountVerification() { return this; } /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder getAccountVerificationBuilder() { + public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder + getAccountVerificationBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAccountVerificationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder getAccountVerificationOrBuilder() { + public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder + getAccountVerificationOrBuilder() { if (accountVerificationBuilder_ != null) { return accountVerificationBuilder_.getMessageOrBuilder(); } else { - return accountVerification_ == null ? - com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() : accountVerification_; + return accountVerification_ == null + ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() + : accountVerification_; } } /** + * + * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountVerificationInfo, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder> + com.google.recaptchaenterprise.v1.AccountVerificationInfo, + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, + com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder> getAccountVerificationFieldBuilder() { if (accountVerificationBuilder_ == null) { - accountVerificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountVerificationInfo, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder>( - getAccountVerification(), - getParentForChildren(), - isClean()); + accountVerificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.AccountVerificationInfo, + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, + com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder>( + getAccountVerification(), getParentForChildren(), isClean()); accountVerification_ = null; } return accountVerificationBuilder_; @@ -1837,44 +2252,65 @@ public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder getAcc private com.google.recaptchaenterprise.v1.AccountDefenderAssessment accountDefenderAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder> accountDefenderAssessmentBuilder_; + com.google.recaptchaenterprise.v1.AccountDefenderAssessment, + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, + com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder> + accountDefenderAssessmentBuilder_; /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accountDefenderAssessment field is set. */ public boolean hasAccountDefenderAssessment() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accountDefenderAssessment. */ - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment getAccountDefenderAssessment() { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment + getAccountDefenderAssessment() { if (accountDefenderAssessmentBuilder_ == null) { - return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; + return accountDefenderAssessment_ == null + ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() + : accountDefenderAssessment_; } else { return accountDefenderAssessmentBuilder_.getMessage(); } } /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setAccountDefenderAssessment(com.google.recaptchaenterprise.v1.AccountDefenderAssessment value) { + public Builder setAccountDefenderAssessment( + com.google.recaptchaenterprise.v1.AccountDefenderAssessment value) { if (accountDefenderAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1888,12 +2324,16 @@ public Builder setAccountDefenderAssessment(com.google.recaptchaenterprise.v1.Ac return this; } /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAccountDefenderAssessment( com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder builderForValue) { @@ -1907,18 +2347,25 @@ public Builder setAccountDefenderAssessment( return this; } /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeAccountDefenderAssessment(com.google.recaptchaenterprise.v1.AccountDefenderAssessment value) { + public Builder mergeAccountDefenderAssessment( + com.google.recaptchaenterprise.v1.AccountDefenderAssessment value) { if (accountDefenderAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - accountDefenderAssessment_ != null && - accountDefenderAssessment_ != com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && accountDefenderAssessment_ != null + && accountDefenderAssessment_ + != com.google.recaptchaenterprise.v1.AccountDefenderAssessment + .getDefaultInstance()) { getAccountDefenderAssessmentBuilder().mergeFrom(value); } else { accountDefenderAssessment_ = value; @@ -1931,12 +2378,16 @@ public Builder mergeAccountDefenderAssessment(com.google.recaptchaenterprise.v1. return this; } /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAccountDefenderAssessment() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1949,99 +2400,139 @@ public Builder clearAccountDefenderAssessment() { return this; } /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder getAccountDefenderAssessmentBuilder() { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder + getAccountDefenderAssessmentBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAccountDefenderAssessmentFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder + getAccountDefenderAssessmentOrBuilder() { if (accountDefenderAssessmentBuilder_ != null) { return accountDefenderAssessmentBuilder_.getMessageOrBuilder(); } else { - return accountDefenderAssessment_ == null ? - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; + return accountDefenderAssessment_ == null + ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() + : accountDefenderAssessment_; } } /** + * + * *
      * Output only. Assessment returned by account defender when an account
      * identifier is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder> + com.google.recaptchaenterprise.v1.AccountDefenderAssessment, + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, + com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder> getAccountDefenderAssessmentFieldBuilder() { if (accountDefenderAssessmentBuilder_ == null) { - accountDefenderAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder>( - getAccountDefenderAssessment(), - getParentForChildren(), - isClean()); + accountDefenderAssessmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.AccountDefenderAssessment, + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, + com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder>( + getAccountDefenderAssessment(), getParentForChildren(), isClean()); accountDefenderAssessment_ = null; } return accountDefenderAssessmentBuilder_; } - private com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification privatePasswordLeakVerification_; + private com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + privatePasswordLeakVerification_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder> privatePasswordLeakVerificationBuilder_; + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder> + privatePasswordLeakVerificationBuilder_; /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privatePasswordLeakVerification field is set. */ public boolean hasPrivatePasswordLeakVerification() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privatePasswordLeakVerification. */ - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getPrivatePasswordLeakVerification() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + getPrivatePasswordLeakVerification() { if (privatePasswordLeakVerificationBuilder_ == null) { - return privatePasswordLeakVerification_ == null ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() : privatePasswordLeakVerification_; + return privatePasswordLeakVerification_ == null + ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() + : privatePasswordLeakVerification_; } else { return privatePasswordLeakVerificationBuilder_.getMessage(); } } /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPrivatePasswordLeakVerification(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification value) { + public Builder setPrivatePasswordLeakVerification( + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification value) { if (privatePasswordLeakVerificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2055,13 +2546,17 @@ public Builder setPrivatePasswordLeakVerification(com.google.recaptchaenterprise return this; } /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPrivatePasswordLeakVerification( com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder builderForValue) { @@ -2075,19 +2570,26 @@ public Builder setPrivatePasswordLeakVerification( return this; } /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePrivatePasswordLeakVerification(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification value) { + public Builder mergePrivatePasswordLeakVerification( + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification value) { if (privatePasswordLeakVerificationBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - privatePasswordLeakVerification_ != null && - privatePasswordLeakVerification_ != com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && privatePasswordLeakVerification_ != null + && privatePasswordLeakVerification_ + != com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + .getDefaultInstance()) { getPrivatePasswordLeakVerificationBuilder().mergeFrom(value); } else { privatePasswordLeakVerification_ = value; @@ -2100,13 +2602,17 @@ public Builder mergePrivatePasswordLeakVerification(com.google.recaptchaenterpri return this; } /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPrivatePasswordLeakVerification() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2119,54 +2625,72 @@ public Builder clearPrivatePasswordLeakVerification() { return this; } /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder getPrivatePasswordLeakVerificationBuilder() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder + getPrivatePasswordLeakVerificationBuilder() { bitField0_ |= 0x00000040; onChanged(); return getPrivatePasswordLeakVerificationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder getPrivatePasswordLeakVerificationOrBuilder() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder + getPrivatePasswordLeakVerificationOrBuilder() { if (privatePasswordLeakVerificationBuilder_ != null) { return privatePasswordLeakVerificationBuilder_.getMessageOrBuilder(); } else { - return privatePasswordLeakVerification_ == null ? - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() : privatePasswordLeakVerification_; + return privatePasswordLeakVerification_ == null + ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() + : privatePasswordLeakVerification_; } } /** + * + * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder> + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder> getPrivatePasswordLeakVerificationFieldBuilder() { if (privatePasswordLeakVerificationBuilder_ == null) { - privatePasswordLeakVerificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder>( - getPrivatePasswordLeakVerification(), - getParentForChildren(), - isClean()); + privatePasswordLeakVerificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder>( + getPrivatePasswordLeakVerification(), getParentForChildren(), isClean()); privatePasswordLeakVerification_ = null; } return privatePasswordLeakVerificationBuilder_; @@ -2174,44 +2698,65 @@ public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilde private com.google.recaptchaenterprise.v1.FirewallPolicyAssessment firewallPolicyAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder> firewallPolicyAssessmentBuilder_; + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder> + firewallPolicyAssessmentBuilder_; /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the firewallPolicyAssessment field is set. */ public boolean hasFirewallPolicyAssessment() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The firewallPolicyAssessment. */ - public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getFirewallPolicyAssessment() { + public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment + getFirewallPolicyAssessment() { if (firewallPolicyAssessmentBuilder_ == null) { - return firewallPolicyAssessment_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() : firewallPolicyAssessment_; + return firewallPolicyAssessment_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() + : firewallPolicyAssessment_; } else { return firewallPolicyAssessmentBuilder_.getMessage(); } } /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setFirewallPolicyAssessment(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment value) { + public Builder setFirewallPolicyAssessment( + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment value) { if (firewallPolicyAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2225,12 +2770,16 @@ public Builder setFirewallPolicyAssessment(com.google.recaptchaenterprise.v1.Fir return this; } /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setFirewallPolicyAssessment( com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder builderForValue) { @@ -2244,18 +2793,25 @@ public Builder setFirewallPolicyAssessment( return this; } /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeFirewallPolicyAssessment(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment value) { + public Builder mergeFirewallPolicyAssessment( + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment value) { if (firewallPolicyAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - firewallPolicyAssessment_ != null && - firewallPolicyAssessment_ != com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && firewallPolicyAssessment_ != null + && firewallPolicyAssessment_ + != com.google.recaptchaenterprise.v1.FirewallPolicyAssessment + .getDefaultInstance()) { getFirewallPolicyAssessmentBuilder().mergeFrom(value); } else { firewallPolicyAssessment_ = value; @@ -2268,12 +2824,16 @@ public Builder mergeFirewallPolicyAssessment(com.google.recaptchaenterprise.v1.F return this; } /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearFirewallPolicyAssessment() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2286,51 +2846,69 @@ public Builder clearFirewallPolicyAssessment() { return this; } /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder getFirewallPolicyAssessmentBuilder() { + public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder + getFirewallPolicyAssessmentBuilder() { bitField0_ |= 0x00000080; onChanged(); return getFirewallPolicyAssessmentFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder getFirewallPolicyAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder + getFirewallPolicyAssessmentOrBuilder() { if (firewallPolicyAssessmentBuilder_ != null) { return firewallPolicyAssessmentBuilder_.getMessageOrBuilder(); } else { - return firewallPolicyAssessment_ == null ? - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() : firewallPolicyAssessment_; + return firewallPolicyAssessment_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() + : firewallPolicyAssessment_; } } /** + * + * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder> getFirewallPolicyAssessmentFieldBuilder() { if (firewallPolicyAssessmentBuilder_ == null) { - firewallPolicyAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder>( - getFirewallPolicyAssessment(), - getParentForChildren(), - isClean()); + firewallPolicyAssessmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder>( + getFirewallPolicyAssessment(), getParentForChildren(), isClean()); firewallPolicyAssessment_ = null; } return firewallPolicyAssessmentBuilder_; @@ -2338,44 +2916,65 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder getFi private com.google.recaptchaenterprise.v1.FraudPreventionAssessment fraudPreventionAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder> fraudPreventionAssessmentBuilder_; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder> + fraudPreventionAssessmentBuilder_; /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the fraudPreventionAssessment field is set. */ public boolean hasFraudPreventionAssessment() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The fraudPreventionAssessment. */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment getFraudPreventionAssessment() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment + getFraudPreventionAssessment() { if (fraudPreventionAssessmentBuilder_ == null) { - return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; + return fraudPreventionAssessment_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() + : fraudPreventionAssessment_; } else { return fraudPreventionAssessmentBuilder_.getMessage(); } } /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setFraudPreventionAssessment(com.google.recaptchaenterprise.v1.FraudPreventionAssessment value) { + public Builder setFraudPreventionAssessment( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment value) { if (fraudPreventionAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2389,12 +2988,16 @@ public Builder setFraudPreventionAssessment(com.google.recaptchaenterprise.v1.Fr return this; } /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setFraudPreventionAssessment( com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder builderForValue) { @@ -2408,18 +3011,25 @@ public Builder setFraudPreventionAssessment( return this; } /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeFraudPreventionAssessment(com.google.recaptchaenterprise.v1.FraudPreventionAssessment value) { + public Builder mergeFraudPreventionAssessment( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment value) { if (fraudPreventionAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - fraudPreventionAssessment_ != null && - fraudPreventionAssessment_ != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && fraudPreventionAssessment_ != null + && fraudPreventionAssessment_ + != com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .getDefaultInstance()) { getFraudPreventionAssessmentBuilder().mergeFrom(value); } else { fraudPreventionAssessment_ = value; @@ -2432,12 +3042,16 @@ public Builder mergeFraudPreventionAssessment(com.google.recaptchaenterprise.v1. return this; } /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearFraudPreventionAssessment() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2450,51 +3064,69 @@ public Builder clearFraudPreventionAssessment() { return this; } /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder getFraudPreventionAssessmentBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder + getFraudPreventionAssessmentBuilder() { bitField0_ |= 0x00000100; onChanged(); return getFraudPreventionAssessmentFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder + getFraudPreventionAssessmentOrBuilder() { if (fraudPreventionAssessmentBuilder_ != null) { return fraudPreventionAssessmentBuilder_.getMessageOrBuilder(); } else { - return fraudPreventionAssessment_ == null ? - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; + return fraudPreventionAssessment_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() + : fraudPreventionAssessment_; } } /** + * + * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder> + com.google.recaptchaenterprise.v1.FraudPreventionAssessment, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder> getFraudPreventionAssessmentFieldBuilder() { if (fraudPreventionAssessmentBuilder_ == null) { - fraudPreventionAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder>( - getFraudPreventionAssessment(), - getParentForChildren(), - isClean()); + fraudPreventionAssessmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudPreventionAssessment, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder>( + getFraudPreventionAssessment(), getParentForChildren(), isClean()); fraudPreventionAssessment_ = null; } return fraudPreventionAssessmentBuilder_; @@ -2502,42 +3134,61 @@ public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder getF private com.google.recaptchaenterprise.v1.FraudSignals fraudSignals_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals, com.google.recaptchaenterprise.v1.FraudSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder> fraudSignalsBuilder_; + com.google.recaptchaenterprise.v1.FraudSignals, + com.google.recaptchaenterprise.v1.FraudSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder> + fraudSignalsBuilder_; /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the fraudSignals field is set. */ public boolean hasFraudSignals() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The fraudSignals. */ public com.google.recaptchaenterprise.v1.FraudSignals getFraudSignals() { if (fraudSignalsBuilder_ == null) { - return fraudSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() : fraudSignals_; + return fraudSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() + : fraudSignals_; } else { return fraudSignalsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setFraudSignals(com.google.recaptchaenterprise.v1.FraudSignals value) { if (fraudSignalsBuilder_ == null) { @@ -2553,12 +3204,16 @@ public Builder setFraudSignals(com.google.recaptchaenterprise.v1.FraudSignals va return this; } /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setFraudSignals( com.google.recaptchaenterprise.v1.FraudSignals.Builder builderForValue) { @@ -2572,18 +3227,23 @@ public Builder setFraudSignals( return this; } /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeFraudSignals(com.google.recaptchaenterprise.v1.FraudSignals value) { if (fraudSignalsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - fraudSignals_ != null && - fraudSignals_ != com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && fraudSignals_ != null + && fraudSignals_ + != com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance()) { getFraudSignalsBuilder().mergeFrom(value); } else { fraudSignals_ = value; @@ -2596,12 +3256,16 @@ public Builder mergeFraudSignals(com.google.recaptchaenterprise.v1.FraudSignals return this; } /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearFraudSignals() { bitField0_ = (bitField0_ & ~0x00000200); @@ -2614,12 +3278,16 @@ public Builder clearFraudSignals() { return this; } /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.recaptchaenterprise.v1.FraudSignals.Builder getFraudSignalsBuilder() { bitField0_ |= 0x00000200; @@ -2627,45 +3295,57 @@ public com.google.recaptchaenterprise.v1.FraudSignals.Builder getFraudSignalsBui return getFraudSignalsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOrBuilder() { if (fraudSignalsBuilder_ != null) { return fraudSignalsBuilder_.getMessageOrBuilder(); } else { - return fraudSignals_ == null ? - com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() : fraudSignals_; + return fraudSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() + : fraudSignals_; } } /** + * + * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals, com.google.recaptchaenterprise.v1.FraudSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder> + com.google.recaptchaenterprise.v1.FraudSignals, + com.google.recaptchaenterprise.v1.FraudSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder> getFraudSignalsFieldBuilder() { if (fraudSignalsBuilder_ == null) { - fraudSignalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals, com.google.recaptchaenterprise.v1.FraudSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder>( - getFraudSignals(), - getParentForChildren(), - isClean()); + fraudSignalsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudSignals, + com.google.recaptchaenterprise.v1.FraudSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder>( + getFraudSignals(), getParentForChildren(), isClean()); fraudSignals_ = null; } return fraudSignalsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2675,12 +3355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.Assessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.Assessment) private static final com.google.recaptchaenterprise.v1.Assessment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.Assessment(); } @@ -2689,27 +3369,27 @@ public static com.google.recaptchaenterprise.v1.Assessment getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Assessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Assessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2724,6 +3404,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.Assessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java similarity index 54% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java index 137b3483b8ab..7de7cc372bf0 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java @@ -1,295 +1,452 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AssessmentOrBuilder extends +public interface AssessmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.Assessment) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Identifier. The resource name for the Assessment in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Identifier. The resource name for the Assessment in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the event field is set. */ boolean hasEvent(); /** + * + * *
    * Optional. The event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The event. */ com.google.recaptchaenterprise.v1.Event getEvent(); /** + * + * *
    * Optional. The event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder(); /** + * + * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the riskAnalysis field is set. */ boolean hasRiskAnalysis(); /** + * + * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The riskAnalysis. */ com.google.recaptchaenterprise.v1.RiskAnalysis getRiskAnalysis(); /** + * + * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder getRiskAnalysisOrBuilder(); /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tokenProperties field is set. */ boolean hasTokenProperties(); /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tokenProperties. */ com.google.recaptchaenterprise.v1.TokenProperties getTokenProperties(); /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder(); /** + * + * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the accountVerification field is set. */ boolean hasAccountVerification(); /** + * + * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The accountVerification. */ com.google.recaptchaenterprise.v1.AccountVerificationInfo getAccountVerification(); /** + * + * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder getAccountVerificationOrBuilder(); + com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder + getAccountVerificationOrBuilder(); /** + * + * *
    * Output only. Assessment returned by account defender when an account
    * identifier is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accountDefenderAssessment field is set. */ boolean hasAccountDefenderAssessment(); /** + * + * *
    * Output only. Assessment returned by account defender when an account
    * identifier is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accountDefenderAssessment. */ com.google.recaptchaenterprise.v1.AccountDefenderAssessment getAccountDefenderAssessment(); /** + * + * *
    * Output only. Assessment returned by account defender when an account
    * identifier is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder + getAccountDefenderAssessmentOrBuilder(); /** + * + * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privatePasswordLeakVerification field is set. */ boolean hasPrivatePasswordLeakVerification(); /** + * + * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privatePasswordLeakVerification. */ - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getPrivatePasswordLeakVerification(); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + getPrivatePasswordLeakVerification(); /** + * + * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder getPrivatePasswordLeakVerificationOrBuilder(); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder + getPrivatePasswordLeakVerificationOrBuilder(); /** + * + * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the firewallPolicyAssessment field is set. */ boolean hasFirewallPolicyAssessment(); /** + * + * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The firewallPolicyAssessment. */ com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getFirewallPolicyAssessment(); /** + * + * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder getFirewallPolicyAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder + getFirewallPolicyAssessmentOrBuilder(); /** + * + * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the fraudPreventionAssessment field is set. */ boolean hasFraudPreventionAssessment(); /** + * + * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The fraudPreventionAssessment. */ com.google.recaptchaenterprise.v1.FraudPreventionAssessment getFraudPreventionAssessment(); /** + * + * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder + getFraudPreventionAssessmentOrBuilder(); /** + * + * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the fraudSignals field is set. */ boolean hasFraudSignals(); /** + * + * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The fraudSignals. */ com.google.recaptchaenterprise.v1.FraudSignals getFraudSignals(); /** + * + * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java similarity index 70% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java index 3f0b94dac7d0..d7304cb6539e 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java @@ -1,56 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Metrics related to challenges.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ChallengeMetrics} */ -public final class ChallengeMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ChallengeMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) ChallengeMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ChallengeMetrics.newBuilder() to construct. private ChallengeMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ChallengeMetrics() { - } + + private ChallengeMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ChallengeMetrics(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ChallengeMetrics.class, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder.class); + com.google.recaptchaenterprise.v1.ChallengeMetrics.class, + com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder.class); } public static final int PAGELOAD_COUNT_FIELD_NUMBER = 1; private long pageloadCount_ = 0L; /** + * + * *
    * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
    * to a count of pageloads for pages that include reCAPTCHA.
    * 
* * int64 pageload_count = 1; + * * @return The pageloadCount. */ @java.lang.Override @@ -61,11 +82,14 @@ public long getPageloadCount() { public static final int NOCAPTCHA_COUNT_FIELD_NUMBER = 2; private long nocaptchaCount_ = 0L; /** + * + * *
    * Count of nocaptchas (successful verification without a challenge) issued.
    * 
* * int64 nocaptcha_count = 2; + * * @return The nocaptchaCount. */ @java.lang.Override @@ -76,12 +100,15 @@ public long getNocaptchaCount() { public static final int FAILED_COUNT_FIELD_NUMBER = 3; private long failedCount_ = 0L; /** + * + * *
    * Count of submitted challenge solutions that were incorrect or otherwise
    * deemed suspicious such that a subsequent challenge was triggered.
    * 
* * int64 failed_count = 3; + * * @return The failedCount. */ @java.lang.Override @@ -92,6 +119,8 @@ public long getFailedCount() { public static final int PASSED_COUNT_FIELD_NUMBER = 4; private long passedCount_ = 0L; /** + * + * *
    * Count of nocaptchas (successful verification without a challenge) plus
    * submitted challenge solutions that were correct and resulted in
@@ -99,6 +128,7 @@ public long getFailedCount() {
    * 
* * int64 passed_count = 4; + * * @return The passedCount. */ @java.lang.Override @@ -107,6 +137,7 @@ public long getPassedCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageloadCount_ != 0L) { output.writeInt64(1, pageloadCount_); } @@ -142,20 +172,16 @@ public int getSerializedSize() { size = 0; if (pageloadCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, pageloadCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, pageloadCount_); } if (nocaptchaCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, nocaptchaCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, nocaptchaCount_); } if (failedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, failedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCount_); } if (passedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, passedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, passedCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -165,21 +191,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.recaptchaenterprise.v1.ChallengeMetrics)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ChallengeMetrics other = (com.google.recaptchaenterprise.v1.ChallengeMetrics) obj; + com.google.recaptchaenterprise.v1.ChallengeMetrics other = + (com.google.recaptchaenterprise.v1.ChallengeMetrics) obj; - if (getPageloadCount() - != other.getPageloadCount()) return false; - if (getNocaptchaCount() - != other.getNocaptchaCount()) return false; - if (getFailedCount() - != other.getFailedCount()) return false; - if (getPassedCount() - != other.getPassedCount()) return false; + if (getPageloadCount() != other.getPageloadCount()) return false; + if (getNocaptchaCount() != other.getNocaptchaCount()) return false; + if (getFailedCount() != other.getFailedCount()) return false; + if (getPassedCount() != other.getPassedCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,148 +215,148 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PAGELOAD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPageloadCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPageloadCount()); hash = (37 * hash) + NOCAPTCHA_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNocaptchaCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNocaptchaCount()); hash = (37 * hash) + FAILED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCount()); hash = (37 * hash) + PASSED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPassedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPassedCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ChallengeMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metrics related to challenges.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ChallengeMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ChallengeMetrics.class, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder.class); + com.google.recaptchaenterprise.v1.ChallengeMetrics.class, + com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ChallengeMetrics.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -346,9 +369,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; } @java.lang.Override @@ -367,8 +390,11 @@ public com.google.recaptchaenterprise.v1.ChallengeMetrics build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ChallengeMetrics buildPartial() { - com.google.recaptchaenterprise.v1.ChallengeMetrics result = new com.google.recaptchaenterprise.v1.ChallengeMetrics(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.ChallengeMetrics result = + new com.google.recaptchaenterprise.v1.ChallengeMetrics(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -393,38 +419,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ChallengeMetrics re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ChallengeMetrics) { - return mergeFrom((com.google.recaptchaenterprise.v1.ChallengeMetrics)other); + return mergeFrom((com.google.recaptchaenterprise.v1.ChallengeMetrics) other); } else { super.mergeFrom(other); return this; @@ -432,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ChallengeMetrics other) { - if (other == com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()) + return this; if (other.getPageloadCount() != 0L) { setPageloadCount(other.getPageloadCount()); } @@ -471,32 +499,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - pageloadCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - nocaptchaCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - failedCount_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - passedCount_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + pageloadCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + nocaptchaCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + passedCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,16 +539,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long pageloadCount_ ; + private long pageloadCount_; /** + * + * *
      * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
      * to a count of pageloads for pages that include reCAPTCHA.
      * 
* * int64 pageload_count = 1; + * * @return The pageloadCount. */ @java.lang.Override @@ -523,12 +560,15 @@ public long getPageloadCount() { return pageloadCount_; } /** + * + * *
      * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
      * to a count of pageloads for pages that include reCAPTCHA.
      * 
* * int64 pageload_count = 1; + * * @param value The pageloadCount to set. * @return This builder for chaining. */ @@ -540,12 +580,15 @@ public Builder setPageloadCount(long value) { return this; } /** + * + * *
      * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
      * to a count of pageloads for pages that include reCAPTCHA.
      * 
* * int64 pageload_count = 1; + * * @return This builder for chaining. */ public Builder clearPageloadCount() { @@ -555,13 +598,16 @@ public Builder clearPageloadCount() { return this; } - private long nocaptchaCount_ ; + private long nocaptchaCount_; /** + * + * *
      * Count of nocaptchas (successful verification without a challenge) issued.
      * 
* * int64 nocaptcha_count = 2; + * * @return The nocaptchaCount. */ @java.lang.Override @@ -569,11 +615,14 @@ public long getNocaptchaCount() { return nocaptchaCount_; } /** + * + * *
      * Count of nocaptchas (successful verification without a challenge) issued.
      * 
* * int64 nocaptcha_count = 2; + * * @param value The nocaptchaCount to set. * @return This builder for chaining. */ @@ -585,11 +634,14 @@ public Builder setNocaptchaCount(long value) { return this; } /** + * + * *
      * Count of nocaptchas (successful verification without a challenge) issued.
      * 
* * int64 nocaptcha_count = 2; + * * @return This builder for chaining. */ public Builder clearNocaptchaCount() { @@ -599,14 +651,17 @@ public Builder clearNocaptchaCount() { return this; } - private long failedCount_ ; + private long failedCount_; /** + * + * *
      * Count of submitted challenge solutions that were incorrect or otherwise
      * deemed suspicious such that a subsequent challenge was triggered.
      * 
* * int64 failed_count = 3; + * * @return The failedCount. */ @java.lang.Override @@ -614,12 +669,15 @@ public long getFailedCount() { return failedCount_; } /** + * + * *
      * Count of submitted challenge solutions that were incorrect or otherwise
      * deemed suspicious such that a subsequent challenge was triggered.
      * 
* * int64 failed_count = 3; + * * @param value The failedCount to set. * @return This builder for chaining. */ @@ -631,12 +689,15 @@ public Builder setFailedCount(long value) { return this; } /** + * + * *
      * Count of submitted challenge solutions that were incorrect or otherwise
      * deemed suspicious such that a subsequent challenge was triggered.
      * 
* * int64 failed_count = 3; + * * @return This builder for chaining. */ public Builder clearFailedCount() { @@ -646,8 +707,10 @@ public Builder clearFailedCount() { return this; } - private long passedCount_ ; + private long passedCount_; /** + * + * *
      * Count of nocaptchas (successful verification without a challenge) plus
      * submitted challenge solutions that were correct and resulted in
@@ -655,6 +718,7 @@ public Builder clearFailedCount() {
      * 
* * int64 passed_count = 4; + * * @return The passedCount. */ @java.lang.Override @@ -662,6 +726,8 @@ public long getPassedCount() { return passedCount_; } /** + * + * *
      * Count of nocaptchas (successful verification without a challenge) plus
      * submitted challenge solutions that were correct and resulted in
@@ -669,6 +735,7 @@ public long getPassedCount() {
      * 
* * int64 passed_count = 4; + * * @param value The passedCount to set. * @return This builder for chaining. */ @@ -680,6 +747,8 @@ public Builder setPassedCount(long value) { return this; } /** + * + * *
      * Count of nocaptchas (successful verification without a challenge) plus
      * submitted challenge solutions that were correct and resulted in
@@ -687,6 +756,7 @@ public Builder setPassedCount(long value) {
      * 
* * int64 passed_count = 4; + * * @return This builder for chaining. */ public Builder clearPassedCount() { @@ -695,9 +765,9 @@ public Builder clearPassedCount() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -707,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) private static final com.google.recaptchaenterprise.v1.ChallengeMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ChallengeMetrics(); } @@ -721,27 +791,27 @@ public static com.google.recaptchaenterprise.v1.ChallengeMetrics getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChallengeMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChallengeMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -756,6 +826,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.ChallengeMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java similarity index 66% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java index af2dfd60ced4..6d6b7b04c449 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java @@ -1,45 +1,72 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ChallengeMetricsOrBuilder extends +public interface ChallengeMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
    * to a count of pageloads for pages that include reCAPTCHA.
    * 
* * int64 pageload_count = 1; + * * @return The pageloadCount. */ long getPageloadCount(); /** + * + * *
    * Count of nocaptchas (successful verification without a challenge) issued.
    * 
* * int64 nocaptcha_count = 2; + * * @return The nocaptchaCount. */ long getNocaptchaCount(); /** + * + * *
    * Count of submitted challenge solutions that were incorrect or otherwise
    * deemed suspicious such that a subsequent challenge was triggered.
    * 
* * int64 failed_count = 3; + * * @return The failedCount. */ long getFailedCount(); /** + * + * *
    * Count of nocaptchas (successful verification without a challenge) plus
    * submitted challenge solutions that were correct and resulted in
@@ -47,6 +74,7 @@ public interface ChallengeMetricsOrBuilder extends
    * 
* * int64 passed_count = 4; + * * @return The passedCount. */ long getPassedCount(); diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java similarity index 61% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java index b6b5126f5f3c..dfc24b8044ee 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The create assessment request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest} */ -public final class CreateAssessmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) CreateAssessmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateAssessmentRequest.newBuilder() to construct. private CreateAssessmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateAssessmentRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateAssessmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, com.google.recaptchaenterprise.v1.CreateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, + com.google.recaptchaenterprise.v1.CreateAssessmentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project in which the assessment will be created,
    * in the format `projects/{project}`.
    * 
* - * string parent = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which the assessment will be created,
    * in the format `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int ASSESSMENT_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.Assessment assessment_; /** + * + * *
    * Required. The assessment details.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the assessment field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasAssessment() { return assessment_ != null; } /** + * + * *
    * Required. The assessment details.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The assessment. */ @java.lang.Override public com.google.recaptchaenterprise.v1.Assessment getAssessment() { - return assessment_ == null ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() : assessment_; + return assessment_ == null + ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() + : assessment_; } /** + * + * *
    * Required. The assessment details.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.AssessmentOrBuilder getAssessmentOrBuilder() { - return assessment_ == null ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() : assessment_; + return assessment_ == null + ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() + : assessment_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (assessment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAssessment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAssessment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.recaptchaenterprise.v1.CreateAssessmentRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.CreateAssessmentRequest other = (com.google.recaptchaenterprise.v1.CreateAssessmentRequest) obj; + com.google.recaptchaenterprise.v1.CreateAssessmentRequest other = + (com.google.recaptchaenterprise.v1.CreateAssessmentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasAssessment() != other.hasAssessment()) return false; if (hasAssessment()) { - if (!getAssessment() - .equals(other.getAssessment())) return false; + if (!getAssessment().equals(other.getAssessment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.CreateAssessmentRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.CreateAssessmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The create assessment request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) com.google.recaptchaenterprise.v1.CreateAssessmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, com.google.recaptchaenterprise.v1.CreateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, + com.google.recaptchaenterprise.v1.CreateAssessmentRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.CreateAssessmentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; } @java.lang.Override @@ -371,8 +419,11 @@ public com.google.recaptchaenterprise.v1.CreateAssessmentRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.CreateAssessmentRequest buildPartial() { - com.google.recaptchaenterprise.v1.CreateAssessmentRequest result = new com.google.recaptchaenterprise.v1.CreateAssessmentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.CreateAssessmentRequest result = + new com.google.recaptchaenterprise.v1.CreateAssessmentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -383,9 +434,7 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateAssessmentReq result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.assessment_ = assessmentBuilder_ == null - ? assessment_ - : assessmentBuilder_.build(); + result.assessment_ = assessmentBuilder_ == null ? assessment_ : assessmentBuilder_.build(); } } @@ -393,38 +442,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateAssessmentReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.CreateAssessmentRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.CreateAssessmentRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.CreateAssessmentRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.CreateAssessmentRequest other) { - if (other == com.google.recaptchaenterprise.v1.CreateAssessmentRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.CreateAssessmentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +518,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAssessmentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAssessmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -494,23 +546,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * string parent = 1 [(.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; @@ -519,21 +576,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -541,30 +601,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * string 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() { @@ -574,18 +645,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +672,58 @@ public Builder setParentBytes( private com.google.recaptchaenterprise.v1.Assessment assessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Assessment, com.google.recaptchaenterprise.v1.Assessment.Builder, com.google.recaptchaenterprise.v1.AssessmentOrBuilder> assessmentBuilder_; + com.google.recaptchaenterprise.v1.Assessment, + com.google.recaptchaenterprise.v1.Assessment.Builder, + com.google.recaptchaenterprise.v1.AssessmentOrBuilder> + assessmentBuilder_; /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the assessment field is set. */ public boolean hasAssessment() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The assessment. */ public com.google.recaptchaenterprise.v1.Assessment getAssessment() { if (assessmentBuilder_ == null) { - return assessment_ == null ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() : assessment_; + return assessment_ == null + ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() + : assessment_; } else { return assessmentBuilder_.getMessage(); } } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAssessment(com.google.recaptchaenterprise.v1.Assessment value) { if (assessmentBuilder_ == null) { @@ -643,11 +739,15 @@ public Builder setAssessment(com.google.recaptchaenterprise.v1.Assessment value) return this; } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAssessment( com.google.recaptchaenterprise.v1.Assessment.Builder builderForValue) { @@ -661,17 +761,21 @@ public Builder setAssessment( return this; } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAssessment(com.google.recaptchaenterprise.v1.Assessment value) { if (assessmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - assessment_ != null && - assessment_ != com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && assessment_ != null + && assessment_ != com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance()) { getAssessmentBuilder().mergeFrom(value); } else { assessment_ = value; @@ -684,11 +788,15 @@ public Builder mergeAssessment(com.google.recaptchaenterprise.v1.Assessment valu return this; } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAssessment() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +809,15 @@ public Builder clearAssessment() { return this; } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.Assessment.Builder getAssessmentBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +825,55 @@ public com.google.recaptchaenterprise.v1.Assessment.Builder getAssessmentBuilder return getAssessmentFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.AssessmentOrBuilder getAssessmentOrBuilder() { if (assessmentBuilder_ != null) { return assessmentBuilder_.getMessageOrBuilder(); } else { - return assessment_ == null ? - com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() : assessment_; + return assessment_ == null + ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() + : assessment_; } } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Assessment, com.google.recaptchaenterprise.v1.Assessment.Builder, com.google.recaptchaenterprise.v1.AssessmentOrBuilder> + com.google.recaptchaenterprise.v1.Assessment, + com.google.recaptchaenterprise.v1.Assessment.Builder, + com.google.recaptchaenterprise.v1.AssessmentOrBuilder> getAssessmentFieldBuilder() { if (assessmentBuilder_ == null) { - assessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Assessment, com.google.recaptchaenterprise.v1.Assessment.Builder, com.google.recaptchaenterprise.v1.AssessmentOrBuilder>( - getAssessment(), - getParentForChildren(), - isClean()); + assessmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.Assessment, + com.google.recaptchaenterprise.v1.Assessment.Builder, + com.google.recaptchaenterprise.v1.AssessmentOrBuilder>( + getAssessment(), getParentForChildren(), isClean()); assessment_ = null; } return assessmentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) private static final com.google.recaptchaenterprise.v1.CreateAssessmentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.CreateAssessmentRequest(); } @@ -773,27 +897,27 @@ public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAssessmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAssessmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -808,6 +932,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.CreateAssessmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java new file mode 100644 index 000000000000..2711a486909e --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface CreateAssessmentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the project in which the assessment will be created,
+   * in the format `projects/{project}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the project in which the assessment will be created,
+   * in the format `projects/{project}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The assessment details.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assessment field is set. + */ + boolean hasAssessment(); + /** + * + * + *
+   * Required. The assessment details.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assessment. + */ + com.google.recaptchaenterprise.v1.Assessment getAssessment(); + /** + * + * + *
+   * Required. The assessment details.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.recaptchaenterprise.v1.AssessmentOrBuilder getAssessmentOrBuilder(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java similarity index 60% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java index b4688546a6d7..6c5e3b81c99e 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The create firewall policy request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest} */ -public final class CreateFirewallPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFirewallPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) CreateFirewallPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFirewallPolicyRequest.newBuilder() to construct. private CreateFirewallPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFirewallPolicyRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFirewallPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project this policy will apply to, in the format
    * `projects/{project}`.
    * 
* - * string parent = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project this policy will apply to, in the format
    * `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int FIREWALL_POLICY_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_; /** + * + * *
    * Required. Information to create the policy.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the firewallPolicy field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasFirewallPolicy() { return firewallPolicy_ != null; } /** + * + * *
    * Required. Information to create the policy.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The firewallPolicy. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } /** + * + * *
    * Required. Information to create the policy.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (firewallPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFirewallPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFirewallPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.recaptchaenterprise.v1.CreateFirewallPolicyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest other = (com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) obj; + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest other = + (com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasFirewallPolicy() != other.hasFirewallPolicy()) return false; if (hasFirewallPolicy()) { - if (!getFirewallPolicy() - .equals(other.getFirewallPolicy())) return false; + if (!getFirewallPolicy().equals(other.getFirewallPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The create firewall policy request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,13 +398,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.getDefaultInstance(); } @@ -371,21 +420,24 @@ public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest buildPartial() { - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest result = new com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest result = + new com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.firewallPolicy_ = firewallPolicyBuilder_ == null - ? firewallPolicy_ - : firewallPolicyBuilder_.build(); + result.firewallPolicy_ = + firewallPolicyBuilder_ == null ? firewallPolicy_ : firewallPolicyBuilder_.build(); } } @@ -393,38 +445,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateFirewallPolic public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +485,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest other) { - if (other == com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getFirewallPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getFirewallPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -494,23 +550,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * string parent = 1 [(.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; @@ -519,21 +580,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -541,30 +605,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * string 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() { @@ -574,18 +649,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +676,58 @@ public Builder setParentBytes( private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> firewallPolicyBuilder_; + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + firewallPolicyBuilder_; /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the firewallPolicy field is set. */ public boolean hasFirewallPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The firewallPolicy. */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { if (firewallPolicyBuilder_ == null) { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } else { return firewallPolicyBuilder_.getMessage(); } } /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { @@ -643,11 +743,15 @@ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolic return this; } /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFirewallPolicy( com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -661,17 +765,22 @@ public Builder setFirewallPolicy( return this; } /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - firewallPolicy_ != null && - firewallPolicy_ != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && firewallPolicy_ != null + && firewallPolicy_ + != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { getFirewallPolicyBuilder().mergeFrom(value); } else { firewallPolicy_ = value; @@ -684,11 +793,15 @@ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPol return this; } /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFirewallPolicy() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +814,15 @@ public Builder clearFirewallPolicy() { return this; } /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolicyBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +830,55 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolic return getFirewallPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { if (firewallPolicyBuilder_ != null) { return firewallPolicyBuilder_.getMessageOrBuilder(); } else { - return firewallPolicy_ == null ? - com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } } /** + * + * *
      * Required. Information to create the policy.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> getFirewallPolicyFieldBuilder() { if (firewallPolicyBuilder_ == null) { - firewallPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( - getFirewallPolicy(), - getParentForChildren(), - isClean()); + firewallPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( + getFirewallPolicy(), getParentForChildren(), isClean()); firewallPolicy_ = null; } return firewallPolicyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,12 +888,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) - private static final com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest(); } @@ -773,27 +903,27 @@ public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFirewallPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFirewallPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -808,6 +938,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..504aed905a88 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface CreateFirewallPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the project this policy will apply to, in the format
+   * `projects/{project}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the project this policy will apply to, in the format
+   * `projects/{project}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Information to create the policy.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallPolicy field is set. + */ + boolean hasFirewallPolicy(); + /** + * + * + *
+   * Required. Information to create the policy.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallPolicy. + */ + com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(); + /** + * + * + *
+   * Required. Information to create the policy.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java similarity index 62% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java index 52a0c95472c2..d1b969d031d3 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The create key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateKeyRequest} */ -public final class CreateKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) CreateKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateKeyRequest.newBuilder() to construct. private CreateKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateKeyRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateKeyRequest.class, com.google.recaptchaenterprise.v1.CreateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateKeyRequest.class, + com.google.recaptchaenterprise.v1.CreateKeyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project in which the key will be created, in the
    * format `projects/{project}`.
    * 
* - * string parent = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which the key will be created, in the
    * format `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int KEY_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.Key key_; /** + * + * *
    * Required. Information to create a reCAPTCHA Enterprise key.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the key field is set. */ @java.lang.Override @@ -107,11 +139,16 @@ public boolean hasKey() { return key_ != null; } /** + * + * *
    * Required. Information to create a reCAPTCHA Enterprise key.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The key. */ @java.lang.Override @@ -119,11 +156,15 @@ public com.google.recaptchaenterprise.v1.Key getKey() { return key_ == null ? com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; } /** + * + * *
    * Required. Information to create a reCAPTCHA Enterprise key.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { @@ -131,6 +172,7 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +184,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -163,8 +204,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (key_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getKey()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +214,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.recaptchaenterprise.v1.CreateKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.CreateKeyRequest other = (com.google.recaptchaenterprise.v1.CreateKeyRequest) obj; + com.google.recaptchaenterprise.v1.CreateKeyRequest other = + (com.google.recaptchaenterprise.v1.CreateKeyRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasKey() != other.hasKey()) return false; if (hasKey()) { - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +250,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.CreateKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The create key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateKeyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) com.google.recaptchaenterprise.v1.CreateKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateKeyRequest.class, com.google.recaptchaenterprise.v1.CreateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateKeyRequest.class, + com.google.recaptchaenterprise.v1.CreateKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.CreateKeyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +393,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; } @java.lang.Override @@ -371,8 +414,11 @@ public com.google.recaptchaenterprise.v1.CreateKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.CreateKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.CreateKeyRequest result = new com.google.recaptchaenterprise.v1.CreateKeyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.CreateKeyRequest result = + new com.google.recaptchaenterprise.v1.CreateKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -383,9 +429,7 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateKeyRequest re result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.key_ = keyBuilder_ == null - ? key_ - : keyBuilder_.build(); + result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); } } @@ -393,38 +437,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateKeyRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.CreateKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.CreateKeyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.CreateKeyRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +477,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.CreateKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.CreateKeyRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.CreateKeyRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +513,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getKeyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getKeyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -494,23 +541,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * string parent = 1 [(.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; @@ -519,21 +571,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -541,30 +596,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * string 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() { @@ -574,18 +640,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,24 +667,37 @@ public Builder setParentBytes( private com.google.recaptchaenterprise.v1.Key key_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> keyBuilder_; + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder> + keyBuilder_; /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The key. */ public com.google.recaptchaenterprise.v1.Key getKey() { @@ -623,11 +708,15 @@ public com.google.recaptchaenterprise.v1.Key getKey() { } } /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setKey(com.google.recaptchaenterprise.v1.Key value) { if (keyBuilder_ == null) { @@ -643,14 +732,17 @@ public Builder setKey(com.google.recaptchaenterprise.v1.Key value) { return this; } /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKey( - com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { + public Builder setKey(com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { @@ -661,17 +753,21 @@ public Builder setKey( return this; } /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeKey(com.google.recaptchaenterprise.v1.Key value) { if (keyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - key_ != null && - key_ != com.google.recaptchaenterprise.v1.Key.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && key_ != null + && key_ != com.google.recaptchaenterprise.v1.Key.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; @@ -684,11 +780,15 @@ public Builder mergeKey(com.google.recaptchaenterprise.v1.Key value) { return this; } /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +801,15 @@ public Builder clearKey() { return this; } /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.Key.Builder getKeyBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +817,53 @@ public com.google.recaptchaenterprise.v1.Key.Builder getKeyBuilder() { return getKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { - return key_ == null ? - com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; + return key_ == null ? com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; } } /** + * + * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { - keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder>( - getKey(), - getParentForChildren(), - isClean()); + keyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder>( + getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) private static final com.google.recaptchaenterprise.v1.CreateKeyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.CreateKeyRequest(); } @@ -773,27 +887,27 @@ public static com.google.recaptchaenterprise.v1.CreateKeyRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -808,6 +922,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.CreateKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java new file mode 100644 index 000000000000..af5223037f4a --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface CreateKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the project in which the key will be created, in the
+   * format `projects/{project}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the project in which the key will be created, in the
+   * format `projects/{project}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Information to create a reCAPTCHA Enterprise key.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the key field is set. + */ + boolean hasKey(); + /** + * + * + *
+   * Required. Information to create a reCAPTCHA Enterprise key.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The key. + */ + com.google.recaptchaenterprise.v1.Key getKey(); + /** + * + * + *
+   * Required. Information to create a reCAPTCHA Enterprise key.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java similarity index 62% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java index b425f6f2fb88..fd5f491b10d6 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The delete firewall policy request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest} */ -public final class DeleteFirewallPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteFirewallPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) DeleteFirewallPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFirewallPolicyRequest.newBuilder() to construct. private DeleteFirewallPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFirewallPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFirewallPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the policy to be deleted, in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* - * string name = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the policy to be deleted, in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest other = (com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) obj; + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest other = + (com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The delete firewall policy request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +323,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.getDefaultInstance(); } @@ -312,13 +345,17 @@ public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest buildPartial() { - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest result = new com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest result = + new com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,38 +366,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.DeleteFirewallPolic public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +406,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest other) { - if (other == com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -420,23 +462,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * string name = 1 [(.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; @@ -445,21 +492,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -467,30 +517,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * string 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() { @@ -500,27 +561,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +597,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) - private static final com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest(); } @@ -544,27 +612,27 @@ public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFirewallPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFirewallPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -579,6 +647,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..14bbb582f36b --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface DeleteFirewallPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the policy to be deleted, in the format
+   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the policy to be deleted, in the format
+   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
+   * 
+ * + * + * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java similarity index 63% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java index e7c0abb467e4..c4aca67819e4 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The delete key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.DeleteKeyRequest} */ -public final class DeleteKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) DeleteKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteKeyRequest.newBuilder() to construct. private DeleteKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, com.google.recaptchaenterprise.v1.DeleteKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, + com.google.recaptchaenterprise.v1.DeleteKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the key to be deleted, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * string name = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the key to be deleted, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.DeleteKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.DeleteKeyRequest other = (com.google.recaptchaenterprise.v1.DeleteKeyRequest) obj; + com.google.recaptchaenterprise.v1.DeleteKeyRequest other = + (com.google.recaptchaenterprise.v1.DeleteKeyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.DeleteKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The delete key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.DeleteKeyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) com.google.recaptchaenterprise.v1.DeleteKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, com.google.recaptchaenterprise.v1.DeleteKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, + com.google.recaptchaenterprise.v1.DeleteKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.DeleteKeyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; } @java.lang.Override @@ -312,8 +343,11 @@ public com.google.recaptchaenterprise.v1.DeleteKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.DeleteKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.DeleteKeyRequest result = new com.google.recaptchaenterprise.v1.DeleteKeyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.DeleteKeyRequest result = + new com.google.recaptchaenterprise.v1.DeleteKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +363,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.DeleteKeyRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.DeleteKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.DeleteKeyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.DeleteKeyRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.DeleteKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.DeleteKeyRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.DeleteKeyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -420,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string name = 1 [(.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; @@ -445,21 +488,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -467,30 +513,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string 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() { @@ -500,27 +557,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) private static final com.google.recaptchaenterprise.v1.DeleteKeyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.DeleteKeyRequest(); } @@ -544,27 +607,27 @@ public static com.google.recaptchaenterprise.v1.DeleteKeyRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -579,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.DeleteKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java new file mode 100644 index 000000000000..5a7e4729bb7c --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface DeleteKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the key to be deleted, in the format
+   * `projects/{project}/keys/{key}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the key to be deleted, in the format
+   * `projects/{project}/keys/{key}`.
+   * 
+ * + * + * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java similarity index 68% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java index 3f7efea5ae6b..fa18a774ce5b 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Information about a verification endpoint that can be used for 2FA.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} */ -public final class EndpointVerificationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EndpointVerificationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) EndpointVerificationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EndpointVerificationInfo.newBuilder() to construct. private EndpointVerificationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EndpointVerificationInfo() { requestToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EndpointVerificationInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.class, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder.class); + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.class, + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder.class); } private int endpointCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object endpoint_; + public enum EndpointCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EMAIL_ADDRESS(1), PHONE_NUMBER(2), ENDPOINT_NOT_SET(0); private final int value; + private EndpointCase(int value) { this.value = value; } @@ -68,41 +91,50 @@ public static EndpointCase valueOf(int value) { public static EndpointCase forNumber(int value) { switch (value) { - case 1: return EMAIL_ADDRESS; - case 2: return PHONE_NUMBER; - case 0: return ENDPOINT_NOT_SET; - default: return null; + case 1: + return EMAIL_ADDRESS; + case 2: + return PHONE_NUMBER; + case 0: + return ENDPOINT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public EndpointCase - getEndpointCase() { - return EndpointCase.forNumber( - endpointCase_); + public EndpointCase getEndpointCase() { + return EndpointCase.forNumber(endpointCase_); } public static final int EMAIL_ADDRESS_FIELD_NUMBER = 1; /** + * + * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; + * * @return Whether the emailAddress field is set. */ public boolean hasEmailAddress() { return endpointCase_ == 1; } /** + * + * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; + * * @return The emailAddress. */ public java.lang.String getEmailAddress() { @@ -113,8 +145,7 @@ public java.lang.String getEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (endpointCase_ == 1) { endpoint_ = s; @@ -123,23 +154,24 @@ public java.lang.String getEmailAddress() { } } /** + * + * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; + * * @return The bytes for emailAddress. */ - public com.google.protobuf.ByteString - getEmailAddressBytes() { + public com.google.protobuf.ByteString getEmailAddressBytes() { java.lang.Object ref = ""; if (endpointCase_ == 1) { ref = endpoint_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (endpointCase_ == 1) { endpoint_ = b; } @@ -151,24 +183,30 @@ public java.lang.String getEmailAddress() { public static final int PHONE_NUMBER_FIELD_NUMBER = 2; /** + * + * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; + * * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return endpointCase_ == 2; } /** + * + * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; + * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { @@ -179,8 +217,7 @@ public java.lang.String getPhoneNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (endpointCase_ == 2) { endpoint_ = s; @@ -189,24 +226,25 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; + * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = ""; if (endpointCase_ == 2) { ref = endpoint_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (endpointCase_ == 2) { endpoint_ = b; } @@ -217,15 +255,19 @@ public java.lang.String getPhoneNumber() { } public static final int REQUEST_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestToken_ = ""; /** + * + * *
    * Output only. Token to provide to the client to trigger endpoint
    * verification. It must be used within 15 minutes.
    * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestToken. */ @java.lang.Override @@ -234,30 +276,30 @@ public java.lang.String getRequestToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestToken_ = s; return s; } } /** + * + * *
    * Output only. Token to provide to the client to trigger endpoint
    * verification. It must be used within 15 minutes.
    * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for requestToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestTokenBytes() { + public com.google.protobuf.ByteString getRequestTokenBytes() { java.lang.Object ref = requestToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestToken_ = b; return b; } else { @@ -268,12 +310,17 @@ public java.lang.String getRequestToken() { public static final int LAST_VERIFICATION_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastVerificationTime_; /** + * + * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastVerificationTime field is set. */ @java.lang.Override @@ -281,32 +328,46 @@ public boolean hasLastVerificationTime() { return lastVerificationTime_ != null; } /** + * + * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastVerificationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastVerificationTime() { - return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; + return lastVerificationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastVerificationTime_; } /** + * + * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder() { - return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; + return lastVerificationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastVerificationTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,8 +379,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (endpointCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } @@ -351,8 +411,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestToken_); } if (lastVerificationTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLastVerificationTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastVerificationTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -362,29 +422,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.EndpointVerificationInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.EndpointVerificationInfo other = (com.google.recaptchaenterprise.v1.EndpointVerificationInfo) obj; + com.google.recaptchaenterprise.v1.EndpointVerificationInfo other = + (com.google.recaptchaenterprise.v1.EndpointVerificationInfo) obj; - if (!getRequestToken() - .equals(other.getRequestToken())) return false; + if (!getRequestToken().equals(other.getRequestToken())) return false; if (hasLastVerificationTime() != other.hasLastVerificationTime()) return false; if (hasLastVerificationTime()) { - if (!getLastVerificationTime() - .equals(other.getLastVerificationTime())) return false; + if (!getLastVerificationTime().equals(other.getLastVerificationTime())) return false; } if (!getEndpointCase().equals(other.getEndpointCase())) return false; switch (endpointCase_) { case 1: - if (!getEmailAddress() - .equals(other.getEmailAddress())) return false; + if (!getEmailAddress().equals(other.getEmailAddress())) return false; break; case 2: - if (!getPhoneNumber() - .equals(other.getPhoneNumber())) return false; + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; break; case 0: default: @@ -424,131 +481,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.EndpointVerificationInfo prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.EndpointVerificationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about a verification endpoint that can be used for 2FA.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.class, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder.class); + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.class, + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.EndpointVerificationInfo.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +627,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; } @java.lang.Override @@ -586,8 +648,11 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo build() { @java.lang.Override public com.google.recaptchaenterprise.v1.EndpointVerificationInfo buildPartial() { - com.google.recaptchaenterprise.v1.EndpointVerificationInfo result = new com.google.recaptchaenterprise.v1.EndpointVerificationInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.EndpointVerificationInfo result = + new com.google.recaptchaenterprise.v1.EndpointVerificationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -599,13 +664,15 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.EndpointVerificatio result.requestToken_ = requestToken_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.lastVerificationTime_ = lastVerificationTimeBuilder_ == null - ? lastVerificationTime_ - : lastVerificationTimeBuilder_.build(); + result.lastVerificationTime_ = + lastVerificationTimeBuilder_ == null + ? lastVerificationTime_ + : lastVerificationTimeBuilder_.build(); } } - private void buildPartialOneofs(com.google.recaptchaenterprise.v1.EndpointVerificationInfo result) { + private void buildPartialOneofs( + com.google.recaptchaenterprise.v1.EndpointVerificationInfo result) { result.endpointCase_ = endpointCase_; result.endpoint_ = this.endpoint_; } @@ -614,38 +681,39 @@ private void buildPartialOneofs(com.google.recaptchaenterprise.v1.EndpointVerifi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.EndpointVerificationInfo) { - return mergeFrom((com.google.recaptchaenterprise.v1.EndpointVerificationInfo)other); + return mergeFrom((com.google.recaptchaenterprise.v1.EndpointVerificationInfo) other); } else { super.mergeFrom(other); return this; @@ -653,7 +721,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.EndpointVerificationInfo other) { - if (other == com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()) + return this; if (!other.getRequestToken().isEmpty()) { requestToken_ = other.requestToken_; bitField0_ |= 0x00000004; @@ -663,21 +732,24 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.EndpointVerificationI mergeLastVerificationTime(other.getLastVerificationTime()); } switch (other.getEndpointCase()) { - case EMAIL_ADDRESS: { - endpointCase_ = 1; - endpoint_ = other.endpoint_; - onChanged(); - break; - } - case PHONE_NUMBER: { - endpointCase_ = 2; - endpoint_ = other.endpoint_; - onChanged(); - break; - } - case ENDPOINT_NOT_SET: { - break; - } + case EMAIL_ADDRESS: + { + endpointCase_ = 1; + endpoint_ = other.endpoint_; + onChanged(); + break; + } + case PHONE_NUMBER: + { + endpointCase_ = 2; + endpoint_ = other.endpoint_; + onChanged(); + break; + } + case ENDPOINT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -705,36 +777,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - endpointCase_ = 1; - endpoint_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - endpointCase_ = 2; - endpoint_ = s; - break; - } // case 18 - case 26: { - requestToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getLastVerificationTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + endpointCase_ = 1; + endpoint_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + endpointCase_ = 2; + endpoint_ = s; + break; + } // case 18 + case 26: + { + requestToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getLastVerificationTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -744,12 +820,12 @@ public Builder mergeFrom( } // finally return this; } + private int endpointCase_ = 0; private java.lang.Object endpoint_; - public EndpointCase - getEndpointCase() { - return EndpointCase.forNumber( - endpointCase_); + + public EndpointCase getEndpointCase() { + return EndpointCase.forNumber(endpointCase_); } public Builder clearEndpoint() { @@ -762,11 +838,14 @@ public Builder clearEndpoint() { private int bitField0_; /** + * + * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; + * * @return Whether the emailAddress field is set. */ @java.lang.Override @@ -774,11 +853,14 @@ public boolean hasEmailAddress() { return endpointCase_ == 1; } /** + * + * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; + * * @return The emailAddress. */ @java.lang.Override @@ -788,8 +870,7 @@ public java.lang.String getEmailAddress() { ref = endpoint_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (endpointCase_ == 1) { endpoint_ = s; @@ -800,24 +881,25 @@ public java.lang.String getEmailAddress() { } } /** + * + * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; + * * @return The bytes for emailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailAddressBytes() { + public com.google.protobuf.ByteString getEmailAddressBytes() { java.lang.Object ref = ""; if (endpointCase_ == 1) { ref = endpoint_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (endpointCase_ == 1) { endpoint_ = b; } @@ -827,28 +909,35 @@ public java.lang.String getEmailAddress() { } } /** + * + * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; + * * @param value The emailAddress to set. * @return This builder for chaining. */ - public Builder setEmailAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } endpointCase_ = 1; endpoint_ = value; onChanged(); return this; } /** + * + * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; + * * @return This builder for chaining. */ public Builder clearEmailAddress() { @@ -860,17 +949,21 @@ public Builder clearEmailAddress() { return this; } /** + * + * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; + * * @param value The bytes for emailAddress to set. * @return This builder for chaining. */ - public Builder setEmailAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); endpointCase_ = 1; endpoint_ = value; @@ -879,12 +972,15 @@ public Builder setEmailAddressBytes( } /** + * + * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; + * * @return Whether the phoneNumber field is set. */ @java.lang.Override @@ -892,12 +988,15 @@ public boolean hasPhoneNumber() { return endpointCase_ == 2; } /** + * + * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; + * * @return The phoneNumber. */ @java.lang.Override @@ -907,8 +1006,7 @@ public java.lang.String getPhoneNumber() { ref = endpoint_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (endpointCase_ == 2) { endpoint_ = s; @@ -919,25 +1017,26 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; + * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = ""; if (endpointCase_ == 2) { ref = endpoint_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (endpointCase_ == 2) { endpoint_ = b; } @@ -947,30 +1046,37 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; + * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } endpointCase_ = 2; endpoint_ = value; onChanged(); return this; } /** + * + * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; + * * @return This builder for chaining. */ public Builder clearPhoneNumber() { @@ -982,18 +1088,22 @@ public Builder clearPhoneNumber() { return this; } /** + * + * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; + * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); endpointCase_ = 2; endpoint_ = value; @@ -1003,19 +1113,21 @@ public Builder setPhoneNumberBytes( private java.lang.Object requestToken_ = ""; /** + * + * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestToken. */ public java.lang.String getRequestToken() { java.lang.Object ref = requestToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestToken_ = s; return s; @@ -1024,21 +1136,22 @@ public java.lang.String getRequestToken() { } } /** + * + * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for requestToken. */ - public com.google.protobuf.ByteString - getRequestTokenBytes() { + public com.google.protobuf.ByteString getRequestTokenBytes() { java.lang.Object ref = requestToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestToken_ = b; return b; } else { @@ -1046,30 +1159,37 @@ public java.lang.String getRequestToken() { } } /** + * + * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestToken to set. * @return This builder for chaining. */ - public Builder setRequestToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestToken() { @@ -1079,18 +1199,22 @@ public Builder clearRequestToken() { return this; } /** + * + * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for requestToken to set. * @return This builder for chaining. */ - public Builder setRequestTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestToken_ = value; bitField0_ |= 0x00000004; @@ -1100,42 +1224,61 @@ public Builder setRequestTokenBytes( private com.google.protobuf.Timestamp lastVerificationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastVerificationTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastVerificationTimeBuilder_; /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastVerificationTime field is set. */ public boolean hasLastVerificationTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastVerificationTime. */ public com.google.protobuf.Timestamp getLastVerificationTime() { if (lastVerificationTimeBuilder_ == null) { - return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; + return lastVerificationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastVerificationTime_; } else { return lastVerificationTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastVerificationTime(com.google.protobuf.Timestamp value) { if (lastVerificationTimeBuilder_ == null) { @@ -1151,15 +1294,18 @@ public Builder setLastVerificationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setLastVerificationTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastVerificationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastVerificationTimeBuilder_ == null) { lastVerificationTime_ = builderForValue.build(); } else { @@ -1170,18 +1316,22 @@ public Builder setLastVerificationTime( return this; } /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastVerificationTime(com.google.protobuf.Timestamp value) { if (lastVerificationTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - lastVerificationTime_ != null && - lastVerificationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && lastVerificationTime_ != null + && lastVerificationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastVerificationTimeBuilder().mergeFrom(value); } else { lastVerificationTime_ = value; @@ -1194,12 +1344,16 @@ public Builder mergeLastVerificationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastVerificationTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1212,12 +1366,16 @@ public Builder clearLastVerificationTime() { return this; } /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getLastVerificationTimeBuilder() { bitField0_ |= 0x00000008; @@ -1225,45 +1383,57 @@ public com.google.protobuf.Timestamp.Builder getLastVerificationTimeBuilder() { return getLastVerificationTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder() { if (lastVerificationTimeBuilder_ != null) { return lastVerificationTimeBuilder_.getMessageOrBuilder(); } else { - return lastVerificationTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; + return lastVerificationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastVerificationTime_; } } /** + * + * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastVerificationTimeFieldBuilder() { if (lastVerificationTimeBuilder_ == null) { - lastVerificationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastVerificationTime(), - getParentForChildren(), - isClean()); + lastVerificationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastVerificationTime(), getParentForChildren(), isClean()); lastVerificationTime_ = null; } return lastVerificationTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1273,12 +1443,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) private static final com.google.recaptchaenterprise.v1.EndpointVerificationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.EndpointVerificationInfo(); } @@ -1287,27 +1457,27 @@ public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EndpointVerificationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointVerificationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1322,6 +1492,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.EndpointVerificationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java similarity index 69% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java index 36e4adb1a24a..c800e82ab62a 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java @@ -1,122 +1,173 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface EndpointVerificationInfoOrBuilder extends +public interface EndpointVerificationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; + * * @return Whether the emailAddress field is set. */ boolean hasEmailAddress(); /** + * + * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; + * * @return The emailAddress. */ java.lang.String getEmailAddress(); /** + * + * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; + * * @return The bytes for emailAddress. */ - com.google.protobuf.ByteString - getEmailAddressBytes(); + com.google.protobuf.ByteString getEmailAddressBytes(); /** + * + * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; + * * @return Whether the phoneNumber field is set. */ boolean hasPhoneNumber(); /** + * + * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; + * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** + * + * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; + * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString - getPhoneNumberBytes(); + com.google.protobuf.ByteString getPhoneNumberBytes(); /** + * + * *
    * Output only. Token to provide to the client to trigger endpoint
    * verification. It must be used within 15 minutes.
    * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestToken. */ java.lang.String getRequestToken(); /** + * + * *
    * Output only. Token to provide to the client to trigger endpoint
    * verification. It must be used within 15 minutes.
    * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for requestToken. */ - com.google.protobuf.ByteString - getRequestTokenBytes(); + com.google.protobuf.ByteString getRequestTokenBytes(); /** + * + * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastVerificationTime field is set. */ boolean hasLastVerificationTime(); /** + * + * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastVerificationTime. */ com.google.protobuf.Timestamp getLastVerificationTime(); /** + * + * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder(); diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java similarity index 72% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java index 14f946ca5386..877775a162f0 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The event being assessed.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Event} */ -public final class Event extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Event extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.Event) EventOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Event() { token_ = ""; siteKey_ = ""; @@ -28,40 +46,44 @@ private Event() { hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; requestedUri_ = ""; ja3_ = ""; - headers_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Event(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Event.class, com.google.recaptchaenterprise.v1.Event.Builder.class); + com.google.recaptchaenterprise.v1.Event.class, + com.google.recaptchaenterprise.v1.Event.Builder.class); } public static final int TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object token_ = ""; /** + * + * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The token. */ @java.lang.Override @@ -70,30 +92,30 @@ public java.lang.String getToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } } /** + * + * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for token. */ @java.lang.Override - public com.google.protobuf.ByteString - getTokenBytes() { + public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); token_ = b; return b; } else { @@ -102,15 +124,19 @@ public java.lang.String getToken() { } public static final int SITE_KEY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object siteKey_ = ""; /** + * + * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The siteKey. */ @java.lang.Override @@ -119,30 +145,30 @@ public java.lang.String getSiteKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteKey_ = s; return s; } } /** + * + * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for siteKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getSiteKeyBytes() { + public com.google.protobuf.ByteString getSiteKeyBytes() { java.lang.Object ref = siteKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); siteKey_ = b; return b; } else { @@ -151,15 +177,19 @@ public java.lang.String getSiteKey() { } public static final int USER_AGENT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object userAgent_ = ""; /** + * + * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ @java.lang.Override @@ -168,30 +198,30 @@ public java.lang.String getUserAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** + * + * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -200,15 +230,19 @@ public java.lang.String getUserAgent() { } public static final int USER_IP_ADDRESS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object userIpAddress_ = ""; /** + * + * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userIpAddress. */ @java.lang.Override @@ -217,30 +251,30 @@ public java.lang.String getUserIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userIpAddress_ = s; return s; } } /** + * + * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userIpAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserIpAddressBytes() { + public com.google.protobuf.ByteString getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userIpAddress_ = b; return b; } else { @@ -249,9 +283,12 @@ public java.lang.String getUserIpAddress() { } public static final int EXPECTED_ACTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object expectedAction_ = ""; /** + * + * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -259,6 +296,7 @@ public java.lang.String getUserIpAddress() {
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expectedAction. */ @java.lang.Override @@ -267,14 +305,15 @@ public java.lang.String getExpectedAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expectedAction_ = s; return s; } } /** + * + * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -282,16 +321,15 @@ public java.lang.String getExpectedAction() {
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for expectedAction. */ @java.lang.Override - public com.google.protobuf.ByteString - getExpectedActionBytes() { + public com.google.protobuf.ByteString getExpectedActionBytes() { java.lang.Object ref = expectedAction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); expectedAction_ = b; return b; } else { @@ -302,25 +340,32 @@ public java.lang.String getExpectedAction() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Optional. Deprecated: use `user_info.account_id` instead.
    * Unique stable hashed user identifier for the request. The identifier must
    * be hashed using hmac-sha256 with stable secret.
    * 
* - * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 * @return The hashedAccountId. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getHashedAccountId() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } public static final int EXPRESS_FIELD_NUMBER = 14; private boolean express_ = false; /** + * + * *
    * Optional. Flag for a reCAPTCHA express request for an assessment without a
    * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -328,6 +373,7 @@ public java.lang.String getExpectedAction() {
    * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The express. */ @java.lang.Override @@ -336,14 +382,18 @@ public boolean getExpress() { } public static final int REQUESTED_URI_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object requestedUri_ = ""; /** + * + * *
    * Optional. The URI resource the user requested that triggered an assessment.
    * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestedUri. */ @java.lang.Override @@ -352,29 +402,29 @@ public java.lang.String getRequestedUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestedUri_ = s; return s; } } /** + * + * *
    * Optional. The URI resource the user requested that triggered an assessment.
    * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestedUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestedUriBytes() { + public com.google.protobuf.ByteString getRequestedUriBytes() { java.lang.Object ref = requestedUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestedUri_ = b; return b; } else { @@ -385,6 +435,8 @@ public java.lang.String getRequestedUri() { public static final int WAF_TOKEN_ASSESSMENT_FIELD_NUMBER = 9; private boolean wafTokenAssessment_ = false; /** + * + * *
    * Optional. Flag for running WAF token assessment.
    * If enabled, the token must be specified, and have been created by a
@@ -392,6 +444,7 @@ public java.lang.String getRequestedUri() {
    * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The wafTokenAssessment. */ @java.lang.Override @@ -400,14 +453,18 @@ public boolean getWafTokenAssessment() { } public static final int JA3_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object ja3_ = ""; /** + * + * *
    * Optional. JA3 fingerprint for SSL clients.
    * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ja3. */ @java.lang.Override @@ -416,29 +473,29 @@ public java.lang.String getJa3() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ja3_ = s; return s; } } /** + * + * *
    * Optional. JA3 fingerprint for SSL clients.
    * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ja3. */ @java.lang.Override - public com.google.protobuf.ByteString - getJa3Bytes() { + public com.google.protobuf.ByteString getJa3Bytes() { java.lang.Object ref = ja3_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ja3_ = b; return b; } else { @@ -447,38 +504,47 @@ public java.lang.String getJa3() { } public static final int HEADERS_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the headers. */ - public com.google.protobuf.ProtocolStringList - getHeadersList() { + public com.google.protobuf.ProtocolStringList getHeadersList() { return headers_; } /** + * + * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of headers. */ public int getHeadersCount() { return headers_.size(); } /** + * + * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The headers at the given index. */ @@ -486,22 +552,26 @@ public java.lang.String getHeaders(int index) { return headers_.get(index); } /** + * + * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - public com.google.protobuf.ByteString - getHeadersBytes(int index) { + public com.google.protobuf.ByteString getHeadersBytes(int index) { return headers_.getByteString(index); } public static final int FIREWALL_POLICY_EVALUATION_FIELD_NUMBER = 12; private boolean firewallPolicyEvaluation_ = false; /** + * + * *
    * Optional. Flag for enabling firewall policy config assessment.
    * If this flag is enabled, the firewall policy will be evaluated and a
@@ -509,6 +579,7 @@ public java.lang.String getHeaders(int index) {
    * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The firewallPolicyEvaluation. */ @java.lang.Override @@ -519,13 +590,18 @@ public boolean getFirewallPolicyEvaluation() { public static final int TRANSACTION_DATA_FIELD_NUMBER = 13; private com.google.recaptchaenterprise.v1.TransactionData transactionData_; /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionData field is set. */ @java.lang.Override @@ -533,36 +609,51 @@ public boolean hasTransactionData() { return transactionData_ != null; } /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionData. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData getTransactionData() { - return transactionData_ == null ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() : transactionData_; + return transactionData_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() + : transactionData_; } /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransactionDataOrBuilder() { - return transactionData_ == null ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() : transactionData_; + return transactionData_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() + : transactionData_; } public static final int USER_INFO_FIELD_NUMBER = 15; private com.google.recaptchaenterprise.v1.UserInfo userInfo_; /** + * + * *
    * Optional. Information about the user that generates this event, when they
    * can be identified. They are often identified through the use of an account
@@ -570,7 +661,10 @@ public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransaction
    * identifiers for guest actions like checkout.
    * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -578,6 +672,8 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** + * + * *
    * Optional. Information about the user that generates this event, when they
    * can be identified. They are often identified through the use of an account
@@ -585,14 +681,21 @@ public boolean hasUserInfo() {
    * identifiers for guest actions like checkout.
    * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The userInfo. */ @java.lang.Override public com.google.recaptchaenterprise.v1.UserInfo getUserInfo() { - return userInfo_ == null ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() + : userInfo_; } /** + * + * *
    * Optional. Information about the user that generates this event, when they
    * can be identified. They are often identified through the use of an account
@@ -600,14 +703,19 @@ public com.google.recaptchaenterprise.v1.UserInfo getUserInfo() {
    * identifiers for guest actions like checkout.
    * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() + : userInfo_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -619,8 +727,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); } @@ -688,15 +795,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, expectedAction_); } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, hashedAccountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestedUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, requestedUri_); } if (wafTokenAssessment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, wafTokenAssessment_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, wafTokenAssessment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ja3_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ja3_); @@ -710,20 +815,16 @@ public int getSerializedSize() { size += 1 * getHeadersList().size(); } if (firewallPolicyEvaluation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, firewallPolicyEvaluation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, firewallPolicyEvaluation_); } if (transactionData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getTransactionData()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTransactionData()); } if (express_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, express_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, express_); } if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getUserInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUserInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -733,46 +834,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.recaptchaenterprise.v1.Event)) { return super.equals(obj); } com.google.recaptchaenterprise.v1.Event other = (com.google.recaptchaenterprise.v1.Event) obj; - if (!getToken() - .equals(other.getToken())) return false; - if (!getSiteKey() - .equals(other.getSiteKey())) return false; - if (!getUserAgent() - .equals(other.getUserAgent())) return false; - if (!getUserIpAddress() - .equals(other.getUserIpAddress())) return false; - if (!getExpectedAction() - .equals(other.getExpectedAction())) return false; - if (!getHashedAccountId() - .equals(other.getHashedAccountId())) return false; - if (getExpress() - != other.getExpress()) return false; - if (!getRequestedUri() - .equals(other.getRequestedUri())) return false; - if (getWafTokenAssessment() - != other.getWafTokenAssessment()) return false; - if (!getJa3() - .equals(other.getJa3())) return false; - if (!getHeadersList() - .equals(other.getHeadersList())) return false; - if (getFirewallPolicyEvaluation() - != other.getFirewallPolicyEvaluation()) return false; + if (!getToken().equals(other.getToken())) return false; + if (!getSiteKey().equals(other.getSiteKey())) return false; + if (!getUserAgent().equals(other.getUserAgent())) return false; + if (!getUserIpAddress().equals(other.getUserIpAddress())) return false; + if (!getExpectedAction().equals(other.getExpectedAction())) return false; + if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; + if (getExpress() != other.getExpress()) return false; + if (!getRequestedUri().equals(other.getRequestedUri())) return false; + if (getWafTokenAssessment() != other.getWafTokenAssessment()) return false; + if (!getJa3().equals(other.getJa3())) return false; + if (!getHeadersList().equals(other.getHeadersList())) return false; + if (getFirewallPolicyEvaluation() != other.getFirewallPolicyEvaluation()) return false; if (hasTransactionData() != other.hasTransactionData()) return false; if (hasTransactionData()) { - if (!getTransactionData() - .equals(other.getTransactionData())) return false; + if (!getTransactionData().equals(other.getTransactionData())) return false; } if (hasUserInfo() != other.hasUserInfo()) return false; if (hasUserInfo()) { - if (!getUserInfo() - .equals(other.getUserInfo())) return false; + if (!getUserInfo().equals(other.getUserInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -798,13 +885,11 @@ public int hashCode() { hash = (37 * hash) + HASHED_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getHashedAccountId().hashCode(); hash = (37 * hash) + EXPRESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExpress()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpress()); hash = (37 * hash) + REQUESTED_URI_FIELD_NUMBER; hash = (53 * hash) + getRequestedUri().hashCode(); hash = (37 * hash) + WAF_TOKEN_ASSESSMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWafTokenAssessment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWafTokenAssessment()); hash = (37 * hash) + JA3_FIELD_NUMBER; hash = (53 * hash) + getJa3().hashCode(); if (getHeadersCount() > 0) { @@ -812,8 +897,7 @@ public int hashCode() { hash = (53 * hash) + getHeadersList().hashCode(); } hash = (37 * hash) + FIREWALL_POLICY_EVALUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFirewallPolicyEvaluation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFirewallPolicyEvaluation()); if (hasTransactionData()) { hash = (37 * hash) + TRANSACTION_DATA_FIELD_NUMBER; hash = (53 * hash) + getTransactionData().hashCode(); @@ -827,132 +911,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.Event parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.Event parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Event parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Event parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Event parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.Event parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Event parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.Event parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.Event parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Event parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.Event parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The event being assessed.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Event} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.Event) com.google.recaptchaenterprise.v1.EventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Event.class, com.google.recaptchaenterprise.v1.Event.Builder.class); + com.google.recaptchaenterprise.v1.Event.class, + com.google.recaptchaenterprise.v1.Event.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.Event.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -967,8 +1055,7 @@ public Builder clear() { requestedUri_ = ""; wafTokenAssessment_ = false; ja3_ = ""; - headers_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); firewallPolicyEvaluation_ = false; transactionData_ = null; if (transactionDataBuilder_ != null) { @@ -984,9 +1071,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; } @java.lang.Override @@ -1005,8 +1092,11 @@ public com.google.recaptchaenterprise.v1.Event build() { @java.lang.Override public com.google.recaptchaenterprise.v1.Event buildPartial() { - com.google.recaptchaenterprise.v1.Event result = new com.google.recaptchaenterprise.v1.Event(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.Event result = + new com.google.recaptchaenterprise.v1.Event(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1051,14 +1141,11 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Event result) { result.firewallPolicyEvaluation_ = firewallPolicyEvaluation_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.transactionData_ = transactionDataBuilder_ == null - ? transactionData_ - : transactionDataBuilder_.build(); + result.transactionData_ = + transactionDataBuilder_ == null ? transactionData_ : transactionDataBuilder_.build(); } if (((from_bitField0_ & 0x00002000) != 0)) { - result.userInfo_ = userInfoBuilder_ == null - ? userInfo_ - : userInfoBuilder_.build(); + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); } } @@ -1066,38 +1153,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Event result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.Event) { - return mergeFrom((com.google.recaptchaenterprise.v1.Event)other); + return mergeFrom((com.google.recaptchaenterprise.v1.Event) other); } else { super.mergeFrom(other); return this; @@ -1195,87 +1283,98 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - token_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - siteKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - userAgent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - userIpAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - expectedAction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: { - requestedUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: { - wafTokenAssessment_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - ja3_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - ensureHeadersIsMutable(); - headers_.add(s); - break; - } // case 90 - case 96: { - firewallPolicyEvaluation_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 106: { - input.readMessage( - getTransactionDataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 112: { - express_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 112 - case 122: { - input.readMessage( - getUserInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 122 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + siteKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + userAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + userIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + expectedAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: + { + requestedUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + wafTokenAssessment_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + ja3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureHeadersIsMutable(); + headers_.add(s); + break; + } // case 90 + case 96: + { + firewallPolicyEvaluation_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: + { + input.readMessage(getTransactionDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + express_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 112 + case 122: + { + input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1285,23 +1384,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object token_ = ""; /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; @@ -1310,21 +1412,22 @@ public java.lang.String getToken() { } } /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for token. */ - public com.google.protobuf.ByteString - getTokenBytes() { + public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); token_ = b; return b; } else { @@ -1332,30 +1435,37 @@ public java.lang.String getToken() { } } /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The token to set. * @return This builder for chaining. */ - public Builder setToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } token_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearToken() { @@ -1365,18 +1475,22 @@ public Builder clearToken() { return this; } /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for token to set. * @return This builder for chaining. */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); token_ = value; bitField0_ |= 0x00000001; @@ -1386,19 +1500,21 @@ public Builder setTokenBytes( private java.lang.Object siteKey_ = ""; /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The siteKey. */ public java.lang.String getSiteKey() { java.lang.Object ref = siteKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteKey_ = s; return s; @@ -1407,21 +1523,22 @@ public java.lang.String getSiteKey() { } } /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for siteKey. */ - public com.google.protobuf.ByteString - getSiteKeyBytes() { + public com.google.protobuf.ByteString getSiteKeyBytes() { java.lang.Object ref = siteKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); siteKey_ = b; return b; } else { @@ -1429,30 +1546,37 @@ public java.lang.String getSiteKey() { } } /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The siteKey to set. * @return This builder for chaining. */ - public Builder setSiteKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSiteKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } siteKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSiteKey() { @@ -1462,18 +1586,22 @@ public Builder clearSiteKey() { return this; } /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for siteKey to set. * @return This builder for chaining. */ - public Builder setSiteKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSiteKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); siteKey_ = value; bitField0_ |= 0x00000002; @@ -1483,19 +1611,21 @@ public Builder setSiteKeyBytes( private java.lang.Object userAgent_ = ""; /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; @@ -1504,21 +1634,22 @@ public java.lang.String getUserAgent() { } } /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1526,30 +1657,37 @@ public java.lang.String getUserAgent() { } } /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } userAgent_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -1559,18 +1697,22 @@ public Builder clearUserAgent() { return this; } /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); userAgent_ = value; bitField0_ |= 0x00000004; @@ -1580,19 +1722,21 @@ public Builder setUserAgentBytes( private java.lang.Object userIpAddress_ = ""; /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userIpAddress. */ public java.lang.String getUserIpAddress() { java.lang.Object ref = userIpAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userIpAddress_ = s; return s; @@ -1601,21 +1745,22 @@ public java.lang.String getUserIpAddress() { } } /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userIpAddress. */ - public com.google.protobuf.ByteString - getUserIpAddressBytes() { + public com.google.protobuf.ByteString getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userIpAddress_ = b; return b; } else { @@ -1623,30 +1768,37 @@ public java.lang.String getUserIpAddress() { } } /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The userIpAddress to set. * @return This builder for chaining. */ - public Builder setUserIpAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } userIpAddress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUserIpAddress() { @@ -1656,18 +1808,22 @@ public Builder clearUserIpAddress() { return this; } /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for userIpAddress to set. * @return This builder for chaining. */ - public Builder setUserIpAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); userIpAddress_ = value; bitField0_ |= 0x00000008; @@ -1677,6 +1833,8 @@ public Builder setUserIpAddressBytes( private java.lang.Object expectedAction_ = ""; /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1684,13 +1842,13 @@ public Builder setUserIpAddressBytes(
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expectedAction. */ public java.lang.String getExpectedAction() { java.lang.Object ref = expectedAction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expectedAction_ = s; return s; @@ -1699,6 +1857,8 @@ public java.lang.String getExpectedAction() { } } /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1706,15 +1866,14 @@ public java.lang.String getExpectedAction() {
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for expectedAction. */ - public com.google.protobuf.ByteString - getExpectedActionBytes() { + public com.google.protobuf.ByteString getExpectedActionBytes() { java.lang.Object ref = expectedAction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); expectedAction_ = b; return b; } else { @@ -1722,6 +1881,8 @@ public java.lang.String getExpectedAction() { } } /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1729,18 +1890,22 @@ public java.lang.String getExpectedAction() {
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The expectedAction to set. * @return This builder for chaining. */ - public Builder setExpectedAction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExpectedAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } expectedAction_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1748,6 +1913,7 @@ public Builder setExpectedAction(
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExpectedAction() { @@ -1757,6 +1923,8 @@ public Builder clearExpectedAction() { return this; } /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1764,12 +1932,14 @@ public Builder clearExpectedAction() {
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for expectedAction to set. * @return This builder for chaining. */ - public Builder setExpectedActionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); expectedAction_ = value; bitField0_ |= 0x00000010; @@ -1779,62 +1949,84 @@ public Builder setExpectedActionBytes( private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. Deprecated: use `user_info.account_id` instead.
      * Unique stable hashed user identifier for the request. The identifier must
      * be hashed using hmac-sha256 with stable secret.
      * 
* - * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 + * + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 * @return The hashedAccountId. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getHashedAccountId() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** + * + * *
      * Optional. Deprecated: use `user_info.account_id` instead.
      * Unique stable hashed user identifier for the request. The identifier must
      * be hashed using hmac-sha256 with stable secret.
      * 
* - * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 + * + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 * @param value The hashedAccountId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setHashedAccountId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } hashedAccountId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. Deprecated: use `user_info.account_id` instead.
      * Unique stable hashed user identifier for the request. The identifier must
      * be hashed using hmac-sha256 with stable secret.
      * 
* - * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 + * + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearHashedAccountId() { + @java.lang.Deprecated + public Builder clearHashedAccountId() { bitField0_ = (bitField0_ & ~0x00000020); hashedAccountId_ = getDefaultInstance().getHashedAccountId(); onChanged(); return this; } - private boolean express_ ; + private boolean express_; /** + * + * *
      * Optional. Flag for a reCAPTCHA express request for an assessment without a
      * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -1842,6 +2034,7 @@ public Builder setExpectedActionBytes(
      * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The express. */ @java.lang.Override @@ -1849,6 +2042,8 @@ public boolean getExpress() { return express_; } /** + * + * *
      * Optional. Flag for a reCAPTCHA express request for an assessment without a
      * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -1856,6 +2051,7 @@ public boolean getExpress() {
      * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The express to set. * @return This builder for chaining. */ @@ -1867,6 +2063,8 @@ public Builder setExpress(boolean value) { return this; } /** + * + * *
      * Optional. Flag for a reCAPTCHA express request for an assessment without a
      * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -1874,6 +2072,7 @@ public Builder setExpress(boolean value) {
      * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExpress() { @@ -1885,18 +2084,20 @@ public Builder clearExpress() { private java.lang.Object requestedUri_ = ""; /** + * + * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestedUri. */ public java.lang.String getRequestedUri() { java.lang.Object ref = requestedUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestedUri_ = s; return s; @@ -1905,20 +2106,21 @@ public java.lang.String getRequestedUri() { } } /** + * + * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestedUri. */ - public com.google.protobuf.ByteString - getRequestedUriBytes() { + public com.google.protobuf.ByteString getRequestedUriBytes() { java.lang.Object ref = requestedUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestedUri_ = b; return b; } else { @@ -1926,28 +2128,35 @@ public java.lang.String getRequestedUri() { } } /** + * + * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestedUri to set. * @return This builder for chaining. */ - public Builder setRequestedUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestedUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestedUri_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestedUri() { @@ -1957,17 +2166,21 @@ public Builder clearRequestedUri() { return this; } /** + * + * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestedUri to set. * @return This builder for chaining. */ - public Builder setRequestedUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestedUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestedUri_ = value; bitField0_ |= 0x00000080; @@ -1975,8 +2188,10 @@ public Builder setRequestedUriBytes( return this; } - private boolean wafTokenAssessment_ ; + private boolean wafTokenAssessment_; /** + * + * *
      * Optional. Flag for running WAF token assessment.
      * If enabled, the token must be specified, and have been created by a
@@ -1984,6 +2199,7 @@ public Builder setRequestedUriBytes(
      * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The wafTokenAssessment. */ @java.lang.Override @@ -1991,6 +2207,8 @@ public boolean getWafTokenAssessment() { return wafTokenAssessment_; } /** + * + * *
      * Optional. Flag for running WAF token assessment.
      * If enabled, the token must be specified, and have been created by a
@@ -1998,6 +2216,7 @@ public boolean getWafTokenAssessment() {
      * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The wafTokenAssessment to set. * @return This builder for chaining. */ @@ -2009,6 +2228,8 @@ public Builder setWafTokenAssessment(boolean value) { return this; } /** + * + * *
      * Optional. Flag for running WAF token assessment.
      * If enabled, the token must be specified, and have been created by a
@@ -2016,6 +2237,7 @@ public Builder setWafTokenAssessment(boolean value) {
      * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWafTokenAssessment() { @@ -2027,18 +2249,20 @@ public Builder clearWafTokenAssessment() { private java.lang.Object ja3_ = ""; /** + * + * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ja3. */ public java.lang.String getJa3() { java.lang.Object ref = ja3_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ja3_ = s; return s; @@ -2047,20 +2271,21 @@ public java.lang.String getJa3() { } } /** + * + * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ja3. */ - public com.google.protobuf.ByteString - getJa3Bytes() { + public com.google.protobuf.ByteString getJa3Bytes() { java.lang.Object ref = ja3_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ja3_ = b; return b; } else { @@ -2068,28 +2293,35 @@ public java.lang.String getJa3() { } } /** + * + * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ja3 to set. * @return This builder for chaining. */ - public Builder setJa3( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setJa3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ja3_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJa3() { @@ -2099,17 +2331,21 @@ public Builder clearJa3() { return this; } /** + * + * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for ja3 to set. * @return This builder for chaining. */ - public Builder setJa3Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setJa3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ja3_ = value; bitField0_ |= 0x00000200; @@ -2119,6 +2355,7 @@ public Builder setJa3Bytes( private com.google.protobuf.LazyStringArrayList headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureHeadersIsMutable() { if (!headers_.isModifiable()) { headers_ = new com.google.protobuf.LazyStringArrayList(headers_); @@ -2126,35 +2363,43 @@ private void ensureHeadersIsMutable() { bitField0_ |= 0x00000400; } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the headers. */ - public com.google.protobuf.ProtocolStringList - getHeadersList() { + public com.google.protobuf.ProtocolStringList getHeadersList() { headers_.makeImmutable(); return headers_; } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of headers. */ public int getHeadersCount() { return headers_.size(); } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The headers at the given index. */ @@ -2162,31 +2407,37 @@ public java.lang.String getHeaders(int index) { return headers_.get(index); } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - public com.google.protobuf.ByteString - getHeadersBytes(int index) { + public com.google.protobuf.ByteString getHeadersBytes(int index) { return headers_.getByteString(index); } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The headers to set. * @return This builder for chaining. */ - public Builder setHeaders( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHeaders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureHeadersIsMutable(); headers_.set(index, value); bitField0_ |= 0x00000400; @@ -2194,17 +2445,21 @@ public Builder setHeaders( return this; } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The headers to add. * @return This builder for chaining. */ - public Builder addHeaders( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addHeaders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureHeadersIsMutable(); headers_.add(value); bitField0_ |= 0x00000400; @@ -2212,50 +2467,58 @@ public Builder addHeaders( return this; } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The headers to add. * @return This builder for chaining. */ - public Builder addAllHeaders( - java.lang.Iterable values) { + public Builder addAllHeaders(java.lang.Iterable values) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHeaders() { - headers_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400);; + headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + ; onChanged(); return this; } /** + * + * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the headers to add. * @return This builder for chaining. */ - public Builder addHeadersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addHeadersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureHeadersIsMutable(); headers_.add(value); @@ -2264,8 +2527,10 @@ public Builder addHeadersBytes( return this; } - private boolean firewallPolicyEvaluation_ ; + private boolean firewallPolicyEvaluation_; /** + * + * *
      * Optional. Flag for enabling firewall policy config assessment.
      * If this flag is enabled, the firewall policy will be evaluated and a
@@ -2273,6 +2538,7 @@ public Builder addHeadersBytes(
      * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The firewallPolicyEvaluation. */ @java.lang.Override @@ -2280,6 +2546,8 @@ public boolean getFirewallPolicyEvaluation() { return firewallPolicyEvaluation_; } /** + * + * *
      * Optional. Flag for enabling firewall policy config assessment.
      * If this flag is enabled, the firewall policy will be evaluated and a
@@ -2287,6 +2555,7 @@ public boolean getFirewallPolicyEvaluation() {
      * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The firewallPolicyEvaluation to set. * @return This builder for chaining. */ @@ -2298,6 +2567,8 @@ public Builder setFirewallPolicyEvaluation(boolean value) { return this; } /** + * + * *
      * Optional. Flag for enabling firewall policy config assessment.
      * If this flag is enabled, the firewall policy will be evaluated and a
@@ -2305,6 +2576,7 @@ public Builder setFirewallPolicyEvaluation(boolean value) {
      * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFirewallPolicyEvaluation() { @@ -2316,45 +2588,64 @@ public Builder clearFirewallPolicyEvaluation() { private com.google.recaptchaenterprise.v1.TransactionData transactionData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData, com.google.recaptchaenterprise.v1.TransactionData.Builder, com.google.recaptchaenterprise.v1.TransactionDataOrBuilder> transactionDataBuilder_; + com.google.recaptchaenterprise.v1.TransactionData, + com.google.recaptchaenterprise.v1.TransactionData.Builder, + com.google.recaptchaenterprise.v1.TransactionDataOrBuilder> + transactionDataBuilder_; /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionData field is set. */ public boolean hasTransactionData() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionData. */ public com.google.recaptchaenterprise.v1.TransactionData getTransactionData() { if (transactionDataBuilder_ == null) { - return transactionData_ == null ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() : transactionData_; + return transactionData_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() + : transactionData_; } else { return transactionDataBuilder_.getMessage(); } } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransactionData(com.google.recaptchaenterprise.v1.TransactionData value) { if (transactionDataBuilder_ == null) { @@ -2370,13 +2661,17 @@ public Builder setTransactionData(com.google.recaptchaenterprise.v1.TransactionD return this; } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransactionData( com.google.recaptchaenterprise.v1.TransactionData.Builder builderForValue) { @@ -2390,19 +2685,24 @@ public Builder setTransactionData( return this; } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTransactionData(com.google.recaptchaenterprise.v1.TransactionData value) { if (transactionDataBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - transactionData_ != null && - transactionData_ != com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && transactionData_ != null + && transactionData_ + != com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance()) { getTransactionDataBuilder().mergeFrom(value); } else { transactionData_ = value; @@ -2415,13 +2715,17 @@ public Builder mergeTransactionData(com.google.recaptchaenterprise.v1.Transactio return this; } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTransactionData() { bitField0_ = (bitField0_ & ~0x00001000); @@ -2434,13 +2738,17 @@ public Builder clearTransactionData() { return this; } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.Builder getTransactionDataBuilder() { bitField0_ |= 0x00001000; @@ -2448,40 +2756,53 @@ public com.google.recaptchaenterprise.v1.TransactionData.Builder getTransactionD return getTransactionDataFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransactionDataOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder + getTransactionDataOrBuilder() { if (transactionDataBuilder_ != null) { return transactionDataBuilder_.getMessageOrBuilder(); } else { - return transactionData_ == null ? - com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() : transactionData_; + return transactionData_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() + : transactionData_; } } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData, com.google.recaptchaenterprise.v1.TransactionData.Builder, com.google.recaptchaenterprise.v1.TransactionDataOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData, + com.google.recaptchaenterprise.v1.TransactionData.Builder, + com.google.recaptchaenterprise.v1.TransactionDataOrBuilder> getTransactionDataFieldBuilder() { if (transactionDataBuilder_ == null) { - transactionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData, com.google.recaptchaenterprise.v1.TransactionData.Builder, com.google.recaptchaenterprise.v1.TransactionDataOrBuilder>( - getTransactionData(), - getParentForChildren(), - isClean()); + transactionDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData, + com.google.recaptchaenterprise.v1.TransactionData.Builder, + com.google.recaptchaenterprise.v1.TransactionDataOrBuilder>( + getTransactionData(), getParentForChildren(), isClean()); transactionData_ = null; } return transactionDataBuilder_; @@ -2489,8 +2810,13 @@ public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransaction private com.google.recaptchaenterprise.v1.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.UserInfo, com.google.recaptchaenterprise.v1.UserInfo.Builder, com.google.recaptchaenterprise.v1.UserInfoOrBuilder> userInfoBuilder_; + com.google.recaptchaenterprise.v1.UserInfo, + com.google.recaptchaenterprise.v1.UserInfo.Builder, + com.google.recaptchaenterprise.v1.UserInfoOrBuilder> + userInfoBuilder_; /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2498,13 +2824,18 @@ public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransaction
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2512,17 +2843,24 @@ public boolean hasUserInfo() {
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The userInfo. */ public com.google.recaptchaenterprise.v1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() + : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2530,7 +2868,9 @@ public com.google.recaptchaenterprise.v1.UserInfo getUserInfo() {
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUserInfo(com.google.recaptchaenterprise.v1.UserInfo value) { if (userInfoBuilder_ == null) { @@ -2546,6 +2886,8 @@ public Builder setUserInfo(com.google.recaptchaenterprise.v1.UserInfo value) { return this; } /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2553,10 +2895,11 @@ public Builder setUserInfo(com.google.recaptchaenterprise.v1.UserInfo value) {
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUserInfo( - com.google.recaptchaenterprise.v1.UserInfo.Builder builderForValue) { + public Builder setUserInfo(com.google.recaptchaenterprise.v1.UserInfo.Builder builderForValue) { if (userInfoBuilder_ == null) { userInfo_ = builderForValue.build(); } else { @@ -2567,6 +2910,8 @@ public Builder setUserInfo( return this; } /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2574,13 +2919,15 @@ public Builder setUserInfo(
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUserInfo(com.google.recaptchaenterprise.v1.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - userInfo_ != null && - userInfo_ != com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && userInfo_ != null + && userInfo_ != com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); } else { userInfo_ = value; @@ -2593,6 +2940,8 @@ public Builder mergeUserInfo(com.google.recaptchaenterprise.v1.UserInfo value) { return this; } /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2600,7 +2949,9 @@ public Builder mergeUserInfo(com.google.recaptchaenterprise.v1.UserInfo value) {
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUserInfo() { bitField0_ = (bitField0_ & ~0x00002000); @@ -2613,6 +2964,8 @@ public Builder clearUserInfo() { return this; } /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2620,7 +2973,9 @@ public Builder clearUserInfo() {
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.UserInfo.Builder getUserInfoBuilder() { bitField0_ |= 0x00002000; @@ -2628,6 +2983,8 @@ public com.google.recaptchaenterprise.v1.UserInfo.Builder getUserInfoBuilder() { return getUserInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2635,17 +2992,22 @@ public com.google.recaptchaenterprise.v1.UserInfo.Builder getUserInfoBuilder() {
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.UserInfoOrBuilder getUserInfoOrBuilder() { if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null ? - com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.recaptchaenterprise.v1.UserInfo.getDefaultInstance() + : userInfo_; } } /** + * + * *
      * Optional. Information about the user that generates this event, when they
      * can be identified. They are often identified through the use of an account
@@ -2653,24 +3015,29 @@ public com.google.recaptchaenterprise.v1.UserInfoOrBuilder getUserInfoOrBuilder(
      * identifiers for guest actions like checkout.
      * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.UserInfo, com.google.recaptchaenterprise.v1.UserInfo.Builder, com.google.recaptchaenterprise.v1.UserInfoOrBuilder> + com.google.recaptchaenterprise.v1.UserInfo, + com.google.recaptchaenterprise.v1.UserInfo.Builder, + com.google.recaptchaenterprise.v1.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.UserInfo, com.google.recaptchaenterprise.v1.UserInfo.Builder, com.google.recaptchaenterprise.v1.UserInfoOrBuilder>( - getUserInfo(), - getParentForChildren(), - isClean()); + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.UserInfo, + com.google.recaptchaenterprise.v1.UserInfo.Builder, + com.google.recaptchaenterprise.v1.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); userInfo_ = null; } return userInfoBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2680,12 +3047,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.Event) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.Event) private static final com.google.recaptchaenterprise.v1.Event DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.Event(); } @@ -2694,27 +3061,27 @@ public static com.google.recaptchaenterprise.v1.Event getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Event parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2729,6 +3096,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java similarity index 77% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java index 8a7e85ca14fd..7c7451817093 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java @@ -1,101 +1,139 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface EventOrBuilder extends +public interface EventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.Event) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The token. */ java.lang.String getToken(); /** + * + * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for token. */ - com.google.protobuf.ByteString - getTokenBytes(); + com.google.protobuf.ByteString getTokenBytes(); /** + * + * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The siteKey. */ java.lang.String getSiteKey(); /** + * + * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for siteKey. */ - com.google.protobuf.ByteString - getSiteKeyBytes(); + com.google.protobuf.ByteString getSiteKeyBytes(); /** + * + * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ java.lang.String getUserAgent(); /** + * + * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString - getUserAgentBytes(); + com.google.protobuf.ByteString getUserAgentBytes(); /** + * + * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userIpAddress. */ java.lang.String getUserIpAddress(); /** + * + * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userIpAddress. */ - com.google.protobuf.ByteString - getUserIpAddressBytes(); + com.google.protobuf.ByteString getUserIpAddressBytes(); /** + * + * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -103,10 +141,13 @@ public interface EventOrBuilder extends
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expectedAction. */ java.lang.String getExpectedAction(); /** + * + * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -114,26 +155,33 @@ public interface EventOrBuilder extends
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for expectedAction. */ - com.google.protobuf.ByteString - getExpectedActionBytes(); + com.google.protobuf.ByteString getExpectedActionBytes(); /** + * + * *
    * Optional. Deprecated: use `user_info.account_id` instead.
    * Unique stable hashed user identifier for the request. The identifier must
    * be hashed using hmac-sha256 with stable secret.
    * 
* - * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 + * bytes hashed_account_id = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=666 * @return The hashedAccountId. */ - @java.lang.Deprecated com.google.protobuf.ByteString getHashedAccountId(); + @java.lang.Deprecated + com.google.protobuf.ByteString getHashedAccountId(); /** + * + * *
    * Optional. Flag for a reCAPTCHA express request for an assessment without a
    * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -141,31 +189,39 @@ public interface EventOrBuilder extends
    * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The express. */ boolean getExpress(); /** + * + * *
    * Optional. The URI resource the user requested that triggered an assessment.
    * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestedUri. */ java.lang.String getRequestedUri(); /** + * + * *
    * Optional. The URI resource the user requested that triggered an assessment.
    * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestedUri. */ - com.google.protobuf.ByteString - getRequestedUriBytes(); + com.google.protobuf.ByteString getRequestedUriBytes(); /** + * + * *
    * Optional. Flag for running WAF token assessment.
    * If enabled, the token must be specified, and have been created by a
@@ -173,72 +229,90 @@ public interface EventOrBuilder extends
    * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The wafTokenAssessment. */ boolean getWafTokenAssessment(); /** + * + * *
    * Optional. JA3 fingerprint for SSL clients.
    * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ja3. */ java.lang.String getJa3(); /** + * + * *
    * Optional. JA3 fingerprint for SSL clients.
    * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ja3. */ - com.google.protobuf.ByteString - getJa3Bytes(); + com.google.protobuf.ByteString getJa3Bytes(); /** + * + * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the headers. */ - java.util.List - getHeadersList(); + java.util.List getHeadersList(); /** + * + * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of headers. */ int getHeadersCount(); /** + * + * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The headers at the given index. */ java.lang.String getHeaders(int index); /** + * + * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - com.google.protobuf.ByteString - getHeadersBytes(int index); + com.google.protobuf.ByteString getHeadersBytes(int index); /** + * + * *
    * Optional. Flag for enabling firewall policy config assessment.
    * If this flag is enabled, the firewall policy will be evaluated and a
@@ -246,44 +320,61 @@ public interface EventOrBuilder extends
    * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The firewallPolicyEvaluation. */ boolean getFirewallPolicyEvaluation(); /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionData field is set. */ boolean hasTransactionData(); /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionData. */ com.google.recaptchaenterprise.v1.TransactionData getTransactionData(); /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransactionDataOrBuilder(); /** + * + * *
    * Optional. Information about the user that generates this event, when they
    * can be identified. They are often identified through the use of an account
@@ -291,11 +382,16 @@ public interface EventOrBuilder extends
    * identifiers for guest actions like checkout.
    * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** + * + * *
    * Optional. Information about the user that generates this event, when they
    * can be identified. They are often identified through the use of an account
@@ -303,11 +399,16 @@ public interface EventOrBuilder extends
    * identifiers for guest actions like checkout.
    * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The userInfo. */ com.google.recaptchaenterprise.v1.UserInfo getUserInfo(); /** + * + * *
    * Optional. Information about the user that generates this event, when they
    * can be identified. They are often identified through the use of an account
@@ -315,7 +416,9 @@ public interface EventOrBuilder extends
    * identifiers for guest actions like checkout.
    * 
* - * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.UserInfo user_info = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.UserInfoOrBuilder getUserInfoOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java similarity index 68% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java index af4a9e1c1ad5..2b0091094c46 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * An individual action. Each action represents what to do if a policy
  * matches.
@@ -11,82 +28,87 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction}
  */
-public final class FirewallAction extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FirewallAction extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction)
     FirewallActionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FirewallAction.newBuilder() to construct.
   private FirewallAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private FirewallAction() {
-  }
+
+  private FirewallAction() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FirewallAction();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.FirewallAction.class, com.google.recaptchaenterprise.v1.FirewallAction.Builder.class);
+            com.google.recaptchaenterprise.v1.FirewallAction.class,
+            com.google.recaptchaenterprise.v1.FirewallAction.Builder.class);
   }
 
-  public interface AllowActionOrBuilder extends
+  public interface AllowActionOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction)
-      com.google.protobuf.MessageOrBuilder {
-  }
+      com.google.protobuf.MessageOrBuilder {}
   /**
+   *
+   *
    * 
    * An allow action continues processing a request unimpeded.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction} */ - public static final class AllowAction extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AllowAction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction) AllowActionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowAction.newBuilder() to construct. private AllowAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AllowAction() { - } + + private AllowAction() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AllowAction(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.class, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder.class); + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.class, + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +120,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -117,12 +138,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.AllowAction)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction other = (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) obj; + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction other = + (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -141,89 +163,94 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.AllowAction prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -233,39 +260,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An allow action continues processing a request unimpeded.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction) com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.class, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder.class); + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.class, + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -273,13 +302,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance(); } @@ -294,7 +324,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction buildPartial() { - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction result = new com.google.recaptchaenterprise.v1.FirewallAction.AllowAction(this); + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction result = + new com.google.recaptchaenterprise.v1.FirewallAction.AllowAction(this); onBuilt(); return result; } @@ -303,38 +334,41 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FirewallAction.AllowAction) { - return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.AllowAction)other); + return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) other); } else { super.mergeFrom(other); return this; @@ -342,7 +376,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.AllowAction other) { - if (other == com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -369,12 +405,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -384,6 +421,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -396,41 +434,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction) - private static final com.google.recaptchaenterprise.v1.FirewallAction.AllowAction DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.FirewallAction.AllowAction + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.AllowAction(); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -442,17 +483,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BlockActionOrBuilder extends + public interface BlockActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * A block action serves an HTTP error code a prevents the request from
    * hitting the backend.
@@ -460,39 +503,41 @@ public interface BlockActionOrBuilder extends
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction}
    */
-  public static final class BlockAction extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BlockAction extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction)
       BlockActionOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BlockAction.newBuilder() to construct.
     private BlockAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private BlockAction() {
-    }
+
+    private BlockAction() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BlockAction();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.class, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.class,
+              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -504,8 +549,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       getUnknownFields().writeTo(output);
     }
 
@@ -523,12 +567,13 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.BlockAction)) {
         return super.equals(obj);
       }
-      com.google.recaptchaenterprise.v1.FirewallAction.BlockAction other = (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) obj;
+      com.google.recaptchaenterprise.v1.FirewallAction.BlockAction other =
+          (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) obj;
 
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -547,89 +592,94 @@ public int hashCode() {
     }
 
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.BlockAction prototype) {
+
+    public static Builder newBuilder(
+        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -639,6 +689,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * A block action serves an HTTP error code a prevents the request from
      * hitting the backend.
@@ -646,33 +698,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction)
         com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.class, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder.class);
+                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.class,
+                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder.class);
       }
 
       // Construct using com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -680,13 +732,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
       }
 
       @java.lang.Override
-      public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getDefaultInstanceForType() {
+      public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
+          getDefaultInstanceForType() {
         return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
       }
 
@@ -701,7 +754,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction build() {
 
       @java.lang.Override
       public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction buildPartial() {
-        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction result = new com.google.recaptchaenterprise.v1.FirewallAction.BlockAction(this);
+        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction result =
+            new com.google.recaptchaenterprise.v1.FirewallAction.BlockAction(this);
         onBuilt();
         return result;
       }
@@ -710,38 +764,41 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction buildPartial
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FirewallAction.BlockAction) {
-          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.BlockAction)other);
+          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -749,7 +806,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.BlockAction other) {
-        if (other == com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance()) return this;
+        if (other
+            == com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance())
+          return this;
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -776,12 +835,13 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -791,6 +851,7 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -803,41 +864,44 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction)
-    private static final com.google.recaptchaenterprise.v1.FirewallAction.BlockAction DEFAULT_INSTANCE;
+    private static final com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.BlockAction();
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getDefaultInstance() {
+    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public BlockAction parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public BlockAction parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              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;
@@ -849,17 +913,19 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getDefaultInstanceForType() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface RedirectActionOrBuilder extends
+  public interface RedirectActionOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
-      com.google.protobuf.MessageOrBuilder {
-  }
+      com.google.protobuf.MessageOrBuilder {}
   /**
+   *
+   *
    * 
    * A redirect action returns a 307 (temporary redirect) response, pointing
    * the user to a ReCaptcha interstitial page to attach a token.
@@ -867,39 +933,41 @@ public interface RedirectActionOrBuilder extends
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction}
    */
-  public static final class RedirectAction extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class RedirectAction extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
       RedirectActionOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use RedirectAction.newBuilder() to construct.
     private RedirectAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private RedirectAction() {
-    }
+
+    private RedirectAction() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new RedirectAction();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.class, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.class,
+              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -911,8 +979,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       getUnknownFields().writeTo(output);
     }
 
@@ -930,12 +997,13 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)) {
         return super.equals(obj);
       }
-      com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction other = (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) obj;
+      com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction other =
+          (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) obj;
 
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -954,89 +1022,95 @@ public int hashCode() {
     }
 
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction prototype) {
+
+    public static Builder newBuilder(
+        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1046,6 +1120,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * A redirect action returns a 307 (temporary redirect) response, pointing
      * the user to a ReCaptcha interstitial page to attach a token.
@@ -1053,33 +1129,34 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
         com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.class, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder.class);
+                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.class,
+                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder.class);
       }
 
-      // Construct using com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1087,13 +1164,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
       }
 
       @java.lang.Override
-      public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getDefaultInstanceForType() {
+      public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
+          getDefaultInstanceForType() {
         return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
       }
 
@@ -1108,7 +1186,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction build() {
 
       @java.lang.Override
       public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction buildPartial() {
-        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction result = new com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction(this);
+        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction result =
+            new com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction(this);
         onBuilt();
         return result;
       }
@@ -1117,46 +1196,52 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction buildPart
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) {
-          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)other);
+          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction other) {
-        if (other == com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction other) {
+        if (other
+            == com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance())
+          return this;
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -1183,12 +1268,13 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -1198,6 +1284,7 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1210,41 +1297,44 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
-    private static final com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction DEFAULT_INSTANCE;
+    private static final com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction();
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getDefaultInstance() {
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public RedirectAction parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public RedirectAction parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              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;
@@ -1256,39 +1346,47 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getDefaultInstanceForType() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface SubstituteActionOrBuilder extends
+  public interface SubstituteActionOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. The address to redirect to. The target is a relative path in
      * the current host. Example: "/blog/404.html".
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
      * Optional. The address to redirect to. The target is a relative path in
      * the current host. Example: "/blog/404.html".
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); } /** + * + * *
    * A substitute action transparently serves a different page than the one
    * requested.
@@ -1296,49 +1394,55 @@ public interface SubstituteActionOrBuilder extends
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction}
    */
-  public static final class SubstituteAction extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SubstituteAction extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction)
       SubstituteActionOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SubstituteAction.newBuilder() to construct.
     private SubstituteAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private SubstituteAction() {
       path_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SubstituteAction();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.class, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.class,
+              com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder.class);
     }
 
     public static final int PATH_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object path_ = "";
     /**
+     *
+     *
      * 
      * Optional. The address to redirect to. The target is a relative path in
      * the current host. Example: "/blog/404.html".
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ @java.lang.Override @@ -1347,30 +1451,30 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
      * Optional. The address to redirect to. The target is a relative path in
      * the current host. Example: "/blog/404.html".
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -1379,6 +1483,7 @@ public java.lang.String getPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1390,8 +1495,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -1415,15 +1519,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction other = (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) obj; + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction other = + (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) obj; - if (!getPath() - .equals(other.getPath())) return false; + if (!getPath().equals(other.getPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1443,89 +1547,95 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1535,6 +1645,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A substitute action transparently serves a different page than the one
      * requested.
@@ -1542,33 +1654,34 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction)
         com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.class, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder.class);
+                com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.class,
+                com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder.class);
       }
 
-      // Construct using com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.newBuilder()
-      private Builder() {
+      // Construct using
+      // com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.newBuilder()
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1578,14 +1691,16 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
       }
 
       @java.lang.Override
-      public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getDefaultInstanceForType() {
-        return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance();
+      public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction
+          getDefaultInstanceForType() {
+        return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -1599,13 +1714,17 @@ public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction build()
 
       @java.lang.Override
       public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction buildPartial() {
-        com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction result = new com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction result =
+            new com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction result) {
+      private void buildPartial0(
+          com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.path_ = path_;
@@ -1616,46 +1735,53 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallAction.Subs
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FirewallAction.SubstituteAction) {
-          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction)other);
+          return mergeFrom(
+              (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction other) {
-        if (other == com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction other) {
+        if (other
+            == com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction
+                .getDefaultInstance()) return this;
         if (!other.getPath().isEmpty()) {
           path_ = other.path_;
           bitField0_ |= 0x00000001;
@@ -1687,17 +1813,19 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                path_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  path_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  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) {
@@ -1707,23 +1835,26 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object path_ = "";
       /**
+       *
+       *
        * 
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -1732,21 +1863,22 @@ public java.lang.String getPath() { } } /** + * + * *
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -1754,30 +1886,37 @@ public java.lang.String getPath() { } } /** + * + * *
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPath() { @@ -1787,24 +1926,29 @@ public Builder clearPath() { return this; } /** + * + * *
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1817,41 +1961,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - private static final com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction(); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubstituteAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubstituteAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1863,57 +2010,70 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SetHeaderActionOrBuilder extends + public interface SetHeaderActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. The header key to set in the request to the backend server.
      * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
      * Optional. The header key to set in the request to the backend server.
      * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
      * Optional. The header value to set in the request to the backend server.
      * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * Optional. The header value to set in the request to the backend server.
      * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * A set header action sets a header and forwards the request to the
    * backend. This can be used to trigger custom protection implemented on the
@@ -1922,15 +2082,16 @@ public interface SetHeaderActionOrBuilder extends
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction}
    */
-  public static final class SetHeaderAction extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SetHeaderAction extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction)
       SetHeaderActionOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SetHeaderAction.newBuilder() to construct.
     private SetHeaderAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private SetHeaderAction() {
       key_ = "";
       value_ = "";
@@ -1938,33 +2099,38 @@ private SetHeaderAction() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SetHeaderAction();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.class, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.class,
+              com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder.class);
     }
 
     public static final int KEY_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object key_ = "";
     /**
+     *
+     *
      * 
      * Optional. The header key to set in the request to the backend server.
      * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ @java.lang.Override @@ -1973,29 +2139,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
      * Optional. The header key to set in the request to the backend server.
      * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -2004,14 +2170,18 @@ public java.lang.String getKey() { } public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * Optional. The header value to set in the request to the backend server.
      * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -2020,29 +2190,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * Optional. The header value to set in the request to the backend server.
      * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -2051,6 +2221,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2062,8 +2233,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -2093,17 +2263,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.recaptchaenterprise.v1.FirewallAction.SetHeaderAction)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction other = (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) obj; + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction other = + (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) obj; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2125,89 +2294,95 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2217,6 +2392,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A set header action sets a header and forwards the request to the
      * backend. This can be used to trigger custom protection implemented on the
@@ -2225,33 +2402,34 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction)
         com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.class, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder.class);
+                com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.class,
+                com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder.class);
       }
 
-      // Construct using com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.newBuilder()
-      private Builder() {
+      // Construct using
+      // com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.newBuilder()
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2262,14 +2440,16 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
       }
 
       @java.lang.Override
-      public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getDefaultInstanceForType() {
-        return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance();
+      public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction
+          getDefaultInstanceForType() {
+        return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -2283,13 +2463,17 @@ public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction build()
 
       @java.lang.Override
       public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction buildPartial() {
-        com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction result = new com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction result =
+            new com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction result) {
+      private void buildPartial0(
+          com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.key_ = key_;
@@ -2303,46 +2487,53 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallAction.SetH
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) {
-          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction)other);
+          return mergeFrom(
+              (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction other) {
-        if (other == com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction other) {
+        if (other
+            == com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction
+                .getDefaultInstance()) return this;
         if (!other.getKey().isEmpty()) {
           key_ = other.key_;
           bitField0_ |= 0x00000001;
@@ -2379,22 +2570,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                key_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                value_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  key_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  value_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  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) {
@@ -2404,22 +2598,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object key_ = "";
       /**
+       *
+       *
        * 
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -2428,20 +2625,21 @@ public java.lang.String getKey() { } } /** + * + * *
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -2449,28 +2647,35 @@ public java.lang.String getKey() { } } /** + * + * *
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKey() { @@ -2480,17 +2685,21 @@ public Builder clearKey() { return this; } /** + * + * *
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; @@ -2500,18 +2709,20 @@ public Builder setKeyBytes( private java.lang.Object value_ = ""; /** + * + * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -2520,20 +2731,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -2541,28 +2753,35 @@ public java.lang.String getValue() { } } /** + * + * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -2572,23 +2791,28 @@ public Builder clearValue() { return this; } /** + * + * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2601,41 +2825,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - private static final com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction(); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetHeaderAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetHeaderAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2647,17 +2874,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int firewallActionOneofCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object firewallActionOneof_; + public enum FirewallActionOneofCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALLOW(1), BLOCK(2), @@ -2666,6 +2896,7 @@ public enum FirewallActionOneofCase SET_HEADER(4), FIREWALLACTIONONEOF_NOT_SET(0); private final int value; + private FirewallActionOneofCase(int value) { this.value = value; } @@ -2681,34 +2912,43 @@ public static FirewallActionOneofCase valueOf(int value) { public static FirewallActionOneofCase forNumber(int value) { switch (value) { - case 1: return ALLOW; - case 2: return BLOCK; - case 5: return REDIRECT; - case 3: return SUBSTITUTE; - case 4: return SET_HEADER; - case 0: return FIREWALLACTIONONEOF_NOT_SET; - default: return null; + case 1: + return ALLOW; + case 2: + return BLOCK; + case 5: + return REDIRECT; + case 3: + return SUBSTITUTE; + case 4: + return SET_HEADER; + case 0: + return FIREWALLACTIONONEOF_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FirewallActionOneofCase - getFirewallActionOneofCase() { - return FirewallActionOneofCase.forNumber( - firewallActionOneofCase_); + public FirewallActionOneofCase getFirewallActionOneofCase() { + return FirewallActionOneofCase.forNumber(firewallActionOneofCase_); } public static final int ALLOW_FIELD_NUMBER = 1; /** + * + * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; + * * @return Whether the allow field is set. */ @java.lang.Override @@ -2716,22 +2956,27 @@ public boolean hasAllow() { return firewallActionOneofCase_ == 1; } /** + * + * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; + * * @return The allow. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow() { if (firewallActionOneofCase_ == 1) { - return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance(); } /** + * + * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
@@ -2742,19 +2987,22 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow() {
   @java.lang.Override
   public com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder getAllowOrBuilder() {
     if (firewallActionOneofCase_ == 1) {
-       return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_;
+      return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_;
     }
     return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance();
   }
 
   public static final int BLOCK_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; + * * @return Whether the block field is set. */ @java.lang.Override @@ -2762,22 +3010,27 @@ public boolean hasBlock() { return firewallActionOneofCase_ == 2; } /** + * + * *
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; + * * @return The block. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock() { if (firewallActionOneofCase_ == 2) { - return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance(); } /** + * + * *
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
@@ -2788,19 +3041,22 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock() {
   @java.lang.Override
   public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder getBlockOrBuilder() {
     if (firewallActionOneofCase_ == 2) {
-       return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_;
+      return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_;
     }
     return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
   }
 
   public static final int REDIRECT_FIELD_NUMBER = 5;
   /**
+   *
+   *
    * 
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; + * * @return Whether the redirect field is set. */ @java.lang.Override @@ -2808,22 +3064,27 @@ public boolean hasRedirect() { return firewallActionOneofCase_ == 5; } /** + * + * *
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; + * * @return The redirect. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedirect() { if (firewallActionOneofCase_ == 5) { - return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance(); } /** + * + * *
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
@@ -2832,21 +3093,26 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedire
    * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
    */
   @java.lang.Override
-  public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder getRedirectOrBuilder() {
+  public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder
+      getRedirectOrBuilder() {
     if (firewallActionOneofCase_ == 5) {
-       return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_;
+      return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_;
     }
     return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
   }
 
   public static final int SUBSTITUTE_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * + * * @return Whether the substitute field is set. */ @java.lang.Override @@ -2854,45 +3120,59 @@ public boolean hasSubstitute() { return firewallActionOneofCase_ == 3; } /** + * + * *
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * + * * @return The substitute. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getSubstitute() { if (firewallActionOneofCase_ == 3) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) + firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); } /** + * + * *
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder getSubstituteOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder + getSubstituteOrBuilder() { if (firewallActionOneofCase_ == 3) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) + firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); } public static final int SET_HEADER_FIELD_NUMBER = 4; /** + * + * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * + * * @return Whether the setHeader field is set. */ @java.lang.Override @@ -2900,38 +3180,49 @@ public boolean hasSetHeader() { return firewallActionOneofCase_ == 4; } /** + * + * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * + * * @return The setHeader. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getSetHeader() { if (firewallActionOneofCase_ == 4) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) + firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } /** + * + * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder getSetHeaderOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder + getSetHeaderOrBuilder() { if (firewallActionOneofCase_ == 4) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) + firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2943,22 +3234,29 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (firewallActionOneofCase_ == 1) { - output.writeMessage(1, (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_); + output.writeMessage( + 1, (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 2) { - output.writeMessage(2, (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_); + output.writeMessage( + 2, (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 3) { - output.writeMessage(3, (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_); + output.writeMessage( + 3, + (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 4) { - output.writeMessage(4, (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_); + output.writeMessage( + 4, + (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 5) { - output.writeMessage(5, (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_); + output.writeMessage( + 5, + (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_); } getUnknownFields().writeTo(output); } @@ -2970,24 +3268,37 @@ public int getSerializedSize() { size = 0; if (firewallActionOneofCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) + firewallActionOneof_); } if (firewallActionOneofCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) + firewallActionOneof_); } if (firewallActionOneofCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) + firewallActionOneof_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2997,34 +3308,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallAction other = (com.google.recaptchaenterprise.v1.FirewallAction) obj; + com.google.recaptchaenterprise.v1.FirewallAction other = + (com.google.recaptchaenterprise.v1.FirewallAction) obj; if (!getFirewallActionOneofCase().equals(other.getFirewallActionOneofCase())) return false; switch (firewallActionOneofCase_) { case 1: - if (!getAllow() - .equals(other.getAllow())) return false; + if (!getAllow().equals(other.getAllow())) return false; break; case 2: - if (!getBlock() - .equals(other.getBlock())) return false; + if (!getBlock().equals(other.getBlock())) return false; break; case 5: - if (!getRedirect() - .equals(other.getRedirect())) return false; + if (!getRedirect().equals(other.getRedirect())) return false; break; case 3: - if (!getSubstitute() - .equals(other.getSubstitute())) return false; + if (!getSubstitute().equals(other.getSubstitute())) return false; break; case 4: - if (!getSetHeader() - .equals(other.getSetHeader())) return false; + if (!getSetHeader().equals(other.getSetHeader())) return false; break; case 0: default: @@ -3069,99 +3376,104 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FirewallAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An individual action. Each action represents what to do if a policy
    * matches.
@@ -3169,33 +3481,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction)
       com.google.recaptchaenterprise.v1.FirewallActionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.class, com.google.recaptchaenterprise.v1.FirewallAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.class,
+              com.google.recaptchaenterprise.v1.FirewallAction.Builder.class);
     }
 
     // Construct using com.google.recaptchaenterprise.v1.FirewallAction.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3221,9 +3532,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
     }
 
     @java.lang.Override
@@ -3242,8 +3553,11 @@ public com.google.recaptchaenterprise.v1.FirewallAction build() {
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.FirewallAction buildPartial() {
-      com.google.recaptchaenterprise.v1.FirewallAction result = new com.google.recaptchaenterprise.v1.FirewallAction(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.recaptchaenterprise.v1.FirewallAction result =
+          new com.google.recaptchaenterprise.v1.FirewallAction(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -3256,24 +3570,19 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallAction resu
     private void buildPartialOneofs(com.google.recaptchaenterprise.v1.FirewallAction result) {
       result.firewallActionOneofCase_ = firewallActionOneofCase_;
       result.firewallActionOneof_ = this.firewallActionOneof_;
-      if (firewallActionOneofCase_ == 1 &&
-          allowBuilder_ != null) {
+      if (firewallActionOneofCase_ == 1 && allowBuilder_ != null) {
         result.firewallActionOneof_ = allowBuilder_.build();
       }
-      if (firewallActionOneofCase_ == 2 &&
-          blockBuilder_ != null) {
+      if (firewallActionOneofCase_ == 2 && blockBuilder_ != null) {
         result.firewallActionOneof_ = blockBuilder_.build();
       }
-      if (firewallActionOneofCase_ == 5 &&
-          redirectBuilder_ != null) {
+      if (firewallActionOneofCase_ == 5 && redirectBuilder_ != null) {
         result.firewallActionOneof_ = redirectBuilder_.build();
       }
-      if (firewallActionOneofCase_ == 3 &&
-          substituteBuilder_ != null) {
+      if (firewallActionOneofCase_ == 3 && substituteBuilder_ != null) {
         result.firewallActionOneof_ = substituteBuilder_.build();
       }
-      if (firewallActionOneofCase_ == 4 &&
-          setHeaderBuilder_ != null) {
+      if (firewallActionOneofCase_ == 4 && setHeaderBuilder_ != null) {
         result.firewallActionOneof_ = setHeaderBuilder_.build();
       }
     }
@@ -3282,38 +3591,39 @@ private void buildPartialOneofs(com.google.recaptchaenterprise.v1.FirewallAction
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.FirewallAction) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction)other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3321,31 +3631,38 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction other) {
-      if (other == com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()) return this;
+      if (other == com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance())
+        return this;
       switch (other.getFirewallActionOneofCase()) {
-        case ALLOW: {
-          mergeAllow(other.getAllow());
-          break;
-        }
-        case BLOCK: {
-          mergeBlock(other.getBlock());
-          break;
-        }
-        case REDIRECT: {
-          mergeRedirect(other.getRedirect());
-          break;
-        }
-        case SUBSTITUTE: {
-          mergeSubstitute(other.getSubstitute());
-          break;
-        }
-        case SET_HEADER: {
-          mergeSetHeader(other.getSetHeader());
-          break;
-        }
-        case FIREWALLACTIONONEOF_NOT_SET: {
-          break;
-        }
+        case ALLOW:
+          {
+            mergeAllow(other.getAllow());
+            break;
+          }
+        case BLOCK:
+          {
+            mergeBlock(other.getBlock());
+            break;
+          }
+        case REDIRECT:
+          {
+            mergeRedirect(other.getRedirect());
+            break;
+          }
+        case SUBSTITUTE:
+          {
+            mergeSubstitute(other.getSubstitute());
+            break;
+          }
+        case SET_HEADER:
+          {
+            mergeSetHeader(other.getSetHeader());
+            break;
+          }
+        case FIREWALLACTIONONEOF_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -3373,47 +3690,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getAllowFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              firewallActionOneofCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getBlockFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              firewallActionOneofCase_ = 2;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getSubstituteFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              firewallActionOneofCase_ = 3;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getSetHeaderFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              firewallActionOneofCase_ = 4;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getRedirectFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              firewallActionOneofCase_ = 5;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getAllowFieldBuilder().getBuilder(), extensionRegistry);
+                firewallActionOneofCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getBlockFieldBuilder().getBuilder(), extensionRegistry);
+                firewallActionOneofCase_ = 2;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getSubstituteFieldBuilder().getBuilder(), extensionRegistry);
+                firewallActionOneofCase_ = 3;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getSetHeaderFieldBuilder().getBuilder(), extensionRegistry);
+                firewallActionOneofCase_ = 4;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getRedirectFieldBuilder().getBuilder(), extensionRegistry);
+                firewallActionOneofCase_ = 5;
+                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) {
@@ -3423,12 +3736,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int firewallActionOneofCase_ = 0;
     private java.lang.Object firewallActionOneof_;
-    public FirewallActionOneofCase
-        getFirewallActionOneofCase() {
-      return FirewallActionOneofCase.forNumber(
-          firewallActionOneofCase_);
+
+    public FirewallActionOneofCase getFirewallActionOneofCase() {
+      return FirewallActionOneofCase.forNumber(firewallActionOneofCase_);
     }
 
     public Builder clearFirewallActionOneof() {
@@ -3441,14 +3754,20 @@ public Builder clearFirewallActionOneof() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.FirewallAction.AllowAction, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder> allowBuilder_;
+            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction,
+            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder,
+            com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder>
+        allowBuilder_;
     /**
+     *
+     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; + * * @return Whether the allow field is set. */ @java.lang.Override @@ -3456,19 +3775,23 @@ public boolean hasAllow() { return firewallActionOneofCase_ == 1; } /** + * + * *
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; + * * @return The allow. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow() { if (allowBuilder_ == null) { if (firewallActionOneofCase_ == 1) { - return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) + firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance(); } else { @@ -3479,6 +3802,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow() { } } /** + * + * *
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3500,6 +3825,8 @@ public Builder setAllow(com.google.recaptchaenterprise.v1.FirewallAction.AllowAc
       return this;
     }
     /**
+     *
+     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3519,6 +3846,8 @@ public Builder setAllow(
       return this;
     }
     /**
+     *
+     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3528,10 +3857,16 @@ public Builder setAllow(
      */
     public Builder mergeAllow(com.google.recaptchaenterprise.v1.FirewallAction.AllowAction value) {
       if (allowBuilder_ == null) {
-        if (firewallActionOneofCase_ == 1 &&
-            firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance()) {
-          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_)
-              .mergeFrom(value).buildPartial();
+        if (firewallActionOneofCase_ == 1
+            && firewallActionOneof_
+                != com.google.recaptchaenterprise.v1.FirewallAction.AllowAction
+                    .getDefaultInstance()) {
+          firewallActionOneof_ =
+              com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.newBuilder(
+                      (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction)
+                          firewallActionOneof_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           firewallActionOneof_ = value;
         }
@@ -3547,6 +3882,8 @@ public Builder mergeAllow(com.google.recaptchaenterprise.v1.FirewallAction.Allow
       return this;
     }
     /**
+     *
+     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3571,6 +3908,8 @@ public Builder clearAllow() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3582,6 +3921,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder getA
       return getAllowFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3590,17 +3931,21 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder getA
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1;
      */
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder getAllowOrBuilder() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder
+        getAllowOrBuilder() {
       if ((firewallActionOneofCase_ == 1) && (allowBuilder_ != null)) {
         return allowBuilder_.getMessageOrBuilder();
       } else {
         if (firewallActionOneofCase_ == 1) {
-          return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_;
+          return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction)
+              firewallActionOneof_;
         }
         return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance();
       }
     }
     /**
+     *
+     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3609,14 +3954,20 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder get
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.FirewallAction.AllowAction, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder> 
+            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction,
+            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder,
+            com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder>
         getAllowFieldBuilder() {
       if (allowBuilder_ == null) {
         if (!(firewallActionOneofCase_ == 1)) {
-          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance();
+          firewallActionOneof_ =
+              com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance();
         }
-        allowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder>(
+        allowBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.recaptchaenterprise.v1.FirewallAction.AllowAction,
+                com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder,
+                com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder>(
                 (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_,
                 getParentForChildren(),
                 isClean());
@@ -3628,14 +3979,20 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder get
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder> blockBuilder_;
+            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction,
+            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder,
+            com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder>
+        blockBuilder_;
     /**
+     *
+     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; + * * @return Whether the block field is set. */ @java.lang.Override @@ -3643,19 +4000,23 @@ public boolean hasBlock() { return firewallActionOneofCase_ == 2; } /** + * + * *
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; + * * @return The block. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock() { if (blockBuilder_ == null) { if (firewallActionOneofCase_ == 2) { - return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) + firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance(); } else { @@ -3666,6 +4027,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock() { } } /** + * + * *
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -3687,6 +4050,8 @@ public Builder setBlock(com.google.recaptchaenterprise.v1.FirewallAction.BlockAc
       return this;
     }
     /**
+     *
+     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -3706,6 +4071,8 @@ public Builder setBlock(
       return this;
     }
     /**
+     *
+     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -3715,10 +4082,16 @@ public Builder setBlock(
      */
     public Builder mergeBlock(com.google.recaptchaenterprise.v1.FirewallAction.BlockAction value) {
       if (blockBuilder_ == null) {
-        if (firewallActionOneofCase_ == 2 &&
-            firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance()) {
-          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_)
-              .mergeFrom(value).buildPartial();
+        if (firewallActionOneofCase_ == 2
+            && firewallActionOneof_
+                != com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
+                    .getDefaultInstance()) {
+          firewallActionOneof_ =
+              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.newBuilder(
+                      (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction)
+                          firewallActionOneof_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           firewallActionOneof_ = value;
         }
@@ -3734,6 +4107,8 @@ public Builder mergeBlock(com.google.recaptchaenterprise.v1.FirewallAction.Block
       return this;
     }
     /**
+     *
+     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -3758,6 +4133,8 @@ public Builder clearBlock() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -3769,6 +4146,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder getB
       return getBlockFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -3777,17 +4156,21 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder getB
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;
      */
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder getBlockOrBuilder() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder
+        getBlockOrBuilder() {
       if ((firewallActionOneofCase_ == 2) && (blockBuilder_ != null)) {
         return blockBuilder_.getMessageOrBuilder();
       } else {
         if (firewallActionOneofCase_ == 2) {
-          return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_;
+          return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction)
+              firewallActionOneof_;
         }
         return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
       }
     }
     /**
+     *
+     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -3796,14 +4179,20 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder get
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder> 
+            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction,
+            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder,
+            com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder>
         getBlockFieldBuilder() {
       if (blockBuilder_ == null) {
         if (!(firewallActionOneofCase_ == 2)) {
-          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
+          firewallActionOneof_ =
+              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
         }
-        blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder>(
+        blockBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction,
+                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder,
+                com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder>(
                 (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_,
                 getParentForChildren(),
                 isClean());
@@ -3815,14 +4204,20 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder get
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder> redirectBuilder_;
+            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction,
+            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder,
+            com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder>
+        redirectBuilder_;
     /**
+     *
+     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; + * * @return Whether the redirect field is set. */ @java.lang.Override @@ -3830,19 +4225,23 @@ public boolean hasRedirect() { return firewallActionOneofCase_ == 5; } /** + * + * *
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; + * * @return The redirect. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedirect() { if (redirectBuilder_ == null) { if (firewallActionOneofCase_ == 5) { - return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) + firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance(); } else { @@ -3853,6 +4252,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedire } } /** + * + * *
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -3860,7 +4261,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedire
      *
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
-    public Builder setRedirect(com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction value) {
+    public Builder setRedirect(
+        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction value) {
       if (redirectBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3874,6 +4276,8 @@ public Builder setRedirect(com.google.recaptchaenterprise.v1.FirewallAction.Redi
       return this;
     }
     /**
+     *
+     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -3893,6 +4297,8 @@ public Builder setRedirect(
       return this;
     }
     /**
+     *
+     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -3900,12 +4306,19 @@ public Builder setRedirect(
      *
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
-    public Builder mergeRedirect(com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction value) {
+    public Builder mergeRedirect(
+        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction value) {
       if (redirectBuilder_ == null) {
-        if (firewallActionOneofCase_ == 5 &&
-            firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance()) {
-          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_)
-              .mergeFrom(value).buildPartial();
+        if (firewallActionOneofCase_ == 5
+            && firewallActionOneof_
+                != com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
+                    .getDefaultInstance()) {
+          firewallActionOneof_ =
+              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.newBuilder(
+                      (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)
+                          firewallActionOneof_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           firewallActionOneof_ = value;
         }
@@ -3921,6 +4334,8 @@ public Builder mergeRedirect(com.google.recaptchaenterprise.v1.FirewallAction.Re
       return this;
     }
     /**
+     *
+     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -3945,6 +4360,8 @@ public Builder clearRedirect() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -3952,10 +4369,13 @@ public Builder clearRedirect() {
      *
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
-    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder getRedirectBuilder() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder
+        getRedirectBuilder() {
       return getRedirectFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -3964,17 +4384,21 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder g
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder getRedirectOrBuilder() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder
+        getRedirectOrBuilder() {
       if ((firewallActionOneofCase_ == 5) && (redirectBuilder_ != null)) {
         return redirectBuilder_.getMessageOrBuilder();
       } else {
         if (firewallActionOneofCase_ == 5) {
-          return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_;
+          return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)
+              firewallActionOneof_;
         }
         return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
       }
     }
     /**
+     *
+     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -3983,15 +4407,22 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder> 
+            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction,
+            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder,
+            com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder>
         getRedirectFieldBuilder() {
       if (redirectBuilder_ == null) {
         if (!(firewallActionOneofCase_ == 5)) {
-          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
+          firewallActionOneof_ =
+              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
         }
-        redirectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder>(
-                (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_,
+        redirectBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction,
+                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder,
+                com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder>(
+                (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)
+                    firewallActionOneof_,
                 getParentForChildren(),
                 isClean());
         firewallActionOneof_ = null;
@@ -4002,14 +4433,21 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder> substituteBuilder_;
+            com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction,
+            com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder,
+            com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder>
+        substituteBuilder_;
     /**
+     *
+     *
      * 
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * + * * @return Whether the substitute field is set. */ @java.lang.Override @@ -4017,37 +4455,48 @@ public boolean hasSubstitute() { return firewallActionOneofCase_ == 3; } /** + * + * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * + * * @return The substitute. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getSubstitute() { if (substituteBuilder_ == null) { if (firewallActionOneofCase_ == 3) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) + firewallActionOneof_; } - return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + .getDefaultInstance(); } else { if (firewallActionOneofCase_ == 3) { return substituteBuilder_.getMessage(); } - return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + .getDefaultInstance(); } } /** + * + * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ - public Builder setSubstitute(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction value) { + public Builder setSubstitute( + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction value) { if (substituteBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4061,12 +4510,15 @@ public Builder setSubstitute(com.google.recaptchaenterprise.v1.FirewallAction.Su return this; } /** + * + * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ public Builder setSubstitute( com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder builderForValue) { @@ -4080,19 +4532,29 @@ public Builder setSubstitute( return this; } /** + * + * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ - public Builder mergeSubstitute(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction value) { + public Builder mergeSubstitute( + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction value) { if (substituteBuilder_ == null) { - if (firewallActionOneofCase_ == 3 && - firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance()) { - firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_) - .mergeFrom(value).buildPartial(); + if (firewallActionOneofCase_ == 3 + && firewallActionOneof_ + != com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + .getDefaultInstance()) { + firewallActionOneof_ = + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.newBuilder( + (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) + firewallActionOneof_) + .mergeFrom(value) + .buildPartial(); } else { firewallActionOneof_ = value; } @@ -4108,12 +4570,15 @@ public Builder mergeSubstitute(com.google.recaptchaenterprise.v1.FirewallAction. return this; } /** + * + * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ public Builder clearSubstitute() { if (substituteBuilder_ == null) { @@ -4132,53 +4597,74 @@ public Builder clearSubstitute() { return this; } /** + * + * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ - public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder getSubstituteBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder + getSubstituteBuilder() { return getSubstituteFieldBuilder().getBuilder(); } /** + * + * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder getSubstituteOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder + getSubstituteOrBuilder() { if ((firewallActionOneofCase_ == 3) && (substituteBuilder_ != null)) { return substituteBuilder_.getMessageOrBuilder(); } else { if (firewallActionOneofCase_ == 3) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) + firewallActionOneof_; } - return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + .getDefaultInstance(); } } /** + * + * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder> + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder> getSubstituteFieldBuilder() { if (substituteBuilder_ == null) { if (!(firewallActionOneofCase_ == 3)) { - firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); + firewallActionOneof_ = + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction + .getDefaultInstance(); } - substituteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder>( - (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_, + substituteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder>( + (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) + firewallActionOneof_, getParentForChildren(), isClean()); firewallActionOneof_ = null; @@ -4189,14 +4675,21 @@ public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilde } private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder> setHeaderBuilder_; + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder> + setHeaderBuilder_; /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * + * * @return Whether the setHeader field is set. */ @java.lang.Override @@ -4204,37 +4697,48 @@ public boolean hasSetHeader() { return firewallActionOneofCase_ == 4; } /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * + * * @return The setHeader. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getSetHeader() { if (setHeaderBuilder_ == null) { if (firewallActionOneofCase_ == 4) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) + firewallActionOneof_; } - return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + .getDefaultInstance(); } else { if (firewallActionOneofCase_ == 4) { return setHeaderBuilder_.getMessage(); } - return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + .getDefaultInstance(); } } /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ - public Builder setSetHeader(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction value) { + public Builder setSetHeader( + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction value) { if (setHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4248,12 +4752,15 @@ public Builder setSetHeader(com.google.recaptchaenterprise.v1.FirewallAction.Set return this; } /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ public Builder setSetHeader( com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder builderForValue) { @@ -4267,19 +4774,29 @@ public Builder setSetHeader( return this; } /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ - public Builder mergeSetHeader(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction value) { + public Builder mergeSetHeader( + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction value) { if (setHeaderBuilder_ == null) { - if (firewallActionOneofCase_ == 4 && - firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance()) { - firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_) - .mergeFrom(value).buildPartial(); + if (firewallActionOneofCase_ == 4 + && firewallActionOneof_ + != com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + .getDefaultInstance()) { + firewallActionOneof_ = + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.newBuilder( + (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) + firewallActionOneof_) + .mergeFrom(value) + .buildPartial(); } else { firewallActionOneof_ = value; } @@ -4295,12 +4812,15 @@ public Builder mergeSetHeader(com.google.recaptchaenterprise.v1.FirewallAction.S return this; } /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ public Builder clearSetHeader() { if (setHeaderBuilder_ == null) { @@ -4319,53 +4839,73 @@ public Builder clearSetHeader() { return this; } /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ - public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder getSetHeaderBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder + getSetHeaderBuilder() { return getSetHeaderFieldBuilder().getBuilder(); } /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder getSetHeaderOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder + getSetHeaderOrBuilder() { if ((firewallActionOneofCase_ == 4) && (setHeaderBuilder_ != null)) { return setHeaderBuilder_.getMessageOrBuilder(); } else { if (firewallActionOneofCase_ == 4) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) + firewallActionOneof_; } - return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction + .getDefaultInstance(); } } /** + * + * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder> + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder> getSetHeaderFieldBuilder() { if (setHeaderBuilder_ == null) { if (!(firewallActionOneofCase_ == 4)) { - firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); + firewallActionOneof_ = + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } - setHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder>( - (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_, + setHeaderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder>( + (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) + firewallActionOneof_, getParentForChildren(), isClean()); firewallActionOneof_ = null; @@ -4374,9 +4914,9 @@ public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder onChanged(); return setHeaderBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4386,12 +4926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction) private static final com.google.recaptchaenterprise.v1.FirewallAction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction(); } @@ -4400,27 +4940,27 @@ public static com.google.recaptchaenterprise.v1.FirewallAction getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FirewallAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -4435,6 +4975,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FirewallAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java similarity index 80% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java index 37347e8503ec..718f49c6bc82 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface FirewallActionOrBuilder extends +public interface FirewallActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; + * * @return Whether the allow field is set. */ boolean hasAllow(); /** + * + * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; + * * @return The allow. */ com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow(); /** + * + * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
@@ -38,26 +62,34 @@ public interface FirewallActionOrBuilder extends
   com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder getAllowOrBuilder();
 
   /**
+   *
+   *
    * 
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; + * * @return Whether the block field is set. */ boolean hasBlock(); /** + * + * *
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; + * * @return The block. */ com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock(); /** + * + * *
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
@@ -68,26 +100,34 @@ public interface FirewallActionOrBuilder extends
   com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder getBlockOrBuilder();
 
   /**
+   *
+   *
    * 
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; + * * @return Whether the redirect field is set. */ boolean hasRedirect(); /** + * + * *
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; + * * @return The redirect. */ com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedirect(); /** + * + * *
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
@@ -98,64 +138,88 @@ public interface FirewallActionOrBuilder extends
   com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder getRedirectOrBuilder();
 
   /**
+   *
+   *
    * 
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * + * * @return Whether the substitute field is set. */ boolean hasSubstitute(); /** + * + * *
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * + * * @return The substitute. */ com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getSubstitute(); /** + * + * *
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; + * */ - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder getSubstituteOrBuilder(); + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder + getSubstituteOrBuilder(); /** + * + * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * + * * @return Whether the setHeader field is set. */ boolean hasSetHeader(); /** + * + * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * + * * @return The setHeader. */ com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getSetHeader(); /** + * + * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; + * */ com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder getSetHeaderOrBuilder(); - com.google.recaptchaenterprise.v1.FirewallAction.FirewallActionOneofCase getFirewallActionOneofCase(); + com.google.recaptchaenterprise.v1.FirewallAction.FirewallActionOneofCase + getFirewallActionOneofCase(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java similarity index 74% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java index 1b2f38e05186..3afa86fff285 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * A FirewallPolicy represents a single matching pattern and resulting actions
  * to take.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallPolicy}
  */
-public final class FirewallPolicy extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FirewallPolicy extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallPolicy)
     FirewallPolicyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FirewallPolicy.newBuilder() to construct.
   private FirewallPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FirewallPolicy() {
     name_ = "";
     description_ = "";
@@ -30,34 +48,39 @@ private FirewallPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FirewallPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.FirewallPolicy.class, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder.class);
+            com.google.recaptchaenterprise.v1.FirewallPolicy.class,
+            com.google.recaptchaenterprise.v1.FirewallPolicy.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Identifier. The resource name for the FirewallPolicy in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ @java.lang.Override @@ -66,30 +89,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; } } /** + * + * *
    * Identifier. The resource name for the FirewallPolicy in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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 { @@ -98,9 +121,12 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. A description of what this policy aims to achieve, for
    * convenience purposes. The description can at most include 256 UTF-8
@@ -108,6 +134,7 @@ public java.lang.String getName() {
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -116,14 +143,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. A description of what this policy aims to achieve, for
    * convenience purposes. The description can at most include 256 UTF-8
@@ -131,16 +159,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -149,9 +176,12 @@ public java.lang.String getDescription() { } public static final int PATH_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** + * + * *
    * Optional. The path for which this policy applies, specified as a glob
    * pattern. For more information on glob, see the [manual
@@ -160,6 +190,7 @@ public java.lang.String getDescription() {
    * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ @java.lang.Override @@ -168,14 +199,15 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
    * Optional. The path for which this policy applies, specified as a glob
    * pattern. For more information on glob, see the [manual
@@ -184,16 +216,15 @@ public java.lang.String getPath() {
    * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -202,9 +233,12 @@ public java.lang.String getPath() { } public static final int CONDITION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** + * + * *
    * Optional. A CEL (Common Expression Language) conditional expression that
    * specifies if this policy applies to an incoming user request. If this
@@ -218,6 +252,7 @@ public java.lang.String getPath() {
    * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The condition. */ @java.lang.Override @@ -226,14 +261,15 @@ public java.lang.String getCondition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; } } /** + * + * *
    * Optional. A CEL (Common Expression Language) conditional expression that
    * specifies if this policy applies to an incoming user request. If this
@@ -247,16 +283,15 @@ public java.lang.String getCondition() {
    * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for condition. */ @java.lang.Override - public com.google.protobuf.ByteString - getConditionBytes() { + public com.google.protobuf.ByteString getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); condition_ = b; return b; } else { @@ -265,9 +300,12 @@ public java.lang.String getCondition() { } public static final int ACTIONS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.List actions_; /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -277,13 +315,17 @@ public java.lang.String getCondition() {
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -293,14 +335,18 @@ public java.util.List getActio
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getActionsOrBuilderList() { return actions_; } /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -310,13 +356,17 @@ public java.util.List getActio
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -326,13 +376,17 @@ public int getActionsCount() {
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) { return actions_.get(index); } /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -342,15 +396,17 @@ public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) {
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder(int index) { return actions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -362,8 +418,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -401,8 +456,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, condition_); } for (int i = 0; i < actions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, actions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, actions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -412,23 +466,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallPolicy)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallPolicy other = (com.google.recaptchaenterprise.v1.FirewallPolicy) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getPath() - .equals(other.getPath())) return false; - if (!getCondition() - .equals(other.getCondition())) return false; - if (!getActionsList() - .equals(other.getActionsList())) return false; + com.google.recaptchaenterprise.v1.FirewallPolicy other = + (com.google.recaptchaenterprise.v1.FirewallPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getCondition().equals(other.getCondition())) return false; + if (!getActionsList().equals(other.getActionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -457,99 +507,104 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FirewallPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 FirewallPolicy represents a single matching pattern and resulting actions
    * to take.
@@ -557,33 +612,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallPolicy}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallPolicy)
       com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallPolicy.class, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallPolicy.class,
+              com.google.recaptchaenterprise.v1.FirewallPolicy.Builder.class);
     }
 
     // Construct using com.google.recaptchaenterprise.v1.FirewallPolicy.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -603,9 +657,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -624,14 +678,18 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy build() {
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.FirewallPolicy buildPartial() {
-      com.google.recaptchaenterprise.v1.FirewallPolicy result = new com.google.recaptchaenterprise.v1.FirewallPolicy(this);
+      com.google.recaptchaenterprise.v1.FirewallPolicy result =
+          new com.google.recaptchaenterprise.v1.FirewallPolicy(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.FirewallPolicy result) {
+    private void buildPartialRepeatedFields(
+        com.google.recaptchaenterprise.v1.FirewallPolicy result) {
       if (actionsBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           actions_ = java.util.Collections.unmodifiableList(actions_);
@@ -663,38 +721,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallPolicy resu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.FirewallPolicy) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.FirewallPolicy)other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.FirewallPolicy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -702,7 +761,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallPolicy other) {
-      if (other == com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) return this;
+      if (other == com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -741,9 +801,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallPolicy other)
             actionsBuilder_ = null;
             actions_ = other.actions_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            actionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getActionsFieldBuilder() : null;
+            actionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getActionsFieldBuilder()
+                    : null;
           } else {
             actionsBuilder_.addAllMessages(other.actions_);
           }
@@ -775,45 +836,51 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              path_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            case 42: {
-              condition_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 50: {
-              com.google.recaptchaenterprise.v1.FirewallAction m =
-                  input.readMessage(
-                      com.google.recaptchaenterprise.v1.FirewallAction.parser(),
-                      extensionRegistry);
-              if (actionsBuilder_ == null) {
-                ensureActionsIsMutable();
-                actions_.add(m);
-              } else {
-                actionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                path_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            case 42:
+              {
+                condition_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 50:
+              {
+                com.google.recaptchaenterprise.v1.FirewallAction m =
+                    input.readMessage(
+                        com.google.recaptchaenterprise.v1.FirewallAction.parser(),
+                        extensionRegistry);
+                if (actionsBuilder_ == null) {
+                  ensureActionsIsMutable();
+                  actions_.add(m);
+                } else {
+                  actionsBuilder_.addMessage(m);
+                }
+                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) {
@@ -823,23 +890,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Identifier. The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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; @@ -848,21 +918,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Identifier. The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -870,30 +941,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Identifier. The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Identifier. The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -903,18 +981,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Identifier. The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -924,6 +1006,8 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -931,13 +1015,13 @@ public Builder setNameBytes(
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -946,6 +1030,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -953,15 +1039,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -969,6 +1054,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -976,18 +1063,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -995,6 +1086,7 @@ public Builder setDescription(
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1004,6 +1096,8 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -1011,12 +1105,14 @@ public Builder clearDescription() {
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1026,6 +1122,8 @@ public Builder setDescriptionBytes( private java.lang.Object path_ = ""; /** + * + * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1034,13 +1132,13 @@ public Builder setDescriptionBytes(
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -1049,6 +1147,8 @@ public java.lang.String getPath() { } } /** + * + * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1057,15 +1157,14 @@ public java.lang.String getPath() {
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -1073,6 +1172,8 @@ public java.lang.String getPath() { } } /** + * + * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1081,18 +1182,22 @@ public java.lang.String getPath() {
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } path_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1101,6 +1206,7 @@ public Builder setPath(
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPath() { @@ -1110,6 +1216,8 @@ public Builder clearPath() { return this; } /** + * + * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1118,12 +1226,14 @@ public Builder clearPath() {
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000004; @@ -1133,6 +1243,8 @@ public Builder setPathBytes( private java.lang.Object condition_ = ""; /** + * + * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1146,13 +1258,13 @@ public Builder setPathBytes(
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The condition. */ public java.lang.String getCondition() { java.lang.Object ref = condition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; @@ -1161,6 +1273,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1174,15 +1288,14 @@ public java.lang.String getCondition() {
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for condition. */ - public com.google.protobuf.ByteString - getConditionBytes() { + public com.google.protobuf.ByteString getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); condition_ = b; return b; } else { @@ -1190,6 +1303,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1203,18 +1318,22 @@ public java.lang.String getCondition() {
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The condition to set. * @return This builder for chaining. */ - public Builder setCondition( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCondition(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } condition_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1228,6 +1347,7 @@ public Builder setCondition(
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCondition() { @@ -1237,6 +1357,8 @@ public Builder clearCondition() { return this; } /** + * + * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1250,12 +1372,14 @@ public Builder clearCondition() {
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for condition to set. * @return This builder for chaining. */ - public Builder setConditionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConditionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); condition_ = value; bitField0_ |= 0x00000008; @@ -1264,18 +1388,25 @@ public Builder setConditionBytes( } private java.util.List actions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - actions_ = new java.util.ArrayList(actions_); + actions_ = + new java.util.ArrayList(actions_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction, com.google.recaptchaenterprise.v1.FirewallAction.Builder, com.google.recaptchaenterprise.v1.FirewallActionOrBuilder> actionsBuilder_; + com.google.recaptchaenterprise.v1.FirewallAction, + com.google.recaptchaenterprise.v1.FirewallAction.Builder, + com.google.recaptchaenterprise.v1.FirewallActionOrBuilder> + actionsBuilder_; /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1285,7 +1416,9 @@ private void ensureActionsIsMutable() {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { @@ -1295,6 +1428,8 @@ public java.util.List getActio } } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1304,7 +1439,9 @@ public java.util.List getActio
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getActionsCount() { if (actionsBuilder_ == null) { @@ -1314,6 +1451,8 @@ public int getActionsCount() { } } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1323,7 +1462,9 @@ public int getActionsCount() {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) { if (actionsBuilder_ == null) { @@ -1333,6 +1474,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) { } } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1342,10 +1485,11 @@ public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setActions( - int index, com.google.recaptchaenterprise.v1.FirewallAction value) { + public Builder setActions(int index, com.google.recaptchaenterprise.v1.FirewallAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1359,6 +1503,8 @@ public Builder setActions( return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1368,7 +1514,9 @@ public Builder setActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setActions( int index, com.google.recaptchaenterprise.v1.FirewallAction.Builder builderForValue) { @@ -1382,6 +1530,8 @@ public Builder setActions( return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1391,7 +1541,9 @@ public Builder setActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addActions(com.google.recaptchaenterprise.v1.FirewallAction value) { if (actionsBuilder_ == null) { @@ -1407,6 +1559,8 @@ public Builder addActions(com.google.recaptchaenterprise.v1.FirewallAction value return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1416,10 +1570,11 @@ public Builder addActions(com.google.recaptchaenterprise.v1.FirewallAction value
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addActions( - int index, com.google.recaptchaenterprise.v1.FirewallAction value) { + public Builder addActions(int index, com.google.recaptchaenterprise.v1.FirewallAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1433,6 +1588,8 @@ public Builder addActions( return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1442,7 +1599,9 @@ public Builder addActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addActions( com.google.recaptchaenterprise.v1.FirewallAction.Builder builderForValue) { @@ -1456,6 +1615,8 @@ public Builder addActions( return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1465,7 +1626,9 @@ public Builder addActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addActions( int index, com.google.recaptchaenterprise.v1.FirewallAction.Builder builderForValue) { @@ -1479,6 +1642,8 @@ public Builder addActions( return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1488,14 +1653,15 @@ public Builder addActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); @@ -1503,6 +1669,8 @@ public Builder addAllActions( return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1512,7 +1680,9 @@ public Builder addAllActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearActions() { if (actionsBuilder_ == null) { @@ -1525,6 +1695,8 @@ public Builder clearActions() { return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1534,7 +1706,9 @@ public Builder clearActions() {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { @@ -1547,6 +1721,8 @@ public Builder removeActions(int index) { return this; } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1556,13 +1732,16 @@ public Builder removeActions(int index) {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.FirewallAction.Builder getActionsBuilder( - int index) { + public com.google.recaptchaenterprise.v1.FirewallAction.Builder getActionsBuilder(int index) { return getActionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1572,16 +1751,21 @@ public com.google.recaptchaenterprise.v1.FirewallAction.Builder getActionsBuilde
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { - return actions_.get(index); } else { + return actions_.get(index); + } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1591,10 +1775,12 @@ public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBui
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getActionsOrBuilderList() { + public java.util.List + getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { @@ -1602,6 +1788,8 @@ public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBui } } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1611,13 +1799,17 @@ public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBui
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilder() { - return getActionsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()); + return getActionsFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()); } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1627,14 +1819,17 @@ public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilde
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilder( - int index) { - return getActionsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilder(int index) { + return getActionsFieldBuilder() + .addBuilder(index, com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()); } /** + * + * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1644,29 +1839,34 @@ public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilde
      * specified. A single policy can contain up to 16 actions.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getActionsBuilderList() { + public java.util.List + getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction, com.google.recaptchaenterprise.v1.FirewallAction.Builder, com.google.recaptchaenterprise.v1.FirewallActionOrBuilder> + com.google.recaptchaenterprise.v1.FirewallAction, + com.google.recaptchaenterprise.v1.FirewallAction.Builder, + com.google.recaptchaenterprise.v1.FirewallActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { - actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction, com.google.recaptchaenterprise.v1.FirewallAction.Builder, com.google.recaptchaenterprise.v1.FirewallActionOrBuilder>( - actions_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + actionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction, + com.google.recaptchaenterprise.v1.FirewallAction.Builder, + com.google.recaptchaenterprise.v1.FirewallActionOrBuilder>( + actions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1676,12 +1876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallPolicy) private static final com.google.recaptchaenterprise.v1.FirewallPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallPolicy(); } @@ -1690,27 +1890,27 @@ public static com.google.recaptchaenterprise.v1.FirewallPolicy getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FirewallPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1725,6 +1925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FirewallPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java similarity index 67% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java index 72a20646b051..90dd8af1f107 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java @@ -1,56 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Policy config assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment} */ -public final class FirewallPolicyAssessment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FirewallPolicyAssessment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) FirewallPolicyAssessmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FirewallPolicyAssessment.newBuilder() to construct. private FirewallPolicyAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FirewallPolicyAssessment() { - } + + private FirewallPolicyAssessment() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FirewallPolicyAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.class, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder.class); + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.class, + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder.class); } public static final int ERROR_FIELD_NUMBER = 5; private com.google.rpc.Status error_; /** + * + * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ @java.lang.Override @@ -58,12 +79,15 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ @java.lang.Override @@ -71,6 +95,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
@@ -86,13 +112,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int FIREWALL_POLICY_FIELD_NUMBER = 8;
   private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_;
   /**
+   *
+   *
    * 
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the firewallPolicy field is set. */ @java.lang.Override @@ -100,34 +131,48 @@ public boolean hasFirewallPolicy() { return firewallPolicy_ != null; } /** + * + * *
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The firewallPolicy. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } /** + * + * *
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +184,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (error_ != null) { output.writeMessage(5, getError()); } @@ -157,12 +201,10 @@ public int getSerializedSize() { size = 0; if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError()); } if (firewallPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getFirewallPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFirewallPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,22 +214,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallPolicyAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment other = (com.google.recaptchaenterprise.v1.FirewallPolicyAssessment) obj; + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment other = + (com.google.recaptchaenterprise.v1.FirewallPolicyAssessment) obj; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (hasFirewallPolicy() != other.hasFirewallPolicy()) return false; if (hasFirewallPolicy()) { - if (!getFirewallPolicy() - .equals(other.getFirewallPolicy())) return false; + if (!getFirewallPolicy().equals(other.getFirewallPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -214,131 +255,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Policy config assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.class, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder.class); + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.class, + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +403,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; } @java.lang.Override @@ -378,8 +424,11 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment buildPartial() { - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment result = new com.google.recaptchaenterprise.v1.FirewallPolicyAssessment(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment result = + new com.google.recaptchaenterprise.v1.FirewallPolicyAssessment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -387,14 +436,11 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment buildPartial() private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.error_ = errorBuilder_ == null - ? error_ - : errorBuilder_.build(); + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.firewallPolicy_ = firewallPolicyBuilder_ == null - ? firewallPolicy_ - : firewallPolicyBuilder_.build(); + result.firewallPolicy_ = + firewallPolicyBuilder_ == null ? firewallPolicy_ : firewallPolicyBuilder_.build(); } } @@ -402,38 +448,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallPolicyAsses public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FirewallPolicyAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1.FirewallPolicyAssessment)other); + return mergeFrom((com.google.recaptchaenterprise.v1.FirewallPolicyAssessment) other); } else { super.mergeFrom(other); return this; @@ -441,7 +488,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment other) { - if (other == com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance()) + return this; if (other.hasError()) { mergeError(other.getError()); } @@ -474,26 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 42: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 66: { - input.readMessage( - getFirewallPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 42: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 66: + { + input.readMessage(getFirewallPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -503,30 +550,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -537,6 +592,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -558,6 +615,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -565,8 +624,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
       } else {
@@ -577,6 +635,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -586,9 +646,9 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          error_ != null &&
-          error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && error_ != null
+            && error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -601,6 +661,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -619,6 +681,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -632,6 +696,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -643,11 +709,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -656,14 +723,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -671,45 +738,64 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> firewallPolicyBuilder_;
+            com.google.recaptchaenterprise.v1.FirewallPolicy,
+            com.google.recaptchaenterprise.v1.FirewallPolicy.Builder,
+            com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>
+        firewallPolicyBuilder_;
     /**
+     *
+     *
      * 
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the firewallPolicy field is set. */ public boolean hasFirewallPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The firewallPolicy. */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { if (firewallPolicyBuilder_ == null) { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } else { return firewallPolicyBuilder_.getMessage(); } } /** + * + * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { @@ -725,13 +811,17 @@ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolic return this; } /** + * + * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setFirewallPolicy( com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -745,19 +835,24 @@ public Builder setFirewallPolicy( return this; } /** + * + * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - firewallPolicy_ != null && - firewallPolicy_ != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && firewallPolicy_ != null + && firewallPolicy_ + != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { getFirewallPolicyBuilder().mergeFrom(value); } else { firewallPolicy_ = value; @@ -770,13 +865,17 @@ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPol return this; } /** + * + * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearFirewallPolicy() { bitField0_ = (bitField0_ & ~0x00000002); @@ -789,13 +888,17 @@ public Builder clearFirewallPolicy() { return this; } /** + * + * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolicyBuilder() { bitField0_ |= 0x00000002; @@ -803,47 +906,59 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolic return getFirewallPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { if (firewallPolicyBuilder_ != null) { return firewallPolicyBuilder_.getMessageOrBuilder(); } else { - return firewallPolicy_ == null ? - com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } } /** + * + * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> getFirewallPolicyFieldBuilder() { if (firewallPolicyBuilder_ == null) { - firewallPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( - getFirewallPolicy(), - getParentForChildren(), - isClean()); + firewallPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( + getFirewallPolicy(), getParentForChildren(), isClean()); firewallPolicy_ = null; } return firewallPolicyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -853,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) private static final com.google.recaptchaenterprise.v1.FirewallPolicyAssessment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallPolicyAssessment(); } @@ -867,27 +982,27 @@ public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FirewallPolicyAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallPolicyAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -902,6 +1017,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java similarity index 66% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java index b7889708d14d..1bbe128776c0 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface FirewallPolicyAssessmentOrBuilder extends +public interface FirewallPolicyAssessmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
@@ -38,35 +62,49 @@ public interface FirewallPolicyAssessmentOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the firewallPolicy field is set. */ boolean hasFirewallPolicy(); /** + * + * *
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The firewallPolicy. */ com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(); /** + * + * *
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java similarity index 77% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java index 531c1a717d47..76b41d9428c9 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface FirewallPolicyOrBuilder extends +public interface FirewallPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Identifier. The resource name for the FirewallPolicy in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Identifier. The resource name for the FirewallPolicy in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A description of what this policy aims to achieve, for
    * convenience purposes. The description can at most include 256 UTF-8
@@ -37,10 +60,13 @@ public interface FirewallPolicyOrBuilder extends
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A description of what this policy aims to achieve, for
    * convenience purposes. The description can at most include 256 UTF-8
@@ -48,12 +74,14 @@ public interface FirewallPolicyOrBuilder extends
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. The path for which this policy applies, specified as a glob
    * pattern. For more information on glob, see the [manual
@@ -62,10 +90,13 @@ public interface FirewallPolicyOrBuilder extends
    * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
    * Optional. The path for which this policy applies, specified as a glob
    * pattern. For more information on glob, see the [manual
@@ -74,12 +105,14 @@ public interface FirewallPolicyOrBuilder extends
    * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
    * Optional. A CEL (Common Expression Language) conditional expression that
    * specifies if this policy applies to an incoming user request. If this
@@ -93,10 +126,13 @@ public interface FirewallPolicyOrBuilder extends
    * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The condition. */ java.lang.String getCondition(); /** + * + * *
    * Optional. A CEL (Common Expression Language) conditional expression that
    * specifies if this policy applies to an incoming user request. If this
@@ -110,12 +146,14 @@ public interface FirewallPolicyOrBuilder extends
    * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for condition. */ - com.google.protobuf.ByteString - getConditionBytes(); + com.google.protobuf.ByteString getConditionBytes(); /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -125,11 +163,14 @@ public interface FirewallPolicyOrBuilder extends
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getActionsList(); + java.util.List getActionsList(); /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -139,10 +180,14 @@ public interface FirewallPolicyOrBuilder extends
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.FirewallAction getActions(int index); /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -152,10 +197,14 @@ public interface FirewallPolicyOrBuilder extends
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getActionsCount(); /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -165,11 +214,15 @@ public interface FirewallPolicyOrBuilder extends
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getActionsOrBuilderList(); /** + * + * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -179,8 +232,9 @@ public interface FirewallPolicyOrBuilder extends
    * specified. A single policy can contain up to 16 actions.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder( - int index); + com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java similarity index 56% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java index 158b8f230f1f..42e5581a0fb5 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java @@ -1,111 +1,142 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Assessment for Fraud Prevention.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment} */ -public final class FraudPreventionAssessment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FraudPreventionAssessment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) FraudPreventionAssessmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FraudPreventionAssessment.newBuilder() to construct. private FraudPreventionAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FraudPreventionAssessment() { - } + + private FraudPreventionAssessment() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FraudPreventionAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.class, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder.class); } - public interface StolenInstrumentVerdictOrBuilder extends + public interface StolenInstrumentVerdictOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. Probability of this transaction being executed with a stolen
      * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
      * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The risk. */ float getRisk(); } /** + * + * *
    * Information about stolen instrument fraud, where the user is not the
    * legitimate owner of the instrument being used for the purchase.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict} */ - public static final class StolenInstrumentVerdict extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StolenInstrumentVerdict extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) StolenInstrumentVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StolenInstrumentVerdict.newBuilder() to construct. private StolenInstrumentVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StolenInstrumentVerdict() { - } + + private StolenInstrumentVerdict() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StolenInstrumentVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .class, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder.class); } public static final int RISK_FIELD_NUMBER = 1; private float risk_ = 0F; /** + * + * *
      * Output only. Probability of this transaction being executed with a stolen
      * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
      * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The risk. */ @java.lang.Override @@ -114,6 +145,7 @@ public float getRisk() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +157,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(risk_) != 0) { output.writeFloat(1, risk_); } @@ -140,8 +171,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(risk_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, risk_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,16 +181,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.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict)) { + if (!(obj + instanceof + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict other = (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) obj; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict other = + (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) obj; if (java.lang.Float.floatToIntBits(getRisk()) - != java.lang.Float.floatToIntBits( - other.getRisk())) return false; + != java.lang.Float.floatToIntBits(other.getRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,97 +205,120 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict 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.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + 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.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict 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.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + 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.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -273,40 +328,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about stolen instrument fraud, where the user is not the
      * legitimate owner of the instrument being used for the purchase.
      * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .class, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder.class); } - // Construct using com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -316,19 +378,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict build() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result = buildPartial(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + build() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -336,14 +402,21 @@ public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrum } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict buildPartial() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + buildPartial() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result = + new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.risk_ = risk_; @@ -354,46 +427,57 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAsse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict)other); + if (other + instanceof + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) { + return mergeFrom( + (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict other) { - if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + other) { + if (other + == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .getDefaultInstance()) return this; if (other.getRisk() != 0F) { setRisk(other.getRisk()); } @@ -423,17 +507,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - risk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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) { @@ -443,16 +529,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float risk_ ; + private float risk_; /** + * + * *
        * Output only. Probability of this transaction being executed with a stolen
        * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The risk. */ @java.lang.Override @@ -460,12 +550,15 @@ public float getRisk() { return risk_; } /** + * + * *
        * Output only. Probability of this transaction being executed with a stolen
        * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The risk to set. * @return This builder for chaining. */ @@ -477,12 +570,15 @@ public Builder setRisk(float value) { return this; } /** + * + * *
        * Output only. Probability of this transaction being executed with a stolen
        * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRisk() { @@ -491,6 +587,7 @@ public Builder clearRisk() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -503,41 +600,47 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) - private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict(); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StolenInstrumentVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StolenInstrumentVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -549,76 +652,88 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CardTestingVerdictOrBuilder extends + public interface CardTestingVerdictOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. Probability of this transaction attempt being part of a card
      * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
      * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The risk. */ float getRisk(); } /** + * + * *
    * Information about card testing fraud, where an adversary is testing
    * fraudulently obtained cards or brute forcing their details.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict} */ - public static final class CardTestingVerdict extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CardTestingVerdict extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) CardTestingVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CardTestingVerdict.newBuilder() to construct. private CardTestingVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CardTestingVerdict() { - } + + private CardTestingVerdict() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CardTestingVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.class, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder + .class); } public static final int RISK_FIELD_NUMBER = 1; private float risk_ = 0F; /** + * + * *
      * Output only. Probability of this transaction attempt being part of a card
      * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
      * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The risk. */ @java.lang.Override @@ -627,6 +742,7 @@ public float getRisk() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -638,8 +754,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(risk_) != 0) { output.writeFloat(1, risk_); } @@ -653,8 +768,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(risk_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, risk_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -664,16 +778,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.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict)) { + if (!(obj + instanceof + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict other = (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) obj; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict other = + (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) obj; if (java.lang.Float.floatToIntBits(getRisk()) - != java.lang.Float.floatToIntBits( - other.getRisk())) return false; + != java.lang.Float.floatToIntBits(other.getRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -686,97 +802,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict 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.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + 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.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict 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.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + 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.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -786,40 +912,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about card testing fraud, where an adversary is testing
      * fraudulently obtained cards or brute forcing their details.
      * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .class, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .Builder.class); } - // Construct using com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.newBuilder() - private Builder() { + // Construct using + // com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -829,19 +961,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict build() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result = buildPartial(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + build() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -849,14 +985,20 @@ public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVe } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict buildPartial() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + buildPartial() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result = + new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.risk_ = risk_; @@ -867,46 +1009,56 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAsse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict)other); + if (other + instanceof + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) { + return mergeFrom( + (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict other) { - if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict other) { + if (other + == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance()) return this; if (other.getRisk() != 0F) { setRisk(other.getRisk()); } @@ -936,17 +1088,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - risk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -956,16 +1110,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float risk_ ; + private float risk_; /** + * + * *
        * Output only. Probability of this transaction attempt being part of a card
        * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The risk. */ @java.lang.Override @@ -973,12 +1131,15 @@ public float getRisk() { return risk_; } /** + * + * *
        * Output only. Probability of this transaction attempt being part of a card
        * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The risk to set. * @return This builder for chaining. */ @@ -990,12 +1151,15 @@ public Builder setRisk(float value) { return this; } /** + * + * *
        * Output only. Probability of this transaction attempt being part of a card
        * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRisk() { @@ -1004,6 +1168,7 @@ public Builder clearRisk() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1016,41 +1181,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) - private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .CardTestingVerdict + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict(); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CardTestingVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardTestingVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1062,17 +1232,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BehavioralTrustVerdictOrBuilder extends + public interface BehavioralTrustVerdictOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. Probability of this transaction attempt being executed in a
      * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1080,52 +1253,61 @@ public interface BehavioralTrustVerdictOrBuilder extends
      * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The trust. */ float getTrust(); } /** + * + * *
    * Information about behavioral trust of the transaction.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict} */ - public static final class BehavioralTrustVerdict extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BehavioralTrustVerdict extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) BehavioralTrustVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BehavioralTrustVerdict.newBuilder() to construct. private BehavioralTrustVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BehavioralTrustVerdict() { - } + + private BehavioralTrustVerdict() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BehavioralTrustVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .class, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder.class); } public static final int TRUST_FIELD_NUMBER = 1; private float trust_ = 0F; /** + * + * *
      * Output only. Probability of this transaction attempt being executed in a
      * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1133,6 +1315,7 @@ protected java.lang.Object newInstance(
      * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The trust. */ @java.lang.Override @@ -1141,6 +1324,7 @@ public float getTrust() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1152,8 +1336,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(trust_) != 0) { output.writeFloat(1, trust_); } @@ -1167,8 +1350,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(trust_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, trust_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, trust_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1178,16 +1360,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.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict)) { + if (!(obj + instanceof + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict other = (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) obj; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict other = + (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) obj; if (java.lang.Float.floatToIntBits(getTrust()) - != java.lang.Float.floatToIntBits( - other.getTrust())) return false; + != java.lang.Float.floatToIntBits(other.getTrust())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1200,97 +1384,108 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRUST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTrust()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTrust()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict 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.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + 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.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict 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.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + 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.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1300,39 +1495,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about behavioral trust of the transaction.
      * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .class, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder.class); } - // Construct using com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.newBuilder() - private Builder() { + // Construct using + // com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1342,19 +1544,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict build() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result = buildPartial(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + build() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1362,14 +1568,21 @@ public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTru } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict buildPartial() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + buildPartial() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result = + new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.trust_ = trust_; @@ -1380,46 +1593,57 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAsse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict)other); + if (other + instanceof + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) { + return mergeFrom( + (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict other) { - if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + other) { + if (other + == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .getDefaultInstance()) return this; if (other.getTrust() != 0F) { setTrust(other.getTrust()); } @@ -1449,17 +1673,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - trust_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + trust_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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) { @@ -1469,10 +1695,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float trust_ ; + private float trust_; /** + * + * *
        * Output only. Probability of this transaction attempt being executed in a
        * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1480,6 +1709,7 @@ public Builder mergeFrom(
        * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The trust. */ @java.lang.Override @@ -1487,6 +1717,8 @@ public float getTrust() { return trust_; } /** + * + * *
        * Output only. Probability of this transaction attempt being executed in a
        * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1494,6 +1726,7 @@ public float getTrust() {
        * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The trust to set. * @return This builder for chaining. */ @@ -1505,6 +1738,8 @@ public Builder setTrust(float value) { return this; } /** + * + * *
        * Output only. Probability of this transaction attempt being executed in a
        * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1512,6 +1747,7 @@ public Builder setTrust(float value) {
        * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTrust() { @@ -1520,6 +1756,7 @@ public Builder clearTrust() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1532,41 +1769,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) - private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .BehavioralTrustVerdict + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict(); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BehavioralTrustVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BehavioralTrustVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1578,15 +1820,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int TRANSACTION_RISK_FIELD_NUMBER = 1; private float transactionRisk_ = 0F; /** + * + * *
    * Output only. Probability of this transaction being fraudulent. Summarizes
    * the combined risk of attack vectors below. Values are from 0.0 (lowest)
@@ -1594,6 +1838,7 @@ public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTru
    * 
* * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The transactionRisk. */ @java.lang.Override @@ -1602,14 +1847,20 @@ public float getTransactionRisk() { } public static final int STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER = 2; - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolenInstrumentVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + stolenInstrumentVerdict_; /** + * + * *
    * Output only. Assessment of this transaction for risk of a stolen
    * instrument.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stolenInstrumentVerdict field is set. */ @java.lang.Override @@ -1617,40 +1868,64 @@ public boolean hasStolenInstrumentVerdict() { return stolenInstrumentVerdict_ != null; } /** + * + * *
    * Output only. Assessment of this transaction for risk of a stolen
    * instrument.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stolenInstrumentVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict() { - return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + getStolenInstrumentVerdict() { + return stolenInstrumentVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .getDefaultInstance() + : stolenInstrumentVerdict_; } /** + * + * *
    * Output only. Assessment of this transaction for risk of a stolen
    * instrument.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder() { - return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder + getStolenInstrumentVerdictOrBuilder() { + return stolenInstrumentVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .getDefaultInstance() + : stolenInstrumentVerdict_; } public static final int CARD_TESTING_VERDICT_FIELD_NUMBER = 3; - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict cardTestingVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + cardTestingVerdict_; /** + * + * *
    * Output only. Assessment of this transaction for risk of being part of a
    * card testing attack.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the cardTestingVerdict field is set. */ @java.lang.Override @@ -1658,39 +1933,62 @@ public boolean hasCardTestingVerdict() { return cardTestingVerdict_ != null; } /** + * + * *
    * Output only. Assessment of this transaction for risk of being part of a
    * card testing attack.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The cardTestingVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict() { - return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + getCardTestingVerdict() { + return cardTestingVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance() + : cardTestingVerdict_; } /** + * + * *
    * Output only. Assessment of this transaction for risk of being part of a
    * card testing attack.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder() { - return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder + getCardTestingVerdictOrBuilder() { + return cardTestingVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance() + : cardTestingVerdict_; } public static final int BEHAVIORAL_TRUST_VERDICT_FIELD_NUMBER = 4; - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioralTrustVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + behavioralTrustVerdict_; /** + * + * *
    * Output only. Assessment of this transaction for behavioral trust.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the behavioralTrustVerdict field is set. */ @java.lang.Override @@ -1698,30 +1996,48 @@ public boolean hasBehavioralTrustVerdict() { return behavioralTrustVerdict_ != null; } /** + * + * *
    * Output only. Assessment of this transaction for behavioral trust.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The behavioralTrustVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict() { - return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + getBehavioralTrustVerdict() { + return behavioralTrustVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .getDefaultInstance() + : behavioralTrustVerdict_; } /** + * + * *
    * Output only. Assessment of this transaction for behavioral trust.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder() { - return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder + getBehavioralTrustVerdictOrBuilder() { + return behavioralTrustVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .getDefaultInstance() + : behavioralTrustVerdict_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1733,8 +2049,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) { output.writeFloat(1, transactionRisk_); } @@ -1757,20 +2072,18 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, transactionRisk_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, transactionRisk_); } if (stolenInstrumentVerdict_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStolenInstrumentVerdict()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStolenInstrumentVerdict()); } if (cardTestingVerdict_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCardTestingVerdict()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCardTestingVerdict()); } if (behavioralTrustVerdict_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getBehavioralTrustVerdict()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBehavioralTrustVerdict()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1780,30 +2093,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudPreventionAssessment other = (com.google.recaptchaenterprise.v1.FraudPreventionAssessment) obj; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment other = + (com.google.recaptchaenterprise.v1.FraudPreventionAssessment) obj; if (java.lang.Float.floatToIntBits(getTransactionRisk()) - != java.lang.Float.floatToIntBits( - other.getTransactionRisk())) return false; + != java.lang.Float.floatToIntBits(other.getTransactionRisk())) return false; if (hasStolenInstrumentVerdict() != other.hasStolenInstrumentVerdict()) return false; if (hasStolenInstrumentVerdict()) { - if (!getStolenInstrumentVerdict() - .equals(other.getStolenInstrumentVerdict())) return false; + if (!getStolenInstrumentVerdict().equals(other.getStolenInstrumentVerdict())) return false; } if (hasCardTestingVerdict() != other.hasCardTestingVerdict()) return false; if (hasCardTestingVerdict()) { - if (!getCardTestingVerdict() - .equals(other.getCardTestingVerdict())) return false; + if (!getCardTestingVerdict().equals(other.getCardTestingVerdict())) return false; } if (hasBehavioralTrustVerdict() != other.hasBehavioralTrustVerdict()) return false; if (hasBehavioralTrustVerdict()) { - if (!getBehavioralTrustVerdict() - .equals(other.getBehavioralTrustVerdict())) return false; + if (!getBehavioralTrustVerdict().equals(other.getBehavioralTrustVerdict())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1817,8 +2127,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRANSACTION_RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTransactionRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTransactionRisk()); if (hasStolenInstrumentVerdict()) { hash = (37 * hash) + STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER; hash = (53 * hash) + getStolenInstrumentVerdict().hashCode(); @@ -1837,131 +2146,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudPreventionAssessment prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Assessment for Fraud Prevention.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.class, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FraudPreventionAssessment.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1986,9 +2300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; } @java.lang.Override @@ -2007,8 +2321,11 @@ public com.google.recaptchaenterprise.v1.FraudPreventionAssessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FraudPreventionAssessment buildPartial() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment result = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.FraudPreventionAssessment result = + new com.google.recaptchaenterprise.v1.FraudPreventionAssessment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -2019,19 +2336,22 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAsse result.transactionRisk_ = transactionRisk_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.stolenInstrumentVerdict_ = stolenInstrumentVerdictBuilder_ == null - ? stolenInstrumentVerdict_ - : stolenInstrumentVerdictBuilder_.build(); + result.stolenInstrumentVerdict_ = + stolenInstrumentVerdictBuilder_ == null + ? stolenInstrumentVerdict_ + : stolenInstrumentVerdictBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cardTestingVerdict_ = cardTestingVerdictBuilder_ == null - ? cardTestingVerdict_ - : cardTestingVerdictBuilder_.build(); + result.cardTestingVerdict_ = + cardTestingVerdictBuilder_ == null + ? cardTestingVerdict_ + : cardTestingVerdictBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.behavioralTrustVerdict_ = behavioralTrustVerdictBuilder_ == null - ? behavioralTrustVerdict_ - : behavioralTrustVerdictBuilder_.build(); + result.behavioralTrustVerdict_ = + behavioralTrustVerdictBuilder_ == null + ? behavioralTrustVerdict_ + : behavioralTrustVerdictBuilder_.build(); } } @@ -2039,38 +2359,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAsse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment)other); + return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment) other); } else { super.mergeFrom(other); return this; @@ -2078,7 +2399,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudPreventionAssessment other) { - if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance()) + return this; if (other.getTransactionRisk() != 0F) { setTransactionRisk(other.getTransactionRisk()); } @@ -2117,38 +2439,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - transactionRisk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 18: { - input.readMessage( - getStolenInstrumentVerdictFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCardTestingVerdictFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getBehavioralTrustVerdictFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + transactionRisk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: + { + input.readMessage( + getStolenInstrumentVerdictFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCardTestingVerdictFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getBehavioralTrustVerdictFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -2158,10 +2482,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float transactionRisk_ ; + private float transactionRisk_; /** + * + * *
      * Output only. Probability of this transaction being fraudulent. Summarizes
      * the combined risk of attack vectors below. Values are from 0.0 (lowest)
@@ -2169,6 +2496,7 @@ public Builder mergeFrom(
      * 
* * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The transactionRisk. */ @java.lang.Override @@ -2176,6 +2504,8 @@ public float getTransactionRisk() { return transactionRisk_; } /** + * + * *
      * Output only. Probability of this transaction being fraudulent. Summarizes
      * the combined risk of attack vectors below. Values are from 0.0 (lowest)
@@ -2183,6 +2513,7 @@ public float getTransactionRisk() {
      * 
* * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The transactionRisk to set. * @return This builder for chaining. */ @@ -2194,6 +2525,8 @@ public Builder setTransactionRisk(float value) { return this; } /** + * + * *
      * Output only. Probability of this transaction being fraudulent. Summarizes
      * the combined risk of attack vectors below. Values are from 0.0 (lowest)
@@ -2201,6 +2534,7 @@ public Builder setTransactionRisk(float value) {
      * 
* * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTransactionRisk() { @@ -2210,46 +2544,71 @@ public Builder clearTransactionRisk() { return this; } - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolenInstrumentVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + stolenInstrumentVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder> stolenInstrumentVerdictBuilder_; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder> + stolenInstrumentVerdictBuilder_; /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stolenInstrumentVerdict field is set. */ public boolean hasStolenInstrumentVerdict() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stolenInstrumentVerdict. */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + getStolenInstrumentVerdict() { if (stolenInstrumentVerdictBuilder_ == null) { - return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; + return stolenInstrumentVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .getDefaultInstance() + : stolenInstrumentVerdict_; } else { return stolenInstrumentVerdictBuilder_.getMessage(); } } /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStolenInstrumentVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict value) { + public Builder setStolenInstrumentVerdict( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict value) { if (stolenInstrumentVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2263,15 +2622,20 @@ public Builder setStolenInstrumentVerdict(com.google.recaptchaenterprise.v1.Frau return this; } /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStolenInstrumentVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder builderForValue) { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder + builderForValue) { if (stolenInstrumentVerdictBuilder_ == null) { stolenInstrumentVerdict_ = builderForValue.build(); } else { @@ -2282,18 +2646,25 @@ public Builder setStolenInstrumentVerdict( return this; } /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeStolenInstrumentVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict value) { + public Builder mergeStolenInstrumentVerdict( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict value) { if (stolenInstrumentVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - stolenInstrumentVerdict_ != null && - stolenInstrumentVerdict_ != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && stolenInstrumentVerdict_ != null + && stolenInstrumentVerdict_ + != com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdict.getDefaultInstance()) { getStolenInstrumentVerdictBuilder().mergeFrom(value); } else { stolenInstrumentVerdict_ = value; @@ -2306,12 +2677,16 @@ public Builder mergeStolenInstrumentVerdict(com.google.recaptchaenterprise.v1.Fr return this; } /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStolenInstrumentVerdict() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2324,96 +2699,144 @@ public Builder clearStolenInstrumentVerdict() { return this; } /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder getStolenInstrumentVerdictBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder + getStolenInstrumentVerdictBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStolenInstrumentVerdictFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder + getStolenInstrumentVerdictOrBuilder() { if (stolenInstrumentVerdictBuilder_ != null) { return stolenInstrumentVerdictBuilder_.getMessageOrBuilder(); } else { - return stolenInstrumentVerdict_ == null ? - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; + return stolenInstrumentVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .getDefaultInstance() + : stolenInstrumentVerdict_; } } /** + * + * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder> + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder> getStolenInstrumentVerdictFieldBuilder() { if (stolenInstrumentVerdictBuilder_ == null) { - stolenInstrumentVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder>( - getStolenInstrumentVerdict(), - getParentForChildren(), - isClean()); + stolenInstrumentVerdictBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder>( + getStolenInstrumentVerdict(), getParentForChildren(), isClean()); stolenInstrumentVerdict_ = null; } return stolenInstrumentVerdictBuilder_; } - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict cardTestingVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + cardTestingVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> cardTestingVerdictBuilder_; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> + cardTestingVerdictBuilder_; /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the cardTestingVerdict field is set. */ public boolean hasCardTestingVerdict() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The cardTestingVerdict. */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + getCardTestingVerdict() { if (cardTestingVerdictBuilder_ == null) { - return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; + return cardTestingVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance() + : cardTestingVerdict_; } else { return cardTestingVerdictBuilder_.getMessage(); } } /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCardTestingVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict value) { + public Builder setCardTestingVerdict( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict value) { if (cardTestingVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2427,15 +2850,20 @@ public Builder setCardTestingVerdict(com.google.recaptchaenterprise.v1.FraudPrev return this; } /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCardTestingVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder builderForValue) { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder + builderForValue) { if (cardTestingVerdictBuilder_ == null) { cardTestingVerdict_ = builderForValue.build(); } else { @@ -2446,18 +2874,25 @@ public Builder setCardTestingVerdict( return this; } /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeCardTestingVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict value) { + public Builder mergeCardTestingVerdict( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict value) { if (cardTestingVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - cardTestingVerdict_ != null && - cardTestingVerdict_ != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && cardTestingVerdict_ != null + && cardTestingVerdict_ + != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance()) { getCardTestingVerdictBuilder().mergeFrom(value); } else { cardTestingVerdict_ = value; @@ -2470,12 +2905,16 @@ public Builder mergeCardTestingVerdict(com.google.recaptchaenterprise.v1.FraudPr return this; } /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCardTestingVerdict() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2488,93 +2927,139 @@ public Builder clearCardTestingVerdict() { return this; } /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder getCardTestingVerdictBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder + getCardTestingVerdictBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCardTestingVerdictFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder + getCardTestingVerdictOrBuilder() { if (cardTestingVerdictBuilder_ != null) { return cardTestingVerdictBuilder_.getMessageOrBuilder(); } else { - return cardTestingVerdict_ == null ? - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; + return cardTestingVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance() + : cardTestingVerdict_; } } /** + * + * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> getCardTestingVerdictFieldBuilder() { if (cardTestingVerdictBuilder_ == null) { - cardTestingVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder>( - getCardTestingVerdict(), - getParentForChildren(), - isClean()); + cardTestingVerdictBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + .Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .CardTestingVerdictOrBuilder>( + getCardTestingVerdict(), getParentForChildren(), isClean()); cardTestingVerdict_ = null; } return cardTestingVerdictBuilder_; } - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioralTrustVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + behavioralTrustVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder> behavioralTrustVerdictBuilder_; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder> + behavioralTrustVerdictBuilder_; /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the behavioralTrustVerdict field is set. */ public boolean hasBehavioralTrustVerdict() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The behavioralTrustVerdict. */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + getBehavioralTrustVerdict() { if (behavioralTrustVerdictBuilder_ == null) { - return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; + return behavioralTrustVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .getDefaultInstance() + : behavioralTrustVerdict_; } else { return behavioralTrustVerdictBuilder_.getMessage(); } } /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setBehavioralTrustVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict value) { + public Builder setBehavioralTrustVerdict( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict value) { if (behavioralTrustVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2588,14 +3073,19 @@ public Builder setBehavioralTrustVerdict(com.google.recaptchaenterprise.v1.Fraud return this; } /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setBehavioralTrustVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder builderForValue) { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder + builderForValue) { if (behavioralTrustVerdictBuilder_ == null) { behavioralTrustVerdict_ = builderForValue.build(); } else { @@ -2606,17 +3096,24 @@ public Builder setBehavioralTrustVerdict( return this; } /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeBehavioralTrustVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict value) { + public Builder mergeBehavioralTrustVerdict( + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict value) { if (behavioralTrustVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - behavioralTrustVerdict_ != null && - behavioralTrustVerdict_ != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && behavioralTrustVerdict_ != null + && behavioralTrustVerdict_ + != com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .BehavioralTrustVerdict.getDefaultInstance()) { getBehavioralTrustVerdictBuilder().mergeFrom(value); } else { behavioralTrustVerdict_ = value; @@ -2629,11 +3126,15 @@ public Builder mergeBehavioralTrustVerdict(com.google.recaptchaenterprise.v1.Fra return this; } /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearBehavioralTrustVerdict() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2646,55 +3147,80 @@ public Builder clearBehavioralTrustVerdict() { return this; } /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder getBehavioralTrustVerdictBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder + getBehavioralTrustVerdictBuilder() { bitField0_ |= 0x00000008; onChanged(); return getBehavioralTrustVerdictFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder + getBehavioralTrustVerdictOrBuilder() { if (behavioralTrustVerdictBuilder_ != null) { return behavioralTrustVerdictBuilder_.getMessageOrBuilder(); } else { - return behavioralTrustVerdict_ == null ? - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; + return behavioralTrustVerdict_ == null + ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .getDefaultInstance() + : behavioralTrustVerdict_; } } /** + * + * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder> + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder> getBehavioralTrustVerdictFieldBuilder() { if (behavioralTrustVerdictBuilder_ == null) { - behavioralTrustVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder>( - getBehavioralTrustVerdict(), - getParentForChildren(), - isClean()); + behavioralTrustVerdictBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder, + com.google.recaptchaenterprise.v1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder>( + getBehavioralTrustVerdict(), getParentForChildren(), isClean()); behavioralTrustVerdict_ = null; } return behavioralTrustVerdictBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2704,12 +3230,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment(); } @@ -2718,27 +3244,27 @@ public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FraudPreventionAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FraudPreventionAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2753,6 +3279,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.recaptchaenterprise.v1.FraudPreventionAssessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java new file mode 100644 index 000000000000..94cb70af7ce4 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface FraudPreventionAssessmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Probability of this transaction being fraudulent. Summarizes
+   * the combined risk of attack vectors below. Values are from 0.0 (lowest)
+   * to 1.0 (highest).
+   * 
+ * + * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The transactionRisk. + */ + float getTransactionRisk(); + + /** + * + * + *
+   * Output only. Assessment of this transaction for risk of a stolen
+   * instrument.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stolenInstrumentVerdict field is set. + */ + boolean hasStolenInstrumentVerdict(); + /** + * + * + *
+   * Output only. Assessment of this transaction for risk of a stolen
+   * instrument.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stolenInstrumentVerdict. + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict + getStolenInstrumentVerdict(); + /** + * + * + *
+   * Output only. Assessment of this transaction for risk of a stolen
+   * instrument.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder + getStolenInstrumentVerdictOrBuilder(); + + /** + * + * + *
+   * Output only. Assessment of this transaction for risk of being part of a
+   * card testing attack.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cardTestingVerdict field is set. + */ + boolean hasCardTestingVerdict(); + /** + * + * + *
+   * Output only. Assessment of this transaction for risk of being part of a
+   * card testing attack.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cardTestingVerdict. + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict + getCardTestingVerdict(); + /** + * + * + *
+   * Output only. Assessment of this transaction for risk of being part of a
+   * card testing attack.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder + getCardTestingVerdictOrBuilder(); + + /** + * + * + *
+   * Output only. Assessment of this transaction for behavioral trust.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the behavioralTrustVerdict field is set. + */ + boolean hasBehavioralTrustVerdict(); + /** + * + * + *
+   * Output only. Assessment of this transaction for behavioral trust.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The behavioralTrustVerdict. + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict + getBehavioralTrustVerdict(); + /** + * + * + *
+   * Output only. Assessment of this transaction for behavioral trust.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder + getBehavioralTrustVerdictOrBuilder(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java similarity index 64% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java index eed10e23853f..ab1b973c9716 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java @@ -1,63 +1,87 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Fraud signals describing users and cards involved in the transaction.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals} */ -public final class FraudSignals extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FraudSignals extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudSignals) FraudSignalsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FraudSignals.newBuilder() to construct. private FraudSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FraudSignals() { - } + + private FraudSignals() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FraudSignals(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.class, + com.google.recaptchaenterprise.v1.FraudSignals.Builder.class); } - public interface UserSignalsOrBuilder extends + public interface UserSignalsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. This user (based on email, phone, and other identifiers) has
      * been seen on the internet for at least this number of days.
      * 
* * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The activeDaysLowerBound. */ int getActiveDaysLowerBound(); /** + * + * *
      * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
      * components in their identity, such as a randomly generated email address,
@@ -65,58 +89,65 @@ public interface UserSignalsOrBuilder extends
      * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The syntheticRisk. */ float getSyntheticRisk(); } /** + * + * *
    * Signals describing the user involved in this transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals} */ - public static final class UserSignals extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class UserSignals extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) UserSignalsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UserSignals.newBuilder() to construct. private UserSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UserSignals() { - } + + private UserSignals() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UserSignals(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.class, + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder.class); } public static final int ACTIVE_DAYS_LOWER_BOUND_FIELD_NUMBER = 1; private int activeDaysLowerBound_ = 0; /** + * + * *
      * Output only. This user (based on email, phone, and other identifiers) has
      * been seen on the internet for at least this number of days.
      * 
* * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The activeDaysLowerBound. */ @java.lang.Override @@ -127,6 +158,8 @@ public int getActiveDaysLowerBound() { public static final int SYNTHETIC_RISK_FIELD_NUMBER = 2; private float syntheticRisk_ = 0F; /** + * + * *
      * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
      * components in their identity, such as a randomly generated email address,
@@ -134,6 +167,7 @@ public int getActiveDaysLowerBound() {
      * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The syntheticRisk. */ @java.lang.Override @@ -142,6 +176,7 @@ public float getSyntheticRisk() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (activeDaysLowerBound_ != 0) { output.writeInt32(1, activeDaysLowerBound_); } @@ -171,12 +205,10 @@ public int getSerializedSize() { size = 0; if (activeDaysLowerBound_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, activeDaysLowerBound_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, activeDaysLowerBound_); } if (java.lang.Float.floatToRawIntBits(syntheticRisk_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, syntheticRisk_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, syntheticRisk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,18 +218,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.recaptchaenterprise.v1.FraudSignals.UserSignals)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals other = (com.google.recaptchaenterprise.v1.FraudSignals.UserSignals) obj; + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals other = + (com.google.recaptchaenterprise.v1.FraudSignals.UserSignals) obj; - if (getActiveDaysLowerBound() - != other.getActiveDaysLowerBound()) return false; + if (getActiveDaysLowerBound() != other.getActiveDaysLowerBound()) return false; if (java.lang.Float.floatToIntBits(getSyntheticRisk()) - != java.lang.Float.floatToIntBits( - other.getSyntheticRisk())) return false; + != java.lang.Float.floatToIntBits(other.getSyntheticRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -212,97 +243,101 @@ public int hashCode() { hash = (37 * hash) + ACTIVE_DAYS_LOWER_BOUND_FIELD_NUMBER; hash = (53 * hash) + getActiveDaysLowerBound(); hash = (37 * hash) + SYNTHETIC_RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getSyntheticRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSyntheticRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -312,39 +347,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Signals describing the user involved in this transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.class, + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,13 +392,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance(); } @@ -376,13 +414,17 @@ public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals buildPartial() { - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals result = new com.google.recaptchaenterprise.v1.FraudSignals.UserSignals(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals result = + new com.google.recaptchaenterprise.v1.FraudSignals.UserSignals(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.activeDaysLowerBound_ = activeDaysLowerBound_; @@ -396,38 +438,41 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals.UserSi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FraudSignals.UserSignals) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals.UserSignals)other); + return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals.UserSignals) other); } else { super.mergeFrom(other); return this; @@ -435,7 +480,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals other) { - if (other == com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance()) + return this; if (other.getActiveDaysLowerBound() != 0) { setActiveDaysLowerBound(other.getActiveDaysLowerBound()); } @@ -468,22 +515,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - activeDaysLowerBound_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 21: { - syntheticRisk_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + activeDaysLowerBound_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + syntheticRisk_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + 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) { @@ -493,16 +543,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int activeDaysLowerBound_ ; + private int activeDaysLowerBound_; /** + * + * *
        * Output only. This user (based on email, phone, and other identifiers) has
        * been seen on the internet for at least this number of days.
        * 
* - * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The activeDaysLowerBound. */ @java.lang.Override @@ -510,12 +565,16 @@ public int getActiveDaysLowerBound() { return activeDaysLowerBound_; } /** + * + * *
        * Output only. This user (based on email, phone, and other identifiers) has
        * been seen on the internet for at least this number of days.
        * 
* - * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The activeDaysLowerBound to set. * @return This builder for chaining. */ @@ -527,12 +586,16 @@ public Builder setActiveDaysLowerBound(int value) { return this; } /** + * + * *
        * Output only. This user (based on email, phone, and other identifiers) has
        * been seen on the internet for at least this number of days.
        * 
* - * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearActiveDaysLowerBound() { @@ -542,8 +605,10 @@ public Builder clearActiveDaysLowerBound() { return this; } - private float syntheticRisk_ ; + private float syntheticRisk_; /** + * + * *
        * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
        * components in their identity, such as a randomly generated email address,
@@ -551,6 +616,7 @@ public Builder clearActiveDaysLowerBound() {
        * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The syntheticRisk. */ @java.lang.Override @@ -558,6 +624,8 @@ public float getSyntheticRisk() { return syntheticRisk_; } /** + * + * *
        * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
        * components in their identity, such as a randomly generated email address,
@@ -565,6 +633,7 @@ public float getSyntheticRisk() {
        * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The syntheticRisk to set. * @return This builder for chaining. */ @@ -576,6 +645,8 @@ public Builder setSyntheticRisk(float value) { return this; } /** + * + * *
        * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
        * components in their identity, such as a randomly generated email address,
@@ -583,6 +654,7 @@ public Builder setSyntheticRisk(float value) {
        * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSyntheticRisk() { @@ -591,6 +663,7 @@ public Builder clearSyntheticRisk() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -603,12 +676,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) - private static final com.google.recaptchaenterprise.v1.FraudSignals.UserSignals DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.FraudSignals.UserSignals + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudSignals.UserSignals(); } @@ -617,27 +691,28 @@ public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserSignals parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -652,103 +727,134 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CardSignalsOrBuilder extends + public interface CardSignalsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the cardLabels. */ - java.util.List getCardLabelsList(); + java.util.List + getCardLabelsList(); /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of cardLabels. */ int getCardLabelsCount(); /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The cardLabels at the given index. */ com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels(int index); /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for cardLabels. */ - java.util.List - getCardLabelsValueList(); + java.util.List getCardLabelsValueList(); /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of cardLabels at the given index. */ int getCardLabelsValue(int index); } /** + * + * *
    * Signals describing the payment card used in this transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals} */ - public static final class CardSignals extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CardSignals extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) CardSignalsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CardSignals.newBuilder() to construct. private CardSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CardSignals() { cardLabels_ = 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 CardSignals(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.class, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder.class); } /** + * + * *
      * Risk labels describing the card being assessed, such as its funding
      * mechanism.
@@ -756,9 +862,10 @@ protected java.lang.Object newInstance(
      *
      * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel}
      */
-    public enum CardLabel
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * No label specified.
        * 
@@ -767,6 +874,8 @@ public enum CardLabel */ CARD_LABEL_UNSPECIFIED(0), /** + * + * *
        * This card has been detected as prepaid.
        * 
@@ -775,6 +884,8 @@ public enum CardLabel */ PREPAID(1), /** + * + * *
        * This card has been detected as virtual, such as a card number generated
        * for a single transaction or merchant.
@@ -784,6 +895,8 @@ public enum CardLabel
        */
       VIRTUAL(2),
       /**
+       *
+       *
        * 
        * This card has been detected as being used in an unexpected geographic
        * location.
@@ -796,6 +909,8 @@ public enum CardLabel
       ;
 
       /**
+       *
+       *
        * 
        * No label specified.
        * 
@@ -804,6 +919,8 @@ public enum CardLabel */ public static final int CARD_LABEL_UNSPECIFIED_VALUE = 0; /** + * + * *
        * This card has been detected as prepaid.
        * 
@@ -812,6 +929,8 @@ public enum CardLabel */ public static final int PREPAID_VALUE = 1; /** + * + * *
        * This card has been detected as virtual, such as a card number generated
        * for a single transaction or merchant.
@@ -821,6 +940,8 @@ public enum CardLabel
        */
       public static final int VIRTUAL_VALUE = 2;
       /**
+       *
+       *
        * 
        * This card has been detected as being used in an unexpected geographic
        * location.
@@ -830,7 +951,6 @@ public enum CardLabel
        */
       public static final int UNEXPECTED_LOCATION_VALUE = 3;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -855,50 +975,53 @@ public static CardLabel valueOf(int value) {
        */
       public static CardLabel forNumber(int value) {
         switch (value) {
-          case 0: return CARD_LABEL_UNSPECIFIED;
-          case 1: return PREPAID;
-          case 2: return VIRTUAL;
-          case 3: return UNEXPECTED_LOCATION;
-          default: return null;
+          case 0:
+            return CARD_LABEL_UNSPECIFIED;
+          case 1:
+            return PREPAID;
+          case 2:
+            return VIRTUAL;
+          case 3:
+            return UNEXPECTED_LOCATION;
+          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<
-          CardLabel> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public CardLabel findValueByNumber(int number) {
-                return CardLabel.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CardLabel findValueByNumber(int number) {
+              return CardLabel.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.recaptchaenterprise.v1.FraudSignals.CardSignals.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final CardLabel[] VALUES = values();
 
-      public static CardLabel valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static CardLabel 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;
@@ -916,36 +1039,58 @@ private CardLabel(int value) {
     }
 
     public static final int CARD_LABELS_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private java.util.List cardLabels_;
+
     private static final com.google.protobuf.Internal.ListAdapter.Converter<
-        java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel> cardLabels_converter_ =
+            java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>
+        cardLabels_converter_ =
             new com.google.protobuf.Internal.ListAdapter.Converter<
-                java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>() {
-              public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel convert(java.lang.Integer from) {
-                com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel result = com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel.forNumber(from);
-                return result == null ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel.UNRECOGNIZED : result;
+                java.lang.Integer,
+                com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>() {
+              public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel convert(
+                  java.lang.Integer from) {
+                com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel result =
+                    com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel.forNumber(
+                        from);
+                return result == null
+                    ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel
+                        .UNRECOGNIZED
+                    : result;
               }
             };
     /**
+     *
+     *
      * 
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the cardLabels. */ @java.lang.Override - public java.util.List getCardLabelsList() { + public java.util.List + getCardLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>(cardLabels_, cardLabels_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>( + cardLabels_, cardLabels_converter_); } /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of cardLabels. */ @java.lang.Override @@ -953,37 +1098,52 @@ public int getCardLabelsCount() { return cardLabels_.size(); } /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The cardLabels at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels(int index) { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels( + int index) { return cardLabels_converter_.convert(cardLabels_.get(index)); } /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for cardLabels. */ @java.lang.Override - public java.util.List - getCardLabelsValueList() { + public java.util.List getCardLabelsValueList() { return cardLabels_; } /** + * + * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of cardLabels at the given index. */ @@ -991,9 +1151,11 @@ public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getC public int getCardLabelsValue(int index) { return cardLabels_.get(index); } + private int cardLabelsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1005,8 +1167,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getCardLabelsList().size() > 0) { output.writeUInt32NoTag(10); @@ -1027,14 +1188,15 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < cardLabels_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(cardLabels_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(cardLabels_.get(i)); } size += dataSize; - if (!getCardLabelsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }cardLabelsMemoizedSerializedSize = dataSize; + if (!getCardLabelsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + cardLabelsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1044,12 +1206,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudSignals.CardSignals)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals other = (com.google.recaptchaenterprise.v1.FraudSignals.CardSignals) obj; + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals other = + (com.google.recaptchaenterprise.v1.FraudSignals.CardSignals) obj; if (!cardLabels_.equals(other.cardLabels_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1073,89 +1236,94 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1165,39 +1333,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Signals describing the payment card used in this transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.class, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1208,13 +1378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance(); } @@ -1229,14 +1400,18 @@ public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals buildPartial() { - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result = new com.google.recaptchaenterprise.v1.FraudSignals.CardSignals(this); + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result = + new com.google.recaptchaenterprise.v1.FraudSignals.CardSignals(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result) { if (((bitField0_ & 0x00000001) != 0)) { cardLabels_ = java.util.Collections.unmodifiableList(cardLabels_); bitField0_ = (bitField0_ & ~0x00000001); @@ -1244,7 +1419,8 @@ private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.FraudS result.cardLabels_ = cardLabels_; } - private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result) { int from_bitField0_ = bitField0_; } @@ -1252,38 +1428,41 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals.CardSi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.FraudSignals.CardSignals) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals.CardSignals)other); + return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals.CardSignals) other); } else { super.mergeFrom(other); return this; @@ -1291,7 +1470,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals other) { - if (other == com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance()) + return this; if (!other.cardLabels_.isEmpty()) { if (cardLabels_.isEmpty()) { cardLabels_ = other.cardLabels_; @@ -1328,29 +1509,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - int tmpRaw = input.readEnum(); - ensureCardLabelsIsMutable(); - cardLabels_.add(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 8: + { int tmpRaw = input.readEnum(); ensureCardLabelsIsMutable(); cardLabels_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureCardLabelsIsMutable(); + cardLabels_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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) { @@ -1360,10 +1544,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List cardLabels_ = - java.util.Collections.emptyList(); + private java.util.List cardLabels_ = java.util.Collections.emptyList(); + private void ensureCardLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { cardLabels_ = new java.util.ArrayList(cardLabels_); @@ -1371,46 +1556,70 @@ private void ensureCardLabelsIsMutable() { } } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the cardLabels. */ - public java.util.List getCardLabelsList() { + public java.util.List + getCardLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>(cardLabels_, cardLabels_converter_); + java.lang.Integer, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>( + cardLabels_, cardLabels_converter_); } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of cardLabels. */ public int getCardLabelsCount() { return cardLabels_.size(); } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The cardLabels at the given index. */ - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels(int index) { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels( + int index) { return cardLabels_converter_.convert(cardLabels_.get(index)); } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The cardLabels to set. * @return This builder for chaining. @@ -1426,15 +1635,21 @@ public Builder setCardLabels( return this; } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The cardLabels to add. * @return This builder for chaining. */ - public Builder addCardLabels(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel value) { + public Builder addCardLabels( + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel value) { if (value == null) { throw new NullPointerException(); } @@ -1444,16 +1659,23 @@ public Builder addCardLabels(com.google.recaptchaenterprise.v1.FraudSignals.Card return this; } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The cardLabels to add. * @return This builder for chaining. */ public Builder addAllCardLabels( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel> + values) { ensureCardLabelsIsMutable(); for (com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel value : values) { cardLabels_.add(value.getNumber()); @@ -1462,11 +1684,16 @@ public Builder addAllCardLabels( return this; } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearCardLabels() { @@ -1476,23 +1703,32 @@ public Builder clearCardLabels() { return this; } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for cardLabels. */ - public java.util.List - getCardLabelsValueList() { + public java.util.List getCardLabelsValueList() { return java.util.Collections.unmodifiableList(cardLabels_); } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of cardLabels at the given index. */ @@ -1500,28 +1736,37 @@ public int getCardLabelsValue(int index) { return cardLabels_.get(index); } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for cardLabels to set. * @return This builder for chaining. */ - public Builder setCardLabelsValue( - int index, int value) { + public Builder setCardLabelsValue(int index, int value) { ensureCardLabelsIsMutable(); cardLabels_.set(index, value); onChanged(); return this; } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for cardLabels to add. * @return This builder for chaining. */ @@ -1532,16 +1777,20 @@ public Builder addCardLabelsValue(int value) { return this; } /** + * + * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The enum numeric values on the wire for cardLabels to add. * @return This builder for chaining. */ - public Builder addAllCardLabelsValue( - java.lang.Iterable values) { + public Builder addAllCardLabelsValue(java.lang.Iterable values) { ensureCardLabelsIsMutable(); for (int value : values) { cardLabels_.add(value); @@ -1549,6 +1798,7 @@ public Builder addAllCardLabelsValue( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1561,12 +1811,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) - private static final com.google.recaptchaenterprise.v1.FraudSignals.CardSignals DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.FraudSignals.CardSignals + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudSignals.CardSignals(); } @@ -1575,27 +1826,28 @@ public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CardSignals parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1610,17 +1862,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int USER_SIGNALS_FIELD_NUMBER = 1; private com.google.recaptchaenterprise.v1.FraudSignals.UserSignals userSignals_; /** + * + * *
    * Output only. Signals describing the end user in this transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the userSignals field is set. */ @java.lang.Override @@ -1628,38 +1884,57 @@ public boolean hasUserSignals() { return userSignals_ != null; } /** + * + * *
    * Output only. Signals describing the end user in this transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The userSignals. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getUserSignals() { - return userSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() : userSignals_; + return userSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() + : userSignals_; } /** + * + * *
    * Output only. Signals describing the end user in this transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUserSignalsOrBuilder() { - return userSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() : userSignals_; + public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder + getUserSignalsOrBuilder() { + return userSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() + : userSignals_; } public static final int CARD_SIGNALS_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.FraudSignals.CardSignals cardSignals_; /** + * + * *
    * Output only. Signals describing the payment card or cards used in this
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the cardSignals field is set. */ @java.lang.Override @@ -1667,32 +1942,47 @@ public boolean hasCardSignals() { return cardSignals_ != null; } /** + * + * *
    * Output only. Signals describing the payment card or cards used in this
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The cardSignals. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getCardSignals() { - return cardSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() : cardSignals_; + return cardSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() + : cardSignals_; } /** + * + * *
    * Output only. Signals describing the payment card or cards used in this
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder getCardSignalsOrBuilder() { - return cardSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() : cardSignals_; + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder + getCardSignalsOrBuilder() { + return cardSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() + : cardSignals_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1704,8 +1994,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userSignals_ != null) { output.writeMessage(1, getUserSignals()); } @@ -1722,12 +2011,10 @@ public int getSerializedSize() { size = 0; if (userSignals_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUserSignals()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserSignals()); } if (cardSignals_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCardSignals()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCardSignals()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1737,22 +2024,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudSignals)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudSignals other = (com.google.recaptchaenterprise.v1.FraudSignals) obj; + com.google.recaptchaenterprise.v1.FraudSignals other = + (com.google.recaptchaenterprise.v1.FraudSignals) obj; if (hasUserSignals() != other.hasUserSignals()) return false; if (hasUserSignals()) { - if (!getUserSignals() - .equals(other.getUserSignals())) return false; + if (!getUserSignals().equals(other.getUserSignals())) return false; } if (hasCardSignals() != other.hasCardSignals()) return false; if (hasCardSignals()) { - if (!getCardSignals() - .equals(other.getCardSignals())) return false; + if (!getCardSignals().equals(other.getCardSignals())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1778,132 +2064,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudSignals parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FraudSignals parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudSignals prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Fraud signals describing users and cards involved in the transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudSignals) com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.class, + com.google.recaptchaenterprise.v1.FraudSignals.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FraudSignals.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1922,9 +2212,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; } @java.lang.Override @@ -1943,8 +2233,11 @@ public com.google.recaptchaenterprise.v1.FraudSignals build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals buildPartial() { - com.google.recaptchaenterprise.v1.FraudSignals result = new com.google.recaptchaenterprise.v1.FraudSignals(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.FraudSignals result = + new com.google.recaptchaenterprise.v1.FraudSignals(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1952,14 +2245,12 @@ public com.google.recaptchaenterprise.v1.FraudSignals buildPartial() { private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.userSignals_ = userSignalsBuilder_ == null - ? userSignals_ - : userSignalsBuilder_.build(); + result.userSignals_ = + userSignalsBuilder_ == null ? userSignals_ : userSignalsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.cardSignals_ = cardSignalsBuilder_ == null - ? cardSignals_ - : cardSignalsBuilder_.build(); + result.cardSignals_ = + cardSignalsBuilder_ == null ? cardSignals_ : cardSignalsBuilder_.build(); } } @@ -1967,38 +2258,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FraudSignals) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals)other); + return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals) other); } else { super.mergeFrom(other); return this; @@ -2039,26 +2331,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUserSignalsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCardSignalsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUserSignalsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCardSignalsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -2068,45 +2359,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.recaptchaenterprise.v1.FraudSignals.UserSignals userSignals_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder> userSignalsBuilder_; + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder> + userSignalsBuilder_; /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the userSignals field is set. */ public boolean hasUserSignals() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The userSignals. */ public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getUserSignals() { if (userSignalsBuilder_ == null) { - return userSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() : userSignals_; + return userSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() + : userSignals_; } else { return userSignalsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUserSignals(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals value) { + public Builder setUserSignals( + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals value) { if (userSignalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2120,11 +2432,15 @@ public Builder setUserSignals(com.google.recaptchaenterprise.v1.FraudSignals.Use return this; } /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUserSignals( com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder builderForValue) { @@ -2138,17 +2454,24 @@ public Builder setUserSignals( return this; } /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeUserSignals(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals value) { + public Builder mergeUserSignals( + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals value) { if (userSignalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - userSignals_ != null && - userSignals_ != com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && userSignals_ != null + && userSignals_ + != com.google.recaptchaenterprise.v1.FraudSignals.UserSignals + .getDefaultInstance()) { getUserSignalsBuilder().mergeFrom(value); } else { userSignals_ = value; @@ -2161,11 +2484,15 @@ public Builder mergeUserSignals(com.google.recaptchaenterprise.v1.FraudSignals.U return this; } /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUserSignals() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2178,48 +2505,66 @@ public Builder clearUserSignals() { return this; } /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder getUserSignalsBuilder() { + public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder + getUserSignalsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getUserSignalsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUserSignalsOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder + getUserSignalsOrBuilder() { if (userSignalsBuilder_ != null) { return userSignalsBuilder_.getMessageOrBuilder(); } else { - return userSignals_ == null ? - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() : userSignals_; + return userSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() + : userSignals_; } } /** + * + * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder> + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder> getUserSignalsFieldBuilder() { if (userSignalsBuilder_ == null) { - userSignalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder>( - getUserSignals(), - getParentForChildren(), - isClean()); + userSignalsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder>( + getUserSignals(), getParentForChildren(), isClean()); userSignals_ = null; } return userSignalsBuilder_; @@ -2227,44 +2572,64 @@ public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUs private com.google.recaptchaenterprise.v1.FraudSignals.CardSignals cardSignals_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder> cardSignalsBuilder_; + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder> + cardSignalsBuilder_; /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the cardSignals field is set. */ public boolean hasCardSignals() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The cardSignals. */ public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getCardSignals() { if (cardSignalsBuilder_ == null) { - return cardSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() : cardSignals_; + return cardSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() + : cardSignals_; } else { return cardSignalsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCardSignals(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals value) { + public Builder setCardSignals( + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals value) { if (cardSignalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2278,12 +2643,16 @@ public Builder setCardSignals(com.google.recaptchaenterprise.v1.FraudSignals.Car return this; } /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCardSignals( com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder builderForValue) { @@ -2297,18 +2666,25 @@ public Builder setCardSignals( return this; } /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeCardSignals(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals value) { + public Builder mergeCardSignals( + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals value) { if (cardSignalsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - cardSignals_ != null && - cardSignals_ != com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && cardSignals_ != null + && cardSignals_ + != com.google.recaptchaenterprise.v1.FraudSignals.CardSignals + .getDefaultInstance()) { getCardSignalsBuilder().mergeFrom(value); } else { cardSignals_ = value; @@ -2321,12 +2697,16 @@ public Builder mergeCardSignals(com.google.recaptchaenterprise.v1.FraudSignals.C return this; } /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCardSignals() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2339,58 +2719,76 @@ public Builder clearCardSignals() { return this; } /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder getCardSignalsBuilder() { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder + getCardSignalsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCardSignalsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder getCardSignalsOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder + getCardSignalsOrBuilder() { if (cardSignalsBuilder_ != null) { return cardSignalsBuilder_.getMessageOrBuilder(); } else { - return cardSignals_ == null ? - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() : cardSignals_; + return cardSignals_ == null + ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() + : cardSignals_; } } /** + * + * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder> + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder> getCardSignalsFieldBuilder() { if (cardSignalsBuilder_ == null) { - cardSignalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder>( - getCardSignals(), - getParentForChildren(), - isClean()); + cardSignalsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, + com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder>( + getCardSignals(), getParentForChildren(), isClean()); cardSignals_ = null; } return cardSignalsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2400,12 +2798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudSignals) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudSignals) private static final com.google.recaptchaenterprise.v1.FraudSignals DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudSignals(); } @@ -2414,27 +2812,27 @@ public static com.google.recaptchaenterprise.v1.FraudSignals getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FraudSignals parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FraudSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2449,6 +2847,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FraudSignals getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java new file mode 100644 index 000000000000..fb777ccf4860 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface FraudSignalsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudSignals) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Signals describing the end user in this transaction.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userSignals field is set. + */ + boolean hasUserSignals(); + /** + * + * + *
+   * Output only. Signals describing the end user in this transaction.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userSignals. + */ + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getUserSignals(); + /** + * + * + *
+   * Output only. Signals describing the end user in this transaction.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUserSignalsOrBuilder(); + + /** + * + * + *
+   * Output only. Signals describing the payment card or cards used in this
+   * transaction.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cardSignals field is set. + */ + boolean hasCardSignals(); + /** + * + * + *
+   * Output only. Signals describing the payment card or cards used in this
+   * transaction.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cardSignals. + */ + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getCardSignals(); + /** + * + * + *
+   * Output only. Signals describing the payment card or cards used in this
+   * transaction.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder getCardSignalsOrBuilder(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java similarity index 63% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java index b1869df8c5ba..107f01d78f9d 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The get firewall policy request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest} */ -public final class GetFirewallPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFirewallPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) GetFirewallPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFirewallPolicyRequest.newBuilder() to construct. private GetFirewallPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFirewallPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFirewallPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the requested policy, in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* - * string name = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the requested policy, in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest other = (com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) obj; + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest other = + (com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The get firewall policy request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) com.google.recaptchaenterprise.v1.GetFirewallPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; } @java.lang.Override @@ -312,8 +344,11 @@ public com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest buildPartial() { - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest result = new com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest result = + new com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +364,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.GetFirewallPolicyRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +404,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest other) { - if (other == com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -420,23 +459,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * string name = 1 [(.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; @@ -445,21 +489,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -467,30 +514,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * string 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() { @@ -500,27 +558,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) private static final com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest(); } @@ -544,27 +608,27 @@ public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFirewallPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFirewallPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -579,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..850c60015527 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface GetFirewallPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the requested policy, in the format
+   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the requested policy, in the format
+   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
+   * 
+ * + * + * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java similarity index 63% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java index 676fa3704c73..6a4b34a22ec2 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The get key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetKeyRequest} */ -public final class GetKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.GetKeyRequest) GetKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetKeyRequest.newBuilder() to construct. private GetKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetKeyRequest.class, com.google.recaptchaenterprise.v1.GetKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetKeyRequest.class, + com.google.recaptchaenterprise.v1.GetKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the requested key, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * string name = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the requested key, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.GetKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.GetKeyRequest other = (com.google.recaptchaenterprise.v1.GetKeyRequest) obj; + com.google.recaptchaenterprise.v1.GetKeyRequest other = + (com.google.recaptchaenterprise.v1.GetKeyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,132 +183,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.GetKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.GetKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The get key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetKeyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.GetKeyRequest) com.google.recaptchaenterprise.v1.GetKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetKeyRequest.class, com.google.recaptchaenterprise.v1.GetKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetKeyRequest.class, + com.google.recaptchaenterprise.v1.GetKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.GetKeyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; } @java.lang.Override @@ -312,8 +343,11 @@ public com.google.recaptchaenterprise.v1.GetKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.GetKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.GetKeyRequest result = new com.google.recaptchaenterprise.v1.GetKeyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.GetKeyRequest result = + new com.google.recaptchaenterprise.v1.GetKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +363,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.GetKeyRequest resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.GetKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.GetKeyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.GetKeyRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.GetKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.GetKeyRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.GetKeyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -420,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string name = 1 [(.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; @@ -445,21 +488,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -467,30 +513,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string 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() { @@ -500,27 +557,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.GetKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.GetKeyRequest) private static final com.google.recaptchaenterprise.v1.GetKeyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.GetKeyRequest(); } @@ -544,27 +607,27 @@ public static com.google.recaptchaenterprise.v1.GetKeyRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -579,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.GetKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java new file mode 100644 index 000000000000..28af9b61117b --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface GetKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the requested key, in the format
+   * `projects/{project}/keys/{key}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the requested key, in the format
+   * `projects/{project}/keys/{key}`.
+   * 
+ * + * + * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java similarity index 63% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java index 215212ccd9c2..aeab65a6f1c5 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The get metrics request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetMetricsRequest} */ -public final class GetMetricsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMetricsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) GetMetricsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMetricsRequest.newBuilder() to construct. private GetMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMetricsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMetricsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetMetricsRequest.class, com.google.recaptchaenterprise.v1.GetMetricsRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetMetricsRequest.class, + com.google.recaptchaenterprise.v1.GetMetricsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the requested metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* - * string name = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the requested metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.GetMetricsRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.GetMetricsRequest other = (com.google.recaptchaenterprise.v1.GetMetricsRequest) obj; + com.google.recaptchaenterprise.v1.GetMetricsRequest other = + (com.google.recaptchaenterprise.v1.GetMetricsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.GetMetricsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The get metrics request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetMetricsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) com.google.recaptchaenterprise.v1.GetMetricsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetMetricsRequest.class, com.google.recaptchaenterprise.v1.GetMetricsRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetMetricsRequest.class, + com.google.recaptchaenterprise.v1.GetMetricsRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.GetMetricsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; } @java.lang.Override @@ -312,8 +343,11 @@ public com.google.recaptchaenterprise.v1.GetMetricsRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.GetMetricsRequest buildPartial() { - com.google.recaptchaenterprise.v1.GetMetricsRequest result = new com.google.recaptchaenterprise.v1.GetMetricsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.GetMetricsRequest result = + new com.google.recaptchaenterprise.v1.GetMetricsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +363,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.GetMetricsRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.GetMetricsRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.GetMetricsRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.GetMetricsRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.GetMetricsRequest other) { - if (other == com.google.recaptchaenterprise.v1.GetMetricsRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.GetMetricsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -420,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * string name = 1 [(.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; @@ -445,21 +488,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -467,30 +513,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * string 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() { @@ -500,27 +557,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) private static final com.google.recaptchaenterprise.v1.GetMetricsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.GetMetricsRequest(); } @@ -544,27 +607,27 @@ public static com.google.recaptchaenterprise.v1.GetMetricsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMetricsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -579,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.GetMetricsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java new file mode 100644 index 000000000000..3cf46ec3e90a --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface GetMetricsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the requested metrics, in the format
+   * `projects/{project}/keys/{key}/metrics`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the requested metrics, in the format
+   * `projects/{project}/keys/{key}/metrics`.
+   * 
+ * + * + * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java similarity index 69% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java index b81cf8860605..6be6fd1ba1f8 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java @@ -1,57 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Settings specific to keys that can be used by iOS apps.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.IOSKeySettings} */ -public final class IOSKeySettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IOSKeySettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.IOSKeySettings) IOSKeySettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IOSKeySettings.newBuilder() to construct. private IOSKeySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IOSKeySettings() { - allowedBundleIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IOSKeySettings(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.IOSKeySettings.class, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.IOSKeySettings.class, + com.google.recaptchaenterprise.v1.IOSKeySettings.Builder.class); } public static final int ALLOW_ALL_BUNDLE_IDS_FIELD_NUMBER = 2; private boolean allowAllBundleIds_ = false; /** + * + * *
    * Optional. If set to true, allowed_bundle_ids are not enforced.
    * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllBundleIds. */ @java.lang.Override @@ -60,41 +81,50 @@ public boolean getAllowAllBundleIds() { } public static final int ALLOWED_BUNDLE_IDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedBundleIds. */ - public com.google.protobuf.ProtocolStringList - getAllowedBundleIdsList() { + public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList() { return allowedBundleIds_; } /** + * + * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedBundleIds. */ public int getAllowedBundleIdsCount() { return allowedBundleIds_.size(); } /** + * + * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedBundleIds at the given index. */ @@ -102,23 +132,27 @@ public java.lang.String getAllowedBundleIds(int index) { return allowedBundleIds_.get(index); } /** + * + * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedBundleIds at the given index. */ - public com.google.protobuf.ByteString - getAllowedBundleIdsBytes(int index) { + public com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index) { return allowedBundleIds_.getByteString(index); } public static final int APPLE_DEVELOPER_ID_FIELD_NUMBER = 3; private com.google.recaptchaenterprise.v1.AppleDeveloperId appleDeveloperId_; /** + * + * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -127,7 +161,10 @@ public java.lang.String getAllowedBundleIds(int index) {
    * assessment of the integrity of your app.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the appleDeveloperId field is set. */ @java.lang.Override @@ -135,6 +172,8 @@ public boolean hasAppleDeveloperId() { return appleDeveloperId_ != null; } /** + * + * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -143,14 +182,21 @@ public boolean hasAppleDeveloperId() {
    * assessment of the integrity of your app.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The appleDeveloperId. */ @java.lang.Override public com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId() { - return appleDeveloperId_ == null ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() : appleDeveloperId_; + return appleDeveloperId_ == null + ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() + : appleDeveloperId_; } /** + * + * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -159,14 +205,20 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId()
    * assessment of the integrity of your app.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder getAppleDeveloperIdOrBuilder() { - return appleDeveloperId_ == null ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() : appleDeveloperId_; + public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder + getAppleDeveloperIdOrBuilder() { + return appleDeveloperId_ == null + ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() + : appleDeveloperId_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedBundleIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedBundleIds_.getRaw(i)); } @@ -207,12 +258,10 @@ public int getSerializedSize() { size += 1 * getAllowedBundleIdsList().size(); } if (allowAllBundleIds_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowAllBundleIds_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowAllBundleIds_); } if (appleDeveloperId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAppleDeveloperId()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAppleDeveloperId()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,21 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.IOSKeySettings)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.IOSKeySettings other = (com.google.recaptchaenterprise.v1.IOSKeySettings) obj; + com.google.recaptchaenterprise.v1.IOSKeySettings other = + (com.google.recaptchaenterprise.v1.IOSKeySettings) obj; - if (getAllowAllBundleIds() - != other.getAllowAllBundleIds()) return false; - if (!getAllowedBundleIdsList() - .equals(other.getAllowedBundleIdsList())) return false; + if (getAllowAllBundleIds() != other.getAllowAllBundleIds()) return false; + if (!getAllowedBundleIdsList().equals(other.getAllowedBundleIdsList())) return false; if (hasAppleDeveloperId() != other.hasAppleDeveloperId()) return false; if (hasAppleDeveloperId()) { - if (!getAppleDeveloperId() - .equals(other.getAppleDeveloperId())) return false; + if (!getAppleDeveloperId().equals(other.getAppleDeveloperId())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -250,8 +297,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_ALL_BUNDLE_IDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowAllBundleIds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAllBundleIds()); if (getAllowedBundleIdsCount() > 0) { hash = (37 * hash) + ALLOWED_BUNDLE_IDS_FIELD_NUMBER; hash = (53 * hash) + getAllowedBundleIdsList().hashCode(); @@ -265,139 +311,142 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.IOSKeySettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.IOSKeySettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Settings specific to keys that can be used by iOS apps.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.IOSKeySettings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.IOSKeySettings) com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.IOSKeySettings.class, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.IOSKeySettings.class, + com.google.recaptchaenterprise.v1.IOSKeySettings.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.IOSKeySettings.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; allowAllBundleIds_ = false; - allowedBundleIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); appleDeveloperId_ = null; if (appleDeveloperIdBuilder_ != null) { appleDeveloperIdBuilder_.dispose(); @@ -407,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; } @java.lang.Override @@ -428,8 +477,11 @@ public com.google.recaptchaenterprise.v1.IOSKeySettings build() { @java.lang.Override public com.google.recaptchaenterprise.v1.IOSKeySettings buildPartial() { - com.google.recaptchaenterprise.v1.IOSKeySettings result = new com.google.recaptchaenterprise.v1.IOSKeySettings(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.IOSKeySettings result = + new com.google.recaptchaenterprise.v1.IOSKeySettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -444,9 +496,8 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.IOSKeySettings resu result.allowedBundleIds_ = allowedBundleIds_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.appleDeveloperId_ = appleDeveloperIdBuilder_ == null - ? appleDeveloperId_ - : appleDeveloperIdBuilder_.build(); + result.appleDeveloperId_ = + appleDeveloperIdBuilder_ == null ? appleDeveloperId_ : appleDeveloperIdBuilder_.build(); } } @@ -454,38 +505,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.IOSKeySettings resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.IOSKeySettings) { - return mergeFrom((com.google.recaptchaenterprise.v1.IOSKeySettings)other); + return mergeFrom((com.google.recaptchaenterprise.v1.IOSKeySettings) other); } else { super.mergeFrom(other); return this; @@ -493,7 +545,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.IOSKeySettings other) { - if (other == com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance()) + return this; if (other.getAllowAllBundleIds() != false) { setAllowAllBundleIds(other.getAllowAllBundleIds()); } @@ -536,30 +589,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedBundleIdsIsMutable(); - allowedBundleIds_.add(s); - break; - } // case 10 - case 16: { - allowAllBundleIds_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 26: { - input.readMessage( - getAppleDeveloperIdFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedBundleIdsIsMutable(); + allowedBundleIds_.add(s); + break; + } // case 10 + case 16: + { + allowAllBundleIds_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 26: + { + input.readMessage( + getAppleDeveloperIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,15 +625,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean allowAllBundleIds_ ; + private boolean allowAllBundleIds_; /** + * + * *
      * Optional. If set to true, allowed_bundle_ids are not enforced.
      * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllBundleIds. */ @java.lang.Override @@ -585,11 +645,14 @@ public boolean getAllowAllBundleIds() { return allowAllBundleIds_; } /** + * + * *
      * Optional. If set to true, allowed_bundle_ids are not enforced.
      * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowAllBundleIds to set. * @return This builder for chaining. */ @@ -601,11 +664,14 @@ public Builder setAllowAllBundleIds(boolean value) { return this; } /** + * + * *
      * Optional. If set to true, allowed_bundle_ids are not enforced.
      * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowAllBundleIds() { @@ -617,6 +683,7 @@ public Builder clearAllowAllBundleIds() { private com.google.protobuf.LazyStringArrayList allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAllowedBundleIdsIsMutable() { if (!allowedBundleIds_.isModifiable()) { allowedBundleIds_ = new com.google.protobuf.LazyStringArrayList(allowedBundleIds_); @@ -624,38 +691,49 @@ private void ensureAllowedBundleIdsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedBundleIds. */ - public com.google.protobuf.ProtocolStringList - getAllowedBundleIdsList() { + public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList() { allowedBundleIds_.makeImmutable(); return allowedBundleIds_; } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedBundleIds. */ public int getAllowedBundleIdsCount() { return allowedBundleIds_.size(); } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedBundleIds at the given index. */ @@ -663,33 +741,41 @@ public java.lang.String getAllowedBundleIds(int index) { return allowedBundleIds_.get(index); } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedBundleIds at the given index. */ - public com.google.protobuf.ByteString - getAllowedBundleIdsBytes(int index) { + public com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index) { return allowedBundleIds_.getByteString(index); } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The allowedBundleIds to set. * @return This builder for chaining. */ - public Builder setAllowedBundleIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAllowedBundleIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedBundleIdsIsMutable(); allowedBundleIds_.set(index, value); bitField0_ |= 0x00000002; @@ -697,18 +783,23 @@ public Builder setAllowedBundleIds( return this; } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowedBundleIds to add. * @return This builder for chaining. */ - public Builder addAllowedBundleIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedBundleIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedBundleIdsIsMutable(); allowedBundleIds_.add(value); bitField0_ |= 0x00000002; @@ -716,53 +807,64 @@ public Builder addAllowedBundleIds( return this; } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The allowedBundleIds to add. * @return This builder for chaining. */ - public Builder addAllAllowedBundleIds( - java.lang.Iterable values) { + public Builder addAllAllowedBundleIds(java.lang.Iterable values) { ensureAllowedBundleIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedBundleIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedBundleIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowedBundleIds() { - allowedBundleIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the allowedBundleIds to add. * @return This builder for chaining. */ - public Builder addAllowedBundleIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedBundleIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAllowedBundleIdsIsMutable(); allowedBundleIds_.add(value); @@ -773,8 +875,13 @@ public Builder addAllowedBundleIdsBytes( private com.google.recaptchaenterprise.v1.AppleDeveloperId appleDeveloperId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AppleDeveloperId, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder> appleDeveloperIdBuilder_; + com.google.recaptchaenterprise.v1.AppleDeveloperId, + com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, + com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder> + appleDeveloperIdBuilder_; /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -783,13 +890,18 @@ public Builder addAllowedBundleIdsBytes(
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the appleDeveloperId field is set. */ public boolean hasAppleDeveloperId() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -798,17 +910,24 @@ public boolean hasAppleDeveloperId() {
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The appleDeveloperId. */ public com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId() { if (appleDeveloperIdBuilder_ == null) { - return appleDeveloperId_ == null ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() : appleDeveloperId_; + return appleDeveloperId_ == null + ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() + : appleDeveloperId_; } else { return appleDeveloperIdBuilder_.getMessage(); } } /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -817,7 +936,9 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId()
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDeveloperId value) { if (appleDeveloperIdBuilder_ == null) { @@ -833,6 +954,8 @@ public Builder setAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDevelo return this; } /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -841,7 +964,9 @@ public Builder setAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDevelo
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAppleDeveloperId( com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder builderForValue) { @@ -855,6 +980,8 @@ public Builder setAppleDeveloperId( return this; } /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -863,13 +990,16 @@ public Builder setAppleDeveloperId(
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDeveloperId value) { if (appleDeveloperIdBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - appleDeveloperId_ != null && - appleDeveloperId_ != com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && appleDeveloperId_ != null + && appleDeveloperId_ + != com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance()) { getAppleDeveloperIdBuilder().mergeFrom(value); } else { appleDeveloperId_ = value; @@ -882,6 +1012,8 @@ public Builder mergeAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDeve return this; } /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -890,7 +1022,9 @@ public Builder mergeAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDeve
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAppleDeveloperId() { bitField0_ = (bitField0_ & ~0x00000004); @@ -903,6 +1037,8 @@ public Builder clearAppleDeveloperId() { return this; } /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -911,7 +1047,9 @@ public Builder clearAppleDeveloperId() {
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder getAppleDeveloperIdBuilder() { bitField0_ |= 0x00000004; @@ -919,6 +1057,8 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder getAppleDevelo return getAppleDeveloperIdFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -927,17 +1067,23 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder getAppleDevelo
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder getAppleDeveloperIdOrBuilder() { + public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder + getAppleDeveloperIdOrBuilder() { if (appleDeveloperIdBuilder_ != null) { return appleDeveloperIdBuilder_.getMessageOrBuilder(); } else { - return appleDeveloperId_ == null ? - com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() : appleDeveloperId_; + return appleDeveloperId_ == null + ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() + : appleDeveloperId_; } } /** + * + * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -946,24 +1092,29 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder getAppleDevel
      * assessment of the integrity of your app.
      * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AppleDeveloperId, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder> + com.google.recaptchaenterprise.v1.AppleDeveloperId, + com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, + com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder> getAppleDeveloperIdFieldBuilder() { if (appleDeveloperIdBuilder_ == null) { - appleDeveloperIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AppleDeveloperId, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder>( - getAppleDeveloperId(), - getParentForChildren(), - isClean()); + appleDeveloperIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.AppleDeveloperId, + com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, + com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder>( + getAppleDeveloperId(), getParentForChildren(), isClean()); appleDeveloperId_ = null; } return appleDeveloperIdBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -973,12 +1124,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.IOSKeySettings) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.IOSKeySettings) private static final com.google.recaptchaenterprise.v1.IOSKeySettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.IOSKeySettings(); } @@ -987,27 +1138,27 @@ public static com.google.recaptchaenterprise.v1.IOSKeySettings getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IOSKeySettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IOSKeySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1022,6 +1173,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.IOSKeySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java similarity index 72% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java index de2aedf919d4..5428d5f5ae6d 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java @@ -1,68 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface IOSKeySettingsOrBuilder extends +public interface IOSKeySettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.IOSKeySettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. If set to true, allowed_bundle_ids are not enforced.
    * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllBundleIds. */ boolean getAllowAllBundleIds(); /** + * + * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedBundleIds. */ - java.util.List - getAllowedBundleIdsList(); + java.util.List getAllowedBundleIdsList(); /** + * + * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedBundleIds. */ int getAllowedBundleIdsCount(); /** + * + * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedBundleIds at the given index. */ java.lang.String getAllowedBundleIds(int index); /** + * + * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedBundleIds at the given index. */ - com.google.protobuf.ByteString - getAllowedBundleIdsBytes(int index); + com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index); /** + * + * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -71,11 +102,16 @@ public interface IOSKeySettingsOrBuilder extends
    * assessment of the integrity of your app.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the appleDeveloperId field is set. */ boolean hasAppleDeveloperId(); /** + * + * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -84,11 +120,16 @@ public interface IOSKeySettingsOrBuilder extends
    * assessment of the integrity of your app.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The appleDeveloperId. */ com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId(); /** + * + * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -97,7 +138,9 @@ public interface IOSKeySettingsOrBuilder extends
    * assessment of the integrity of your app.
    * 
* - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder getAppleDeveloperIdOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java similarity index 67% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java index e2edb9b6ae11..61c706d6fc60 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * A key used to identify and configure applications (web and/or mobile) that
  * use reCAPTCHA Enterprise.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Key}
  */
-public final class Key extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Key extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.Key)
     KeyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Key.newBuilder() to construct.
   private Key(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Key() {
     name_ = "";
     displayName_ = "";
@@ -27,47 +45,51 @@ private Key() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Key();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 6:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.Key.class, com.google.recaptchaenterprise.v1.Key.Builder.class);
+            com.google.recaptchaenterprise.v1.Key.class,
+            com.google.recaptchaenterprise.v1.Key.Builder.class);
   }
 
   private int platformSettingsCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object platformSettings_;
+
   public enum PlatformSettingsCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     WEB_SETTINGS(3),
     ANDROID_SETTINGS(4),
     IOS_SETTINGS(5),
     PLATFORMSETTINGS_NOT_SET(0);
     private final int value;
+
     private PlatformSettingsCase(int value) {
       this.value = value;
     }
@@ -83,34 +105,42 @@ public static PlatformSettingsCase valueOf(int value) {
 
     public static PlatformSettingsCase forNumber(int value) {
       switch (value) {
-        case 3: return WEB_SETTINGS;
-        case 4: return ANDROID_SETTINGS;
-        case 5: return IOS_SETTINGS;
-        case 0: return PLATFORMSETTINGS_NOT_SET;
-        default: return null;
+        case 3:
+          return WEB_SETTINGS;
+        case 4:
+          return ANDROID_SETTINGS;
+        case 5:
+          return IOS_SETTINGS;
+        case 0:
+          return PLATFORMSETTINGS_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PlatformSettingsCase
-  getPlatformSettingsCase() {
-    return PlatformSettingsCase.forNumber(
-        platformSettingsCase_);
+  public PlatformSettingsCase getPlatformSettingsCase() {
+    return PlatformSettingsCase.forNumber(platformSettingsCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Identifier. The resource name for the Key in the format
    * `projects/{project}/keys/{key}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ @java.lang.Override @@ -119,30 +149,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; } } /** + * + * *
    * Identifier. The resource name for the Key in the format
    * `projects/{project}/keys/{key}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -151,14 +181,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Human-readable display name of this key. Modifiable by user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -167,29 +201,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Human-readable display name of this key. Modifiable by user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -199,11 +233,14 @@ public java.lang.String getDisplayName() { public static final int WEB_SETTINGS_FIELD_NUMBER = 3; /** + * + * *
    * Settings for keys that can be used by websites.
    * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; + * * @return Whether the webSettings field is set. */ @java.lang.Override @@ -211,21 +248,26 @@ public boolean hasWebSettings() { return platformSettingsCase_ == 3; } /** + * + * *
    * Settings for keys that can be used by websites.
    * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; + * * @return The webSettings. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings getWebSettings() { if (platformSettingsCase_ == 3) { - return (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance(); } /** + * + * *
    * Settings for keys that can be used by websites.
    * 
@@ -235,18 +277,21 @@ public com.google.recaptchaenterprise.v1.WebKeySettings getWebSettings() { @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsOrBuilder() { if (platformSettingsCase_ == 3) { - return (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance(); } public static final int ANDROID_SETTINGS_FIELD_NUMBER = 4; /** + * + * *
    * Settings for keys that can be used by Android apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; + * * @return Whether the androidSettings field is set. */ @java.lang.Override @@ -254,21 +299,26 @@ public boolean hasAndroidSettings() { return platformSettingsCase_ == 4; } /** + * + * *
    * Settings for keys that can be used by Android apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; + * * @return The androidSettings. */ @java.lang.Override public com.google.recaptchaenterprise.v1.AndroidKeySettings getAndroidSettings() { if (platformSettingsCase_ == 4) { - return (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance(); } /** + * + * *
    * Settings for keys that can be used by Android apps.
    * 
@@ -276,20 +326,24 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettings getAndroidSettings() * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder() { + public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder + getAndroidSettingsOrBuilder() { if (platformSettingsCase_ == 4) { - return (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance(); } public static final int IOS_SETTINGS_FIELD_NUMBER = 5; /** + * + * *
    * Settings for keys that can be used by iOS apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; + * * @return Whether the iosSettings field is set. */ @java.lang.Override @@ -297,21 +351,26 @@ public boolean hasIosSettings() { return platformSettingsCase_ == 5; } /** + * + * *
    * Settings for keys that can be used by iOS apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; + * * @return The iosSettings. */ @java.lang.Override public com.google.recaptchaenterprise.v1.IOSKeySettings getIosSettings() { if (platformSettingsCase_ == 5) { - return (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance(); } /** + * + * *
    * Settings for keys that can be used by iOS apps.
    * 
@@ -321,38 +380,40 @@ public com.google.recaptchaenterprise.v1.IOSKeySettings getIosSettings() { @java.lang.Override public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsOrBuilder() { if (platformSettingsCase_ == 5) { - return (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance(); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -361,20 +422,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -387,6 +449,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -395,17 +459,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -414,11 +480,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -428,11 +494,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -440,11 +510,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -452,11 +526,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -466,11 +543,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TESTING_OPTIONS_FIELD_NUMBER = 9; private com.google.recaptchaenterprise.v1.TestingOptions testingOptions_; /** + * + * *
    * Optional. Options for user acceptance testing.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the testingOptions field is set. */ @java.lang.Override @@ -478,37 +560,55 @@ public boolean hasTestingOptions() { return testingOptions_ != null; } /** + * + * *
    * Optional. Options for user acceptance testing.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The testingOptions. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptions getTestingOptions() { - return testingOptions_ == null ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() : testingOptions_; + return testingOptions_ == null + ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() + : testingOptions_; } /** + * + * *
    * Optional. Options for user acceptance testing.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder getTestingOptionsOrBuilder() { - return testingOptions_ == null ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() : testingOptions_; + return testingOptions_ == null + ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() + : testingOptions_; } public static final int WAF_SETTINGS_FIELD_NUMBER = 10; private com.google.recaptchaenterprise.v1.WafSettings wafSettings_; /** + * + * *
    * Optional. Settings for WAF
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the wafSettings field is set. */ @java.lang.Override @@ -516,30 +616,44 @@ public boolean hasWafSettings() { return wafSettings_ != null; } /** + * + * *
    * Optional. Settings for WAF
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The wafSettings. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings getWafSettings() { - return wafSettings_ == null ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() : wafSettings_; + return wafSettings_ == null + ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() + : wafSettings_; } /** + * + * *
    * Optional. Settings for WAF
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettingsOrBuilder getWafSettingsOrBuilder() { - return wafSettings_ == null ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() : wafSettings_; + return wafSettings_ == null + ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() + : wafSettings_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -551,8 +665,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -563,17 +676,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(3, (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_); } if (platformSettingsCase_ == 4) { - output.writeMessage(4, (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_); + output.writeMessage( + 4, (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_); } if (platformSettingsCase_ == 5) { output.writeMessage(5, (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } @@ -599,38 +709,38 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (platformSettingsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_); } if (platformSettingsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_); } if (platformSettingsCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (testingOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getTestingOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTestingOptions()); } if (wafSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getWafSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWafSettings()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -640,47 +750,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.Key)) { return super.equals(obj); } com.google.recaptchaenterprise.v1.Key other = (com.google.recaptchaenterprise.v1.Key) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasTestingOptions() != other.hasTestingOptions()) return false; if (hasTestingOptions()) { - if (!getTestingOptions() - .equals(other.getTestingOptions())) return false; + if (!getTestingOptions().equals(other.getTestingOptions())) return false; } if (hasWafSettings() != other.hasWafSettings()) return false; if (hasWafSettings()) { - if (!getWafSettings() - .equals(other.getWafSettings())) return false; + if (!getWafSettings().equals(other.getWafSettings())) return false; } if (!getPlatformSettingsCase().equals(other.getPlatformSettingsCase())) return false; switch (platformSettingsCase_) { case 3: - if (!getWebSettings() - .equals(other.getWebSettings())) return false; + if (!getWebSettings().equals(other.getWebSettings())) return false; break; case 4: - if (!getAndroidSettings() - .equals(other.getAndroidSettings())) return false; + if (!getAndroidSettings().equals(other.getAndroidSettings())) return false; break; case 5: - if (!getIosSettings() - .equals(other.getIosSettings())) return false; + if (!getIosSettings().equals(other.getIosSettings())) return false; break; case 0: default: @@ -737,99 +838,103 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.Key parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.Key parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Key parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Key parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.recaptchaenterprise.v1.Key parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Key parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Key parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Key parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Key parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.Key parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.recaptchaenterprise.v1.Key parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.Key parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Key parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.Key parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.Key prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 key used to identify and configure applications (web and/or mobile) that
    * use reCAPTCHA Enterprise.
@@ -837,55 +942,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Key}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.Key)
       com.google.recaptchaenterprise.v1.KeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 6:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 6:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.Key.class, com.google.recaptchaenterprise.v1.Key.Builder.class);
+              com.google.recaptchaenterprise.v1.Key.class,
+              com.google.recaptchaenterprise.v1.Key.Builder.class);
     }
 
     // Construct using com.google.recaptchaenterprise.v1.Key.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -923,9 +1025,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
     }
 
     @java.lang.Override
@@ -944,8 +1046,11 @@ public com.google.recaptchaenterprise.v1.Key build() {
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.Key buildPartial() {
-      com.google.recaptchaenterprise.v1.Key result = new com.google.recaptchaenterprise.v1.Key(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.recaptchaenterprise.v1.Key result =
+          new com.google.recaptchaenterprise.v1.Key(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -964,35 +1069,28 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Key result) {
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.testingOptions_ = testingOptionsBuilder_ == null
-            ? testingOptions_
-            : testingOptionsBuilder_.build();
+        result.testingOptions_ =
+            testingOptionsBuilder_ == null ? testingOptions_ : testingOptionsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.wafSettings_ = wafSettingsBuilder_ == null
-            ? wafSettings_
-            : wafSettingsBuilder_.build();
+        result.wafSettings_ =
+            wafSettingsBuilder_ == null ? wafSettings_ : wafSettingsBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.recaptchaenterprise.v1.Key result) {
       result.platformSettingsCase_ = platformSettingsCase_;
       result.platformSettings_ = this.platformSettings_;
-      if (platformSettingsCase_ == 3 &&
-          webSettingsBuilder_ != null) {
+      if (platformSettingsCase_ == 3 && webSettingsBuilder_ != null) {
         result.platformSettings_ = webSettingsBuilder_.build();
       }
-      if (platformSettingsCase_ == 4 &&
-          androidSettingsBuilder_ != null) {
+      if (platformSettingsCase_ == 4 && androidSettingsBuilder_ != null) {
         result.platformSettings_ = androidSettingsBuilder_.build();
       }
-      if (platformSettingsCase_ == 5 &&
-          iosSettingsBuilder_ != null) {
+      if (platformSettingsCase_ == 5 && iosSettingsBuilder_ != null) {
         result.platformSettings_ = iosSettingsBuilder_.build();
       }
     }
@@ -1001,38 +1099,39 @@ private void buildPartialOneofs(com.google.recaptchaenterprise.v1.Key result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.Key) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.Key)other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.Key) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1051,8 +1150,7 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Key other) {
         bitField0_ |= 0x00000002;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -1064,21 +1162,25 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Key other) {
         mergeWafSettings(other.getWafSettings());
       }
       switch (other.getPlatformSettingsCase()) {
-        case WEB_SETTINGS: {
-          mergeWebSettings(other.getWebSettings());
-          break;
-        }
-        case ANDROID_SETTINGS: {
-          mergeAndroidSettings(other.getAndroidSettings());
-          break;
-        }
-        case IOS_SETTINGS: {
-          mergeIosSettings(other.getIosSettings());
-          break;
-        }
-        case PLATFORMSETTINGS_NOT_SET: {
-          break;
-        }
+        case WEB_SETTINGS:
+          {
+            mergeWebSettings(other.getWebSettings());
+            break;
+          }
+        case ANDROID_SETTINGS:
+          {
+            mergeAndroidSettings(other.getAndroidSettings());
+            break;
+          }
+        case IOS_SETTINGS:
+          {
+            mergeIosSettings(other.getIosSettings());
+            break;
+          }
+        case PLATFORMSETTINGS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1106,73 +1208,73 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getWebSettingsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              platformSettingsCase_ = 3;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getAndroidSettingsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              platformSettingsCase_ = 4;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getIosSettingsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              platformSettingsCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 74: {
-              input.readMessage(
-                  getTestingOptionsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getWafSettingsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getWebSettingsFieldBuilder().getBuilder(), extensionRegistry);
+                platformSettingsCase_ = 3;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getAndroidSettingsFieldBuilder().getBuilder(), extensionRegistry);
+                platformSettingsCase_ = 4;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getIosSettingsFieldBuilder().getBuilder(), extensionRegistry);
+                platformSettingsCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 74:
+              {
+                input.readMessage(getTestingOptionsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getWafSettingsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                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) {
@@ -1182,12 +1284,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int platformSettingsCase_ = 0;
     private java.lang.Object platformSettings_;
-    public PlatformSettingsCase
-        getPlatformSettingsCase() {
-      return PlatformSettingsCase.forNumber(
-          platformSettingsCase_);
+
+    public PlatformSettingsCase getPlatformSettingsCase() {
+      return PlatformSettingsCase.forNumber(platformSettingsCase_);
     }
 
     public Builder clearPlatformSettings() {
@@ -1201,19 +1303,21 @@ public Builder clearPlatformSettings() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Identifier. The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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; @@ -1222,21 +1326,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Identifier. The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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 { @@ -1244,30 +1349,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Identifier. The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Identifier. The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1277,18 +1389,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Identifier. The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1298,18 +1414,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1318,20 +1436,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1339,28 +1458,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1370,17 +1496,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1389,13 +1519,19 @@ public Builder setDisplayNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WebKeySettings, com.google.recaptchaenterprise.v1.WebKeySettings.Builder, com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder> webSettingsBuilder_; + com.google.recaptchaenterprise.v1.WebKeySettings, + com.google.recaptchaenterprise.v1.WebKeySettings.Builder, + com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder> + webSettingsBuilder_; /** + * + * *
      * Settings for keys that can be used by websites.
      * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; + * * @return Whether the webSettings field is set. */ @java.lang.Override @@ -1403,11 +1539,14 @@ public boolean hasWebSettings() { return platformSettingsCase_ == 3; } /** + * + * *
      * Settings for keys that can be used by websites.
      * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; + * * @return The webSettings. */ @java.lang.Override @@ -1425,6 +1564,8 @@ public com.google.recaptchaenterprise.v1.WebKeySettings getWebSettings() { } } /** + * + * *
      * Settings for keys that can be used by websites.
      * 
@@ -1445,6 +1586,8 @@ public Builder setWebSettings(com.google.recaptchaenterprise.v1.WebKeySettings v return this; } /** + * + * *
      * Settings for keys that can be used by websites.
      * 
@@ -1463,6 +1606,8 @@ public Builder setWebSettings( return this; } /** + * + * *
      * Settings for keys that can be used by websites.
      * 
@@ -1471,10 +1616,14 @@ public Builder setWebSettings( */ public Builder mergeWebSettings(com.google.recaptchaenterprise.v1.WebKeySettings value) { if (webSettingsBuilder_ == null) { - if (platformSettingsCase_ == 3 && - platformSettings_ != com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance()) { - platformSettings_ = com.google.recaptchaenterprise.v1.WebKeySettings.newBuilder((com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_) - .mergeFrom(value).buildPartial(); + if (platformSettingsCase_ == 3 + && platformSettings_ + != com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance()) { + platformSettings_ = + com.google.recaptchaenterprise.v1.WebKeySettings.newBuilder( + (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_) + .mergeFrom(value) + .buildPartial(); } else { platformSettings_ = value; } @@ -1490,6 +1639,8 @@ public Builder mergeWebSettings(com.google.recaptchaenterprise.v1.WebKeySettings return this; } /** + * + * *
      * Settings for keys that can be used by websites.
      * 
@@ -1513,6 +1664,8 @@ public Builder clearWebSettings() { return this; } /** + * + * *
      * Settings for keys that can be used by websites.
      * 
@@ -1523,6 +1676,8 @@ public com.google.recaptchaenterprise.v1.WebKeySettings.Builder getWebSettingsBu return getWebSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Settings for keys that can be used by websites.
      * 
@@ -1541,6 +1696,8 @@ public com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsO } } /** + * + * *
      * Settings for keys that can be used by websites.
      * 
@@ -1548,14 +1705,19 @@ public com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsO * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WebKeySettings, com.google.recaptchaenterprise.v1.WebKeySettings.Builder, com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder> + com.google.recaptchaenterprise.v1.WebKeySettings, + com.google.recaptchaenterprise.v1.WebKeySettings.Builder, + com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder> getWebSettingsFieldBuilder() { if (webSettingsBuilder_ == null) { if (!(platformSettingsCase_ == 3)) { platformSettings_ = com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance(); } - webSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WebKeySettings, com.google.recaptchaenterprise.v1.WebKeySettings.Builder, com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder>( + webSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.WebKeySettings, + com.google.recaptchaenterprise.v1.WebKeySettings.Builder, + com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder>( (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_, getParentForChildren(), isClean()); @@ -1567,13 +1729,19 @@ public com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AndroidKeySettings, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder> androidSettingsBuilder_; + com.google.recaptchaenterprise.v1.AndroidKeySettings, + com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, + com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder> + androidSettingsBuilder_; /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; + * * @return Whether the androidSettings field is set. */ @java.lang.Override @@ -1581,11 +1749,14 @@ public boolean hasAndroidSettings() { return platformSettingsCase_ == 4; } /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; + * * @return The androidSettings. */ @java.lang.Override @@ -1603,6 +1774,8 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettings getAndroidSettings() } } /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1623,6 +1796,8 @@ public Builder setAndroidSettings(com.google.recaptchaenterprise.v1.AndroidKeySe return this; } /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1641,18 +1816,25 @@ public Builder setAndroidSettings( return this; } /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ - public Builder mergeAndroidSettings(com.google.recaptchaenterprise.v1.AndroidKeySettings value) { + public Builder mergeAndroidSettings( + com.google.recaptchaenterprise.v1.AndroidKeySettings value) { if (androidSettingsBuilder_ == null) { - if (platformSettingsCase_ == 4 && - platformSettings_ != com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance()) { - platformSettings_ = com.google.recaptchaenterprise.v1.AndroidKeySettings.newBuilder((com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_) - .mergeFrom(value).buildPartial(); + if (platformSettingsCase_ == 4 + && platformSettings_ + != com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance()) { + platformSettings_ = + com.google.recaptchaenterprise.v1.AndroidKeySettings.newBuilder( + (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_) + .mergeFrom(value) + .buildPartial(); } else { platformSettings_ = value; } @@ -1668,6 +1850,8 @@ public Builder mergeAndroidSettings(com.google.recaptchaenterprise.v1.AndroidKey return this; } /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1691,16 +1875,21 @@ public Builder clearAndroidSettings() { return this; } /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ - public com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder getAndroidSettingsBuilder() { + public com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder + getAndroidSettingsBuilder() { return getAndroidSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1708,7 +1897,8 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder getAndroidSe * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder() { + public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder + getAndroidSettingsOrBuilder() { if ((platformSettingsCase_ == 4) && (androidSettingsBuilder_ != null)) { return androidSettingsBuilder_.getMessageOrBuilder(); } else { @@ -1719,6 +1909,8 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidS } } /** + * + * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1726,14 +1918,20 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidS * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AndroidKeySettings, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder> + com.google.recaptchaenterprise.v1.AndroidKeySettings, + com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, + com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder> getAndroidSettingsFieldBuilder() { if (androidSettingsBuilder_ == null) { if (!(platformSettingsCase_ == 4)) { - platformSettings_ = com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance(); + platformSettings_ = + com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance(); } - androidSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AndroidKeySettings, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder>( + androidSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.AndroidKeySettings, + com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, + com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder>( (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_, getParentForChildren(), isClean()); @@ -1745,13 +1943,19 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidS } private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.IOSKeySettings, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder> iosSettingsBuilder_; + com.google.recaptchaenterprise.v1.IOSKeySettings, + com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, + com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder> + iosSettingsBuilder_; /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; + * * @return Whether the iosSettings field is set. */ @java.lang.Override @@ -1759,11 +1963,14 @@ public boolean hasIosSettings() { return platformSettingsCase_ == 5; } /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; + * * @return The iosSettings. */ @java.lang.Override @@ -1781,6 +1988,8 @@ public com.google.recaptchaenterprise.v1.IOSKeySettings getIosSettings() { } } /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -1801,6 +2010,8 @@ public Builder setIosSettings(com.google.recaptchaenterprise.v1.IOSKeySettings v return this; } /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -1819,6 +2030,8 @@ public Builder setIosSettings( return this; } /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -1827,10 +2040,14 @@ public Builder setIosSettings( */ public Builder mergeIosSettings(com.google.recaptchaenterprise.v1.IOSKeySettings value) { if (iosSettingsBuilder_ == null) { - if (platformSettingsCase_ == 5 && - platformSettings_ != com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance()) { - platformSettings_ = com.google.recaptchaenterprise.v1.IOSKeySettings.newBuilder((com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_) - .mergeFrom(value).buildPartial(); + if (platformSettingsCase_ == 5 + && platformSettings_ + != com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance()) { + platformSettings_ = + com.google.recaptchaenterprise.v1.IOSKeySettings.newBuilder( + (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_) + .mergeFrom(value) + .buildPartial(); } else { platformSettings_ = value; } @@ -1846,6 +2063,8 @@ public Builder mergeIosSettings(com.google.recaptchaenterprise.v1.IOSKeySettings return this; } /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -1869,6 +2088,8 @@ public Builder clearIosSettings() { return this; } /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -1879,6 +2100,8 @@ public com.google.recaptchaenterprise.v1.IOSKeySettings.Builder getIosSettingsBu return getIosSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -1897,6 +2120,8 @@ public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsO } } /** + * + * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -1904,14 +2129,19 @@ public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsO * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.IOSKeySettings, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder> + com.google.recaptchaenterprise.v1.IOSKeySettings, + com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, + com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder> getIosSettingsFieldBuilder() { if (iosSettingsBuilder_ == null) { if (!(platformSettingsCase_ == 5)) { platformSettings_ = com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance(); } - iosSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.IOSKeySettings, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder>( + iosSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.IOSKeySettings, + com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, + com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder>( (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_, getParentForChildren(), isClean()); @@ -1922,21 +2152,19 @@ public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsO return iosSettingsBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1945,10 +2173,13 @@ public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsO onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -1957,20 +2188,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -1983,6 +2215,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -1991,17 +2225,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2010,23 +2246,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2034,23 +2272,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2058,17 +2295,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    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);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2076,49 +2316,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       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_;
     /**
+     *
+     *
      * 
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2134,14 +2391,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2152,17 +2412,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2175,11 +2439,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2192,11 +2460,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2204,36 +2476,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2241,39 +2525,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.recaptchaenterprise.v1.TestingOptions testingOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TestingOptions, com.google.recaptchaenterprise.v1.TestingOptions.Builder, com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder> testingOptionsBuilder_; + com.google.recaptchaenterprise.v1.TestingOptions, + com.google.recaptchaenterprise.v1.TestingOptions.Builder, + com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder> + testingOptionsBuilder_; /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the testingOptions field is set. */ public boolean hasTestingOptions() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The testingOptions. */ public com.google.recaptchaenterprise.v1.TestingOptions getTestingOptions() { if (testingOptionsBuilder_ == null) { - return testingOptions_ == null ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() : testingOptions_; + return testingOptions_ == null + ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() + : testingOptions_; } else { return testingOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTestingOptions(com.google.recaptchaenterprise.v1.TestingOptions value) { if (testingOptionsBuilder_ == null) { @@ -2289,11 +2592,15 @@ public Builder setTestingOptions(com.google.recaptchaenterprise.v1.TestingOption return this; } /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTestingOptions( com.google.recaptchaenterprise.v1.TestingOptions.Builder builderForValue) { @@ -2307,17 +2614,22 @@ public Builder setTestingOptions( return this; } /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTestingOptions(com.google.recaptchaenterprise.v1.TestingOptions value) { if (testingOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - testingOptions_ != null && - testingOptions_ != com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && testingOptions_ != null + && testingOptions_ + != com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance()) { getTestingOptionsBuilder().mergeFrom(value); } else { testingOptions_ = value; @@ -2330,11 +2642,15 @@ public Builder mergeTestingOptions(com.google.recaptchaenterprise.v1.TestingOpti return this; } /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTestingOptions() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2347,11 +2663,15 @@ public Builder clearTestingOptions() { return this; } /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TestingOptions.Builder getTestingOptionsBuilder() { bitField0_ |= 0x00000080; @@ -2359,36 +2679,48 @@ public com.google.recaptchaenterprise.v1.TestingOptions.Builder getTestingOption return getTestingOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder getTestingOptionsOrBuilder() { if (testingOptionsBuilder_ != null) { return testingOptionsBuilder_.getMessageOrBuilder(); } else { - return testingOptions_ == null ? - com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() : testingOptions_; + return testingOptions_ == null + ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() + : testingOptions_; } } /** + * + * *
      * Optional. Options for user acceptance testing.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TestingOptions, com.google.recaptchaenterprise.v1.TestingOptions.Builder, com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder> + com.google.recaptchaenterprise.v1.TestingOptions, + com.google.recaptchaenterprise.v1.TestingOptions.Builder, + com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder> getTestingOptionsFieldBuilder() { if (testingOptionsBuilder_ == null) { - testingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TestingOptions, com.google.recaptchaenterprise.v1.TestingOptions.Builder, com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder>( - getTestingOptions(), - getParentForChildren(), - isClean()); + testingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TestingOptions, + com.google.recaptchaenterprise.v1.TestingOptions.Builder, + com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder>( + getTestingOptions(), getParentForChildren(), isClean()); testingOptions_ = null; } return testingOptionsBuilder_; @@ -2396,39 +2728,58 @@ public com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder getTestingOptio private com.google.recaptchaenterprise.v1.WafSettings wafSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WafSettings, com.google.recaptchaenterprise.v1.WafSettings.Builder, com.google.recaptchaenterprise.v1.WafSettingsOrBuilder> wafSettingsBuilder_; + com.google.recaptchaenterprise.v1.WafSettings, + com.google.recaptchaenterprise.v1.WafSettings.Builder, + com.google.recaptchaenterprise.v1.WafSettingsOrBuilder> + wafSettingsBuilder_; /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the wafSettings field is set. */ public boolean hasWafSettings() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The wafSettings. */ public com.google.recaptchaenterprise.v1.WafSettings getWafSettings() { if (wafSettingsBuilder_ == null) { - return wafSettings_ == null ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() : wafSettings_; + return wafSettings_ == null + ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() + : wafSettings_; } else { return wafSettingsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setWafSettings(com.google.recaptchaenterprise.v1.WafSettings value) { if (wafSettingsBuilder_ == null) { @@ -2444,11 +2795,15 @@ public Builder setWafSettings(com.google.recaptchaenterprise.v1.WafSettings valu return this; } /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setWafSettings( com.google.recaptchaenterprise.v1.WafSettings.Builder builderForValue) { @@ -2462,17 +2817,21 @@ public Builder setWafSettings( return this; } /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeWafSettings(com.google.recaptchaenterprise.v1.WafSettings value) { if (wafSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - wafSettings_ != null && - wafSettings_ != com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && wafSettings_ != null + && wafSettings_ != com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance()) { getWafSettingsBuilder().mergeFrom(value); } else { wafSettings_ = value; @@ -2485,11 +2844,15 @@ public Builder mergeWafSettings(com.google.recaptchaenterprise.v1.WafSettings va return this; } /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearWafSettings() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2502,11 +2865,15 @@ public Builder clearWafSettings() { return this; } /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.WafSettings.Builder getWafSettingsBuilder() { bitField0_ |= 0x00000100; @@ -2514,43 +2881,55 @@ public com.google.recaptchaenterprise.v1.WafSettings.Builder getWafSettingsBuild return getWafSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.WafSettingsOrBuilder getWafSettingsOrBuilder() { if (wafSettingsBuilder_ != null) { return wafSettingsBuilder_.getMessageOrBuilder(); } else { - return wafSettings_ == null ? - com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() : wafSettings_; + return wafSettings_ == null + ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() + : wafSettings_; } } /** + * + * *
      * Optional. Settings for WAF
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WafSettings, com.google.recaptchaenterprise.v1.WafSettings.Builder, com.google.recaptchaenterprise.v1.WafSettingsOrBuilder> + com.google.recaptchaenterprise.v1.WafSettings, + com.google.recaptchaenterprise.v1.WafSettings.Builder, + com.google.recaptchaenterprise.v1.WafSettingsOrBuilder> getWafSettingsFieldBuilder() { if (wafSettingsBuilder_ == null) { - wafSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WafSettings, com.google.recaptchaenterprise.v1.WafSettings.Builder, com.google.recaptchaenterprise.v1.WafSettingsOrBuilder>( - getWafSettings(), - getParentForChildren(), - isClean()); + wafSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.WafSettings, + com.google.recaptchaenterprise.v1.WafSettings.Builder, + com.google.recaptchaenterprise.v1.WafSettingsOrBuilder>( + getWafSettings(), getParentForChildren(), isClean()); wafSettings_ = null; } return wafSettingsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2560,12 +2939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.Key) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.Key) private static final com.google.recaptchaenterprise.v1.Key DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.Key(); } @@ -2574,27 +2953,27 @@ public static com.google.recaptchaenterprise.v1.Key getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Key parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Key parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2609,6 +2988,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.Key getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java similarity index 74% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java index 893d6c8dbcc4..efedd5328781 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java @@ -1,73 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface KeyOrBuilder extends +public interface KeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.Key) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Identifier. The resource name for the Key in the format
    * `projects/{project}/keys/{key}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Identifier. The resource name for the Key in the format
    * `projects/{project}/keys/{key}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Human-readable display name of this key. Modifiable by user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Human-readable display name of this key. Modifiable by user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Settings for keys that can be used by websites.
    * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; + * * @return Whether the webSettings field is set. */ boolean hasWebSettings(); /** + * + * *
    * Settings for keys that can be used by websites.
    * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; + * * @return The webSettings. */ com.google.recaptchaenterprise.v1.WebKeySettings getWebSettings(); /** + * + * *
    * Settings for keys that can be used by websites.
    * 
@@ -77,24 +111,32 @@ public interface KeyOrBuilder extends com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsOrBuilder(); /** + * + * *
    * Settings for keys that can be used by Android apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; + * * @return Whether the androidSettings field is set. */ boolean hasAndroidSettings(); /** + * + * *
    * Settings for keys that can be used by Android apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; + * * @return The androidSettings. */ com.google.recaptchaenterprise.v1.AndroidKeySettings getAndroidSettings(); /** + * + * *
    * Settings for keys that can be used by Android apps.
    * 
@@ -104,24 +146,32 @@ public interface KeyOrBuilder extends com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder(); /** + * + * *
    * Settings for keys that can be used by iOS apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; + * * @return Whether the iosSettings field is set. */ boolean hasIosSettings(); /** + * + * *
    * Settings for keys that can be used by iOS apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; + * * @return The iosSettings. */ com.google.recaptchaenterprise.v1.IOSKeySettings getIosSettings(); /** + * + * *
    * Settings for keys that can be used by iOS apps.
    * 
@@ -131,6 +181,8 @@ public interface KeyOrBuilder extends com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsOrBuilder(); /** + * + * *
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -140,6 +192,8 @@ public interface KeyOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -147,15 +201,13 @@ public interface KeyOrBuilder extends
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -163,9 +215,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -174,11 +227,13 @@ boolean containsLabels(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -186,87 +241,125 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Optional. Options for user acceptance testing.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the testingOptions field is set. */ boolean hasTestingOptions(); /** + * + * *
    * Optional. Options for user acceptance testing.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The testingOptions. */ com.google.recaptchaenterprise.v1.TestingOptions getTestingOptions(); /** + * + * *
    * Optional. Options for user acceptance testing.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder getTestingOptionsOrBuilder(); /** + * + * *
    * Optional. Settings for WAF
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the wafSettings field is set. */ boolean hasWafSettings(); /** + * + * *
    * Optional. Settings for WAF
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The wafSettings. */ com.google.recaptchaenterprise.v1.WafSettings getWafSettings(); /** + * + * *
    * Optional. Settings for WAF
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.WafSettingsOrBuilder getWafSettingsOrBuilder(); diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java similarity index 67% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java index b1a7df8ff453..8df356cbb677 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The list firewall policies request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest} */ -public final class ListFirewallPoliciesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFirewallPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) ListFirewallPoliciesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFirewallPoliciesRequest.newBuilder() to construct. private ListFirewallPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFirewallPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,34 +44,41 @@ private ListFirewallPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFirewallPoliciesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project to list the policies for, in the format
    * `projects/{project}`.
    * 
* - * string parent = 1 [(.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 @@ -62,30 +87,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project to list the policies for, in the format
    * `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -96,12 +123,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of policies to return. Default is 10. Max
    * limit is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -110,15 +140,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The next_page_token value returned from a previous.
    * ListFirewallPoliciesRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -127,30 +161,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The next_page_token value returned from a previous.
    * ListFirewallPoliciesRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -159,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -194,8 +228,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -208,19 +241,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest other = (com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) obj; + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest other = + (com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,131 +275,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The list firewall policies request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,13 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.getDefaultInstance(); } @@ -401,13 +438,17 @@ public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest buildPartial() { - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest result = new com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest result = + new com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -424,38 +465,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListFirewallPolicie public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) other); } else { super.mergeFrom(other); return this; @@ -463,7 +505,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest other) { - if (other == com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -503,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -533,23 +581,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * string parent = 1 [(.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; @@ -558,21 +611,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -580,30 +636,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * string 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() { @@ -613,18 +680,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -632,14 +705,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of policies to return. Default is 10. Max
      * limit is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -647,12 +723,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of policies to return. Default is 10. Max
      * limit is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -664,12 +743,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of policies to return. Default is 10. Max
      * limit is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -681,19 +763,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -702,21 +786,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -724,30 +809,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -757,27 +849,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -787,12 +883,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) - private static final com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest(); } @@ -801,27 +898,27 @@ public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFirewallPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirewallPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -836,6 +933,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java index 572d6ff86ebf..81d66fc228a8 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java @@ -1,64 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListFirewallPoliciesRequestOrBuilder extends +public interface ListFirewallPoliciesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project to list the policies for, in the format
    * `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project to list the policies for, in the format
    * `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The maximum number of policies to return. Default is 10. Max
    * limit is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The next_page_token value returned from a previous.
    * ListFirewallPoliciesRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The next_page_token value returned from a previous.
    * ListFirewallPoliciesRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java similarity index 69% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java index f1e9d2733dcc..6352a59cf145 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Response to request to list firewall policies belonging to a key.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse} */ -public final class ListFirewallPoliciesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFirewallPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) ListFirewallPoliciesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFirewallPoliciesResponse.newBuilder() to construct. private ListFirewallPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFirewallPoliciesResponse() { firewallPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,78 +44,96 @@ private ListFirewallPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFirewallPoliciesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.Builder.class); } public static final int FIREWALL_POLICIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List firewallPolicies_; /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ @java.lang.Override - public java.util.List getFirewallPoliciesList() { + public java.util.List + getFirewallPoliciesList() { return firewallPolicies_; } /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getFirewallPoliciesOrBuilderList() { return firewallPolicies_; } /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ @java.lang.Override public int getFirewallPoliciesCount() { return firewallPolicies_.size(); } /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicies(int index) { return firewallPolicies_.get(index); } /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder( @@ -106,15 +142,19 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoli } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results. It is set to empty if no
    * policies remain in results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results. It is set to empty if no
    * policies remain in results.
    * 
* * 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 { @@ -155,6 +195,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < firewallPolicies_.size(); i++) { output.writeMessage(1, firewallPolicies_.get(i)); } @@ -184,8 +224,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < firewallPolicies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, firewallPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, firewallPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +237,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.recaptchaenterprise.v1.ListFirewallPoliciesResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse other = (com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse) obj; + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse other = + (com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse) obj; - if (!getFirewallPoliciesList() - .equals(other.getFirewallPoliciesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getFirewallPoliciesList().equals(other.getFirewallPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +270,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to request to list firewall policies belonging to a key.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.getDefaultInstance(); } @@ -394,14 +438,18 @@ public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse buildPartial() { - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result = new com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse(this); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result = + new com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result) { if (firewallPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { firewallPolicies_ = java.util.Collections.unmodifiableList(firewallPolicies_); @@ -413,7 +461,8 @@ private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListFi } } - private void buildPartial0(com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,38 +473,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListFirewallPolicie public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse)other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +513,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse other) { - if (other == com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.getDefaultInstance()) + return this; if (firewallPoliciesBuilder_ == null) { if (!other.firewallPolicies_.isEmpty()) { if (firewallPolicies_.isEmpty()) { @@ -482,9 +534,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListFirewallPoliciesR firewallPoliciesBuilder_ = null; firewallPolicies_ = other.firewallPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - firewallPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFirewallPoliciesFieldBuilder() : null; + firewallPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFirewallPoliciesFieldBuilder() + : null; } else { firewallPoliciesBuilder_.addAllMessages(other.firewallPolicies_); } @@ -521,30 +574,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.recaptchaenterprise.v1.FirewallPolicy m = - input.readMessage( - com.google.recaptchaenterprise.v1.FirewallPolicy.parser(), - extensionRegistry); - if (firewallPoliciesBuilder_ == null) { - ensureFirewallPoliciesIsMutable(); - firewallPolicies_.add(m); - } else { - firewallPoliciesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.recaptchaenterprise.v1.FirewallPolicy m = + input.readMessage( + com.google.recaptchaenterprise.v1.FirewallPolicy.parser(), + extensionRegistry); + if (firewallPoliciesBuilder_ == null) { + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.add(m); + } else { + firewallPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -554,28 +610,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List firewallPolicies_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFirewallPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - firewallPolicies_ = new java.util.ArrayList(firewallPolicies_); + firewallPolicies_ = + new java.util.ArrayList( + firewallPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> firewallPoliciesBuilder_; + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + firewallPoliciesBuilder_; /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ - public java.util.List getFirewallPoliciesList() { + public java.util.List + getFirewallPoliciesList() { if (firewallPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(firewallPolicies_); } else { @@ -583,11 +650,14 @@ public java.util.List getFirew } } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public int getFirewallPoliciesCount() { if (firewallPoliciesBuilder_ == null) { @@ -597,11 +667,14 @@ public int getFirewallPoliciesCount() { } } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicies(int index) { if (firewallPoliciesBuilder_ == null) { @@ -611,11 +684,14 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicies(int } } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder setFirewallPolicies( int index, com.google.recaptchaenterprise.v1.FirewallPolicy value) { @@ -632,11 +708,14 @@ public Builder setFirewallPolicies( return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder setFirewallPolicies( int index, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -650,11 +729,14 @@ public Builder setFirewallPolicies( return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder addFirewallPolicies(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPoliciesBuilder_ == null) { @@ -670,11 +752,14 @@ public Builder addFirewallPolicies(com.google.recaptchaenterprise.v1.FirewallPol return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder addFirewallPolicies( int index, com.google.recaptchaenterprise.v1.FirewallPolicy value) { @@ -691,11 +776,14 @@ public Builder addFirewallPolicies( return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder addFirewallPolicies( com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -709,11 +797,14 @@ public Builder addFirewallPolicies( return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder addFirewallPolicies( int index, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -727,18 +818,20 @@ public Builder addFirewallPolicies( return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder addAllFirewallPolicies( java.lang.Iterable values) { if (firewallPoliciesBuilder_ == null) { ensureFirewallPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, firewallPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, firewallPolicies_); onChanged(); } else { firewallPoliciesBuilder_.addAllMessages(values); @@ -746,11 +839,14 @@ public Builder addAllFirewallPolicies( return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder clearFirewallPolicies() { if (firewallPoliciesBuilder_ == null) { @@ -763,11 +859,14 @@ public Builder clearFirewallPolicies() { return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public Builder removeFirewallPolicies(int index) { if (firewallPoliciesBuilder_ == null) { @@ -780,39 +879,49 @@ public Builder removeFirewallPolicies(int index) { return this; } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPoliciesBuilder( int index) { return getFirewallPoliciesFieldBuilder().getBuilder(index); } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder( int index) { if (firewallPoliciesBuilder_ == null) { - return firewallPolicies_.get(index); } else { + return firewallPolicies_.get(index); + } else { return firewallPoliciesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ - public java.util.List - getFirewallPoliciesOrBuilderList() { + public java.util.List + getFirewallPoliciesOrBuilderList() { if (firewallPoliciesBuilder_ != null) { return firewallPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -820,45 +929,60 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoli } } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder addFirewallPoliciesBuilder() { - return getFirewallPoliciesFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()); + return getFirewallPoliciesFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()); } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder addFirewallPoliciesBuilder( int index) { - return getFirewallPoliciesFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()); + return getFirewallPoliciesFieldBuilder() + .addBuilder(index, com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()); } /** + * + * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ - public java.util.List - getFirewallPoliciesBuilderList() { + public java.util.List + getFirewallPoliciesBuilderList() { return getFirewallPoliciesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> getFirewallPoliciesFieldBuilder() { if (firewallPoliciesBuilder_ == null) { - firewallPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( + firewallPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( firewallPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -870,19 +994,21 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder addFirewallPolic private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * 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; @@ -891,21 +1017,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * 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 { @@ -913,30 +1040,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1080,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,41 +1114,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) - private static final com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse(); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFirewallPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirewallPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1022,9 +1162,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java index 7ca25e8dd98d..c2e7b089f8a1 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java @@ -1,75 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListFirewallPoliciesResponseOrBuilder extends +public interface ListFirewallPoliciesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ - java.util.List - getFirewallPoliciesList(); + java.util.List getFirewallPoliciesList(); /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicies(int index); /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ int getFirewallPoliciesCount(); /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ - java.util.List + java.util.List getFirewallPoliciesOrBuilderList(); /** + * + * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; + * */ - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder( - int index); + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results. It is set to empty if no
    * policies remain in results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results. It is set to empty if no
    * policies remain in results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java similarity index 68% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java index dcbbae12fcd3..9bfe19764cc9 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The list keys request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListKeysRequest} */ -public final class ListKeysRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListKeysRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListKeysRequest) ListKeysRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListKeysRequest.newBuilder() to construct. private ListKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListKeysRequest() { parent_ = ""; pageToken_ = ""; @@ -26,34 +44,41 @@ private ListKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListKeysRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListKeysRequest.class, com.google.recaptchaenterprise.v1.ListKeysRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListKeysRequest.class, + com.google.recaptchaenterprise.v1.ListKeysRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project that contains the keys that will be
    * listed, in the format `projects/{project}`.
    * 
* - * string parent = 1 [(.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 @@ -62,30 +87,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project that contains the keys that will be
    * listed, in the format `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -96,12 +123,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of keys to return. Default is 10. Max limit is
    * 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -110,15 +140,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The next_page_token value returned from a previous.
    * ListKeysRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -127,30 +161,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The next_page_token value returned from a previous.
    * ListKeysRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -159,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -194,8 +228,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -208,19 +241,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ListKeysRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListKeysRequest other = (com.google.recaptchaenterprise.v1.ListKeysRequest) obj; + com.google.recaptchaenterprise.v1.ListKeysRequest other = + (com.google.recaptchaenterprise.v1.ListKeysRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,131 +275,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ListKeysRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListKeysRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The list keys request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListKeysRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListKeysRequest) com.google.recaptchaenterprise.v1.ListKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListKeysRequest.class, com.google.recaptchaenterprise.v1.ListKeysRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListKeysRequest.class, + com.google.recaptchaenterprise.v1.ListKeysRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ListKeysRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; } @java.lang.Override @@ -401,8 +436,11 @@ public com.google.recaptchaenterprise.v1.ListKeysRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ListKeysRequest buildPartial() { - com.google.recaptchaenterprise.v1.ListKeysRequest result = new com.google.recaptchaenterprise.v1.ListKeysRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.ListKeysRequest result = + new com.google.recaptchaenterprise.v1.ListKeysRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -424,38 +462,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListKeysRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListKeysRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListKeysRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListKeysRequest) other); } else { super.mergeFrom(other); return this; @@ -463,7 +502,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListKeysRequest other) { - if (other == com.google.recaptchaenterprise.v1.ListKeysRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.ListKeysRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -503,27 +543,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -533,23 +577,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * string parent = 1 [(.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; @@ -558,21 +607,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -580,30 +632,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * string 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() { @@ -613,18 +676,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -632,14 +701,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of keys to return. Default is 10. Max limit is
      * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -647,12 +719,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of keys to return. Default is 10. Max limit is
      * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -664,12 +739,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of keys to return. Default is 10. Max limit is
      * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -681,19 +759,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -702,21 +782,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -724,30 +805,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -757,27 +845,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -787,12 +879,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListKeysRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListKeysRequest) private static final com.google.recaptchaenterprise.v1.ListKeysRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListKeysRequest(); } @@ -801,27 +893,27 @@ public static com.google.recaptchaenterprise.v1.ListKeysRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -836,6 +928,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.ListKeysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java index 55bb9ed081bc..30aab33fee78 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java @@ -1,64 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListKeysRequestOrBuilder extends +public interface ListKeysRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListKeysRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project that contains the keys that will be
    * listed, in the format `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project that contains the keys that will be
    * listed, in the format `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The maximum number of keys to return. Default is 10. Max limit is
    * 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The next_page_token value returned from a previous.
    * ListKeysRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The next_page_token value returned from a previous.
    * ListKeysRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java similarity index 71% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java index 9c4e32352abb..4bcd01099962 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Response to request to list keys in a project.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListKeysResponse} */ -public final class ListKeysResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListKeysResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListKeysResponse) ListKeysResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListKeysResponse.newBuilder() to construct. private ListKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListKeysResponse() { keys_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListKeysResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListKeysResponse.class, com.google.recaptchaenterprise.v1.ListKeysResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListKeysResponse.class, + com.google.recaptchaenterprise.v1.ListKeysResponse.Builder.class); } public static final int KEYS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List keys_; /** + * + * *
    * Key details.
    * 
@@ -59,6 +81,8 @@ public java.util.List getKeysList() { return keys_; } /** + * + * *
    * Key details.
    * 
@@ -66,11 +90,13 @@ public java.util.List getKeysList() { * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ @java.lang.Override - public java.util.List + public java.util.List getKeysOrBuilderList() { return keys_; } /** + * + * *
    * Key details.
    * 
@@ -82,6 +108,8 @@ public int getKeysCount() { return keys_.size(); } /** + * + * *
    * Key details.
    * 
@@ -93,6 +121,8 @@ public com.google.recaptchaenterprise.v1.Key getKeys(int index) { return keys_.get(index); } /** + * + * *
    * Key details.
    * 
@@ -100,21 +130,24 @@ public com.google.recaptchaenterprise.v1.Key getKeys(int index) { * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder(int index) { return keys_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results. It is set to empty if no keys
    * remain in results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +156,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results. It is set to empty if no keys
    * remain in results.
    * 
* * 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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < keys_.size(); i++) { output.writeMessage(1, keys_.get(i)); } @@ -184,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, keys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +230,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.recaptchaenterprise.v1.ListKeysResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListKeysResponse other = (com.google.recaptchaenterprise.v1.ListKeysResponse) obj; + com.google.recaptchaenterprise.v1.ListKeysResponse other = + (com.google.recaptchaenterprise.v1.ListKeysResponse) obj; - if (!getKeysList() - .equals(other.getKeysList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getKeysList().equals(other.getKeysList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +263,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ListKeysResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListKeysResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to request to list keys in a project.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListKeysResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListKeysResponse) com.google.recaptchaenterprise.v1.ListKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListKeysResponse.class, com.google.recaptchaenterprise.v1.ListKeysResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListKeysResponse.class, + com.google.recaptchaenterprise.v1.ListKeysResponse.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ListKeysResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; } @java.lang.Override @@ -394,14 +429,18 @@ public com.google.recaptchaenterprise.v1.ListKeysResponse build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ListKeysResponse buildPartial() { - com.google.recaptchaenterprise.v1.ListKeysResponse result = new com.google.recaptchaenterprise.v1.ListKeysResponse(this); + com.google.recaptchaenterprise.v1.ListKeysResponse result = + new com.google.recaptchaenterprise.v1.ListKeysResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListKeysResponse result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.ListKeysResponse result) { if (keysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -424,38 +463,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListKeysResponse re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListKeysResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListKeysResponse)other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListKeysResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +503,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListKeysResponse other) { - if (other == com.google.recaptchaenterprise.v1.ListKeysResponse.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.ListKeysResponse.getDefaultInstance()) + return this; if (keysBuilder_ == null) { if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { @@ -482,9 +523,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListKeysResponse othe keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -521,30 +563,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.recaptchaenterprise.v1.Key m = - input.readMessage( - com.google.recaptchaenterprise.v1.Key.parser(), - extensionRegistry); - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(m); - } else { - keysBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.recaptchaenterprise.v1.Key m = + input.readMessage( + com.google.recaptchaenterprise.v1.Key.parser(), extensionRegistry); + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(m); + } else { + keysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -554,21 +598,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List keys_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> keysBuilder_; + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder> + keysBuilder_; /** + * + * *
      * Key details.
      * 
@@ -583,6 +634,8 @@ public java.util.List getKeysList() { } } /** + * + * *
      * Key details.
      * 
@@ -597,6 +650,8 @@ public int getKeysCount() { } } /** + * + * *
      * Key details.
      * 
@@ -611,14 +666,15 @@ public com.google.recaptchaenterprise.v1.Key getKeys(int index) { } } /** + * + * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public Builder setKeys( - int index, com.google.recaptchaenterprise.v1.Key value) { + public Builder setKeys(int index, com.google.recaptchaenterprise.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,6 +688,8 @@ public Builder setKeys( return this; } /** + * + * *
      * Key details.
      * 
@@ -650,6 +708,8 @@ public Builder setKeys( return this; } /** + * + * *
      * Key details.
      * 
@@ -670,14 +730,15 @@ public Builder addKeys(com.google.recaptchaenterprise.v1.Key value) { return this; } /** + * + * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public Builder addKeys( - int index, com.google.recaptchaenterprise.v1.Key value) { + public Builder addKeys(int index, com.google.recaptchaenterprise.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,14 +752,15 @@ public Builder addKeys( return this; } /** + * + * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public Builder addKeys( - com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { + public Builder addKeys(com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); @@ -709,6 +771,8 @@ public Builder addKeys( return this; } /** + * + * *
      * Key details.
      * 
@@ -727,6 +791,8 @@ public Builder addKeys( return this; } /** + * + * *
      * Key details.
      * 
@@ -737,8 +803,7 @@ public Builder addAllKeys( java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); @@ -746,6 +811,8 @@ public Builder addAllKeys( return this; } /** + * + * *
      * Key details.
      * 
@@ -763,6 +830,8 @@ public Builder clearKeys() { return this; } /** + * + * *
      * Key details.
      * 
@@ -780,39 +849,44 @@ public Builder removeKeys(int index) { return this; } /** + * + * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public com.google.recaptchaenterprise.v1.Key.Builder getKeysBuilder( - int index) { + public com.google.recaptchaenterprise.v1.Key.Builder getKeysBuilder(int index) { return getKeysFieldBuilder().getBuilder(index); } /** + * + * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder(int index) { if (keysBuilder_ == null) { - return keys_.get(index); } else { + return keys_.get(index); + } else { return keysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public java.util.List - getKeysOrBuilderList() { + public java.util.List + getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +894,8 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder( } } /** + * + * *
      * Key details.
      * 
@@ -827,42 +903,47 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder( * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ public com.google.recaptchaenterprise.v1.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance()); + return getKeysFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.Key.getDefaultInstance()); } /** + * + * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public com.google.recaptchaenterprise.v1.Key.Builder addKeysBuilder( - int index) { - return getKeysFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.Key.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.Key.Builder addKeysBuilder(int index) { + return getKeysFieldBuilder() + .addBuilder(index, com.google.recaptchaenterprise.v1.Key.getDefaultInstance()); } /** + * + * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public java.util.List - getKeysBuilderList() { + public java.util.List getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder>( - keys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + keysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder>( + keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; @@ -870,19 +951,21 @@ public com.google.recaptchaenterprise.v1.Key.Builder addKeysBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * 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; @@ -891,21 +974,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * 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 { @@ -913,30 +997,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1037,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +1071,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListKeysResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListKeysResponse) private static final com.google.recaptchaenterprise.v1.ListKeysResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListKeysResponse(); } @@ -990,27 +1085,27 @@ public static com.google.recaptchaenterprise.v1.ListKeysResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1025,6 +1120,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.ListKeysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java index a4f8952c8f3d..6d404811d00f 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListKeysResponseOrBuilder extends +public interface ListKeysResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListKeysResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Key details.
    * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - java.util.List - getKeysList(); + java.util.List getKeysList(); /** + * + * *
    * Key details.
    * 
@@ -25,6 +44,8 @@ public interface ListKeysResponseOrBuilder extends */ com.google.recaptchaenterprise.v1.Key getKeys(int index); /** + * + * *
    * Key details.
    * 
@@ -33,43 +54,50 @@ public interface ListKeysResponseOrBuilder extends */ int getKeysCount(); /** + * + * *
    * Key details.
    * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - java.util.List - getKeysOrBuilderList(); + java.util.List getKeysOrBuilderList(); /** + * + * *
    * Key details.
    * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder( - int index); + com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results. It is set to empty if no keys
    * remain in results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results. It is set to empty if no keys
    * remain in results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java similarity index 61% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java index a8ceab13a308..a9c462c412ad 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The request message to list memberships in a related account group.
  * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest} */ -public final class ListRelatedAccountGroupMembershipsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRelatedAccountGroupMembershipsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) ListRelatedAccountGroupMembershipsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRelatedAccountGroupMembershipsRequest.newBuilder() to construct. - private ListRelatedAccountGroupMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListRelatedAccountGroupMembershipsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRelatedAccountGroupMembershipsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,34 +47,42 @@ private ListRelatedAccountGroupMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRelatedAccountGroupMembershipsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
    * 
* - * string parent = 1 [(.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 @@ -62,30 +91,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -96,6 +127,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of accounts to return. The service might
    * return fewer than this value. If unspecified, at most 50 accounts are
@@ -103,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -111,9 +145,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A page token, received from a previous
    * `ListRelatedAccountGroupMemberships` call.
@@ -124,6 +161,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +170,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A page token, received from a previous
    * `ListRelatedAccountGroupMemberships` call.
@@ -150,16 +189,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -168,6 +206,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +218,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -203,8 +241,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -217,19 +254,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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest)) { + if (!(obj + instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest other = (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) obj; + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest other = + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,132 +288,146 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest 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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + 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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest 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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + 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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message to list memberships in a related account group.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.Builder + .class); } - // Construct using com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.newBuilder() - private Builder() { + // Construct using + // com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -389,19 +439,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.getDefaultInstance(); + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest build() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result = buildPartial(); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -409,14 +462,19 @@ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsReque } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest buildPartial() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + buildPartial() { + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result = + new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -433,46 +491,52 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountG public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest)other); + if (other + instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) { + return mergeFrom( + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest other) { - if (other == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest other) { + if (other + == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -512,27 +576,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -542,23 +610,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * string parent = 1 [(.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; @@ -567,21 +640,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -589,30 +665,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * string 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() { @@ -622,18 +709,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -641,8 +734,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of accounts to return. The service might
      * return fewer than this value. If unspecified, at most 50 accounts are
@@ -650,6 +745,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -657,6 +753,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of accounts to return. The service might
      * return fewer than this value. If unspecified, at most 50 accounts are
@@ -664,6 +762,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -675,6 +774,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of accounts to return. The service might
      * return fewer than this value. If unspecified, at most 50 accounts are
@@ -682,6 +783,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -693,6 +795,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -703,13 +807,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -718,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -728,15 +834,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -744,6 +849,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -754,18 +861,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -776,6 +887,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -785,6 +897,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -795,21 +909,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -819,41 +935,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) - private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest(); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRelatedAccountGroupMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRelatedAccountGroupMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -865,9 +986,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java index 5f9528109c43..49338194631c 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListRelatedAccountGroupMembershipsRequestOrBuilder extends +public interface ListRelatedAccountGroupMembershipsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The maximum number of accounts to return. The service might
    * return fewer than this value. If unspecified, at most 50 accounts are
@@ -37,11 +64,14 @@ public interface ListRelatedAccountGroupMembershipsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A page token, received from a previous
    * `ListRelatedAccountGroupMemberships` call.
@@ -52,10 +82,13 @@ public interface ListRelatedAccountGroupMembershipsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A page token, received from a previous
    * `ListRelatedAccountGroupMemberships` call.
@@ -66,8 +99,8 @@ public interface ListRelatedAccountGroupMembershipsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java similarity index 57% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java index fd94f6da6c8a..c15c9d0a398f 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The response to a `ListRelatedAccountGroupMemberships` call.
  * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse} */ -public final class ListRelatedAccountGroupMembershipsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRelatedAccountGroupMembershipsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) ListRelatedAccountGroupMembershipsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRelatedAccountGroupMembershipsResponse.newBuilder() to construct. - private ListRelatedAccountGroupMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListRelatedAccountGroupMembershipsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRelatedAccountGroupMembershipsResponse() { relatedAccountGroupMemberships_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,95 +47,126 @@ private ListRelatedAccountGroupMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRelatedAccountGroupMembershipsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.Builder + .class); } public static final int RELATED_ACCOUNT_GROUP_MEMBERSHIPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List relatedAccountGroupMemberships_; + private java.util.List + relatedAccountGroupMemberships_; /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override - public java.util.List getRelatedAccountGroupMembershipsList() { + public java.util.List + getRelatedAccountGroupMembershipsList() { return relatedAccountGroupMemberships_; } /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> getRelatedAccountGroupMembershipsOrBuilderList() { return relatedAccountGroupMemberships_; } /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override public int getRelatedAccountGroupMembershipsCount() { return relatedAccountGroupMemberships_.size(); } /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership + getRelatedAccountGroupMemberships(int index) { return relatedAccountGroupMemberships_.get(index); } /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder + getRelatedAccountGroupMembershipsOrBuilder(int index) { return relatedAccountGroupMemberships_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +175,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -155,6 +207,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < relatedAccountGroupMemberships_.size(); i++) { output.writeMessage(1, relatedAccountGroupMemberships_.get(i)); } @@ -184,8 +236,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relatedAccountGroupMemberships_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relatedAccountGroupMemberships_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, relatedAccountGroupMemberships_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +251,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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse)) { + if (!(obj + instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse other = (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) obj; + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse other = + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) obj; if (!getRelatedAccountGroupMembershipsList() .equals(other.getRelatedAccountGroupMembershipsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,132 +285,146 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse 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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + 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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse 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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + 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.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response to a `ListRelatedAccountGroupMemberships` call.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.Builder + .class); } - // Construct using com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,19 +441,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.getDefaultInstance(); + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse build() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result = buildPartial(); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -393,18 +464,24 @@ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRespo } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse buildPartial() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse(this); + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + buildPartial() { + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result = + new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result) { if (relatedAccountGroupMembershipsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroupMemberships_ = java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); + relatedAccountGroupMemberships_ = + java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); bitField0_ = (bitField0_ & ~0x00000001); } result.relatedAccountGroupMemberships_ = relatedAccountGroupMemberships_; @@ -413,7 +490,8 @@ private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListRe } } - private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +502,52 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountG public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse)other); + if (other + instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) { + return mergeFrom( + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse other) { - if (other == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse other) { + if (other + == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + .getDefaultInstance()) return this; if (relatedAccountGroupMembershipsBuilder_ == null) { if (!other.relatedAccountGroupMemberships_.isEmpty()) { if (relatedAccountGroupMemberships_.isEmpty()) { @@ -482,11 +566,13 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGro relatedAccountGroupMembershipsBuilder_ = null; relatedAccountGroupMemberships_ = other.relatedAccountGroupMemberships_; bitField0_ = (bitField0_ & ~0x00000001); - relatedAccountGroupMembershipsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRelatedAccountGroupMembershipsFieldBuilder() : null; + relatedAccountGroupMembershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRelatedAccountGroupMembershipsFieldBuilder() + : null; } else { - relatedAccountGroupMembershipsBuilder_.addAllMessages(other.relatedAccountGroupMemberships_); + relatedAccountGroupMembershipsBuilder_.addAllMessages( + other.relatedAccountGroupMemberships_); } } } @@ -521,30 +607,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership m = - input.readMessage( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.parser(), - extensionRegistry); - if (relatedAccountGroupMembershipsBuilder_ == null) { - ensureRelatedAccountGroupMembershipsIsMutable(); - relatedAccountGroupMemberships_.add(m); - } else { - relatedAccountGroupMembershipsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership m = + input.readMessage( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.parser(), + extensionRegistry); + if (relatedAccountGroupMembershipsBuilder_ == null) { + ensureRelatedAccountGroupMembershipsIsMutable(); + relatedAccountGroupMemberships_.add(m); + } else { + relatedAccountGroupMembershipsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -554,28 +643,41 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List relatedAccountGroupMemberships_ = - java.util.Collections.emptyList(); + private java.util.List + relatedAccountGroupMemberships_ = java.util.Collections.emptyList(); + private void ensureRelatedAccountGroupMembershipsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroupMemberships_ = new java.util.ArrayList(relatedAccountGroupMemberships_); + relatedAccountGroupMemberships_ = + new java.util.ArrayList< + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership>( + relatedAccountGroupMemberships_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> relatedAccountGroupMembershipsBuilder_; + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + relatedAccountGroupMembershipsBuilder_; /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public java.util.List getRelatedAccountGroupMembershipsList() { + public java.util.List + getRelatedAccountGroupMembershipsList() { if (relatedAccountGroupMembershipsBuilder_ == null) { return java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); } else { @@ -583,11 +685,15 @@ public java.util.List * The memberships listed by the query. *
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public int getRelatedAccountGroupMembershipsCount() { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -597,13 +703,18 @@ public int getRelatedAccountGroupMembershipsCount() { } } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership + getRelatedAccountGroupMemberships(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { return relatedAccountGroupMemberships_.get(index); } else { @@ -611,11 +722,15 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelate } } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder setRelatedAccountGroupMemberships( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { @@ -632,14 +747,19 @@ public Builder setRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder setRelatedAccountGroupMemberships( - int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); relatedAccountGroupMemberships_.set(index, builderForValue.build()); @@ -650,13 +770,18 @@ public Builder setRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public Builder addRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { + public Builder addRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { if (relatedAccountGroupMembershipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -670,11 +795,15 @@ public Builder addRelatedAccountGroupMemberships(com.google.recaptchaenterprise. return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder addRelatedAccountGroupMemberships( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { @@ -691,11 +820,15 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder addRelatedAccountGroupMemberships( com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { @@ -709,14 +842,19 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder addRelatedAccountGroupMemberships( - int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); relatedAccountGroupMemberships_.add(index, builderForValue.build()); @@ -727,14 +865,20 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder addAllRelatedAccountGroupMemberships( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership> + values) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -746,11 +890,15 @@ public Builder addAllRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder clearRelatedAccountGroupMemberships() { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -763,11 +911,15 @@ public Builder clearRelatedAccountGroupMemberships() { return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder removeRelatedAccountGroupMemberships(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -780,39 +932,53 @@ public Builder removeRelatedAccountGroupMemberships(int index) { return this; } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder getRelatedAccountGroupMembershipsBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder + getRelatedAccountGroupMembershipsBuilder(int index) { return getRelatedAccountGroupMembershipsFieldBuilder().getBuilder(index); } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder + getRelatedAccountGroupMembershipsOrBuilder(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { - return relatedAccountGroupMemberships_.get(index); } else { + return relatedAccountGroupMemberships_.get(index); + } else { return relatedAccountGroupMembershipsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public java.util.List - getRelatedAccountGroupMembershipsOrBuilderList() { + public java.util.List< + ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + getRelatedAccountGroupMembershipsOrBuilderList() { if (relatedAccountGroupMembershipsBuilder_ != null) { return relatedAccountGroupMembershipsBuilder_.getMessageOrBuilderList(); } else { @@ -820,45 +986,67 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder } } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder addRelatedAccountGroupMembershipsBuilder() { - return getRelatedAccountGroupMembershipsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder + addRelatedAccountGroupMembershipsBuilder() { + return getRelatedAccountGroupMembershipsFieldBuilder() + .addBuilder( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder addRelatedAccountGroupMembershipsBuilder( - int index) { - return getRelatedAccountGroupMembershipsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder + addRelatedAccountGroupMembershipsBuilder(int index) { + return getRelatedAccountGroupMembershipsFieldBuilder() + .addBuilder( + index, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); } /** + * + * *
      * The memberships listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public java.util.List - getRelatedAccountGroupMembershipsBuilderList() { + public java.util.List + getRelatedAccountGroupMembershipsBuilderList() { return getRelatedAccountGroupMembershipsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> getRelatedAccountGroupMembershipsFieldBuilder() { if (relatedAccountGroupMembershipsBuilder_ == null) { - relatedAccountGroupMembershipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder>( + relatedAccountGroupMembershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder>( relatedAccountGroupMemberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -870,19 +1058,21 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder a private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -891,21 +1081,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -913,30 +1104,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1144,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,41 +1178,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) - private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse(); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRelatedAccountGroupMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRelatedAccountGroupMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1022,9 +1229,8 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java similarity index 52% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java index bb195ea78f06..08a1c1e0bf38 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java @@ -1,75 +1,117 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListRelatedAccountGroupMembershipsResponseOrBuilder extends +public interface ListRelatedAccountGroupMembershipsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - java.util.List + java.util.List getRelatedAccountGroupMembershipsList(); /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships( + int index); /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ int getRelatedAccountGroupMembershipsCount(); /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - java.util.List + java.util.List getRelatedAccountGroupMembershipsOrBuilderList(); /** + * + * *
    * The memberships listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( - int index); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder + getRelatedAccountGroupMembershipsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java similarity index 67% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java index b4bc41aa2006..8edacb9bbf68 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The request message to list related account groups.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest} */ -public final class ListRelatedAccountGroupsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRelatedAccountGroupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) ListRelatedAccountGroupsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRelatedAccountGroupsRequest.newBuilder() to construct. - private ListRelatedAccountGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListRelatedAccountGroupsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRelatedAccountGroupsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,34 +45,41 @@ private ListRelatedAccountGroupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRelatedAccountGroupsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project to list related account groups from, in
    * the format `projects/{project}`.
    * 
* - * string parent = 1 [(.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 @@ -62,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project to list related account groups from, in
    * the format `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -96,6 +124,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of groups to return. The service might return
    * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -103,6 +133,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -111,9 +142,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A page token, received from a previous `ListRelatedAccountGroups`
    * call. Provide this to retrieve the subsequent page.
@@ -124,6 +158,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +167,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A page token, received from a previous `ListRelatedAccountGroups`
    * call. Provide this to retrieve the subsequent page.
@@ -150,16 +186,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -168,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -203,8 +238,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -217,19 +251,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.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest other = (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) obj; + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest other = + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -253,131 +285,138 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message to list related account groups.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.Builder.class); } - // Construct using com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -389,13 +428,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.getDefaultInstance(); } @@ -410,13 +450,17 @@ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest build() @java.lang.Override public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest buildPartial() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest result = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest result = + new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -433,46 +477,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountG public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest other) { - if (other == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest other) { + if (other + == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -512,27 +560,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -542,23 +594,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * string parent = 1 [(.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; @@ -567,21 +624,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -589,30 +649,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * string 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() { @@ -622,18 +693,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -641,8 +718,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -650,6 +729,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -657,6 +737,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -664,6 +746,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -675,6 +758,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -682,6 +767,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -693,6 +779,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -703,13 +791,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -718,6 +806,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -728,15 +818,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -744,6 +833,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -754,18 +845,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -776,6 +871,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -785,6 +881,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -795,21 +893,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -819,41 +919,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) - private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest(); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRelatedAccountGroupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRelatedAccountGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -865,9 +967,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java index 58f0316694d1..e8b5b670a16c 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListRelatedAccountGroupsRequestOrBuilder extends +public interface ListRelatedAccountGroupsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project to list related account groups from, in
    * the format `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project to list related account groups from, in
    * the format `projects/{project}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The maximum number of groups to return. The service might return
    * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -37,11 +64,14 @@ public interface ListRelatedAccountGroupsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A page token, received from a previous `ListRelatedAccountGroups`
    * call. Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListRelatedAccountGroupsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A page token, received from a previous `ListRelatedAccountGroups`
    * call. Provide this to retrieve the subsequent page.
@@ -66,8 +99,8 @@ public interface ListRelatedAccountGroupsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java similarity index 63% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java index b7d31d1c1519..f1ce933ccd02 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The response to a `ListRelatedAccountGroups` call.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse} */ -public final class ListRelatedAccountGroupsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRelatedAccountGroupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) ListRelatedAccountGroupsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRelatedAccountGroupsResponse.newBuilder() to construct. - private ListRelatedAccountGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListRelatedAccountGroupsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRelatedAccountGroupsResponse() { relatedAccountGroups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,95 +45,123 @@ private ListRelatedAccountGroupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRelatedAccountGroupsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.Builder.class); } public static final int RELATED_ACCOUNT_GROUPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List relatedAccountGroups_; + private java.util.List + relatedAccountGroups_; /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ @java.lang.Override - public java.util.List getRelatedAccountGroupsList() { + public java.util.List + getRelatedAccountGroupsList() { return relatedAccountGroups_; } /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getRelatedAccountGroupsOrBuilderList() { return relatedAccountGroups_; } /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ @java.lang.Override public int getRelatedAccountGroupsCount() { return relatedAccountGroups_.size(); } /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGroups(int index) { return relatedAccountGroups_.get(index); } /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder getRelatedAccountGroupsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder + getRelatedAccountGroupsOrBuilder(int index) { return relatedAccountGroups_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +170,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -155,6 +202,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +214,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < relatedAccountGroups_.size(); i++) { output.writeMessage(1, relatedAccountGroups_.get(i)); } @@ -184,8 +231,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relatedAccountGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relatedAccountGroups_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, relatedAccountGroups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +245,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.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse other = (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) obj; + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse other = + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) obj; - if (!getRelatedAccountGroupsList() - .equals(other.getRelatedAccountGroupsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getRelatedAccountGroupsList().equals(other.getRelatedAccountGroupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +278,138 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response to a `ListRelatedAccountGroups` call.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.Builder.class); } - // Construct using com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,14 +426,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.getDefaultInstance(); + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + .getDefaultInstance(); } @java.lang.Override @@ -394,14 +449,18 @@ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse build( @java.lang.Override public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse buildPartial() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse(this); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result = + new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result) { if (relatedAccountGroupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { relatedAccountGroups_ = java.util.Collections.unmodifiableList(relatedAccountGroups_); @@ -413,7 +472,8 @@ private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListRe } } - private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +484,51 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountG public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse)other); + return mergeFrom( + (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse other) { - if (other == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse other) { + if (other + == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + .getDefaultInstance()) return this; if (relatedAccountGroupsBuilder_ == null) { if (!other.relatedAccountGroups_.isEmpty()) { if (relatedAccountGroups_.isEmpty()) { @@ -482,9 +547,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGro relatedAccountGroupsBuilder_ = null; relatedAccountGroups_ = other.relatedAccountGroups_; bitField0_ = (bitField0_ & ~0x00000001); - relatedAccountGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRelatedAccountGroupsFieldBuilder() : null; + relatedAccountGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRelatedAccountGroupsFieldBuilder() + : null; } else { relatedAccountGroupsBuilder_.addAllMessages(other.relatedAccountGroups_); } @@ -521,30 +587,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.recaptchaenterprise.v1.RelatedAccountGroup m = - input.readMessage( - com.google.recaptchaenterprise.v1.RelatedAccountGroup.parser(), - extensionRegistry); - if (relatedAccountGroupsBuilder_ == null) { - ensureRelatedAccountGroupsIsMutable(); - relatedAccountGroups_.add(m); - } else { - relatedAccountGroupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.recaptchaenterprise.v1.RelatedAccountGroup m = + input.readMessage( + com.google.recaptchaenterprise.v1.RelatedAccountGroup.parser(), + extensionRegistry); + if (relatedAccountGroupsBuilder_ == null) { + ensureRelatedAccountGroupsIsMutable(); + relatedAccountGroups_.add(m); + } else { + relatedAccountGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -554,28 +623,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List relatedAccountGroups_ = - java.util.Collections.emptyList(); + private java.util.List + relatedAccountGroups_ = java.util.Collections.emptyList(); + private void ensureRelatedAccountGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroups_ = new java.util.ArrayList(relatedAccountGroups_); + relatedAccountGroups_ = + new java.util.ArrayList( + relatedAccountGroups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroup, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder> relatedAccountGroupsBuilder_; + com.google.recaptchaenterprise.v1.RelatedAccountGroup, + com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder> + relatedAccountGroupsBuilder_; /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public java.util.List getRelatedAccountGroupsList() { + public java.util.List + getRelatedAccountGroupsList() { if (relatedAccountGroupsBuilder_ == null) { return java.util.Collections.unmodifiableList(relatedAccountGroups_); } else { @@ -583,11 +664,15 @@ public java.util.List get } } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public int getRelatedAccountGroupsCount() { if (relatedAccountGroupsBuilder_ == null) { @@ -597,13 +682,18 @@ public int getRelatedAccountGroupsCount() { } } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGroups(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGroups( + int index) { if (relatedAccountGroupsBuilder_ == null) { return relatedAccountGroups_.get(index); } else { @@ -611,11 +701,15 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGr } } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public Builder setRelatedAccountGroups( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroup value) { @@ -632,11 +726,15 @@ public Builder setRelatedAccountGroups( return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public Builder setRelatedAccountGroups( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder builderForValue) { @@ -650,13 +748,18 @@ public Builder setRelatedAccountGroups( return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public Builder addRelatedAccountGroups(com.google.recaptchaenterprise.v1.RelatedAccountGroup value) { + public Builder addRelatedAccountGroups( + com.google.recaptchaenterprise.v1.RelatedAccountGroup value) { if (relatedAccountGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -670,11 +773,15 @@ public Builder addRelatedAccountGroups(com.google.recaptchaenterprise.v1.Related return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public Builder addRelatedAccountGroups( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroup value) { @@ -691,11 +798,15 @@ public Builder addRelatedAccountGroups( return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public Builder addRelatedAccountGroups( com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder builderForValue) { @@ -709,11 +820,15 @@ public Builder addRelatedAccountGroups( return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public Builder addRelatedAccountGroups( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder builderForValue) { @@ -727,18 +842,22 @@ public Builder addRelatedAccountGroups( return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public Builder addAllRelatedAccountGroups( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (relatedAccountGroupsBuilder_ == null) { ensureRelatedAccountGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, relatedAccountGroups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedAccountGroups_); onChanged(); } else { relatedAccountGroupsBuilder_.addAllMessages(values); @@ -746,11 +865,15 @@ public Builder addAllRelatedAccountGroups( return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public Builder clearRelatedAccountGroups() { if (relatedAccountGroupsBuilder_ == null) { @@ -763,11 +886,15 @@ public Builder clearRelatedAccountGroups() { return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ public Builder removeRelatedAccountGroups(int index) { if (relatedAccountGroupsBuilder_ == null) { @@ -780,39 +907,52 @@ public Builder removeRelatedAccountGroups(int index) { return this; } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder getRelatedAccountGroupsBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder + getRelatedAccountGroupsBuilder(int index) { return getRelatedAccountGroupsFieldBuilder().getBuilder(index); } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder getRelatedAccountGroupsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder + getRelatedAccountGroupsOrBuilder(int index) { if (relatedAccountGroupsBuilder_ == null) { - return relatedAccountGroups_.get(index); } else { + return relatedAccountGroups_.get(index); + } else { return relatedAccountGroupsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public java.util.List - getRelatedAccountGroupsOrBuilderList() { + public java.util.List + getRelatedAccountGroupsOrBuilderList() { if (relatedAccountGroupsBuilder_ != null) { return relatedAccountGroupsBuilder_.getMessageOrBuilderList(); } else { @@ -820,45 +960,65 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder getRelated } } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder addRelatedAccountGroupsBuilder() { - return getRelatedAccountGroupsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder + addRelatedAccountGroupsBuilder() { + return getRelatedAccountGroupsFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()); } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder addRelatedAccountGroupsBuilder( - int index) { - return getRelatedAccountGroupsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder + addRelatedAccountGroupsBuilder(int index) { + return getRelatedAccountGroupsFieldBuilder() + .addBuilder( + index, com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()); } /** + * + * *
      * The groups of related accounts listed by the query.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - public java.util.List - getRelatedAccountGroupsBuilderList() { + public java.util.List + getRelatedAccountGroupsBuilderList() { return getRelatedAccountGroupsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroup, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder> + com.google.recaptchaenterprise.v1.RelatedAccountGroup, + com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder> getRelatedAccountGroupsFieldBuilder() { if (relatedAccountGroupsBuilder_ == null) { - relatedAccountGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroup, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder>( + relatedAccountGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.RelatedAccountGroup, + com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder>( relatedAccountGroups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -870,19 +1030,21 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder addRelatedA private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -891,21 +1053,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -913,30 +1076,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1116,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,41 +1150,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) - private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse(); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRelatedAccountGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRelatedAccountGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1022,9 +1198,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java similarity index 55% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java index 0ad0a48373b8..c69d3c4a4fbc 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java @@ -1,75 +1,116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListRelatedAccountGroupsResponseOrBuilder extends +public interface ListRelatedAccountGroupsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - java.util.List + java.util.List getRelatedAccountGroupsList(); /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGroups(int index); /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ int getRelatedAccountGroupsCount(); /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ - java.util.List + java.util.List getRelatedAccountGroupsOrBuilderList(); /** + * + * *
    * The groups of related accounts listed by the query.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; + * */ com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder getRelatedAccountGroupsOrBuilder( int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java similarity index 75% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java index 6d24551307c1..5e0b30c01ad7 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Metrics for a single Key.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Metrics} */ -public final class Metrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Metrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.Metrics) MetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Metrics.newBuilder() to construct. private Metrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Metrics() { name_ = ""; scoreMetrics_ = java.util.Collections.emptyList(); @@ -27,34 +45,41 @@ private Metrics() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Metrics(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Metrics.class, com.google.recaptchaenterprise.v1.Metrics.Builder.class); + com.google.recaptchaenterprise.v1.Metrics.class, + com.google.recaptchaenterprise.v1.Metrics.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. Identifier. The name of the metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The name. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Identifier. The name of the metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.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 { @@ -97,11 +124,14 @@ public java.lang.String getName() { public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Inclusive start time aligned to a day (UTC).
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -109,11 +139,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Inclusive start time aligned to a day (UTC).
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -121,6 +154,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Inclusive start time aligned to a day (UTC).
    * 
@@ -133,9 +168,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } public static final int SCORE_METRICS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List scoreMetrics_; /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -148,6 +186,8 @@ public java.util.List getScoreMe
     return scoreMetrics_;
   }
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -156,11 +196,13 @@ public java.util.List getScoreMe
    * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getScoreMetricsOrBuilderList() {
     return scoreMetrics_;
   }
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -173,6 +215,8 @@ public int getScoreMetricsCount() {
     return scoreMetrics_.size();
   }
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -185,6 +229,8 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics getScoreMetrics(int index)
     return scoreMetrics_.get(index);
   }
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -199,69 +245,86 @@ public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOr
   }
 
   public static final int CHALLENGE_METRICS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List challengeMetrics_;
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ @java.lang.Override - public java.util.List getChallengeMetricsList() { + public java.util.List + getChallengeMetricsList() { return challengeMetrics_; } /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getChallengeMetricsOrBuilderList() { return challengeMetrics_; } /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ @java.lang.Override public int getChallengeMetricsCount() { return challengeMetrics_.size(); } /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.ChallengeMetrics getChallengeMetrics(int index) { return challengeMetrics_.get(index); } /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeMetricsOrBuilder( @@ -270,6 +333,7 @@ public com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeM } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,8 +345,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -305,16 +368,13 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } for (int i = 0; i < scoreMetrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, scoreMetrics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, scoreMetrics_.get(i)); } for (int i = 0; i < challengeMetrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, challengeMetrics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, challengeMetrics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); @@ -327,24 +387,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.Metrics)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.Metrics other = (com.google.recaptchaenterprise.v1.Metrics) obj; + com.google.recaptchaenterprise.v1.Metrics other = + (com.google.recaptchaenterprise.v1.Metrics) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } - if (!getScoreMetricsList() - .equals(other.getScoreMetricsList())) return false; - if (!getChallengeMetricsList() - .equals(other.getChallengeMetricsList())) return false; + if (!getScoreMetricsList().equals(other.getScoreMetricsList())) return false; + if (!getChallengeMetricsList().equals(other.getChallengeMetricsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -375,132 +432,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.Metrics parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Metrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.Metrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.Metrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.Metrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.Metrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metrics for a single Key.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Metrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.Metrics) com.google.recaptchaenterprise.v1.MetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Metrics.class, com.google.recaptchaenterprise.v1.Metrics.Builder.class); + com.google.recaptchaenterprise.v1.Metrics.class, + com.google.recaptchaenterprise.v1.Metrics.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.Metrics.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,9 +590,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; } @java.lang.Override @@ -550,9 +611,12 @@ public com.google.recaptchaenterprise.v1.Metrics build() { @java.lang.Override public com.google.recaptchaenterprise.v1.Metrics buildPartial() { - com.google.recaptchaenterprise.v1.Metrics result = new com.google.recaptchaenterprise.v1.Metrics(this); + com.google.recaptchaenterprise.v1.Metrics result = + new com.google.recaptchaenterprise.v1.Metrics(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -584,9 +648,7 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Metrics result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } } @@ -594,38 +656,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Metrics result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.Metrics) { - return mergeFrom((com.google.recaptchaenterprise.v1.Metrics)other); + return mergeFrom((com.google.recaptchaenterprise.v1.Metrics) other); } else { super.mergeFrom(other); return this; @@ -660,9 +723,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Metrics other) { scoreMetricsBuilder_ = null; scoreMetrics_ = other.scoreMetrics_; bitField0_ = (bitField0_ & ~0x00000004); - scoreMetricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getScoreMetricsFieldBuilder() : null; + scoreMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getScoreMetricsFieldBuilder() + : null; } else { scoreMetricsBuilder_.addAllMessages(other.scoreMetrics_); } @@ -686,9 +750,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Metrics other) { challengeMetricsBuilder_ = null; challengeMetrics_ = other.challengeMetrics_; bitField0_ = (bitField0_ & ~0x00000008); - challengeMetricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChallengeMetricsFieldBuilder() : null; + challengeMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChallengeMetricsFieldBuilder() + : null; } else { challengeMetricsBuilder_.addAllMessages(other.challengeMetrics_); } @@ -720,50 +785,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - com.google.recaptchaenterprise.v1.ScoreMetrics m = - input.readMessage( - com.google.recaptchaenterprise.v1.ScoreMetrics.parser(), - extensionRegistry); - if (scoreMetricsBuilder_ == null) { - ensureScoreMetricsIsMutable(); - scoreMetrics_.add(m); - } else { - scoreMetricsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.recaptchaenterprise.v1.ChallengeMetrics m = - input.readMessage( - com.google.recaptchaenterprise.v1.ChallengeMetrics.parser(), - extensionRegistry); - if (challengeMetricsBuilder_ == null) { - ensureChallengeMetricsIsMutable(); - challengeMetrics_.add(m); - } else { - challengeMetricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + com.google.recaptchaenterprise.v1.ScoreMetrics m = + input.readMessage( + com.google.recaptchaenterprise.v1.ScoreMetrics.parser(), extensionRegistry); + if (scoreMetricsBuilder_ == null) { + ensureScoreMetricsIsMutable(); + scoreMetrics_.add(m); + } else { + scoreMetricsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.recaptchaenterprise.v1.ChallengeMetrics m = + input.readMessage( + com.google.recaptchaenterprise.v1.ChallengeMetrics.parser(), + extensionRegistry); + if (challengeMetricsBuilder_ == null) { + ensureChallengeMetricsIsMutable(); + challengeMetrics_.add(m); + } else { + challengeMetricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -773,23 +840,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Identifier. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.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; @@ -798,21 +870,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.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 { @@ -820,30 +895,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Identifier. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -853,18 +939,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Identifier. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -874,24 +966,33 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -902,6 +1003,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -922,14 +1025,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -940,6 +1044,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -948,9 +1054,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -963,6 +1069,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -980,6 +1088,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -992,6 +1102,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -1002,11 +1114,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -1014,32 +1127,42 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private java.util.List scoreMetrics_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureScoreMetricsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - scoreMetrics_ = new java.util.ArrayList(scoreMetrics_); + scoreMetrics_ = + new java.util.ArrayList(scoreMetrics_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.ScoreMetrics, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder, com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder> scoreMetricsBuilder_; + com.google.recaptchaenterprise.v1.ScoreMetrics, + com.google.recaptchaenterprise.v1.ScoreMetrics.Builder, + com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder> + scoreMetricsBuilder_; /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1055,6 +1178,8 @@ public java.util.List getScoreMe
       }
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1070,6 +1195,8 @@ public int getScoreMetricsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1085,6 +1212,8 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics getScoreMetrics(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1107,6 +1236,8 @@ public Builder setScoreMetrics(
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1126,6 +1257,8 @@ public Builder setScoreMetrics(
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1147,6 +1280,8 @@ public Builder addScoreMetrics(com.google.recaptchaenterprise.v1.ScoreMetrics va
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1169,6 +1304,8 @@ public Builder addScoreMetrics(
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1188,6 +1325,8 @@ public Builder addScoreMetrics(
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1207,6 +1346,8 @@ public Builder addScoreMetrics(
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1218,8 +1359,7 @@ public Builder addAllScoreMetrics(
         java.lang.Iterable values) {
       if (scoreMetricsBuilder_ == null) {
         ensureScoreMetricsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, scoreMetrics_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scoreMetrics_);
         onChanged();
       } else {
         scoreMetricsBuilder_.addAllMessages(values);
@@ -1227,6 +1367,8 @@ public Builder addAllScoreMetrics(
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1245,6 +1387,8 @@ public Builder clearScoreMetrics() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1263,6 +1407,8 @@ public Builder removeScoreMetrics(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1275,6 +1421,8 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder getScoreMetricsBui
       return getScoreMetricsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1285,11 +1433,14 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder getScoreMetricsBui
     public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOrBuilder(
         int index) {
       if (scoreMetricsBuilder_ == null) {
-        return scoreMetrics_.get(index);  } else {
+        return scoreMetrics_.get(index);
+      } else {
         return scoreMetricsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1297,8 +1448,8 @@ public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOr
      *
      * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
      */
-    public java.util.List 
-         getScoreMetricsOrBuilderList() {
+    public java.util.List
+        getScoreMetricsOrBuilderList() {
       if (scoreMetricsBuilder_ != null) {
         return scoreMetricsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1306,6 +1457,8 @@ public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOr
       }
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1314,10 +1467,12 @@ public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOr
      * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
      */
     public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder addScoreMetricsBuilder() {
-      return getScoreMetricsFieldBuilder().addBuilder(
-          com.google.recaptchaenterprise.v1.ScoreMetrics.getDefaultInstance());
+      return getScoreMetricsFieldBuilder()
+          .addBuilder(com.google.recaptchaenterprise.v1.ScoreMetrics.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1327,10 +1482,12 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder addScoreMetricsBui
      */
     public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder addScoreMetricsBuilder(
         int index) {
-      return getScoreMetricsFieldBuilder().addBuilder(
-          index, com.google.recaptchaenterprise.v1.ScoreMetrics.getDefaultInstance());
+      return getScoreMetricsFieldBuilder()
+          .addBuilder(index, com.google.recaptchaenterprise.v1.ScoreMetrics.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1338,47 +1495,60 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder addScoreMetricsBui
      *
      * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
      */
-    public java.util.List 
-         getScoreMetricsBuilderList() {
+    public java.util.List
+        getScoreMetricsBuilderList() {
       return getScoreMetricsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.ScoreMetrics, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder, com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder> 
+            com.google.recaptchaenterprise.v1.ScoreMetrics,
+            com.google.recaptchaenterprise.v1.ScoreMetrics.Builder,
+            com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder>
         getScoreMetricsFieldBuilder() {
       if (scoreMetricsBuilder_ == null) {
-        scoreMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.ScoreMetrics, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder, com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder>(
-                scoreMetrics_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        scoreMetricsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.recaptchaenterprise.v1.ScoreMetrics,
+                com.google.recaptchaenterprise.v1.ScoreMetrics.Builder,
+                com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder>(
+                scoreMetrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         scoreMetrics_ = null;
       }
       return scoreMetricsBuilder_;
     }
 
     private java.util.List challengeMetrics_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureChallengeMetricsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        challengeMetrics_ = new java.util.ArrayList(challengeMetrics_);
+        challengeMetrics_ =
+            new java.util.ArrayList(
+                challengeMetrics_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.recaptchaenterprise.v1.ChallengeMetrics, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder> challengeMetricsBuilder_;
+            com.google.recaptchaenterprise.v1.ChallengeMetrics,
+            com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder,
+            com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder>
+        challengeMetricsBuilder_;
 
     /**
+     *
+     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ - public java.util.List getChallengeMetricsList() { + public java.util.List + getChallengeMetricsList() { if (challengeMetricsBuilder_ == null) { return java.util.Collections.unmodifiableList(challengeMetrics_); } else { @@ -1386,13 +1556,16 @@ public java.util.List getCha } } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public int getChallengeMetricsCount() { if (challengeMetricsBuilder_ == null) { @@ -1402,13 +1575,16 @@ public int getChallengeMetricsCount() { } } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public com.google.recaptchaenterprise.v1.ChallengeMetrics getChallengeMetrics(int index) { if (challengeMetricsBuilder_ == null) { @@ -1418,13 +1594,16 @@ public com.google.recaptchaenterprise.v1.ChallengeMetrics getChallengeMetrics(in } } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder setChallengeMetrics( int index, com.google.recaptchaenterprise.v1.ChallengeMetrics value) { @@ -1441,13 +1620,16 @@ public Builder setChallengeMetrics( return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder setChallengeMetrics( int index, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder builderForValue) { @@ -1461,13 +1643,16 @@ public Builder setChallengeMetrics( return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder addChallengeMetrics(com.google.recaptchaenterprise.v1.ChallengeMetrics value) { if (challengeMetricsBuilder_ == null) { @@ -1483,13 +1668,16 @@ public Builder addChallengeMetrics(com.google.recaptchaenterprise.v1.ChallengeMe return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder addChallengeMetrics( int index, com.google.recaptchaenterprise.v1.ChallengeMetrics value) { @@ -1506,13 +1694,16 @@ public Builder addChallengeMetrics( return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder addChallengeMetrics( com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder builderForValue) { @@ -1526,13 +1717,16 @@ public Builder addChallengeMetrics( return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder addChallengeMetrics( int index, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder builderForValue) { @@ -1546,20 +1740,22 @@ public Builder addChallengeMetrics( return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder addAllChallengeMetrics( java.lang.Iterable values) { if (challengeMetricsBuilder_ == null) { ensureChallengeMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, challengeMetrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, challengeMetrics_); onChanged(); } else { challengeMetricsBuilder_.addAllMessages(values); @@ -1567,13 +1763,16 @@ public Builder addAllChallengeMetrics( return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder clearChallengeMetrics() { if (challengeMetricsBuilder_ == null) { @@ -1586,13 +1785,16 @@ public Builder clearChallengeMetrics() { return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public Builder removeChallengeMetrics(int index) { if (challengeMetricsBuilder_ == null) { @@ -1605,45 +1807,55 @@ public Builder removeChallengeMetrics(int index) { return this; } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder getChallengeMetricsBuilder( int index) { return getChallengeMetricsFieldBuilder().getBuilder(index); } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeMetricsOrBuilder( int index) { if (challengeMetricsBuilder_ == null) { - return challengeMetrics_.get(index); } else { + return challengeMetrics_.get(index); + } else { return challengeMetricsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ - public java.util.List - getChallengeMetricsOrBuilderList() { + public java.util.List + getChallengeMetricsOrBuilderList() { if (challengeMetricsBuilder_ != null) { return challengeMetricsBuilder_.getMessageOrBuilderList(); } else { @@ -1651,51 +1863,67 @@ public com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeM } } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder addChallengeMetricsBuilder() { - return getChallengeMetricsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()); + return getChallengeMetricsFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()); } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ public com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder addChallengeMetricsBuilder( int index) { - return getChallengeMetricsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()); + return getChallengeMetricsFieldBuilder() + .addBuilder( + index, com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()); } /** + * + * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ - public java.util.List - getChallengeMetricsBuilderList() { + public java.util.List + getChallengeMetricsBuilderList() { return getChallengeMetricsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.ChallengeMetrics, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder> + com.google.recaptchaenterprise.v1.ChallengeMetrics, + com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, + com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder> getChallengeMetricsFieldBuilder() { if (challengeMetricsBuilder_ == null) { - challengeMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.ChallengeMetrics, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder>( + challengeMetricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.ChallengeMetrics, + com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, + com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder>( challengeMetrics_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1704,9 +1932,9 @@ public com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder addChallengeMe } return challengeMetricsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1716,12 +1944,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.Metrics) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.Metrics) private static final com.google.recaptchaenterprise.v1.Metrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.Metrics(); } @@ -1730,27 +1958,27 @@ public static com.google.recaptchaenterprise.v1.Metrics getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1765,6 +1993,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.Metrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java similarity index 76% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java index 2b51ac560555..a131e6ef88af 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java @@ -1,53 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface MetricsOrBuilder extends +public interface MetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.Metrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Identifier. The name of the metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Identifier. The name of the metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* - * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Inclusive start time aligned to a day (UTC).
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Inclusive start time aligned to a day (UTC).
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Inclusive start time aligned to a day (UTC).
    * 
@@ -57,6 +90,8 @@ public interface MetricsOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -64,9 +99,10 @@ public interface MetricsOrBuilder extends
    *
    * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
    */
-  java.util.List 
-      getScoreMetricsList();
+  java.util.List getScoreMetricsList();
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -76,6 +112,8 @@ public interface MetricsOrBuilder extends
    */
   com.google.recaptchaenterprise.v1.ScoreMetrics getScoreMetrics(int index);
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -85,6 +123,8 @@ public interface MetricsOrBuilder extends
    */
   int getScoreMetricsCount();
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -92,9 +132,11 @@ public interface MetricsOrBuilder extends
    *
    * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
    */
-  java.util.List 
+  java.util.List
       getScoreMetricsOrBuilderList();
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -102,59 +144,72 @@ public interface MetricsOrBuilder extends
    *
    * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
    */
-  com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOrBuilder(
-      int index);
+  com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ - java.util.List - getChallengeMetricsList(); + java.util.List getChallengeMetricsList(); /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ com.google.recaptchaenterprise.v1.ChallengeMetrics getChallengeMetrics(int index); /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ int getChallengeMetricsCount(); /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ - java.util.List + java.util.List getChallengeMetricsOrBuilderList(); /** + * + * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; + * */ com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeMetricsOrBuilder( int index); diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java similarity index 68% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java index 6ab0aef95d0f..74e2f010dc01 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The migrate key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.MigrateKeyRequest} */ -public final class MigrateKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MigrateKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) MigrateKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MigrateKeyRequest.newBuilder() to construct. private MigrateKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MigrateKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MigrateKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, com.google.recaptchaenterprise.v1.MigrateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, + com.google.recaptchaenterprise.v1.MigrateKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the key to be migrated, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * string name = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the key to be migrated, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -95,6 +122,8 @@ public java.lang.String getName() { public static final int SKIP_BILLING_CHECK_FIELD_NUMBER = 2; private boolean skipBillingCheck_ = false; /** + * + * *
    * Optional. If true, skips the billing check.
    * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -107,6 +136,7 @@ public java.lang.String getName() {
    * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The skipBillingCheck. */ @java.lang.Override @@ -115,6 +145,7 @@ public boolean getSkipBillingCheck() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,8 +157,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -147,8 +177,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (skipBillingCheck_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, skipBillingCheck_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, skipBillingCheck_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -158,17 +187,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.recaptchaenterprise.v1.MigrateKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.MigrateKeyRequest other = (com.google.recaptchaenterprise.v1.MigrateKeyRequest) obj; + com.google.recaptchaenterprise.v1.MigrateKeyRequest other = + (com.google.recaptchaenterprise.v1.MigrateKeyRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getSkipBillingCheck() - != other.getSkipBillingCheck()) return false; + if (!getName().equals(other.getName())) return false; + if (getSkipBillingCheck() != other.getSkipBillingCheck()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,139 +211,142 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SKIP_BILLING_CHECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipBillingCheck()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipBillingCheck()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.MigrateKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The migrate key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.MigrateKeyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) com.google.recaptchaenterprise.v1.MigrateKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, com.google.recaptchaenterprise.v1.MigrateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, + com.google.recaptchaenterprise.v1.MigrateKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.MigrateKeyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; } @java.lang.Override @@ -347,8 +378,11 @@ public com.google.recaptchaenterprise.v1.MigrateKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.MigrateKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.MigrateKeyRequest result = new com.google.recaptchaenterprise.v1.MigrateKeyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.MigrateKeyRequest result = + new com.google.recaptchaenterprise.v1.MigrateKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -367,38 +401,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.MigrateKeyRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.MigrateKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.MigrateKeyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.MigrateKeyRequest) other); } else { super.mergeFrom(other); return this; @@ -406,7 +441,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.MigrateKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.MigrateKeyRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.MigrateKeyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -441,22 +477,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - skipBillingCheck_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + skipBillingCheck_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,23 +505,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string name = 1 [(.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; @@ -491,21 +535,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -513,30 +560,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * string 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() { @@ -546,18 +604,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -565,8 +629,10 @@ public Builder setNameBytes( return this; } - private boolean skipBillingCheck_ ; + private boolean skipBillingCheck_; /** + * + * *
      * Optional. If true, skips the billing check.
      * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -579,6 +645,7 @@ public Builder setNameBytes(
      * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The skipBillingCheck. */ @java.lang.Override @@ -586,6 +653,8 @@ public boolean getSkipBillingCheck() { return skipBillingCheck_; } /** + * + * *
      * Optional. If true, skips the billing check.
      * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -598,6 +667,7 @@ public boolean getSkipBillingCheck() {
      * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The skipBillingCheck to set. * @return This builder for chaining. */ @@ -609,6 +679,8 @@ public Builder setSkipBillingCheck(boolean value) { return this; } /** + * + * *
      * Optional. If true, skips the billing check.
      * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -621,6 +693,7 @@ public Builder setSkipBillingCheck(boolean value) {
      * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSkipBillingCheck() { @@ -629,9 +702,9 @@ public Builder clearSkipBillingCheck() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -641,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) private static final com.google.recaptchaenterprise.v1.MigrateKeyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.MigrateKeyRequest(); } @@ -655,27 +728,27 @@ public static com.google.recaptchaenterprise.v1.MigrateKeyRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrateKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrateKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -690,6 +763,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.MigrateKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java index e0f1af4de8a2..219dcff6280a 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface MigrateKeyRequestOrBuilder extends +public interface MigrateKeyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the key to be migrated, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the key to be migrated, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If true, skips the billing check.
    * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -42,6 +69,7 @@ public interface MigrateKeyRequestOrBuilder extends
    * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The skipBillingCheck. */ boolean getSkipBillingCheck(); diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java similarity index 67% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java index 173a6f4bd2fa..a8227b21320d 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Private password leak verification info.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification} */ -public final class PrivatePasswordLeakVerification extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PrivatePasswordLeakVerification extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) PrivatePasswordLeakVerificationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivatePasswordLeakVerification.newBuilder() to construct. - private PrivatePasswordLeakVerification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PrivatePasswordLeakVerification( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrivatePasswordLeakVerification() { lookupHashPrefix_ = com.google.protobuf.ByteString.EMPTY; encryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; @@ -28,27 +47,30 @@ private PrivatePasswordLeakVerification() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrivatePasswordLeakVerification(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.class, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder.class); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.class, + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder.class); } public static final int LOOKUP_HASH_PREFIX_FIELD_NUMBER = 1; private com.google.protobuf.ByteString lookupHashPrefix_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
    * username. It is used to look up password leaks associated with that hash
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The lookupHashPrefix. */ @java.lang.Override @@ -64,15 +87,20 @@ public com.google.protobuf.ByteString getLookupHashPrefix() { } public static final int ENCRYPTED_USER_CREDENTIALS_HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString encryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptedUserCredentialsHash_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
    * is re-encrypted by the server and returned through
    * `reencrypted_user_credentials_hash`.
    * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptedUserCredentialsHash. */ @java.lang.Override @@ -81,44 +109,59 @@ public com.google.protobuf.ByteString getEncryptedUserCredentialsHash() { } public static final int ENCRYPTED_LEAK_MATCH_PREFIXES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List encryptedLeakMatchPrefixes_; /** + * + * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the encryptedLeakMatchPrefixes. */ @java.lang.Override - public java.util.List - getEncryptedLeakMatchPrefixesList() { + public java.util.List getEncryptedLeakMatchPrefixesList() { return encryptedLeakMatchPrefixes_; } /** + * + * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of encryptedLeakMatchPrefixes. */ public int getEncryptedLeakMatchPrefixesCount() { return encryptedLeakMatchPrefixes_.size(); } /** + * + * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The encryptedLeakMatchPrefixes at the given index. */ @@ -127,15 +170,20 @@ public com.google.protobuf.ByteString getEncryptedLeakMatchPrefixes(int index) { } public static final int REENCRYPTED_USER_CREDENTIALS_HASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString reencryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString reencryptedUserCredentialsHash_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Output only. Corresponds to the re-encryption of the
    * `encrypted_user_credentials_hash` field. It is used to match potential
    * password leaks within `encrypted_leak_match_prefixes`.
    * 
* - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The reencryptedUserCredentialsHash. */ @java.lang.Override @@ -144,6 +192,7 @@ public com.google.protobuf.ByteString getReencryptedUserCredentialsHash() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!lookupHashPrefix_.isEmpty()) { output.writeBytes(1, lookupHashPrefix_); } @@ -179,25 +227,26 @@ public int getSerializedSize() { size = 0; if (!lookupHashPrefix_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, lookupHashPrefix_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, lookupHashPrefix_); } if (!encryptedUserCredentialsHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, encryptedUserCredentialsHash_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize(2, encryptedUserCredentialsHash_); } { int dataSize = 0; for (int i = 0; i < encryptedLeakMatchPrefixes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(encryptedLeakMatchPrefixes_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + encryptedLeakMatchPrefixes_.get(i)); } size += dataSize; size += 1 * getEncryptedLeakMatchPrefixesList().size(); } if (!reencryptedUserCredentialsHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, reencryptedUserCredentialsHash_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 4, reencryptedUserCredentialsHash_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,21 +256,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification other = (com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification) obj; + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification other = + (com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification) obj; - if (!getLookupHashPrefix() - .equals(other.getLookupHashPrefix())) return false; - if (!getEncryptedUserCredentialsHash() - .equals(other.getEncryptedUserCredentialsHash())) return false; - if (!getEncryptedLeakMatchPrefixesList() - .equals(other.getEncryptedLeakMatchPrefixesList())) return false; - if (!getReencryptedUserCredentialsHash() - .equals(other.getReencryptedUserCredentialsHash())) return false; + if (!getLookupHashPrefix().equals(other.getLookupHashPrefix())) return false; + if (!getEncryptedUserCredentialsHash().equals(other.getEncryptedUserCredentialsHash())) + return false; + if (!getEncryptedLeakMatchPrefixesList().equals(other.getEncryptedLeakMatchPrefixesList())) + return false; + if (!getReencryptedUserCredentialsHash().equals(other.getReencryptedUserCredentialsHash())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -249,131 +298,138 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Private password leak verification info.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.class, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder.class); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.class, + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder.class); } - // Construct using com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,13 +442,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance(); } @@ -407,22 +464,28 @@ public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification build() @java.lang.Override public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification buildPartial() { - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result = new com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification(this); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result = + new com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result) { if (((bitField0_ & 0x00000004) != 0)) { - encryptedLeakMatchPrefixes_ = java.util.Collections.unmodifiableList(encryptedLeakMatchPrefixes_); + encryptedLeakMatchPrefixes_ = + java.util.Collections.unmodifiableList(encryptedLeakMatchPrefixes_); bitField0_ = (bitField0_ & ~0x00000004); } result.encryptedLeakMatchPrefixes_ = encryptedLeakMatchPrefixes_; } - private void buildPartial0(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.lookupHashPrefix_ = lookupHashPrefix_; @@ -439,46 +502,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.PrivatePasswordLeak public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification) { - return mergeFrom((com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification)other); + return mergeFrom((com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification other) { - if (other == com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification other) { + if (other + == com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance()) + return this; if (other.getLookupHashPrefix() != com.google.protobuf.ByteString.EMPTY) { setLookupHashPrefix(other.getLookupHashPrefix()); } @@ -524,33 +591,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - lookupHashPrefix_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - encryptedUserCredentialsHash_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureEncryptedLeakMatchPrefixesIsMutable(); - encryptedLeakMatchPrefixes_.add(v); - break; - } // case 26 - case 34: { - reencryptedUserCredentialsHash_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + lookupHashPrefix_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + encryptedUserCredentialsHash_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureEncryptedLeakMatchPrefixesIsMutable(); + encryptedLeakMatchPrefixes_.add(v); + break; + } // case 26 + case 34: + { + reencryptedUserCredentialsHash_ = input.readBytes(); + bitField0_ |= 0x00000008; + 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) { @@ -560,10 +632,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.ByteString lookupHashPrefix_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
      * username. It is used to look up password leaks associated with that hash
@@ -571,6 +646,7 @@ public Builder mergeFrom(
      * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The lookupHashPrefix. */ @java.lang.Override @@ -578,6 +654,8 @@ public com.google.protobuf.ByteString getLookupHashPrefix() { return lookupHashPrefix_; } /** + * + * *
      * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
      * username. It is used to look up password leaks associated with that hash
@@ -585,17 +663,22 @@ public com.google.protobuf.ByteString getLookupHashPrefix() {
      * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The lookupHashPrefix to set. * @return This builder for chaining. */ public Builder setLookupHashPrefix(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } lookupHashPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
      * username. It is used to look up password leaks associated with that hash
@@ -603,6 +686,7 @@ public Builder setLookupHashPrefix(com.google.protobuf.ByteString value) {
      * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLookupHashPrefix() { @@ -612,15 +696,20 @@ public Builder clearLookupHashPrefix() { return this; } - private com.google.protobuf.ByteString encryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptedUserCredentialsHash_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
      * is re-encrypted by the server and returned through
      * `reencrypted_user_credentials_hash`.
      * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptedUserCredentialsHash. */ @java.lang.Override @@ -628,31 +717,41 @@ public com.google.protobuf.ByteString getEncryptedUserCredentialsHash() { return encryptedUserCredentialsHash_; } /** + * + * *
      * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
      * is re-encrypted by the server and returned through
      * `reencrypted_user_credentials_hash`.
      * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The encryptedUserCredentialsHash to set. * @return This builder for chaining. */ public Builder setEncryptedUserCredentialsHash(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } encryptedUserCredentialsHash_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
      * is re-encrypted by the server and returned through
      * `reencrypted_user_credentials_hash`.
      * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEncryptedUserCredentialsHash() { @@ -662,49 +761,67 @@ public Builder clearEncryptedUserCredentialsHash() { return this; } - private java.util.List encryptedLeakMatchPrefixes_ = java.util.Collections.emptyList(); + private java.util.List encryptedLeakMatchPrefixes_ = + java.util.Collections.emptyList(); + private void ensureEncryptedLeakMatchPrefixesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - encryptedLeakMatchPrefixes_ = new java.util.ArrayList(encryptedLeakMatchPrefixes_); + encryptedLeakMatchPrefixes_ = + new java.util.ArrayList(encryptedLeakMatchPrefixes_); bitField0_ |= 0x00000004; } } /** + * + * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the encryptedLeakMatchPrefixes. */ - public java.util.List - getEncryptedLeakMatchPrefixesList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(encryptedLeakMatchPrefixes_) : encryptedLeakMatchPrefixes_; + public java.util.List getEncryptedLeakMatchPrefixesList() { + return ((bitField0_ & 0x00000004) != 0) + ? java.util.Collections.unmodifiableList(encryptedLeakMatchPrefixes_) + : encryptedLeakMatchPrefixes_; } /** + * + * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of encryptedLeakMatchPrefixes. */ public int getEncryptedLeakMatchPrefixesCount() { return encryptedLeakMatchPrefixes_.size(); } /** + * + * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The encryptedLeakMatchPrefixes at the given index. */ @@ -712,70 +829,92 @@ public com.google.protobuf.ByteString getEncryptedLeakMatchPrefixes(int index) { return encryptedLeakMatchPrefixes_.get(index); } /** + * + * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The encryptedLeakMatchPrefixes to set. * @return This builder for chaining. */ - public Builder setEncryptedLeakMatchPrefixes( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEncryptedLeakMatchPrefixes(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureEncryptedLeakMatchPrefixesIsMutable(); encryptedLeakMatchPrefixes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The encryptedLeakMatchPrefixes to add. * @return This builder for chaining. */ public Builder addEncryptedLeakMatchPrefixes(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureEncryptedLeakMatchPrefixesIsMutable(); encryptedLeakMatchPrefixes_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The encryptedLeakMatchPrefixes to add. * @return This builder for chaining. */ public Builder addAllEncryptedLeakMatchPrefixes( java.lang.Iterable values) { ensureEncryptedLeakMatchPrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, encryptedLeakMatchPrefixes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, encryptedLeakMatchPrefixes_); onChanged(); return this; } /** + * + * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearEncryptedLeakMatchPrefixes() { @@ -785,15 +924,21 @@ public Builder clearEncryptedLeakMatchPrefixes() { return this; } - private com.google.protobuf.ByteString reencryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString reencryptedUserCredentialsHash_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Output only. Corresponds to the re-encryption of the
      * `encrypted_user_credentials_hash` field. It is used to match potential
      * password leaks within `encrypted_leak_match_prefixes`.
      * 
* - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The reencryptedUserCredentialsHash. */ @java.lang.Override @@ -801,31 +946,43 @@ public com.google.protobuf.ByteString getReencryptedUserCredentialsHash() { return reencryptedUserCredentialsHash_; } /** + * + * *
      * Output only. Corresponds to the re-encryption of the
      * `encrypted_user_credentials_hash` field. It is used to match potential
      * password leaks within `encrypted_leak_match_prefixes`.
      * 
* - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The reencryptedUserCredentialsHash to set. * @return This builder for chaining. */ public Builder setReencryptedUserCredentialsHash(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } reencryptedUserCredentialsHash_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Corresponds to the re-encryption of the
      * `encrypted_user_credentials_hash` field. It is used to match potential
      * password leaks within `encrypted_leak_match_prefixes`.
      * 
* - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearReencryptedUserCredentialsHash() { @@ -834,9 +991,9 @@ public Builder clearReencryptedUserCredentialsHash() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -846,41 +1003,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) - private static final com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification(); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivatePasswordLeakVerification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivatePasswordLeakVerification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -892,9 +1051,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java similarity index 69% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java index 8ec64da097d5..8fae8be5611e 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface PrivatePasswordLeakVerificationOrBuilder extends +public interface PrivatePasswordLeakVerificationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
    * username. It is used to look up password leaks associated with that hash
@@ -15,65 +33,89 @@ public interface PrivatePasswordLeakVerificationOrBuilder extends
    * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The lookupHashPrefix. */ com.google.protobuf.ByteString getLookupHashPrefix(); /** + * + * *
    * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
    * is re-encrypted by the server and returned through
    * `reencrypted_user_credentials_hash`.
    * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptedUserCredentialsHash. */ com.google.protobuf.ByteString getEncryptedUserCredentialsHash(); /** + * + * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the encryptedLeakMatchPrefixes. */ java.util.List getEncryptedLeakMatchPrefixesList(); /** + * + * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of encryptedLeakMatchPrefixes. */ int getEncryptedLeakMatchPrefixesCount(); /** + * + * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The encryptedLeakMatchPrefixes at the given index. */ com.google.protobuf.ByteString getEncryptedLeakMatchPrefixes(int index); /** + * + * *
    * Output only. Corresponds to the re-encryption of the
    * `encrypted_user_credentials_hash` field. It is used to match potential
    * password leaks within `encrypted_leak_match_prefixes`.
    * 
* - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The reencryptedUserCredentialsHash. */ com.google.protobuf.ByteString getReencryptedUserCredentialsHash(); diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java new file mode 100644 index 000000000000..d5eb4a691f12 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java @@ -0,0 +1,1536 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public final class RecaptchaEnterpriseProto { + private RecaptchaEnterpriseProto() {} + + 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_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_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/recaptchaenterprise/v1/re" + + "captchaenterprise.proto\022#google.cloud.re" + + "captchaenterprise.v1\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032\033google/protobuf/empty.p" + + "roto\032 google/protobuf/field_mask.proto\032\037" + + "google/protobuf/timestamp.proto\032\027google/" + + "rpc/status.proto\"\252\001\n\027CreateAssessmentReq" + + "uest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudreso" + + "urcemanager.googleapis.com/Project\022I\n\nas" + + "sessment\030\002 \001(\0132/.google.cloud.recaptchae" + + "nterprise.v1.AssessmentB\004\342A\001\002\"\226\005\n\020Transa" + + "ctionEvent\022d\n\nevent_type\030\001 \001(\0162J.google." + + "cloud.recaptchaenterprise.v1.Transaction" + + "Event.TransactionEventTypeB\004\342A\001\001\022\024\n\006reas" + + "on\030\002 \001(\tB\004\342A\001\001\022\023\n\005value\030\003 \001(\001B\004\342A\001\001\0224\n\ne" + + "vent_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\001\"\272\003\n\024TransactionEventType\022&\n\"TR" + + "ANSACTION_EVENT_TYPE_UNSPECIFIED\020\000\022\024\n\020ME" + + "RCHANT_APPROVE\020\001\022\021\n\rMERCHANT_DENY\020\002\022\021\n\rM" + + "ANUAL_REVIEW\020\003\022\021\n\rAUTHORIZATION\020\004\022\031\n\025AUT" + + "HORIZATION_DECLINE\020\005\022\023\n\017PAYMENT_CAPTURE\020" + + "\006\022\033\n\027PAYMENT_CAPTURE_DECLINE\020\007\022\n\n\006CANCEL" + + "\020\010\022\026\n\022CHARGEBACK_INQUIRY\020\t\022\024\n\020CHARGEBACK" + + "_ALERT\020\n\022\026\n\022FRAUD_NOTIFICATION\020\013\022\016\n\nCHAR" + + "GEBACK\020\014\022\034\n\030CHARGEBACK_REPRESENTMENT\020\r\022\026" + + "\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016REFUND_REQUEST" + + "\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006REFUND\020\021\022\022\n\016RE" + + "FUND_REVERSE\020\022\"\211\007\n\031AnnotateAssessmentReq" + + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-recaptchaen" + + "terprise.googleapis.com/Assessment\022c\n\nan" + + "notation\030\002 \001(\0162I.google.cloud.recaptchae" + + "nterprise.v1.AnnotateAssessmentRequest.A" + + "nnotationB\004\342A\001\001\022\\\n\007reasons\030\003 \003(\0162E.googl" + + "e.cloud.recaptchaenterprise.v1.AnnotateA" + + "ssessmentRequest.ReasonB\004\342A\001\001\022\030\n\naccount" + + "_id\030\007 \001(\tB\004\342A\001\001\022\037\n\021hashed_account_id\030\004 \001" + + "(\014B\004\342A\001\001\022V\n\021transaction_event\030\005 \001(\01325.go" + + "ogle.cloud.recaptchaenterprise.v1.Transa" + + "ctionEventB\004\342A\001\001\"~\n\nAnnotation\022\032\n\026ANNOTA" + + "TION_UNSPECIFIED\020\000\022\016\n\nLEGITIMATE\020\001\022\016\n\nFR" + + "AUDULENT\020\002\022\030\n\020PASSWORD_CORRECT\020\003\032\002\010\001\022\032\n\022" + + "PASSWORD_INCORRECT\020\004\032\002\010\001\"\317\002\n\006Reason\022\026\n\022R" + + "EASON_UNSPECIFIED\020\000\022\016\n\nCHARGEBACK\020\001\022\024\n\020C" + + "HARGEBACK_FRAUD\020\010\022\026\n\022CHARGEBACK_DISPUTE\020" + + "\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FRAUD\020\013\022\030\n\024TRANS" + + "ACTION_ACCEPTED\020\014\022\030\n\024TRANSACTION_DECLINE" + + "D\020\r\022\026\n\022PAYMENT_HEURISTICS\020\002\022\030\n\024INITIATED" + + "_TWO_FACTOR\020\007\022\025\n\021PASSED_TWO_FACTOR\020\003\022\025\n\021" + + "FAILED_TWO_FACTOR\020\004\022\024\n\020CORRECT_PASSWORD\020" + + "\005\022\026\n\022INCORRECT_PASSWORD\020\006\022\017\n\013SOCIAL_SPAM" + + "\020\016\"\034\n\032AnnotateAssessmentResponse\"\266\001\n\030End" + + "pointVerificationInfo\022\027\n\remail_address\030\001" + + " \001(\tH\000\022\026\n\014phone_number\030\002 \001(\tH\000\022\033\n\rreques" + + "t_token\030\003 \001(\tB\004\342A\001\003\022@\n\026last_verification" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + + "\004\342A\001\003B\n\n\010endpoint\"\336\004\n\027AccountVerificatio" + + "nInfo\022V\n\tendpoints\030\001 \003(\0132=.google.cloud." + + "recaptchaenterprise.v1.EndpointVerificat" + + "ionInfoB\004\342A\001\001\022\033\n\rlanguage_code\030\003 \001(\tB\004\342A" + + "\001\001\022m\n\032latest_verification_result\030\007 \001(\0162C" + + ".google.cloud.recaptchaenterprise.v1.Acc" + + "ountVerificationInfo.ResultB\004\342A\001\003\022\024\n\010use" + + "rname\030\002 \001(\tB\002\030\001\"\310\002\n\006Result\022\026\n\022RESULT_UNS" + + "PECIFIED\020\000\022\031\n\025SUCCESS_USER_VERIFIED\020\001\022\033\n" + + "\027ERROR_USER_NOT_VERIFIED\020\002\022$\n ERROR_SITE" + + "_ONBOARDING_INCOMPLETE\020\003\022\037\n\033ERROR_RECIPI" + + "ENT_NOT_ALLOWED\020\004\022)\n%ERROR_RECIPIENT_ABU" + + "SE_LIMIT_EXHAUSTED\020\005\022\033\n\027ERROR_CRITICAL_I" + + "NTERNAL\020\006\022\"\n\036ERROR_CUSTOMER_QUOTA_EXHAUS" + + "TED\020\007\022\037\n\033ERROR_VERIFICATION_BYPASSED\020\010\022\032" + + "\n\026ERROR_VERDICT_MISMATCH\020\t\"\320\001\n\037PrivatePa" + + "sswordLeakVerification\022 \n\022lookup_hash_pr" + + "efix\030\001 \001(\014B\004\342A\001\002\022-\n\037encrypted_user_crede" + + "ntials_hash\030\002 \001(\014B\004\342A\001\001\022+\n\035encrypted_lea" + + "k_match_prefixes\030\003 \003(\014B\004\342A\001\003\022/\n!reencryp" + + "ted_user_credentials_hash\030\004 \001(\014B\004\342A\001\003\"\322\007" + + "\n\nAssessment\022\023\n\004name\030\001 \001(\tB\005\342A\002\003\010\022?\n\005eve" + + "nt\030\002 \001(\0132*.google.cloud.recaptchaenterpr" + + "ise.v1.EventB\004\342A\001\001\022N\n\rrisk_analysis\030\003 \001(" + + "\01321.google.cloud.recaptchaenterprise.v1." + + "RiskAnalysisB\004\342A\001\003\022T\n\020token_properties\030\004" + + " \001(\01324.google.cloud.recaptchaenterprise." + + "v1.TokenPropertiesB\004\342A\001\003\022`\n\024account_veri" + + "fication\030\005 \001(\0132<.google.cloud.recaptchae" + + "nterprise.v1.AccountVerificationInfoB\004\342A" + + "\001\001\022i\n\033account_defender_assessment\030\006 \001(\0132" + + ">.google.cloud.recaptchaenterprise.v1.Ac" + + "countDefenderAssessmentB\004\342A\001\003\022v\n\"private" + + "_password_leak_verification\030\010 \001(\0132D.goog" + + "le.cloud.recaptchaenterprise.v1.PrivateP" + + "asswordLeakVerificationB\004\342A\001\001\022g\n\032firewal" + + "l_policy_assessment\030\n \001(\0132=.google.cloud" + + ".recaptchaenterprise.v1.FirewallPolicyAs" + + "sessmentB\004\342A\001\003\022i\n\033fraud_prevention_asses" + + "sment\030\013 \001(\0132>.google.cloud.recaptchaente" + + "rprise.v1.FraudPreventionAssessmentB\004\342A\001" + + "\003\022N\n\rfraud_signals\030\r \001(\01321.google.cloud." + + "recaptchaenterprise.v1.FraudSignalsB\004\342A\001" + + "\003:_\352A\\\n-recaptchaenterprise.googleapis.c" + + "om/Assessment\022+projects/{project}/assess" + + "ments/{assessment}\"\371\003\n\005Event\022\023\n\005token\030\001 " + + "\001(\tB\004\342A\001\001\022\026\n\010site_key\030\002 \001(\tB\004\342A\001\001\022\030\n\nuse" + + "r_agent\030\003 \001(\tB\004\342A\001\001\022\035\n\017user_ip_address\030\004" + + " \001(\tB\004\342A\001\001\022\035\n\017expected_action\030\005 \001(\tB\004\342A\001" + + "\001\022!\n\021hashed_account_id\030\006 \001(\014B\006\030\001\342A\001\001\022\025\n\007" + + "express\030\016 \001(\010B\004\342A\001\001\022\033\n\rrequested_uri\030\010 \001" + + "(\tB\004\342A\001\001\022\"\n\024waf_token_assessment\030\t \001(\010B\004" + + "\342A\001\001\022\021\n\003ja3\030\n \001(\tB\004\342A\001\001\022\025\n\007headers\030\013 \003(\t" + + "B\004\342A\001\001\022(\n\032firewall_policy_evaluation\030\014 \001" + + "(\010B\004\342A\001\001\022T\n\020transaction_data\030\r \001(\01324.goo" + + "gle.cloud.recaptchaenterprise.v1.Transac" + + "tionDataB\004\342A\001\001\022F\n\tuser_info\030\017 \001(\0132-.goog" + + "le.cloud.recaptchaenterprise.v1.UserInfo" + + "B\004\342A\001\001\"\300\n\n\017TransactionData\022\033\n\016transactio" + + "n_id\030\013 \001(\tH\000\210\001\001\022\034\n\016payment_method\030\001 \001(\tB" + + "\004\342A\001\001\022\026\n\010card_bin\030\002 \001(\tB\004\342A\001\001\022\034\n\016card_la" + + "st_four\030\003 \001(\tB\004\342A\001\001\022\033\n\rcurrency_code\030\004 \001" + + "(\tB\004\342A\001\001\022\023\n\005value\030\005 \001(\001B\004\342A\001\001\022\034\n\016shippin" + + "g_value\030\014 \001(\001B\004\342A\001\001\022\\\n\020shipping_address\030" + + "\006 \001(\0132<.google.cloud.recaptchaenterprise" + + ".v1.TransactionData.AddressB\004\342A\001\001\022[\n\017bil" + + "ling_address\030\007 \001(\0132<.google.cloud.recapt" + + "chaenterprise.v1.TransactionData.Address" + + "B\004\342A\001\001\022M\n\004user\030\010 \001(\01329.google.cloud.reca" + + "ptchaenterprise.v1.TransactionData.UserB" + + "\004\342A\001\001\022R\n\tmerchants\030\r \003(\01329.google.cloud." + + "recaptchaenterprise.v1.TransactionData.U" + + "serB\004\342A\001\001\022N\n\005items\030\016 \003(\01329.google.cloud." + + "recaptchaenterprise.v1.TransactionData.I" + + "temB\004\342A\001\001\022\\\n\014gateway_info\030\n \001(\0132@.google" + + ".cloud.recaptchaenterprise.v1.Transactio" + + "nData.GatewayInfoB\004\342A\001\001\032\252\001\n\007Address\022\027\n\tr" + + "ecipient\030\001 \001(\tB\004\342A\001\001\022\025\n\007address\030\002 \003(\tB\004\342" + + "A\001\001\022\026\n\010locality\030\003 \001(\tB\004\342A\001\001\022!\n\023administr" + + "ative_area\030\004 \001(\tB\004\342A\001\001\022\031\n\013region_code\030\005 " + + "\001(\tB\004\342A\001\001\022\031\n\013postal_code\030\006 \001(\tB\004\342A\001\001\032\250\001\n" + + "\004User\022\030\n\naccount_id\030\006 \001(\tB\004\342A\001\001\022\031\n\013creat" + + "ion_ms\030\001 \001(\003B\004\342A\001\001\022\023\n\005email\030\002 \001(\tB\004\342A\001\001\022" + + "\034\n\016email_verified\030\003 \001(\010B\004\342A\001\001\022\032\n\014phone_n" + + "umber\030\004 \001(\tB\004\342A\001\001\022\034\n\016phone_verified\030\005 \001(" + + "\010B\004\342A\001\001\032j\n\004Item\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022\023\n\005v" + + "alue\030\002 \001(\001B\004\342A\001\001\022\026\n\010quantity\030\003 \001(\003B\004\342A\001\001" + + "\022!\n\023merchant_account_id\030\004 \001(\tB\004\342A\001\001\032\210\001\n\013" + + "GatewayInfo\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022#\n\025gatew" + + "ay_response_code\030\002 \001(\tB\004\342A\001\001\022\037\n\021avs_resp" + + "onse_code\030\003 \001(\tB\004\342A\001\001\022\037\n\021cvv_response_co" + + "de\030\004 \001(\tB\004\342A\001\001B\021\n\017_transaction_id\"\250\001\n\010Us" + + "erInfo\022=\n\023create_account_time\030\001 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\001\022\030\n\naccount" + + "_id\030\002 \001(\tB\004\342A\001\001\022C\n\010user_ids\030\003 \003(\0132+.goog" + + "le.cloud.recaptchaenterprise.v1.UserIdB\004" + + "\342A\001\001\"c\n\006UserId\022\025\n\005email\030\001 \001(\tB\004\342A\001\001H\000\022\034\n" + + "\014phone_number\030\002 \001(\tB\004\342A\001\001H\000\022\030\n\010username\030" + + "\003 \001(\tB\004\342A\001\001H\000B\n\n\010id_oneof\"\226\003\n\014RiskAnalys" + + "is\022\023\n\005score\030\001 \001(\002B\004\342A\001\003\022]\n\007reasons\030\002 \003(\016" + + "2F.google.cloud.recaptchaenterprise.v1.R" + + "iskAnalysis.ClassificationReasonB\004\342A\001\003\022&" + + "\n\030extended_verdict_reasons\030\003 \003(\tB\004\342A\001\003\"\351" + + "\001\n\024ClassificationReason\022%\n!CLASSIFICATIO" + + "N_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032" + + "\n\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_T" + + "RAFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PATTERNS\020\004\022" + + "\030\n\024LOW_CONFIDENCE_SCORE\020\005\022\025\n\021SUSPECTED_C" + + "ARDING\020\006\022\030\n\024SUSPECTED_CHARGEBACK\020\007\"\302\003\n\017T" + + "okenProperties\022\023\n\005valid\030\001 \001(\010B\004\342A\001\003\022`\n\016i" + + "nvalid_reason\030\002 \001(\0162B.google.cloud.recap" + + "tchaenterprise.v1.TokenProperties.Invali" + + "dReasonB\004\342A\001\003\0225\n\013create_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\004\342A\001\003\022\026\n\010hostname" + + "\030\004 \001(\tB\004\342A\001\003\022\"\n\024android_package_name\030\010 \001" + + "(\tB\004\342A\001\003\022\033\n\rios_bundle_id\030\t \001(\tB\004\342A\001\003\022\024\n" + + "\006action\030\005 \001(\tB\004\342A\001\003\"\221\001\n\rInvalidReason\022\036\n" + + "\032INVALID_REASON_UNSPECIFIED\020\000\022\032\n\026UNKNOWN" + + "_INVALID_REASON\020\001\022\r\n\tMALFORMED\020\002\022\013\n\007EXPI" + + "RED\020\003\022\010\n\004DUPE\020\004\022\013\n\007MISSING\020\005\022\021\n\rBROWSER_" + + "ERROR\020\006\"\272\004\n\031FraudPreventionAssessment\022\036\n" + + "\020transaction_risk\030\001 \001(\002B\004\342A\001\003\022\177\n\031stolen_" + + "instrument_verdict\030\002 \001(\0132V.google.cloud." + + "recaptchaenterprise.v1.FraudPreventionAs" + + "sessment.StolenInstrumentVerdictB\004\342A\001\003\022u" + + "\n\024card_testing_verdict\030\003 \001(\0132Q.google.cl" + + "oud.recaptchaenterprise.v1.FraudPreventi" + + "onAssessment.CardTestingVerdictB\004\342A\001\003\022}\n" + + "\030behavioral_trust_verdict\030\004 \001(\0132U.google" + + ".cloud.recaptchaenterprise.v1.FraudPreve" + + "ntionAssessment.BehavioralTrustVerdictB\004" + + "\342A\001\003\032-\n\027StolenInstrumentVerdict\022\022\n\004risk\030" + + "\001 \001(\002B\004\342A\001\003\032(\n\022CardTestingVerdict\022\022\n\004ris" + + "k\030\001 \001(\002B\004\342A\001\003\032-\n\026BehavioralTrustVerdict\022" + + "\023\n\005trust\030\001 \001(\002B\004\342A\001\003\"\350\003\n\014FraudSignals\022Y\n" + + "\014user_signals\030\001 \001(\0132=.google.cloud.recap" + + "tchaenterprise.v1.FraudSignals.UserSigna" + + "lsB\004\342A\001\003\022Y\n\014card_signals\030\002 \001(\0132=.google." + + "cloud.recaptchaenterprise.v1.FraudSignal" + + "s.CardSignalsB\004\342A\001\003\032R\n\013UserSignals\022%\n\027ac" + + "tive_days_lower_bound\030\001 \001(\005B\004\342A\001\003\022\034\n\016syn" + + "thetic_risk\030\002 \001(\002B\004\342A\001\003\032\315\001\n\013CardSignals\022" + + "b\n\013card_labels\030\001 \003(\0162G.google.cloud.reca" + + "ptchaenterprise.v1.FraudSignals.CardSign" + + "als.CardLabelB\004\342A\001\003\"Z\n\tCardLabel\022\032\n\026CARD" + + "_LABEL_UNSPECIFIED\020\000\022\013\n\007PREPAID\020\001\022\013\n\007VIR" + + "TUAL\020\002\022\027\n\023UNEXPECTED_LOCATION\020\003\"\274\002\n\031Acco" + + "untDefenderAssessment\022i\n\006labels\030\001 \003(\0162S." + + "google.cloud.recaptchaenterprise.v1.Acco" + + "untDefenderAssessment.AccountDefenderLab" + + "elB\004\342A\001\003\"\263\001\n\024AccountDefenderLabel\022&\n\"ACC" + + "OUNT_DEFENDER_LABEL_UNSPECIFIED\020\000\022\021\n\rPRO" + + "FILE_MATCH\020\001\022\035\n\031SUSPICIOUS_LOGIN_ACTIVIT" + + "Y\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_CREATION\020\003\022 \n\034" + + "RELATED_ACCOUNTS_NUMBER_HIGH\020\004\"\225\001\n\020Creat" + + "eKeyRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cl" + + "oudresourcemanager.googleapis.com/Projec" + + "t\022;\n\003key\030\002 \001(\0132(.google.cloud.recaptchae" + + "nterprise.v1.KeyB\004\342A\001\002\"\212\001\n\017ListKeysReque" + + "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022\027\n\tpage" + + "_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342" + + "A\001\001\"c\n\020ListKeysResponse\0226\n\004keys\030\001 \003(\0132(." + + "google.cloud.recaptchaenterprise.v1.Key\022" + + "\027\n\017next_page_token\030\002 \001(\t\"^\n\036RetrieveLega" + + "cySecretKeyRequest\022<\n\003key\030\001 \001(\tB/\342A\001\002\372A(" + + "\n&recaptchaenterprise.googleapis.com/Key" + + "\"N\n\rGetKeyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(" + + "\n&recaptchaenterprise.googleapis.com/Key" + + "\"\206\001\n\020UpdateKeyRequest\022;\n\003key\030\001 \001(\0132(.goo" + + "gle.cloud.recaptchaenterprise.v1.KeyB\004\342A" + + "\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\004\342A\001\001\"Q\n\020DeleteKeyRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaenterpris" + + "e.googleapis.com/Key\"\267\001\n\033CreateFirewallP" + + "olicyRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022R\n\017firewall_policy\030\002 \001(\01323.google.clo" + + "ud.recaptchaenterprise.v1.FirewallPolicy" + + "B\004\342A\001\002\"\226\001\n\033ListFirewallPoliciesRequest\022D" + + "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022\027\n\tpage_siz" + + "e\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"" + + "\207\001\n\034ListFirewallPoliciesResponse\022N\n\021fire" + + "wall_policies\030\001 \003(\01323.google.cloud.recap" + + "tchaenterprise.v1.FirewallPolicy\022\027\n\017next" + + "_page_token\030\002 \001(\t\"d\n\030GetFirewallPolicyRe" + + "quest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchae" + + "nterprise.googleapis.com/FirewallPolicy\"" + + "\250\001\n\033UpdateFirewallPolicyRequest\022R\n\017firew" + + "all_policy\030\001 \001(\01323.google.cloud.recaptch" + + "aenterprise.v1.FirewallPolicyB\004\342A\001\002\0225\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\001\"g\n\033DeleteFirewallPolicyReques" + + "t\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchaenter" + + "prise.googleapis.com/FirewallPolicy\"t\n\021M" + + "igrateKeyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&recaptchaenterprise.googleapis.com/Key\022" + + " \n\022skip_billing_check\030\002 \001(\010B\004\342A\001\001\"V\n\021Get" + + "MetricsRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*r" + + "ecaptchaenterprise.googleapis.com/Metric" + + "s\"\302\002\n\007Metrics\022\023\n\004name\030\004 \001(\tB\005\342A\002\010\003\022.\n\nst" + + "art_time\030\001 \001(\0132\032.google.protobuf.Timesta" + + "mp\022H\n\rscore_metrics\030\002 \003(\01321.google.cloud" + + ".recaptchaenterprise.v1.ScoreMetrics\022P\n\021" + + "challenge_metrics\030\003 \003(\01325.google.cloud.r" + + "ecaptchaenterprise.v1.ChallengeMetrics:V" + + "\352AS\n*recaptchaenterprise.googleapis.com/" + + "Metrics\022%projects/{project}/keys/{key}/m" + + "etrics\"<\n\037RetrieveLegacySecretKeyRespons" + + "e\022\031\n\021legacy_secret_key\030\001 \001(\t\"\331\005\n\003Key\022\022\n\004" + + "name\030\001 \001(\tB\004\342A\001\010\022\032\n\014display_name\030\002 \001(\tB\004" + + "\342A\001\002\022K\n\014web_settings\030\003 \001(\01323.google.clou" + + "d.recaptchaenterprise.v1.WebKeySettingsH" + + "\000\022S\n\020android_settings\030\004 \001(\01327.google.clo" + + "ud.recaptchaenterprise.v1.AndroidKeySett" + + "ingsH\000\022K\n\014ios_settings\030\005 \001(\01323.google.cl" + + "oud.recaptchaenterprise.v1.IOSKeySetting" + + "sH\000\022J\n\006labels\030\006 \003(\01324.google.cloud.recap" + + "tchaenterprise.v1.Key.LabelsEntryB\004\342A\001\001\022" + + "5\n\013create_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\022R\n\017testing_options\030\t \001(\0132" + + "3.google.cloud.recaptchaenterprise.v1.Te" + + "stingOptionsB\004\342A\001\001\022L\n\014waf_settings\030\n \001(\013" + + "20.google.cloud.recaptchaenterprise.v1.W" + + "afSettingsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:J\352AG\n&recaptchae" + + "nterprise.googleapis.com/Key\022\035projects/{" + + "project}/keys/{key}B\023\n\021platform_settings" + + "\"\364\001\n\016TestingOptions\022\033\n\rtesting_score\030\001 \001" + + "(\002B\004\342A\001\001\022e\n\021testing_challenge\030\002 \001(\0162D.go" + + "ogle.cloud.recaptchaenterprise.v1.Testin" + + "gOptions.TestingChallengeB\004\342A\001\001\"^\n\020Testi" + + "ngChallenge\022!\n\035TESTING_CHALLENGE_UNSPECI" + + "FIED\020\000\022\r\n\tNOCAPTCHA\020\001\022\030\n\024UNSOLVABLE_CHAL" + + "LENGE\020\002\"\251\004\n\016WebKeySettings\022\037\n\021allow_all_" + + "domains\030\003 \001(\010B\004\342A\001\001\022\035\n\017allowed_domains\030\001" + + " \003(\tB\004\342A\001\001\022\037\n\021allow_amp_traffic\030\002 \001(\010B\004\342" + + "A\001\001\022c\n\020integration_type\030\004 \001(\0162C.google.c" + + "loud.recaptchaenterprise.v1.WebKeySettin" + + "gs.IntegrationTypeB\004\342A\001\002\022|\n\035challenge_se" + + "curity_preference\030\005 \001(\0162O.google.cloud.r" + + "ecaptchaenterprise.v1.WebKeySettings.Cha" + + "llengeSecurityPreferenceB\004\342A\001\001\"[\n\017Integr" + + "ationType\022 \n\034INTEGRATION_TYPE_UNSPECIFIE" + + "D\020\000\022\t\n\005SCORE\020\001\022\014\n\010CHECKBOX\020\002\022\r\n\tINVISIBL" + + "E\020\003\"v\n\033ChallengeSecurityPreference\022-\n)CH" + + "ALLENGE_SECURITY_PREFERENCE_UNSPECIFIED\020" + + "\000\022\r\n\tUSABILITY\020\001\022\013\n\007BALANCE\020\002\022\014\n\010SECURIT" + + "Y\020\003\"\231\001\n\022AndroidKeySettings\022%\n\027allow_all_" + + "package_names\030\002 \001(\010B\004\342A\001\001\022#\n\025allowed_pac" + + "kage_names\030\001 \003(\tB\004\342A\001\001\0227\n)support_non_go" + + "ogle_app_store_distribution\030\003 \001(\010B\004\342A\001\001\"" + + "\257\001\n\016IOSKeySettings\022\"\n\024allow_all_bundle_i" + + "ds\030\002 \001(\010B\004\342A\001\001\022 \n\022allowed_bundle_ids\030\001 \003" + + "(\tB\004\342A\001\001\022W\n\022apple_developer_id\030\003 \001(\01325.g" + + "oogle.cloud.recaptchaenterprise.v1.Apple" + + "DeveloperIdB\004\342A\001\001\"[\n\020AppleDeveloperId\022\032\n" + + "\013private_key\030\001 \001(\tB\005\342A\002\002\004\022\024\n\006key_id\030\002 \001(" + + "\tB\004\342A\001\002\022\025\n\007team_id\030\003 \001(\tB\004\342A\001\002\"\251\001\n\021Score" + + "Distribution\022_\n\rscore_buckets\030\001 \003(\0132H.go" + + "ogle.cloud.recaptchaenterprise.v1.ScoreD" + + "istribution.ScoreBucketsEntry\0323\n\021ScoreBu" + + "cketsEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\003:\002" + + "8\001\"\253\002\n\014ScoreMetrics\022O\n\017overall_metrics\030\001" + + " \001(\01326.google.cloud.recaptchaenterprise." + + "v1.ScoreDistribution\022\\\n\016action_metrics\030\002" + + " \003(\0132D.google.cloud.recaptchaenterprise." + + "v1.ScoreMetrics.ActionMetricsEntry\032l\n\022Ac" + + "tionMetricsEntry\022\013\n\003key\030\001 \001(\t\022E\n\005value\030\002" + + " \001(\01326.google.cloud.recaptchaenterprise." + + "v1.ScoreDistribution:\0028\001\"o\n\020ChallengeMet" + + "rics\022\026\n\016pageload_count\030\001 \001(\003\022\027\n\017nocaptch" + + "a_count\030\002 \001(\003\022\024\n\014failed_count\030\003 \001(\003\022\024\n\014p" + + "assed_count\030\004 \001(\003\"\227\001\n\030FirewallPolicyAsse" + + "ssment\022\'\n\005error\030\005 \001(\0132\022.google.rpc.Statu" + + "sB\004\342A\001\003\022R\n\017firewall_policy\030\010 \001(\01323.googl" + + "e.cloud.recaptchaenterprise.v1.FirewallP" + + "olicyB\004\342A\001\003\"\357\004\n\016FirewallAction\022P\n\005allow\030" + + "\001 \001(\0132?.google.cloud.recaptchaenterprise" + + ".v1.FirewallAction.AllowActionH\000\022P\n\005bloc" + + "k\030\002 \001(\0132?.google.cloud.recaptchaenterpri" + + "se.v1.FirewallAction.BlockActionH\000\022V\n\010re" + + "direct\030\005 \001(\0132B.google.cloud.recaptchaent" + + "erprise.v1.FirewallAction.RedirectAction" + + "H\000\022Z\n\nsubstitute\030\003 \001(\0132D.google.cloud.re" + + "captchaenterprise.v1.FirewallAction.Subs" + + "tituteActionH\000\022Y\n\nset_header\030\004 \001(\0132C.goo" + + "gle.cloud.recaptchaenterprise.v1.Firewal" + + "lAction.SetHeaderActionH\000\032\r\n\013AllowAction" + + "\032\r\n\013BlockAction\032\020\n\016RedirectAction\032&\n\020Sub" + + "stituteAction\022\022\n\004path\030\001 \001(\tB\004\342A\001\001\0329\n\017Set" + + "HeaderAction\022\021\n\003key\030\001 \001(\tB\004\342A\001\001\022\023\n\005value" + + "\030\002 \001(\tB\004\342A\001\001B\027\n\025firewall_action_oneof\"\246\002" + + "\n\016FirewallPolicy\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\022\031\n\013" + + "description\030\002 \001(\tB\004\342A\001\001\022\022\n\004path\030\004 \001(\tB\004\342" + + "A\001\001\022\027\n\tcondition\030\005 \001(\tB\004\342A\001\001\022J\n\007actions\030" + + "\006 \003(\01323.google.cloud.recaptchaenterprise" + + ".v1.FirewallActionB\004\342A\001\001:l\352Ai\n1recaptcha" + + "enterprise.googleapis.com/FirewallPolicy" + + "\0224projects/{project}/firewallpolicies/{f" + + "irewallpolicy}\"\271\001\n)ListRelatedAccountGro" + + "upMembershipsRequest\022Y\n\006parent\030\001 \001(\tBI\342A" + + "\001\002\372AB\022@recaptchaenterprise.googleapis.co" + + "m/RelatedAccountGroupMembership\022\027\n\tpage_" + + "size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A" + + "\001\001\"\264\001\n*ListRelatedAccountGroupMembership" + + "sResponse\022m\n!related_account_group_membe" + + "rships\030\001 \003(\0132B.google.cloud.recaptchaent" + + "erprise.v1.RelatedAccountGroupMembership" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n\037ListRelate" + + "dAccountGroupsRequest\022O\n\006parent\030\001 \001(\tB?\342" + + "A\001\002\372A8\0226recaptchaenterprise.googleapis.c" + + "om/RelatedAccountGroup\022\027\n\tpage_size\030\002 \001(" + + "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\225\001\n Li" + + "stRelatedAccountGroupsResponse\022X\n\026relate" + + "d_account_groups\030\001 \003(\01328.google.cloud.re" + + "captchaenterprise.v1.RelatedAccountGroup" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\371\001\n+SearchRela" + + "tedAccountGroupMembershipsRequest\022Z\n\007pro" + + "ject\030\001 \001(\tBI\342A\001\002\372AB\022@recaptchaenterprise" + + ".googleapis.com/RelatedAccountGroupMembe" + + "rship\022\030\n\naccount_id\030\005 \001(\tB\004\342A\001\001\022!\n\021hashe" + + "d_account_id\030\002 \001(\014B\006\030\001\342A\001\001\022\027\n\tpage_size\030" + + "\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\"\266\001" + + "\n,SearchRelatedAccountGroupMembershipsRe" + + "sponse\022m\n!related_account_group_membersh" + + "ips\030\001 \003(\0132B.google.cloud.recaptchaenterp" + + "rise.v1.RelatedAccountGroupMembership\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\315\002\n\035RelatedAccoun" + + "tGroupMembership\022X\n\004name\030\001 \001(\tBJ\342A\002\010\002\372AB" + + "\n@recaptchaenterprise.googleapis.com/Rel" + + "atedAccountGroupMembership\022\022\n\naccount_id" + + "\030\004 \001(\t\022\035\n\021hashed_account_id\030\002 \001(\014B\002\030\001:\236\001" + + "\352A\232\001\n@recaptchaenterprise.googleapis.com" + + "/RelatedAccountGroupMembership\022Vprojects" + + "/{project}/relatedaccountgroups/{related" + + "accountgroup}/memberships/{membership}\"\341" + + "\001\n\023RelatedAccountGroup\022N\n\004name\030\001 \001(\tB@\342A" + + "\002\010\002\372A8\n6recaptchaenterprise.googleapis.c" + + "om/RelatedAccountGroup:z\352Aw\n6recaptchaen" + + "terprise.googleapis.com/RelatedAccountGr" + + "oup\022=projects/{project}/relatedaccountgr", + "oups/{relatedaccountgroup}\"\355\002\n\013WafSettin" + + "gs\022V\n\013waf_service\030\001 \001(\0162;.google.cloud.r" + + "ecaptchaenterprise.v1.WafSettings.WafSer" + + "viceB\004\342A\001\002\022V\n\013waf_feature\030\002 \001(\0162;.google" + + ".cloud.recaptchaenterprise.v1.WafSetting" + + "s.WafFeatureB\004\342A\001\002\"o\n\nWafFeature\022\033\n\027WAF_" + + "FEATURE_UNSPECIFIED\020\000\022\022\n\016CHALLENGE_PAGE\020" + + "\001\022\021\n\rSESSION_TOKEN\020\002\022\020\n\014ACTION_TOKEN\020\003\022\013" + + "\n\007EXPRESS\020\005\"=\n\nWafService\022\033\n\027WAF_SERVICE" + + "_UNSPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006FASTLY\020\0032\346\035\n\032R" + + "ecaptchaEnterpriseService\022\316\001\n\020CreateAsse" + + "ssment\022<.google.cloud.recaptchaenterpris" + + "e.v1.CreateAssessmentRequest\032/.google.cl" + + "oud.recaptchaenterprise.v1.Assessment\"K\332" + + "A\021parent,assessment\202\323\344\223\0021\"#/v1/{parent=p" + + "rojects/*}/assessments:\nassessment\022\340\001\n\022A" + + "nnotateAssessment\022>.google.cloud.recaptc" + + "haenterprise.v1.AnnotateAssessmentReques" + + "t\032?.google.cloud.recaptchaenterprise.v1." + + "AnnotateAssessmentResponse\"I\332A\017name,anno" + + "tation\202\323\344\223\0021\",/v1/{name=projects/*/asses" + + "sments/*}:annotate:\001*\022\244\001\n\tCreateKey\0225.go" + + "ogle.cloud.recaptchaenterprise.v1.Create" + + "KeyRequest\032(.google.cloud.recaptchaenter" + + "prise.v1.Key\"6\332A\nparent,key\202\323\344\223\002#\"\034/v1/{" + + "parent=projects/*}/keys:\003key\022\246\001\n\010ListKey" + + "s\0224.google.cloud.recaptchaenterprise.v1." + + "ListKeysRequest\0325.google.cloud.recaptcha" + + "enterprise.v1.ListKeysResponse\"-\332A\006paren" + + "t\202\323\344\223\002\036\022\034/v1/{parent=projects/*}/keys\022\347\001" + + "\n\027RetrieveLegacySecretKey\022C.google.cloud" + + ".recaptchaenterprise.v1.RetrieveLegacySe" + + "cretKeyRequest\032D.google.cloud.recaptchae" + + "nterprise.v1.RetrieveLegacySecretKeyResp" + + "onse\"A\332A\003key\202\323\344\223\0025\0223/v1/{key=projects/*/" + + "keys/*}:retrieveLegacySecretKey\022\223\001\n\006GetK" + + "ey\0222.google.cloud.recaptchaenterprise.v1" + + ".GetKeyRequest\032(.google.cloud.recaptchae" + + "nterprise.v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{na" + + "me=projects/*/keys/*}\022\255\001\n\tUpdateKey\0225.go" + + "ogle.cloud.recaptchaenterprise.v1.Update" + + "KeyRequest\032(.google.cloud.recaptchaenter" + + "prise.v1.Key\"?\332A\017key,update_mask\202\323\344\223\002\'2 " + + "/v1/{key.name=projects/*/keys/*}:\003key\022\207\001" + + "\n\tDeleteKey\0225.google.cloud.recaptchaente" + + "rprise.v1.DeleteKeyRequest\032\026.google.prot" + + "obuf.Empty\"+\332A\004name\202\323\344\223\002\036*\034/v1/{name=pro" + + "jects/*/keys/*}\022\237\001\n\nMigrateKey\0226.google." + + "cloud.recaptchaenterprise.v1.MigrateKeyR" + + "equest\032(.google.cloud.recaptchaenterpris" + + "e.v1.Key\"/\202\323\344\223\002)\"$/v1/{name=projects/*/k" + + "eys/*}:migrate:\001*\022\247\001\n\nGetMetrics\0226.googl" + + "e.cloud.recaptchaenterprise.v1.GetMetric" + + "sRequest\032,.google.cloud.recaptchaenterpr" + + "ise.v1.Metrics\"3\332A\004name\202\323\344\223\002&\022$/v1/{name" + + "=projects/*/keys/*/metrics}\022\351\001\n\024CreateFi" + + "rewallPolicy\022@.google.cloud.recaptchaent" + + "erprise.v1.CreateFirewallPolicyRequest\0323" + + ".google.cloud.recaptchaenterprise.v1.Fir" + + "ewallPolicy\"Z\332A\026parent,firewall_policy\202\323" + + "\344\223\002;\"(/v1/{parent=projects/*}/firewallpo" + + "licies:\017firewall_policy\022\326\001\n\024ListFirewall" + + "Policies\022@.google.cloud.recaptchaenterpr" + + "ise.v1.ListFirewallPoliciesRequest\032A.goo" + + "gle.cloud.recaptchaenterprise.v1.ListFir" + + "ewallPoliciesResponse\"9\332A\006parent\202\323\344\223\002*\022(" + + "/v1/{parent=projects/*}/firewallpolicies" + + "\022\300\001\n\021GetFirewallPolicy\022=.google.cloud.re" + + "captchaenterprise.v1.GetFirewallPolicyRe" + + "quest\0323.google.cloud.recaptchaenterprise" + + ".v1.FirewallPolicy\"7\332A\004name\202\323\344\223\002*\022(/v1/{" + + "name=projects/*/firewallpolicies/*}\022\376\001\n\024" + + "UpdateFirewallPolicy\022@.google.cloud.reca" + + "ptchaenterprise.v1.UpdateFirewallPolicyR" + + "equest\0323.google.cloud.recaptchaenterpris" + + "e.v1.FirewallPolicy\"o\332A\033firewall_policy," + + "update_mask\202\323\344\223\002K28/v1/{firewall_policy." + + "name=projects/*/firewallpolicies/*}:\017fir" + + "ewall_policy\022\251\001\n\024DeleteFirewallPolicy\022@." + + "google.cloud.recaptchaenterprise.v1.Dele" + + "teFirewallPolicyRequest\032\026.google.protobu" + + "f.Empty\"7\332A\004name\202\323\344\223\002**(/v1/{name=projec" + + "ts/*/firewallpolicies/*}\022\346\001\n\030ListRelated" + + "AccountGroups\022D.google.cloud.recaptchaen" + + "terprise.v1.ListRelatedAccountGroupsRequ" + + "est\032E.google.cloud.recaptchaenterprise.v" + + "1.ListRelatedAccountGroupsResponse\"=\332A\006p" + + "arent\202\323\344\223\002.\022,/v1/{parent=projects/*}/rel" + + "atedaccountgroups\022\222\002\n\"ListRelatedAccount" + + "GroupMemberships\022N.google.cloud.recaptch" + + "aenterprise.v1.ListRelatedAccountGroupMe" + + "mbershipsRequest\032O.google.cloud.recaptch" + + "aenterprise.v1.ListRelatedAccountGroupMe" + + "mbershipsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/" + + "{parent=projects/*/relatedaccountgroups/" + + "*}/memberships\022\262\002\n$SearchRelatedAccountG" + + "roupMemberships\022P.google.cloud.recaptcha" + + "enterprise.v1.SearchRelatedAccountGroupM" + + "embershipsRequest\032Q.google.cloud.recaptc" + + "haenterprise.v1.SearchRelatedAccountGrou" + + "pMembershipsResponse\"e\332A\031project,hashed_" + + "account_id\202\323\344\223\002C\">/v1/{project=projects/" + + "*}/relatedaccountgroupmemberships:search" + + ":\001*\032V\312A\"recaptchaenterprise.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\231\002\n!com.google.recaptchaente" + + "rprise.v1B\030RecaptchaEnterpriseProtoP\001Z\\c" + + "loud.google.com/go/recaptchaenterprise/v" + + "2/apiv1/recaptchaenterprisepb;recaptchae" + + "nterprisepb\242\002\004GCRE\252\002#Google.Cloud.Recapt" + + "chaEnterprise.V1\312\002#Google\\Cloud\\Recaptch" + + "aEnterprise\\V1\352\002&Google::Cloud::Recaptch" + + "aEnterprise::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.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor, + new java.lang.String[] { + "Parent", "Assessment", + }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor, + new java.lang.String[] { + "EventType", "Reason", "Value", "EventTime", + }); + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor, + new java.lang.String[] { + "Name", "Annotation", "Reasons", "AccountId", "HashedAccountId", "TransactionEvent", + }); + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor, + new java.lang.String[] { + "EmailAddress", "PhoneNumber", "RequestToken", "LastVerificationTime", "Endpoint", + }); + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor, + new java.lang.String[] { + "Endpoints", "LanguageCode", "LatestVerificationResult", "Username", + }); + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor, + new java.lang.String[] { + "LookupHashPrefix", + "EncryptedUserCredentialsHash", + "EncryptedLeakMatchPrefixes", + "ReencryptedUserCredentialsHash", + }); + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor, + new java.lang.String[] { + "Name", + "Event", + "RiskAnalysis", + "TokenProperties", + "AccountVerification", + "AccountDefenderAssessment", + "PrivatePasswordLeakVerification", + "FirewallPolicyAssessment", + "FraudPreventionAssessment", + "FraudSignals", + }); + internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor, + new java.lang.String[] { + "Token", + "SiteKey", + "UserAgent", + "UserIpAddress", + "ExpectedAction", + "HashedAccountId", + "Express", + "RequestedUri", + "WafTokenAssessment", + "Ja3", + "Headers", + "FirewallPolicyEvaluation", + "TransactionData", + "UserInfo", + }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor, + new java.lang.String[] { + "TransactionId", + "PaymentMethod", + "CardBin", + "CardLastFour", + "CurrencyCode", + "Value", + "ShippingValue", + "ShippingAddress", + "BillingAddress", + "User", + "Merchants", + "Items", + "GatewayInfo", + "TransactionId", + }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor, + new java.lang.String[] { + "Recipient", "Address", "Locality", "AdministrativeArea", "RegionCode", "PostalCode", + }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor, + new java.lang.String[] { + "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified", + }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor, + new java.lang.String[] { + "Name", "Value", "Quantity", "MerchantAccountId", + }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor, + new java.lang.String[] { + "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", + }); + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor, + new java.lang.String[] { + "CreateAccountTime", "AccountId", "UserIds", + }); + internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor, + new java.lang.String[] { + "Email", "PhoneNumber", "Username", "IdOneof", + }); + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor, + new java.lang.String[] { + "Score", "Reasons", "ExtendedVerdictReasons", + }); + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor, + new java.lang.String[] { + "Valid", + "InvalidReason", + "CreateTime", + "Hostname", + "AndroidPackageName", + "IosBundleId", + "Action", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor, + new java.lang.String[] { + "TransactionRisk", + "StolenInstrumentVerdict", + "CardTestingVerdict", + "BehavioralTrustVerdict", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor, + new java.lang.String[] { + "Risk", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor, + new java.lang.String[] { + "Risk", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor, + new java.lang.String[] { + "Trust", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor, + new java.lang.String[] { + "UserSignals", "CardSignals", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor, + new java.lang.String[] { + "ActiveDaysLowerBound", "SyntheticRisk", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor, + new java.lang.String[] { + "CardLabels", + }); + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor, + new java.lang.String[] { + "Labels", + }); + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor, + new java.lang.String[] { + "Parent", "Key", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor, + new java.lang.String[] { + "Keys", "NextPageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor, + new java.lang.String[] { + "Key", + }); + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor, + new java.lang.String[] { + "Key", "UpdateMask", + }); + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "FirewallPolicy", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor, + new java.lang.String[] { + "FirewallPolicies", "NextPageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor, + new java.lang.String[] { + "FirewallPolicy", "UpdateMask", + }); + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor, + new java.lang.String[] { + "Name", "SkipBillingCheck", + }); + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor, + new java.lang.String[] { + "Name", "StartTime", "ScoreMetrics", "ChallengeMetrics", + }); + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor, + new java.lang.String[] { + "LegacySecretKey", + }); + internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "WebSettings", + "AndroidSettings", + "IosSettings", + "Labels", + "CreateTime", + "TestingOptions", + "WafSettings", + "PlatformSettings", + }); + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor, + new java.lang.String[] { + "TestingScore", "TestingChallenge", + }); + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor, + new java.lang.String[] { + "AllowAllDomains", + "AllowedDomains", + "AllowAmpTraffic", + "IntegrationType", + "ChallengeSecurityPreference", + }); + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor, + new java.lang.String[] { + "AllowAllPackageNames", "AllowedPackageNames", "SupportNonGoogleAppStoreDistribution", + }); + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor, + new java.lang.String[] { + "AllowAllBundleIds", "AllowedBundleIds", "AppleDeveloperId", + }); + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor, + new java.lang.String[] { + "PrivateKey", "KeyId", "TeamId", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor, + new java.lang.String[] { + "ScoreBuckets", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor, + new java.lang.String[] { + "OverallMetrics", "ActionMetrics", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor, + new java.lang.String[] { + "PageloadCount", "NocaptchaCount", "FailedCount", "PassedCount", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor, + new java.lang.String[] { + "Error", "FirewallPolicy", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor, + new java.lang.String[] { + "Allow", "Block", "Redirect", "Substitute", "SetHeader", "FirewallActionOneof", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor, + new java.lang.String[] { + "Path", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor, + new java.lang.String[] { + "Name", "Description", "Path", "Condition", "Actions", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor, + new java.lang.String[] { + "RelatedAccountGroupMemberships", "NextPageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor, + new java.lang.String[] { + "RelatedAccountGroups", "NextPageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor, + new java.lang.String[] { + "Project", "AccountId", "HashedAccountId", "PageSize", "PageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor, + new java.lang.String[] { + "RelatedAccountGroupMemberships", "NextPageToken", + }); + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor, + new java.lang.String[] { + "Name", "AccountId", "HashedAccountId", + }); + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor, + new java.lang.String[] { + "WafService", "WafFeature", + }); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java similarity index 63% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java index 774c859f82a3..e18a735eeaa9 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * A group of related accounts.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RelatedAccountGroup} */ -public final class RelatedAccountGroup extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RelatedAccountGroup extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) RelatedAccountGroupOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RelatedAccountGroup.newBuilder() to construct. private RelatedAccountGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RelatedAccountGroup() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RelatedAccountGroup(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RelatedAccountGroup.class, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder.class); + com.google.recaptchaenterprise.v1.RelatedAccountGroup.class, + com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Identifier. The resource name for the related account group in
    * the format
    * `projects/{project}/relatedaccountgroups/{related_account_group}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +87,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Identifier. The resource name for the related account group in
    * the format
    * `projects/{project}/relatedaccountgroups/{related_account_group}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RelatedAccountGroup)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RelatedAccountGroup other = (com.google.recaptchaenterprise.v1.RelatedAccountGroup) obj; + com.google.recaptchaenterprise.v1.RelatedAccountGroup other = + (com.google.recaptchaenterprise.v1.RelatedAccountGroup) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.RelatedAccountGroup prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.RelatedAccountGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 group of related accounts.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RelatedAccountGroup} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RelatedAccountGroup.class, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder.class); + com.google.recaptchaenterprise.v1.RelatedAccountGroup.class, + com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.RelatedAccountGroup.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; } @java.lang.Override @@ -314,8 +346,11 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroup build() { @java.lang.Override public com.google.recaptchaenterprise.v1.RelatedAccountGroup buildPartial() { - com.google.recaptchaenterprise.v1.RelatedAccountGroup result = new com.google.recaptchaenterprise.v1.RelatedAccountGroup(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.RelatedAccountGroup result = + new com.google.recaptchaenterprise.v1.RelatedAccountGroup(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +366,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.RelatedAccountGroup public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.RelatedAccountGroup) { - return mergeFrom((com.google.recaptchaenterprise.v1.RelatedAccountGroup)other); + return mergeFrom((com.google.recaptchaenterprise.v1.RelatedAccountGroup) other); } else { super.mergeFrom(other); return this; @@ -370,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.RelatedAccountGroup other) { - if (other == com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -422,24 +461,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Identifier. The resource name for the related account group in
      * the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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; @@ -448,22 +492,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Identifier. The resource name for the related account group in
      * the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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 { @@ -471,32 +518,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Identifier. The resource name for the related account group in
      * the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Identifier. The resource name for the related account group in
      * the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +564,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Identifier. The resource name for the related account group in
      * the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) private static final com.google.recaptchaenterprise.v1.RelatedAccountGroup DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RelatedAccountGroup(); } @@ -551,27 +615,27 @@ public static com.google.recaptchaenterprise.v1.RelatedAccountGroup getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAccountGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAccountGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -586,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.RelatedAccountGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java similarity index 64% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java index fb1f2c3f7823..405db48b4796 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * A membership in a group of related accounts.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership} */ -public final class RelatedAccountGroupMembership extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RelatedAccountGroupMembership extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) RelatedAccountGroupMembershipOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RelatedAccountGroupMembership.newBuilder() to construct. private RelatedAccountGroupMembership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RelatedAccountGroupMembership() { name_ = ""; accountId_ = ""; @@ -27,34 +45,41 @@ private RelatedAccountGroupMembership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RelatedAccountGroupMembership(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.class, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder.class); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.class, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Identifier. The resource name for this membership in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Identifier. The resource name for this membership in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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 { @@ -95,9 +122,12 @@ public java.lang.String getName() { } public static final int ACCOUNT_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** + * + * *
    * The unique stable account identifier of the member. The identifier
    * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -105,6 +135,7 @@ public java.lang.String getName() {
    * 
* * string account_id = 4; + * * @return The accountId. */ @java.lang.Override @@ -113,14 +144,15 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** + * + * *
    * The unique stable account identifier of the member. The identifier
    * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -128,16 +160,15 @@ public java.lang.String getAccountId() {
    * 
* * string account_id = 4; + * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -148,6 +179,8 @@ public java.lang.String getAccountId() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Deprecated: use `account_id` instead.
    * The unique stable hashed account identifier of the member. The identifier
@@ -156,16 +189,19 @@ public java.lang.String getAccountId() {
    * 
* * bytes hashed_account_id = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 + * + * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 * @return The hashedAccountId. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getHashedAccountId() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,8 +236,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hashedAccountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, accountId_); @@ -215,19 +249,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.recaptchaenterprise.v1.RelatedAccountGroupMembership)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership other = (com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership) obj; + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership other = + (com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAccountId() - .equals(other.getAccountId())) return false; - if (!getHashedAccountId() - .equals(other.getHashedAccountId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAccountId().equals(other.getAccountId())) return false; + if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,131 +283,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 membership in a group of related accounts.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.class, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder.class); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.class, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -387,13 +424,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance(); } @@ -408,13 +446,17 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership build() { @java.lang.Override public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership buildPartial() { - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership result = new com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership result = + new com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -431,46 +473,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.RelatedAccountGroup public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership) { - return mergeFrom((com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership)other); + return mergeFrom((com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership other) { - if (other == com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership other) { + if (other + == com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -510,27 +556,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 34: { - accountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 34: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -540,23 +590,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Identifier. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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; @@ -565,21 +620,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Identifier. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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 { @@ -587,30 +645,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Identifier. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Identifier. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -620,18 +689,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Identifier. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -641,6 +716,8 @@ public Builder setNameBytes( private java.lang.Object accountId_ = ""; /** + * + * *
      * The unique stable account identifier of the member. The identifier
      * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -648,13 +725,13 @@ public Builder setNameBytes(
      * 
* * string account_id = 4; + * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -663,6 +740,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
      * The unique stable account identifier of the member. The identifier
      * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -670,15 +749,14 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 4; + * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -686,6 +764,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
      * The unique stable account identifier of the member. The identifier
      * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -693,18 +773,22 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 4; + * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accountId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The unique stable account identifier of the member. The identifier
      * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -712,6 +796,7 @@ public Builder setAccountId(
      * 
* * string account_id = 4; + * * @return This builder for chaining. */ public Builder clearAccountId() { @@ -721,6 +806,8 @@ public Builder clearAccountId() { return this; } /** + * + * *
      * The unique stable account identifier of the member. The identifier
      * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -728,12 +815,14 @@ public Builder clearAccountId() {
      * 
* * string account_id = 4; + * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000002; @@ -743,6 +832,8 @@ public Builder setAccountIdBytes( private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Deprecated: use `account_id` instead.
      * The unique stable hashed account identifier of the member. The identifier
@@ -751,15 +842,20 @@ public Builder setAccountIdBytes(
      * 
* * bytes hashed_account_id = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 + * + * @deprecated + * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 * @return The hashedAccountId. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getHashedAccountId() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** + * + * *
      * Deprecated: use `account_id` instead.
      * The unique stable hashed account identifier of the member. The identifier
@@ -768,19 +864,26 @@ public Builder setAccountIdBytes(
      * 
* * bytes hashed_account_id = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 + * + * @deprecated + * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 * @param value The hashedAccountId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setHashedAccountId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } hashedAccountId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Deprecated: use `account_id` instead.
      * The unique stable hashed account identifier of the member. The identifier
@@ -789,19 +892,22 @@ public Builder setAccountIdBytes(
      * 
* * bytes hashed_account_id = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 + * + * @deprecated + * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearHashedAccountId() { + @java.lang.Deprecated + public Builder clearHashedAccountId() { bitField0_ = (bitField0_ & ~0x00000004); hashedAccountId_ = getDefaultInstance().getHashedAccountId(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -811,41 +917,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) - private static final com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership(); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAccountGroupMembership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAccountGroupMembership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -857,9 +965,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java similarity index 57% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java index 76c28e09d00d..49b5602bb8a3 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface RelatedAccountGroupMembershipOrBuilder extends +public interface RelatedAccountGroupMembershipOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Identifier. The resource name for this membership in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Identifier. The resource name for this membership in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The unique stable account identifier of the member. The identifier
    * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -37,10 +64,13 @@ public interface RelatedAccountGroupMembershipOrBuilder extends
    * 
* * string account_id = 4; + * * @return The accountId. */ java.lang.String getAccountId(); /** + * + * *
    * The unique stable account identifier of the member. The identifier
    * corresponds to an `account_id` provided in a previous `CreateAssessment` or
@@ -48,12 +78,14 @@ public interface RelatedAccountGroupMembershipOrBuilder extends
    * 
* * string account_id = 4; + * * @return The bytes for accountId. */ - com.google.protobuf.ByteString - getAccountIdBytes(); + com.google.protobuf.ByteString getAccountIdBytes(); /** + * + * *
    * Deprecated: use `account_id` instead.
    * The unique stable hashed account identifier of the member. The identifier
@@ -62,9 +94,11 @@ public interface RelatedAccountGroupMembershipOrBuilder extends
    * 
* * bytes hashed_account_id = 2 [deprecated = true]; - * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 + * + * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1835 * @return The hashedAccountId. */ - @java.lang.Deprecated com.google.protobuf.ByteString getHashedAccountId(); + @java.lang.Deprecated + com.google.protobuf.ByteString getHashedAccountId(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java new file mode 100644 index 000000000000..e830a69bad4b --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface RelatedAccountGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Identifier. The resource name for the related account group in
+   * the format
+   * `projects/{project}/relatedaccountgroups/{related_account_group}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Identifier. The resource name for the related account group in
+   * the format
+   * `projects/{project}/relatedaccountgroups/{related_account_group}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java similarity index 60% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java index a6fca5566356..5495517ceb6f 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java @@ -1,58 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The retrieve legacy secret key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest} */ -public final class RetrieveLegacySecretKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RetrieveLegacySecretKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) RetrieveLegacySecretKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetrieveLegacySecretKeyRequest.newBuilder() to construct. - private RetrieveLegacySecretKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RetrieveLegacySecretKeyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RetrieveLegacySecretKeyRequest() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RetrieveLegacySecretKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** + * + * *
    * Required. The public key name linked to the requested secret key in the
    * format `projects/{project}/keys/{key}`.
    * 
* - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The key. */ @java.lang.Override @@ -61,30 +87,32 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
    * Required. The public key name linked to the requested secret key in the
    * format `projects/{project}/keys/{key}`.
    * 
* - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -93,6 +121,7 @@ public java.lang.String getKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -129,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest other = (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) obj; + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest other = + (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) obj; - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +185,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The retrieve legacy secret key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +324,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.getDefaultInstance(); } @@ -312,13 +346,17 @@ public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest build() @java.lang.Override public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest result = new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest result = + new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; @@ -329,46 +367,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.RetrieveLegacySecre public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest other) { + if (other + == com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.getDefaultInstance()) + return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; @@ -400,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -420,23 +464,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object key_ = ""; /** + * + * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -445,21 +494,24 @@ public java.lang.String getKey() { } } /** + * + * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -467,30 +519,41 @@ public java.lang.String getKey() { } } /** + * + * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKey() { @@ -500,27 +563,33 @@ public Builder clearKey() { return this; } /** + * + * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,41 +599,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) - private static final com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest(); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveLegacySecretKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveLegacySecretKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,9 +647,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java new file mode 100644 index 000000000000..b30390ab62ef --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface RetrieveLegacySecretKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The public key name linked to the requested secret key in the
+   * format `projects/{project}/keys/{key}`.
+   * 
+ * + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+   * Required. The public key name linked to the requested secret key in the
+   * format `projects/{project}/keys/{key}`.
+   * 
+ * + * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java similarity index 65% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java index a37cde17793b..7c593c9d187d 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party
  * integration with legacy reCAPTCHA.
@@ -11,43 +28,49 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse}
  */
-public final class RetrieveLegacySecretKeyResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RetrieveLegacySecretKeyResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse)
     RetrieveLegacySecretKeyResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RetrieveLegacySecretKeyResponse.newBuilder() to construct.
-  private RetrieveLegacySecretKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private RetrieveLegacySecretKeyResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RetrieveLegacySecretKeyResponse() {
     legacySecretKey_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RetrieveLegacySecretKeyResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class, com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.Builder.class);
+            com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class,
+            com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.Builder.class);
   }
 
   public static final int LEGACY_SECRET_KEY_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object legacySecretKey_ = "";
   /**
+   *
+   *
    * 
    * The secret key (also known as shared secret) authorizes communication
    * between your application backend and the reCAPTCHA Enterprise server to
@@ -56,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string legacy_secret_key = 1; + * * @return The legacySecretKey. */ @java.lang.Override @@ -64,14 +88,15 @@ public java.lang.String getLegacySecretKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legacySecretKey_ = s; return s; } } /** + * + * *
    * The secret key (also known as shared secret) authorizes communication
    * between your application backend and the reCAPTCHA Enterprise server to
@@ -80,16 +105,15 @@ public java.lang.String getLegacySecretKey() {
    * 
* * string legacy_secret_key = 1; + * * @return The bytes for legacySecretKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getLegacySecretKeyBytes() { + public com.google.protobuf.ByteString getLegacySecretKeyBytes() { java.lang.Object ref = legacySecretKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); legacySecretKey_ = b; return b; } else { @@ -98,6 +122,7 @@ public java.lang.String getLegacySecretKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legacySecretKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, legacySecretKey_); } @@ -134,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse other = (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) obj; + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse other = + (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) obj; - if (!getLegacySecretKey() - .equals(other.getLegacySecretKey())) return false; + if (!getLegacySecretKey().equals(other.getLegacySecretKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,98 +186,105 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party
    * integration with legacy reCAPTCHA.
@@ -261,33 +292,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse)
       com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class, com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.Builder.class);
+              com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class,
+              com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.Builder.class);
     }
 
-    // Construct using com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -297,13 +328,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse getDefaultInstanceForType() {
+    public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse
+        getDefaultInstanceForType() {
       return com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.getDefaultInstance();
     }
 
@@ -318,13 +350,17 @@ public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse build()
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse buildPartial() {
-      com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse result = new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse result =
+          new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse result) {
+    private void buildPartial0(
+        com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.legacySecretKey_ = legacySecretKey_;
@@ -335,46 +371,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.RetrieveLegacySecre
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse)other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse other) {
-      if (other == com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse other) {
+      if (other
+          == com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.getDefaultInstance())
+        return this;
       if (!other.getLegacySecretKey().isEmpty()) {
         legacySecretKey_ = other.legacySecretKey_;
         bitField0_ |= 0x00000001;
@@ -406,17 +446,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              legacySecretKey_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                legacySecretKey_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                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) {
@@ -426,10 +468,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object legacySecretKey_ = "";
     /**
+     *
+     *
      * 
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -438,13 +483,13 @@ public Builder mergeFrom(
      * 
* * string legacy_secret_key = 1; + * * @return The legacySecretKey. */ public java.lang.String getLegacySecretKey() { java.lang.Object ref = legacySecretKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legacySecretKey_ = s; return s; @@ -453,6 +498,8 @@ public java.lang.String getLegacySecretKey() { } } /** + * + * *
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -461,15 +508,14 @@ public java.lang.String getLegacySecretKey() {
      * 
* * string legacy_secret_key = 1; + * * @return The bytes for legacySecretKey. */ - public com.google.protobuf.ByteString - getLegacySecretKeyBytes() { + public com.google.protobuf.ByteString getLegacySecretKeyBytes() { java.lang.Object ref = legacySecretKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); legacySecretKey_ = b; return b; } else { @@ -477,6 +523,8 @@ public java.lang.String getLegacySecretKey() { } } /** + * + * *
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -485,18 +533,22 @@ public java.lang.String getLegacySecretKey() {
      * 
* * string legacy_secret_key = 1; + * * @param value The legacySecretKey to set. * @return This builder for chaining. */ - public Builder setLegacySecretKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLegacySecretKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } legacySecretKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -505,6 +557,7 @@ public Builder setLegacySecretKey(
      * 
* * string legacy_secret_key = 1; + * * @return This builder for chaining. */ public Builder clearLegacySecretKey() { @@ -514,6 +567,8 @@ public Builder clearLegacySecretKey() { return this; } /** + * + * *
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -522,21 +577,23 @@ public Builder clearLegacySecretKey() {
      * 
* * string legacy_secret_key = 1; + * * @param value The bytes for legacySecretKey to set. * @return This builder for chaining. */ - public Builder setLegacySecretKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLegacySecretKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); legacySecretKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -546,41 +603,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) - private static final com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse(); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveLegacySecretKeyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveLegacySecretKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -592,9 +651,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java similarity index 59% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java index b0fb911f443a..3363d7d9e62f 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface RetrieveLegacySecretKeyResponseOrBuilder extends +public interface RetrieveLegacySecretKeyResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The secret key (also known as shared secret) authorizes communication
    * between your application backend and the reCAPTCHA Enterprise server to
@@ -16,10 +34,13 @@ public interface RetrieveLegacySecretKeyResponseOrBuilder extends
    * 
* * string legacy_secret_key = 1; + * * @return The legacySecretKey. */ java.lang.String getLegacySecretKey(); /** + * + * *
    * The secret key (also known as shared secret) authorizes communication
    * between your application backend and the reCAPTCHA Enterprise server to
@@ -28,8 +49,8 @@ public interface RetrieveLegacySecretKeyResponseOrBuilder extends
    * 
* * string legacy_secret_key = 1; + * * @return The bytes for legacySecretKey. */ - com.google.protobuf.ByteString - getLegacySecretKeyBytes(); + com.google.protobuf.ByteString getLegacySecretKeyBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java similarity index 66% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java index da39e2f04cf5..b497ab4dcf4c 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java @@ -1,60 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Risk analysis result for an event.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RiskAnalysis} */ -public final class RiskAnalysis extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RiskAnalysis extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RiskAnalysis) RiskAnalysisOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RiskAnalysis.newBuilder() to construct. private RiskAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RiskAnalysis() { reasons_ = java.util.Collections.emptyList(); - extendedVerdictReasons_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RiskAnalysis(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RiskAnalysis.class, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder.class); + com.google.recaptchaenterprise.v1.RiskAnalysis.class, + com.google.recaptchaenterprise.v1.RiskAnalysis.Builder.class); } /** + * + * *
    * Reasons contributing to the risk analysis verdict.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason} */ - public enum ClassificationReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum ClassificationReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified type.
      * 
@@ -63,6 +84,8 @@ public enum ClassificationReason */ CLASSIFICATION_REASON_UNSPECIFIED(0), /** + * + * *
      * Interactions matched the behavior of an automated agent.
      * 
@@ -71,6 +94,8 @@ public enum ClassificationReason */ AUTOMATION(1), /** + * + * *
      * The event originated from an illegitimate environment.
      * 
@@ -79,6 +104,8 @@ public enum ClassificationReason */ UNEXPECTED_ENVIRONMENT(2), /** + * + * *
      * Traffic volume from the event source is higher than normal.
      * 
@@ -87,6 +114,8 @@ public enum ClassificationReason */ TOO_MUCH_TRAFFIC(3), /** + * + * *
      * Interactions with the site were significantly different than expected
      * patterns.
@@ -96,6 +125,8 @@ public enum ClassificationReason
      */
     UNEXPECTED_USAGE_PATTERNS(4),
     /**
+     *
+     *
      * 
      * Too little traffic has been received from this site thus far to generate
      * quality risk analysis.
@@ -105,6 +136,8 @@ public enum ClassificationReason
      */
     LOW_CONFIDENCE_SCORE(5),
     /**
+     *
+     *
      * 
      * The request matches behavioral characteristics of a carding attack.
      * 
@@ -113,6 +146,8 @@ public enum ClassificationReason */ SUSPECTED_CARDING(6), /** + * + * *
      * The request matches behavioral characteristics of chargebacks for fraud.
      * 
@@ -124,6 +159,8 @@ public enum ClassificationReason ; /** + * + * *
      * Default unspecified type.
      * 
@@ -132,6 +169,8 @@ public enum ClassificationReason */ public static final int CLASSIFICATION_REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Interactions matched the behavior of an automated agent.
      * 
@@ -140,6 +179,8 @@ public enum ClassificationReason */ public static final int AUTOMATION_VALUE = 1; /** + * + * *
      * The event originated from an illegitimate environment.
      * 
@@ -148,6 +189,8 @@ public enum ClassificationReason */ public static final int UNEXPECTED_ENVIRONMENT_VALUE = 2; /** + * + * *
      * Traffic volume from the event source is higher than normal.
      * 
@@ -156,6 +199,8 @@ public enum ClassificationReason */ public static final int TOO_MUCH_TRAFFIC_VALUE = 3; /** + * + * *
      * Interactions with the site were significantly different than expected
      * patterns.
@@ -165,6 +210,8 @@ public enum ClassificationReason
      */
     public static final int UNEXPECTED_USAGE_PATTERNS_VALUE = 4;
     /**
+     *
+     *
      * 
      * Too little traffic has been received from this site thus far to generate
      * quality risk analysis.
@@ -174,6 +221,8 @@ public enum ClassificationReason
      */
     public static final int LOW_CONFIDENCE_SCORE_VALUE = 5;
     /**
+     *
+     *
      * 
      * The request matches behavioral characteristics of a carding attack.
      * 
@@ -182,6 +231,8 @@ public enum ClassificationReason */ public static final int SUSPECTED_CARDING_VALUE = 6; /** + * + * *
      * The request matches behavioral characteristics of chargebacks for fraud.
      * 
@@ -190,7 +241,6 @@ public enum ClassificationReason */ public static final int SUSPECTED_CHARGEBACK_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -215,15 +265,24 @@ public static ClassificationReason valueOf(int value) { */ public static ClassificationReason forNumber(int value) { switch (value) { - case 0: return CLASSIFICATION_REASON_UNSPECIFIED; - case 1: return AUTOMATION; - case 2: return UNEXPECTED_ENVIRONMENT; - case 3: return TOO_MUCH_TRAFFIC; - case 4: return UNEXPECTED_USAGE_PATTERNS; - case 5: return LOW_CONFIDENCE_SCORE; - case 6: return SUSPECTED_CARDING; - case 7: return SUSPECTED_CHARGEBACK; - default: return null; + case 0: + return CLASSIFICATION_REASON_UNSPECIFIED; + case 1: + return AUTOMATION; + case 2: + return UNEXPECTED_ENVIRONMENT; + case 3: + return TOO_MUCH_TRAFFIC; + case 4: + return UNEXPECTED_USAGE_PATTERNS; + case 5: + return LOW_CONFIDENCE_SCORE; + case 6: + return SUSPECTED_CARDING; + case 7: + return SUSPECTED_CHARGEBACK; + default: + return null; } } @@ -231,28 +290,28 @@ public static ClassificationReason forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ClassificationReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClassificationReason findValueByNumber(int number) { - return ClassificationReason.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClassificationReason findValueByNumber(int number) { + return ClassificationReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.recaptchaenterprise.v1.RiskAnalysis.getDescriptor().getEnumTypes().get(0); } @@ -261,8 +320,7 @@ public ClassificationReason findValueByNumber(int number) { public static ClassificationReason valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -282,6 +340,8 @@ private ClassificationReason(int value) { public static final int SCORE_FIELD_NUMBER = 1; private float score_ = 0F; /** + * + * *
    * Output only. Legitimate event score from 0.0 to 1.0.
    * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -289,6 +349,7 @@ private ClassificationReason(int value) {
    * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The score. */ @java.lang.Override @@ -297,36 +358,57 @@ public float getScore() { } public static final int REASONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List reasons_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason> reasons_converter_ = + java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason> + reasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>() { - public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason convert(java.lang.Integer from) { - com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason result = com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason.forNumber(from); - return result == null ? com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason.UNRECOGNIZED : result; + java.lang.Integer, + com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>() { + public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason convert( + java.lang.Integer from) { + com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason result = + com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason.forNumber( + from); + return result == null + ? com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason.UNRECOGNIZED + : result; } }; /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the reasons. */ @java.lang.Override - public java.util.List getReasonsList() { + public java.util.List + getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>(reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>( + reasons_, reasons_converter_); } /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of reasons. */ @java.lang.Override @@ -334,11 +416,16 @@ public int getReasonsCount() { return reasons_.size(); } /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ @@ -347,24 +434,33 @@ public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason getRe return reasons_converter_.convert(reasons_.get(index)); } /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ @java.lang.Override - public java.util.List - getReasonsValueList() { + public java.util.List getReasonsValueList() { return reasons_; } /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -372,44 +468,60 @@ public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason getRe public int getReasonsValue(int index) { return reasons_.get(index); } + private int reasonsMemoizedSerializedSize; public static final int EXTENDED_VERDICT_REASONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the extendedVerdictReasons. */ - public com.google.protobuf.ProtocolStringList - getExtendedVerdictReasonsList() { + public com.google.protobuf.ProtocolStringList getExtendedVerdictReasonsList() { return extendedVerdictReasons_; } /** + * + * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of extendedVerdictReasons. */ public int getExtendedVerdictReasonsCount() { return extendedVerdictReasons_.size(); } /** + * + * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The extendedVerdictReasons at the given index. */ @@ -417,21 +529,26 @@ public java.lang.String getExtendedVerdictReasons(int index) { return extendedVerdictReasons_.get(index); } /** + * + * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the extendedVerdictReasons at the given index. */ - public com.google.protobuf.ByteString - getExtendedVerdictReasonsBytes(int index) { + public com.google.protobuf.ByteString getExtendedVerdictReasonsBytes(int index) { return extendedVerdictReasons_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -443,8 +560,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (java.lang.Float.floatToRawIntBits(score_) != 0) { output.writeFloat(1, score_); @@ -457,7 +573,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeEnumNoTag(reasons_.get(i)); } for (int i = 0; i < extendedVerdictReasons_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, extendedVerdictReasons_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, extendedVerdictReasons_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -469,20 +586,19 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } { int dataSize = 0; for (int i = 0; i < reasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(reasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); } size += dataSize; - if (!getReasonsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }reasonsMemoizedSerializedSize = dataSize; + if (!getReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + reasonsMemoizedSerializedSize = dataSize; } { int dataSize = 0; @@ -500,19 +616,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RiskAnalysis)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RiskAnalysis other = (com.google.recaptchaenterprise.v1.RiskAnalysis) obj; + com.google.recaptchaenterprise.v1.RiskAnalysis other = + (com.google.recaptchaenterprise.v1.RiskAnalysis) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!reasons_.equals(other.reasons_)) return false; - if (!getExtendedVerdictReasonsList() - .equals(other.getExtendedVerdictReasonsList())) return false; + if (!getExtendedVerdictReasonsList().equals(other.getExtendedVerdictReasonsList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -525,8 +641,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); if (getReasonsCount() > 0) { hash = (37 * hash) + REASONS_FIELD_NUMBER; hash = (53 * hash) + reasons_.hashCode(); @@ -540,132 +655,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.RiskAnalysis parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.RiskAnalysis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Risk analysis result for an event.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RiskAnalysis} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RiskAnalysis) com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RiskAnalysis.class, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder.class); + com.google.recaptchaenterprise.v1.RiskAnalysis.class, + com.google.recaptchaenterprise.v1.RiskAnalysis.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.RiskAnalysis.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -673,15 +792,14 @@ public Builder clear() { score_ = 0F; reasons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); - extendedVerdictReasons_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; } @java.lang.Override @@ -700,9 +818,12 @@ public com.google.recaptchaenterprise.v1.RiskAnalysis build() { @java.lang.Override public com.google.recaptchaenterprise.v1.RiskAnalysis buildPartial() { - com.google.recaptchaenterprise.v1.RiskAnalysis result = new com.google.recaptchaenterprise.v1.RiskAnalysis(this); + com.google.recaptchaenterprise.v1.RiskAnalysis result = + new com.google.recaptchaenterprise.v1.RiskAnalysis(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -730,38 +851,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.RiskAnalysis result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.RiskAnalysis) { - return mergeFrom((com.google.recaptchaenterprise.v1.RiskAnalysis)other); + return mergeFrom((com.google.recaptchaenterprise.v1.RiskAnalysis) other); } else { super.mergeFrom(other); return this; @@ -819,40 +941,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - score_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 16: { - int tmpRaw = input.readEnum(); - ensureReasonsIsMutable(); - reasons_.add(tmpRaw); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 16: + { int tmpRaw = input.readEnum(); ensureReasonsIsMutable(); reasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureExtendedVerdictReasonsIsMutable(); - extendedVerdictReasons_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExtendedVerdictReasonsIsMutable(); + extendedVerdictReasons_.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) { @@ -862,10 +989,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float score_ ; + private float score_; /** + * + * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -873,6 +1003,7 @@ public Builder mergeFrom(
      * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The score. */ @java.lang.Override @@ -880,6 +1011,8 @@ public float getScore() { return score_; } /** + * + * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -887,6 +1020,7 @@ public float getScore() {
      * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The score to set. * @return This builder for chaining. */ @@ -898,6 +1032,8 @@ public Builder setScore(float value) { return this; } /** + * + * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -905,6 +1041,7 @@ public Builder setScore(float value) {
      * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearScore() { @@ -914,8 +1051,8 @@ public Builder clearScore() { return this; } - private java.util.List reasons_ = - java.util.Collections.emptyList(); + private java.util.List reasons_ = java.util.Collections.emptyList(); + private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { reasons_ = new java.util.ArrayList(reasons_); @@ -923,46 +1060,69 @@ private void ensureReasonsIsMutable() { } } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the reasons. */ - public java.util.List getReasonsList() { + public java.util.List + getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>(reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>( + reasons_, reasons_converter_); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of reasons. */ public int getReasonsCount() { return reasons_.size(); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ - public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason getReasons(int index) { + public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason getReasons( + int index) { return reasons_converter_.convert(reasons_.get(index)); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The reasons to set. * @return This builder for chaining. @@ -978,15 +1138,21 @@ public Builder setReasons( return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The reasons to add. * @return This builder for chaining. */ - public Builder addReasons(com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason value) { + public Builder addReasons( + com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason value) { if (value == null) { throw new NullPointerException(); } @@ -996,16 +1162,23 @@ public Builder addReasons(com.google.recaptchaenterprise.v1.RiskAnalysis.Classif return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The reasons to add. * @return This builder for chaining. */ public Builder addAllReasons( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason> + values) { ensureReasonsIsMutable(); for (com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason value : values) { reasons_.add(value.getNumber()); @@ -1014,11 +1187,16 @@ public Builder addAllReasons( return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearReasons() { @@ -1028,23 +1206,32 @@ public Builder clearReasons() { return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ - public java.util.List - getReasonsValueList() { + public java.util.List getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -1052,28 +1239,37 @@ public int getReasonsValue(int index) { return reasons_.get(index); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for reasons to set. * @return This builder for chaining. */ - public Builder setReasonsValue( - int index, int value) { + public Builder setReasonsValue(int index, int value) { ensureReasonsIsMutable(); reasons_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for reasons to add. * @return This builder for chaining. */ @@ -1084,16 +1280,20 @@ public Builder addReasonsValue(int value) { return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The enum numeric values on the wire for reasons to add. * @return This builder for chaining. */ - public Builder addAllReasonsValue( - java.lang.Iterable values) { + public Builder addAllReasonsValue(java.lang.Iterable values) { ensureReasonsIsMutable(); for (int value : values) { reasons_.add(value); @@ -1104,45 +1304,61 @@ public Builder addAllReasonsValue( private com.google.protobuf.LazyStringArrayList extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExtendedVerdictReasonsIsMutable() { if (!extendedVerdictReasons_.isModifiable()) { - extendedVerdictReasons_ = new com.google.protobuf.LazyStringArrayList(extendedVerdictReasons_); + extendedVerdictReasons_ = + new com.google.protobuf.LazyStringArrayList(extendedVerdictReasons_); } bitField0_ |= 0x00000004; } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the extendedVerdictReasons. */ - public com.google.protobuf.ProtocolStringList - getExtendedVerdictReasonsList() { + public com.google.protobuf.ProtocolStringList getExtendedVerdictReasonsList() { extendedVerdictReasons_.makeImmutable(); return extendedVerdictReasons_; } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of extendedVerdictReasons. */ public int getExtendedVerdictReasonsCount() { return extendedVerdictReasons_.size(); } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The extendedVerdictReasons at the given index. */ @@ -1150,33 +1366,43 @@ public java.lang.String getExtendedVerdictReasons(int index) { return extendedVerdictReasons_.get(index); } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the extendedVerdictReasons at the given index. */ - public com.google.protobuf.ByteString - getExtendedVerdictReasonsBytes(int index) { + public com.google.protobuf.ByteString getExtendedVerdictReasonsBytes(int index) { return extendedVerdictReasons_.getByteString(index); } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The extendedVerdictReasons to set. * @return This builder for chaining. */ - public Builder setExtendedVerdictReasons( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExtendedVerdictReasons(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExtendedVerdictReasonsIsMutable(); extendedVerdictReasons_.set(index, value); bitField0_ |= 0x00000004; @@ -1184,18 +1410,24 @@ public Builder setExtendedVerdictReasons( return this; } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The extendedVerdictReasons to add. * @return This builder for chaining. */ - public Builder addExtendedVerdictReasons( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExtendedVerdictReasons(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExtendedVerdictReasonsIsMutable(); extendedVerdictReasons_.add(value); bitField0_ |= 0x00000004; @@ -1203,53 +1435,67 @@ public Builder addExtendedVerdictReasons( return this; } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The extendedVerdictReasons to add. * @return This builder for chaining. */ - public Builder addAllExtendedVerdictReasons( - java.lang.Iterable values) { + public Builder addAllExtendedVerdictReasons(java.lang.Iterable values) { ensureExtendedVerdictReasonsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, extendedVerdictReasons_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extendedVerdictReasons_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearExtendedVerdictReasons() { - extendedVerdictReasons_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes of the extendedVerdictReasons to add. * @return This builder for chaining. */ - public Builder addExtendedVerdictReasonsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExtendedVerdictReasonsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureExtendedVerdictReasonsIsMutable(); extendedVerdictReasons_.add(value); @@ -1257,9 +1503,9 @@ public Builder addExtendedVerdictReasonsBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1269,12 +1515,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RiskAnalysis) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RiskAnalysis) private static final com.google.recaptchaenterprise.v1.RiskAnalysis DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RiskAnalysis(); } @@ -1283,27 +1529,27 @@ public static com.google.recaptchaenterprise.v1.RiskAnalysis getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RiskAnalysis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RiskAnalysis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1318,6 +1564,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.RiskAnalysis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java similarity index 55% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java index a6d5db97c96f..04ae7defa32c 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface RiskAnalysisOrBuilder extends +public interface RiskAnalysisOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RiskAnalysis) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Legitimate event score from 0.0 to 1.0.
    * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -15,101 +33,145 @@ public interface RiskAnalysisOrBuilder extends
    * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The score. */ float getScore(); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the reasons. */ - java.util.List getReasonsList(); + java.util.List + getReasonsList(); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of reasons. */ int getReasonsCount(); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason getReasons(int index); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ - java.util.List - getReasonsValueList(); + java.util.List getReasonsValueList(); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ int getReasonsValue(int index); /** + * + * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the extendedVerdictReasons. */ - java.util.List - getExtendedVerdictReasonsList(); + java.util.List getExtendedVerdictReasonsList(); /** + * + * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of extendedVerdictReasons. */ int getExtendedVerdictReasonsCount(); /** + * + * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The extendedVerdictReasons at the given index. */ java.lang.String getExtendedVerdictReasons(int index); /** + * + * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the extendedVerdictReasons at the given index. */ - com.google.protobuf.ByteString - getExtendedVerdictReasonsBytes(int index); + com.google.protobuf.ByteString getExtendedVerdictReasonsBytes(int index); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java similarity index 64% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java index d1a3a89c9ee6..ab8021f5d587 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java @@ -1,86 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Score distribution.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ScoreDistribution} */ -public final class ScoreDistribution extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScoreDistribution extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ScoreDistribution) ScoreDistributionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScoreDistribution.newBuilder() to construct. private ScoreDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScoreDistribution() { - } + + private ScoreDistribution() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScoreDistribution(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_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 1: return internalGetScoreBuckets(); 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.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ScoreDistribution.class, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder.class); + com.google.recaptchaenterprise.v1.ScoreDistribution.class, + com.google.recaptchaenterprise.v1.ScoreDistribution.Builder.class); } public static final int SCORE_BUCKETS_FIELD_NUMBER = 1; + private static final class ScoreBucketsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Long> scoreBuckets_; + private com.google.protobuf.MapField scoreBuckets_; + private com.google.protobuf.MapField - internalGetScoreBuckets() { + internalGetScoreBuckets() { if (scoreBuckets_ == null) { return com.google.protobuf.MapField.emptyMapField( ScoreBucketsDefaultEntryHolder.defaultEntry); } return scoreBuckets_; } + public int getScoreBucketsCount() { return internalGetScoreBuckets().getMap().size(); } /** + * + * *
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -90,20 +111,19 @@ public int getScoreBucketsCount() {
    * map<int32, int64> score_buckets = 1;
    */
   @java.lang.Override
-  public boolean containsScoreBuckets(
-      int key) {
+  public boolean containsScoreBuckets(int key) {
 
     return internalGetScoreBuckets().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getScoreBucketsMap()} instead.
-   */
+  /** Use {@link #getScoreBucketsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getScoreBuckets() {
     return getScoreBucketsMap();
   }
   /**
+   *
+   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -117,6 +137,8 @@ public java.util.Map getScoreBucketsMap() {
     return internalGetScoreBuckets().getMap();
   }
   /**
+   *
+   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -126,15 +148,14 @@ public java.util.Map getScoreBucketsMap() {
    * map<int32, int64> score_buckets = 1;
    */
   @java.lang.Override
-  public long getScoreBucketsOrDefault(
-      int key,
-      long defaultValue) {
+  public long getScoreBucketsOrDefault(int key, long defaultValue) {
 
-    java.util.Map map =
-        internalGetScoreBuckets().getMap();
+    java.util.Map map = internalGetScoreBuckets().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -144,11 +165,9 @@ public long getScoreBucketsOrDefault(
    * map<int32, int64> score_buckets = 1;
    */
   @java.lang.Override
-  public long getScoreBucketsOrThrow(
-      int key) {
+  public long getScoreBucketsOrThrow(int key) {
 
-    java.util.Map map =
-        internalGetScoreBuckets().getMap();
+    java.util.Map map = internalGetScoreBuckets().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -156,6 +175,7 @@ public long getScoreBucketsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -167,14 +187,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
-      .serializeIntegerMapTo(
-        output,
-        internalGetScoreBuckets(),
-        ScoreBucketsDefaultEntryHolder.defaultEntry,
-        1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo(
+        output, internalGetScoreBuckets(), ScoreBucketsDefaultEntryHolder.defaultEntry, 1);
     getUnknownFields().writeTo(output);
   }
 
@@ -184,15 +199,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetScoreBuckets().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      scoreBuckets__ = ScoreBucketsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, scoreBuckets__);
+    for (java.util.Map.Entry entry :
+        internalGetScoreBuckets().getMap().entrySet()) {
+      com.google.protobuf.MapEntry scoreBuckets__ =
+          ScoreBucketsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scoreBuckets__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -202,15 +217,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.recaptchaenterprise.v1.ScoreDistribution)) {
       return super.equals(obj);
     }
-    com.google.recaptchaenterprise.v1.ScoreDistribution other = (com.google.recaptchaenterprise.v1.ScoreDistribution) obj;
+    com.google.recaptchaenterprise.v1.ScoreDistribution other =
+        (com.google.recaptchaenterprise.v1.ScoreDistribution) obj;
 
-    if (!internalGetScoreBuckets().equals(
-        other.internalGetScoreBuckets())) return false;
+    if (!internalGetScoreBuckets().equals(other.internalGetScoreBuckets())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -232,153 +247,155 @@ public int hashCode() {
   }
 
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.recaptchaenterprise.v1.ScoreDistribution parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.recaptchaenterprise.v1.ScoreDistribution parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.recaptchaenterprise.v1.ScoreDistribution prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Score distribution.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ScoreDistribution} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ScoreDistribution) com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetScoreBuckets(); 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 1: return internalGetMutableScoreBuckets(); 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.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ScoreDistribution.class, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder.class); + com.google.recaptchaenterprise.v1.ScoreDistribution.class, + com.google.recaptchaenterprise.v1.ScoreDistribution.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ScoreDistribution.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; } @java.lang.Override @@ -409,8 +426,11 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistribution buildPartial() { - com.google.recaptchaenterprise.v1.ScoreDistribution result = new com.google.recaptchaenterprise.v1.ScoreDistribution(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.ScoreDistribution result = + new com.google.recaptchaenterprise.v1.ScoreDistribution(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +447,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ScoreDistribution r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ScoreDistribution) { - return mergeFrom((com.google.recaptchaenterprise.v1.ScoreDistribution)other); + return mergeFrom((com.google.recaptchaenterprise.v1.ScoreDistribution) other); } else { super.mergeFrom(other); return this; @@ -466,9 +487,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ScoreDistribution other) { - if (other == com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()) return this; - internalGetMutableScoreBuckets().mergeFrom( - other.internalGetScoreBuckets()); + if (other == com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()) + return this; + internalGetMutableScoreBuckets().mergeFrom(other.internalGetScoreBuckets()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -496,21 +517,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - scoreBuckets__ = input.readMessage( - ScoreBucketsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableScoreBuckets().getMutableMap().put( - scoreBuckets__.getKey(), scoreBuckets__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry scoreBuckets__ = + input.readMessage( + ScoreBucketsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableScoreBuckets() + .getMutableMap() + .put(scoreBuckets__.getKey(), scoreBuckets__.getValue()); + bitField0_ |= 0x00000001; + 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) { @@ -520,10 +545,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Long> scoreBuckets_; + private com.google.protobuf.MapField scoreBuckets_; + private com.google.protobuf.MapField internalGetScoreBuckets() { if (scoreBuckets_ == null) { @@ -532,11 +558,12 @@ public Builder mergeFrom( } return scoreBuckets_; } + private com.google.protobuf.MapField internalGetMutableScoreBuckets() { if (scoreBuckets_ == null) { - scoreBuckets_ = com.google.protobuf.MapField.newMapField( - ScoreBucketsDefaultEntryHolder.defaultEntry); + scoreBuckets_ = + com.google.protobuf.MapField.newMapField(ScoreBucketsDefaultEntryHolder.defaultEntry); } if (!scoreBuckets_.isMutable()) { scoreBuckets_ = scoreBuckets_.copy(); @@ -545,10 +572,13 @@ public Builder mergeFrom( onChanged(); return scoreBuckets_; } + public int getScoreBucketsCount() { return internalGetScoreBuckets().getMap().size(); } /** + * + * *
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -558,20 +588,19 @@ public int getScoreBucketsCount() {
      * map<int32, int64> score_buckets = 1;
      */
     @java.lang.Override
-    public boolean containsScoreBuckets(
-        int key) {
+    public boolean containsScoreBuckets(int key) {
 
       return internalGetScoreBuckets().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getScoreBucketsMap()} instead.
-     */
+    /** Use {@link #getScoreBucketsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getScoreBuckets() {
       return getScoreBucketsMap();
     }
     /**
+     *
+     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -585,6 +614,8 @@ public java.util.Map getScoreBucketsMap() {
       return internalGetScoreBuckets().getMap();
     }
     /**
+     *
+     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -594,15 +625,14 @@ public java.util.Map getScoreBucketsMap() {
      * map<int32, int64> score_buckets = 1;
      */
     @java.lang.Override
-    public long getScoreBucketsOrDefault(
-        int key,
-        long defaultValue) {
+    public long getScoreBucketsOrDefault(int key, long defaultValue) {
 
-      java.util.Map map =
-          internalGetScoreBuckets().getMap();
+      java.util.Map map = internalGetScoreBuckets().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -612,23 +642,23 @@ public long getScoreBucketsOrDefault(
      * map<int32, int64> score_buckets = 1;
      */
     @java.lang.Override
-    public long getScoreBucketsOrThrow(
-        int key) {
+    public long getScoreBucketsOrThrow(int key) {
 
-      java.util.Map map =
-          internalGetScoreBuckets().getMap();
+      java.util.Map map = internalGetScoreBuckets().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearScoreBuckets() {
       bitField0_ = (bitField0_ & ~0x00000001);
-      internalGetMutableScoreBuckets().getMutableMap()
-          .clear();
+      internalGetMutableScoreBuckets().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -637,23 +667,20 @@ public Builder clearScoreBuckets() {
      *
      * map<int32, int64> score_buckets = 1;
      */
-    public Builder removeScoreBuckets(
-        int key) {
+    public Builder removeScoreBuckets(int key) {
 
-      internalGetMutableScoreBuckets().getMutableMap()
-          .remove(key);
+      internalGetMutableScoreBuckets().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableScoreBuckets() {
+    public java.util.Map getMutableScoreBuckets() {
       bitField0_ |= 0x00000001;
       return internalGetMutableScoreBuckets().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -662,17 +689,15 @@ public Builder removeScoreBuckets(
      *
      * map<int32, int64> score_buckets = 1;
      */
-    public Builder putScoreBuckets(
-        int key,
-        long value) {
+    public Builder putScoreBuckets(int key, long value) {
 
-
-      internalGetMutableScoreBuckets().getMutableMap()
-          .put(key, value);
+      internalGetMutableScoreBuckets().getMutableMap().put(key, value);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
+     *
+     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -681,16 +706,14 @@ public Builder putScoreBuckets(
      *
      * map<int32, int64> score_buckets = 1;
      */
-    public Builder putAllScoreBuckets(
-        java.util.Map values) {
-      internalGetMutableScoreBuckets().getMutableMap()
-          .putAll(values);
+    public Builder putAllScoreBuckets(java.util.Map values) {
+      internalGetMutableScoreBuckets().getMutableMap().putAll(values);
       bitField0_ |= 0x00000001;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -700,12 +723,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ScoreDistribution)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ScoreDistribution)
   private static final com.google.recaptchaenterprise.v1.ScoreDistribution DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ScoreDistribution();
   }
@@ -714,27 +737,27 @@ public static com.google.recaptchaenterprise.v1.ScoreDistribution getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ScoreDistribution parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ScoreDistribution parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            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;
@@ -749,6 +772,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.recaptchaenterprise.v1.ScoreDistribution getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
similarity index 64%
rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
index d1f5bb7a06ee..2a5d832751da 100644
--- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
+++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
 
 package com.google.recaptchaenterprise.v1;
 
-public interface ScoreDistributionOrBuilder extends
+public interface ScoreDistributionOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ScoreDistribution)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -18,6 +36,8 @@ public interface ScoreDistributionOrBuilder extends
    */
   int getScoreBucketsCount();
   /**
+   *
+   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -26,15 +46,13 @@ public interface ScoreDistributionOrBuilder extends
    *
    * map<int32, int64> score_buckets = 1;
    */
-  boolean containsScoreBuckets(
-      int key);
-  /**
-   * Use {@link #getScoreBucketsMap()} instead.
-   */
+  boolean containsScoreBuckets(int key);
+  /** Use {@link #getScoreBucketsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getScoreBuckets();
+  java.util.Map getScoreBuckets();
   /**
+   *
+   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -43,9 +61,10 @@ boolean containsScoreBuckets(
    *
    * map<int32, int64> score_buckets = 1;
    */
-  java.util.Map
-  getScoreBucketsMap();
+  java.util.Map getScoreBucketsMap();
   /**
+   *
+   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -54,10 +73,10 @@ boolean containsScoreBuckets(
    *
    * map<int32, int64> score_buckets = 1;
    */
-  long getScoreBucketsOrDefault(
-      int key,
-      long defaultValue);
+  long getScoreBucketsOrDefault(int key, long defaultValue);
   /**
+   *
+   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -66,6 +85,5 @@ long getScoreBucketsOrDefault(
    *
    * map<int32, int64> score_buckets = 1;
    */
-  long getScoreBucketsOrThrow(
-      int key);
+  long getScoreBucketsOrThrow(int key);
 }
diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
similarity index 61%
rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
index b29905ab8461..894ecbd66f70 100644
--- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
+++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
@@ -1,67 +1,87 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
 
 package com.google.recaptchaenterprise.v1;
 
 /**
+ *
+ *
  * 
  * Metrics related to scoring.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ScoreMetrics} */ -public final class ScoreMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScoreMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ScoreMetrics) ScoreMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScoreMetrics.newBuilder() to construct. private ScoreMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScoreMetrics() { - } + + private ScoreMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScoreMetrics(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_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 2: return internalGetActionMetrics(); 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.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ScoreMetrics.class, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder.class); + com.google.recaptchaenterprise.v1.ScoreMetrics.class, + com.google.recaptchaenterprise.v1.ScoreMetrics.Builder.class); } public static final int OVERALL_METRICS_FIELD_NUMBER = 1; private com.google.recaptchaenterprise.v1.ScoreDistribution overallMetrics_; /** + * + * *
    * Aggregated score metrics for all traffic.
    * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; + * * @return Whether the overallMetrics field is set. */ @java.lang.Override @@ -69,18 +89,25 @@ public boolean hasOverallMetrics() { return overallMetrics_ != null; } /** + * + * *
    * Aggregated score metrics for all traffic.
    * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; + * * @return The overallMetrics. */ @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistribution getOverallMetrics() { - return overallMetrics_ == null ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() : overallMetrics_; + return overallMetrics_ == null + ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() + : overallMetrics_; } /** + * + * *
    * Aggregated score metrics for all traffic.
    * 
@@ -89,100 +116,132 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution getOverallMetrics() { */ @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMetricsOrBuilder() { - return overallMetrics_ == null ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() : overallMetrics_; + return overallMetrics_ == null + ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() + : overallMetrics_; } public static final int ACTION_METRICS_FIELD_NUMBER = 2; + private static final class ActionMetricsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> defaultEntry = + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()); + . + newDefaultInstance( + com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> actionMetrics_; - private com.google.protobuf.MapField - internalGetActionMetrics() { + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> + actionMetrics_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> + internalGetActionMetrics() { if (actionMetrics_ == null) { return com.google.protobuf.MapField.emptyMapField( ActionMetricsDefaultEntryHolder.defaultEntry); } return actionMetrics_; } + public int getActionMetricsCount() { return internalGetActionMetrics().getMap().size(); } /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ @java.lang.Override - public boolean containsActionMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsActionMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetActionMetrics().getMap().containsKey(key); } - /** - * Use {@link #getActionMetricsMap()} instead. - */ + /** Use {@link #getActionMetricsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getActionMetrics() { + public java.util.Map + getActionMetrics() { return getActionMetricsMap(); } /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ @java.lang.Override - public java.util.Map getActionMetricsMap() { + public java.util.Map + getActionMetricsMap() { return internalGetActionMetrics().getMap(); } /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ @java.lang.Override - public /* nullable */ -com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrDefault( - java.lang.String key, - /* nullable */ -com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.recaptchaenterprise.v1.ScoreDistribution + getActionMetricsOrDefault( + java.lang.String key, + /* nullable */ + com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetActionMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetActionMetrics().getMap(); if (!map.containsKey(key)) { @@ -192,6 +251,7 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,17 +263,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (overallMetrics_ != null) { output.writeMessage(1, getOverallMetrics()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetActionMetrics(), - ActionMetricsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetActionMetrics(), ActionMetricsDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @@ -224,18 +279,19 @@ public int getSerializedSize() { size = 0; if (overallMetrics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOverallMetrics()); - } - for (java.util.Map.Entry entry - : internalGetActionMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry - actionMetrics__ = ActionMetricsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, actionMetrics__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOverallMetrics()); + } + for (java.util.Map.Entry + entry : internalGetActionMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> + actionMetrics__ = + ActionMetricsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, actionMetrics__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,20 +301,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ScoreMetrics)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ScoreMetrics other = (com.google.recaptchaenterprise.v1.ScoreMetrics) obj; + com.google.recaptchaenterprise.v1.ScoreMetrics other = + (com.google.recaptchaenterprise.v1.ScoreMetrics) obj; if (hasOverallMetrics() != other.hasOverallMetrics()) return false; if (hasOverallMetrics()) { - if (!getOverallMetrics() - .equals(other.getOverallMetrics())) return false; + if (!getOverallMetrics().equals(other.getOverallMetrics())) return false; } - if (!internalGetActionMetrics().equals( - other.internalGetActionMetrics())) return false; + if (!internalGetActionMetrics().equals(other.internalGetActionMetrics())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,154 +338,156 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ScoreMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ScoreMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metrics related to scoring.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ScoreMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ScoreMetrics) com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetActionMetrics(); 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 2: return internalGetMutableActionMetrics(); 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.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ScoreMetrics.class, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder.class); + com.google.recaptchaenterprise.v1.ScoreMetrics.class, + com.google.recaptchaenterprise.v1.ScoreMetrics.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ScoreMetrics.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; } @java.lang.Override @@ -466,8 +523,11 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreMetrics buildPartial() { - com.google.recaptchaenterprise.v1.ScoreMetrics result = new com.google.recaptchaenterprise.v1.ScoreMetrics(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.ScoreMetrics result = + new com.google.recaptchaenterprise.v1.ScoreMetrics(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -475,9 +535,8 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics buildPartial() { private void buildPartial0(com.google.recaptchaenterprise.v1.ScoreMetrics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.overallMetrics_ = overallMetricsBuilder_ == null - ? overallMetrics_ - : overallMetricsBuilder_.build(); + result.overallMetrics_ = + overallMetricsBuilder_ == null ? overallMetrics_ : overallMetricsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.actionMetrics_ = internalGetActionMetrics(); @@ -489,38 +548,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ScoreMetrics result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ScoreMetrics) { - return mergeFrom((com.google.recaptchaenterprise.v1.ScoreMetrics)other); + return mergeFrom((com.google.recaptchaenterprise.v1.ScoreMetrics) other); } else { super.mergeFrom(other); return this; @@ -532,8 +592,7 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.ScoreMetrics other) { if (other.hasOverallMetrics()) { mergeOverallMetrics(other.getOverallMetrics()); } - internalGetMutableActionMetrics().mergeFrom( - other.internalGetActionMetrics()); + internalGetMutableActionMetrics().mergeFrom(other.internalGetActionMetrics()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -561,28 +620,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getOverallMetricsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - actionMetrics__ = input.readMessage( - ActionMetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableActionMetrics().getMutableMap().put( - actionMetrics__.getKey(), actionMetrics__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getOverallMetricsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> + actionMetrics__ = + input.readMessage( + ActionMetricsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableActionMetrics() + .getMutableMap() + .put(actionMetrics__.getKey(), actionMetrics__.getValue()); + bitField0_ |= 0x00000002; + 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) { @@ -592,38 +656,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.recaptchaenterprise.v1.ScoreDistribution overallMetrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.ScoreDistribution, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder> overallMetricsBuilder_; + com.google.recaptchaenterprise.v1.ScoreDistribution, + com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, + com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder> + overallMetricsBuilder_; /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; + * * @return Whether the overallMetrics field is set. */ public boolean hasOverallMetrics() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; + * * @return The overallMetrics. */ public com.google.recaptchaenterprise.v1.ScoreDistribution getOverallMetrics() { if (overallMetricsBuilder_ == null) { - return overallMetrics_ == null ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() : overallMetrics_; + return overallMetrics_ == null + ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() + : overallMetrics_; } else { return overallMetricsBuilder_.getMessage(); } } /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
@@ -644,6 +722,8 @@ public Builder setOverallMetrics(com.google.recaptchaenterprise.v1.ScoreDistribu return this; } /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
@@ -662,6 +742,8 @@ public Builder setOverallMetrics( return this; } /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
@@ -670,9 +752,10 @@ public Builder setOverallMetrics( */ public Builder mergeOverallMetrics(com.google.recaptchaenterprise.v1.ScoreDistribution value) { if (overallMetricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - overallMetrics_ != null && - overallMetrics_ != com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && overallMetrics_ != null + && overallMetrics_ + != com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()) { getOverallMetricsBuilder().mergeFrom(value); } else { overallMetrics_ = value; @@ -685,6 +768,8 @@ public Builder mergeOverallMetrics(com.google.recaptchaenterprise.v1.ScoreDistri return this; } /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
@@ -702,6 +787,8 @@ public Builder clearOverallMetrics() { return this; } /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
@@ -714,21 +801,27 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution.Builder getOverallMet return getOverallMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; */ - public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMetricsOrBuilder() { + public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder + getOverallMetricsOrBuilder() { if (overallMetricsBuilder_ != null) { return overallMetricsBuilder_.getMessageOrBuilder(); } else { - return overallMetrics_ == null ? - com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() : overallMetrics_; + return overallMetrics_ == null + ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() + : overallMetrics_; } } /** + * + * *
      * Aggregated score metrics for all traffic.
      * 
@@ -736,22 +829,28 @@ public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMe * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.ScoreDistribution, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder> + com.google.recaptchaenterprise.v1.ScoreDistribution, + com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, + com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder> getOverallMetricsFieldBuilder() { if (overallMetricsBuilder_ == null) { - overallMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.ScoreDistribution, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder>( - getOverallMetrics(), - getParentForChildren(), - isClean()); + overallMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.ScoreDistribution, + com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, + com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder>( + getOverallMetrics(), getParentForChildren(), isClean()); overallMetrics_ = null; } return overallMetricsBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> actionMetrics_; - private com.google.protobuf.MapField + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> + actionMetrics_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> internalGetActionMetrics() { if (actionMetrics_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -759,11 +858,13 @@ public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMe } return actionMetrics_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> internalGetMutableActionMetrics() { if (actionMetrics_ == null) { - actionMetrics_ = com.google.protobuf.MapField.newMapField( - ActionMetricsDefaultEntryHolder.defaultEntry); + actionMetrics_ = + com.google.protobuf.MapField.newMapField(ActionMetricsDefaultEntryHolder.defaultEntry); } if (!actionMetrics_.isMutable()) { actionMetrics_ = actionMetrics_.copy(); @@ -772,74 +873,96 @@ public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMe onChanged(); return actionMetrics_; } + public int getActionMetricsCount() { return internalGetActionMetrics().getMap().size(); } /** + * + * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ @java.lang.Override - public boolean containsActionMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsActionMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetActionMetrics().getMap().containsKey(key); } - /** - * Use {@link #getActionMetricsMap()} instead. - */ + /** Use {@link #getActionMetricsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getActionMetrics() { + public java.util.Map + getActionMetrics() { return getActionMetricsMap(); } /** + * + * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ @java.lang.Override - public java.util.Map getActionMetricsMap() { + public java.util.Map + getActionMetricsMap() { return internalGetActionMetrics().getMap(); } /** + * + * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ @java.lang.Override - public /* nullable */ -com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrDefault( - java.lang.String key, - /* nullable */ -com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.recaptchaenterprise.v1.ScoreDistribution + getActionMetricsOrDefault( + java.lang.String key, + /* nullable */ + com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetActionMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetActionMetrics().getMap(); if (!map.containsKey(key)) { @@ -847,30 +970,32 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThr } return map.get(key); } + public Builder clearActionMetrics() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableActionMetrics().getMutableMap() - .clear(); + internalGetMutableActionMetrics().getMutableMap().clear(); return this; } /** + * + * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ - public Builder removeActionMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableActionMetrics().getMutableMap() - .remove(key); + public Builder removeActionMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableActionMetrics().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableActionMetrics() { @@ -878,41 +1003,51 @@ public Builder removeActionMetrics( return internalGetMutableActionMetrics().getMutableMap(); } /** + * + * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ public Builder putActionMetrics( - java.lang.String key, - com.google.recaptchaenterprise.v1.ScoreDistribution value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableActionMetrics().getMutableMap() - .put(key, value); + java.lang.String key, com.google.recaptchaenterprise.v1.ScoreDistribution value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableActionMetrics().getMutableMap().put(key, value); bitField0_ |= 0x00000002; return this; } /** + * + * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ public Builder putAllActionMetrics( - java.util.Map values) { - internalGetMutableActionMetrics().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableActionMetrics().getMutableMap().putAll(values); bitField0_ |= 0x00000002; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -922,12 +1057,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ScoreMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ScoreMetrics) private static final com.google.recaptchaenterprise.v1.ScoreMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ScoreMetrics(); } @@ -936,27 +1071,27 @@ public static com.google.recaptchaenterprise.v1.ScoreMetrics getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScoreMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScoreMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -971,6 +1106,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.ScoreMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java similarity index 58% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java index ca178ab0d775..48f36754b594 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ScoreMetricsOrBuilder extends +public interface ScoreMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ScoreMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Aggregated score metrics for all traffic.
    * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; + * * @return Whether the overallMetrics field is set. */ boolean hasOverallMetrics(); /** + * + * *
    * Aggregated score metrics for all traffic.
    * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; + * * @return The overallMetrics. */ com.google.recaptchaenterprise.v1.ScoreDistribution getOverallMetrics(); /** + * + * *
    * Aggregated score metrics for all traffic.
    * 
@@ -35,61 +59,77 @@ public interface ScoreMetricsOrBuilder extends com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMetricsOrBuilder(); /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ int getActionMetricsCount(); /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - */ - boolean containsActionMetrics( - java.lang.String key); - /** - * Use {@link #getActionMetricsMap()} instead. + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ + boolean containsActionMetrics(java.lang.String key); + /** Use {@link #getActionMetricsMap()} instead. */ @java.lang.Deprecated java.util.Map - getActionMetrics(); + getActionMetrics(); /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ java.util.Map - getActionMetricsMap(); + getActionMetricsMap(); /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ /* nullable */ -com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrDefault( + com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrDefault( java.lang.String key, /* nullable */ -com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue); + com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue); /** + * + * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + * */ - com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThrow( - java.lang.String key); + com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java similarity index 64% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java index 7130de857112..0d2562135bb0 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The request message to search related account group memberships.
  * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest} */ -public final class SearchRelatedAccountGroupMembershipsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchRelatedAccountGroupMembershipsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) SearchRelatedAccountGroupMembershipsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchRelatedAccountGroupMembershipsRequest.newBuilder() to construct. - private SearchRelatedAccountGroupMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SearchRelatedAccountGroupMembershipsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchRelatedAccountGroupMembershipsRequest() { project_ = ""; accountId_ = ""; @@ -28,35 +49,43 @@ private SearchRelatedAccountGroupMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchRelatedAccountGroupMembershipsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.Builder.class); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.Builder + .class); } public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** + * + * *
    * Required. The name of the project to search related account group
    * memberships from. Specify the project name in the following format:
    * `projects/{project}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ @java.lang.Override @@ -65,31 +94,33 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
    * Required. The name of the project to search related account group
    * memberships from. Specify the project name in the following format:
    * `projects/{project}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -98,9 +129,12 @@ public java.lang.String getProject() { } public static final int ACCOUNT_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** + * + * *
    * Optional. The unique stable account identifier used to search connections.
    * The identifier should correspond to an `account_id` provided in a previous
@@ -109,6 +143,7 @@ public java.lang.String getProject() {
    * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ @java.lang.Override @@ -117,14 +152,15 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** + * + * *
    * Optional. The unique stable account identifier used to search connections.
    * The identifier should correspond to an `account_id` provided in a previous
@@ -133,16 +169,15 @@ public java.lang.String getAccountId() {
    * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -153,6 +188,8 @@ public java.lang.String getAccountId() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Optional. Deprecated: use `account_id` instead.
    * The unique stable hashed account identifier used to search connections. The
@@ -161,19 +198,25 @@ public java.lang.String getAccountId() {
    * hashed_account_id or account_id must be set, but not both.
    * 
* - * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 + * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 * @return The hashedAccountId. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getHashedAccountId() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of groups to return. The service might return
    * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -181,6 +224,7 @@ public java.lang.String getAccountId() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -189,9 +233,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A page token, received from a previous
    * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -203,6 +250,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -211,14 +259,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A page token, received from a previous
    * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -230,16 +279,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -248,6 +296,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +308,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -289,12 +337,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hashedAccountId_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -310,23 +356,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest)) { + if (!(obj + instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest other = (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getAccountId() - .equals(other.getAccountId())) return false; - if (!getHashedAccountId() - .equals(other.getHashedAccountId())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest other = + (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getAccountId().equals(other.getAccountId())) return false; + if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,132 +396,146 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest 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.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + 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.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest 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.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + 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.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message to search related account group memberships.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.Builder.class); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.Builder + .class); } - // Construct using com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -492,19 +549,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.getDefaultInstance(); + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest build() { - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result = buildPartial(); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -512,14 +572,19 @@ public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsReq } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest buildPartial() { - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result = new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + buildPartial() { + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result = + new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.project_ = project_; @@ -542,46 +607,53 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.SearchRelatedAccoun public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest)other); + if (other + instanceof + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) { + return mergeFrom( + (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest other) { - if (other == com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest other) { + if (other + == com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + .getDefaultInstance()) return this; if (!other.getProject().isEmpty()) { project_ = other.project_; bitField0_ |= 0x00000001; @@ -629,37 +701,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: { - accountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -669,24 +747,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object project_ = ""; /** + * + * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -695,22 +778,25 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -718,32 +804,43 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProject() { @@ -753,19 +850,25 @@ public Builder clearProject() { return this; } /** + * + * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -775,6 +878,8 @@ public Builder setProjectBytes( private java.lang.Object accountId_ = ""; /** + * + * *
      * Optional. The unique stable account identifier used to search connections.
      * The identifier should correspond to an `account_id` provided in a previous
@@ -783,13 +888,13 @@ public Builder setProjectBytes(
      * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -798,6 +903,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
      * Optional. The unique stable account identifier used to search connections.
      * The identifier should correspond to an `account_id` provided in a previous
@@ -806,15 +913,14 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -822,6 +928,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
      * Optional. The unique stable account identifier used to search connections.
      * The identifier should correspond to an `account_id` provided in a previous
@@ -830,18 +938,22 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accountId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The unique stable account identifier used to search connections.
      * The identifier should correspond to an `account_id` provided in a previous
@@ -850,6 +962,7 @@ public Builder setAccountId(
      * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAccountId() { @@ -859,6 +972,8 @@ public Builder clearAccountId() { return this; } /** + * + * *
      * Optional. The unique stable account identifier used to search connections.
      * The identifier should correspond to an `account_id` provided in a previous
@@ -867,12 +982,14 @@ public Builder clearAccountId() {
      * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000002; @@ -882,6 +999,8 @@ public Builder setAccountIdBytes( private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. Deprecated: use `account_id` instead.
      * The unique stable hashed account identifier used to search connections. The
@@ -890,16 +1009,23 @@ public Builder setAccountIdBytes(
      * hashed_account_id or account_id must be set, but not both.
      * 
* - * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 + * + * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 * @return The hashedAccountId. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getHashedAccountId() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** + * + * *
      * Optional. Deprecated: use `account_id` instead.
      * The unique stable hashed account identifier used to search connections. The
@@ -908,20 +1034,29 @@ public Builder setAccountIdBytes(
      * hashed_account_id or account_id must be set, but not both.
      * 
* - * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 + * + * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 * @param value The hashedAccountId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setHashedAccountId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } hashedAccountId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. Deprecated: use `account_id` instead.
      * The unique stable hashed account identifier used to search connections. The
@@ -930,20 +1065,27 @@ public Builder setAccountIdBytes(
      * hashed_account_id or account_id must be set, but not both.
      * 
* - * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 + * + * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearHashedAccountId() { + @java.lang.Deprecated + public Builder clearHashedAccountId() { bitField0_ = (bitField0_ & ~0x00000004); hashedAccountId_ = getDefaultInstance().getHashedAccountId(); onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -951,6 +1093,7 @@ public Builder setAccountIdBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -958,6 +1101,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -965,6 +1110,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -976,6 +1122,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -983,6 +1131,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -994,6 +1143,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -1005,13 +1156,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1020,6 +1171,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -1031,15 +1184,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1047,6 +1199,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -1058,18 +1212,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -1081,6 +1239,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1090,6 +1249,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -1101,21 +1262,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1125,55 +1288,60 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) - private static final com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest(); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchRelatedAccountGroupMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRelatedAccountGroupMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java index 331855304a7c..faeff7dbe0f8 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder extends +public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project to search related account group
    * memberships from. Specify the project name in the following format:
    * `projects/{project}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * Required. The name of the project to search related account group
    * memberships from. Specify the project name in the following format:
    * `projects/{project}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Optional. The unique stable account identifier used to search connections.
    * The identifier should correspond to an `account_id` provided in a previous
@@ -40,10 +67,13 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder extends
    * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ java.lang.String getAccountId(); /** + * + * *
    * Optional. The unique stable account identifier used to search connections.
    * The identifier should correspond to an `account_id` provided in a previous
@@ -52,12 +82,14 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder extends
    * 
* * string account_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ - com.google.protobuf.ByteString - getAccountIdBytes(); + com.google.protobuf.ByteString getAccountIdBytes(); /** + * + * *
    * Optional. Deprecated: use `account_id` instead.
    * The unique stable hashed account identifier used to search connections. The
@@ -66,14 +98,20 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder extends
    * hashed_account_id or account_id must be set, but not both.
    * 
* - * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id is deprecated. - * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 + * bytes hashed_account_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1781 * @return The hashedAccountId. */ - @java.lang.Deprecated com.google.protobuf.ByteString getHashedAccountId(); + @java.lang.Deprecated + com.google.protobuf.ByteString getHashedAccountId(); /** + * + * *
    * Optional. The maximum number of groups to return. The service might return
    * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -81,11 +119,14 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder extends
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A page token, received from a previous
    * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -97,10 +138,13 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A page token, received from a previous
    * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -112,8 +156,8 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java similarity index 56% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java index f217dba0b8f3..3fe24c21c632 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The response to a `SearchRelatedAccountGroupMemberships` call.
  * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse} */ -public final class SearchRelatedAccountGroupMembershipsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchRelatedAccountGroupMembershipsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) SearchRelatedAccountGroupMembershipsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchRelatedAccountGroupMembershipsResponse.newBuilder() to construct. - private SearchRelatedAccountGroupMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SearchRelatedAccountGroupMembershipsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchRelatedAccountGroupMembershipsResponse() { relatedAccountGroupMemberships_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,95 +47,126 @@ private SearchRelatedAccountGroupMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchRelatedAccountGroupMembershipsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.Builder.class); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.Builder + .class); } public static final int RELATED_ACCOUNT_GROUP_MEMBERSHIPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List relatedAccountGroupMemberships_; + private java.util.List + relatedAccountGroupMemberships_; /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override - public java.util.List getRelatedAccountGroupMembershipsList() { + public java.util.List + getRelatedAccountGroupMembershipsList() { return relatedAccountGroupMemberships_; } /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> getRelatedAccountGroupMembershipsOrBuilderList() { return relatedAccountGroupMemberships_; } /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override public int getRelatedAccountGroupMembershipsCount() { return relatedAccountGroupMemberships_.size(); } /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership + getRelatedAccountGroupMemberships(int index) { return relatedAccountGroupMemberships_.get(index); } /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder + getRelatedAccountGroupMembershipsOrBuilder(int index) { return relatedAccountGroupMemberships_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +175,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -155,6 +207,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < relatedAccountGroupMemberships_.size(); i++) { output.writeMessage(1, relatedAccountGroupMemberships_.get(i)); } @@ -184,8 +236,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relatedAccountGroupMemberships_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relatedAccountGroupMemberships_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, relatedAccountGroupMemberships_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +251,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse)) { + if (!(obj + instanceof + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse other = (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) obj; + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse other = + (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) obj; if (!getRelatedAccountGroupMembershipsList() .equals(other.getRelatedAccountGroupMembershipsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,132 +286,146 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse 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.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + 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.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse 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.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + 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.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response to a `SearchRelatedAccountGroupMemberships` call.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.Builder.class); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.Builder + .class); } - // Construct using com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,19 +442,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.getDefaultInstance(); + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse build() { - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result = buildPartial(); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -393,18 +465,24 @@ public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRes } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse buildPartial() { - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result = new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse(this); + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + buildPartial() { + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result = + new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result) { if (relatedAccountGroupMembershipsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroupMemberships_ = java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); + relatedAccountGroupMemberships_ = + java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); bitField0_ = (bitField0_ & ~0x00000001); } result.relatedAccountGroupMemberships_ = relatedAccountGroupMemberships_; @@ -413,7 +491,8 @@ private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.Search } } - private void buildPartial0(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +503,53 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.SearchRelatedAccoun public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse)other); + if (other + instanceof + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) { + return mergeFrom( + (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse other) { - if (other == com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse other) { + if (other + == com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + .getDefaultInstance()) return this; if (relatedAccountGroupMembershipsBuilder_ == null) { if (!other.relatedAccountGroupMemberships_.isEmpty()) { if (relatedAccountGroupMemberships_.isEmpty()) { @@ -482,11 +568,13 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.SearchRelatedAccountG relatedAccountGroupMembershipsBuilder_ = null; relatedAccountGroupMemberships_ = other.relatedAccountGroupMemberships_; bitField0_ = (bitField0_ & ~0x00000001); - relatedAccountGroupMembershipsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRelatedAccountGroupMembershipsFieldBuilder() : null; + relatedAccountGroupMembershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRelatedAccountGroupMembershipsFieldBuilder() + : null; } else { - relatedAccountGroupMembershipsBuilder_.addAllMessages(other.relatedAccountGroupMemberships_); + relatedAccountGroupMembershipsBuilder_.addAllMessages( + other.relatedAccountGroupMemberships_); } } } @@ -521,30 +609,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership m = - input.readMessage( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.parser(), - extensionRegistry); - if (relatedAccountGroupMembershipsBuilder_ == null) { - ensureRelatedAccountGroupMembershipsIsMutable(); - relatedAccountGroupMemberships_.add(m); - } else { - relatedAccountGroupMembershipsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership m = + input.readMessage( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.parser(), + extensionRegistry); + if (relatedAccountGroupMembershipsBuilder_ == null) { + ensureRelatedAccountGroupMembershipsIsMutable(); + relatedAccountGroupMemberships_.add(m); + } else { + relatedAccountGroupMembershipsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -554,28 +645,41 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List relatedAccountGroupMemberships_ = - java.util.Collections.emptyList(); + private java.util.List + relatedAccountGroupMemberships_ = java.util.Collections.emptyList(); + private void ensureRelatedAccountGroupMembershipsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroupMemberships_ = new java.util.ArrayList(relatedAccountGroupMemberships_); + relatedAccountGroupMemberships_ = + new java.util.ArrayList< + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership>( + relatedAccountGroupMemberships_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> relatedAccountGroupMembershipsBuilder_; + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + relatedAccountGroupMembershipsBuilder_; /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public java.util.List getRelatedAccountGroupMembershipsList() { + public java.util.List + getRelatedAccountGroupMembershipsList() { if (relatedAccountGroupMembershipsBuilder_ == null) { return java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); } else { @@ -583,11 +687,15 @@ public java.util.List * The queried memberships. *
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public int getRelatedAccountGroupMembershipsCount() { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -597,13 +705,18 @@ public int getRelatedAccountGroupMembershipsCount() { } } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership + getRelatedAccountGroupMemberships(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { return relatedAccountGroupMemberships_.get(index); } else { @@ -611,11 +724,15 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelate } } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder setRelatedAccountGroupMemberships( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { @@ -632,14 +749,19 @@ public Builder setRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder setRelatedAccountGroupMemberships( - int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); relatedAccountGroupMemberships_.set(index, builderForValue.build()); @@ -650,13 +772,18 @@ public Builder setRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public Builder addRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { + public Builder addRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { if (relatedAccountGroupMembershipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -670,11 +797,15 @@ public Builder addRelatedAccountGroupMemberships(com.google.recaptchaenterprise. return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder addRelatedAccountGroupMemberships( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { @@ -691,11 +822,15 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder addRelatedAccountGroupMemberships( com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { @@ -709,14 +844,19 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder addRelatedAccountGroupMemberships( - int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); relatedAccountGroupMemberships_.add(index, builderForValue.build()); @@ -727,14 +867,20 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder addAllRelatedAccountGroupMemberships( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership> + values) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -746,11 +892,15 @@ public Builder addAllRelatedAccountGroupMemberships( return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder clearRelatedAccountGroupMemberships() { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -763,11 +913,15 @@ public Builder clearRelatedAccountGroupMemberships() { return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ public Builder removeRelatedAccountGroupMemberships(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -780,39 +934,53 @@ public Builder removeRelatedAccountGroupMemberships(int index) { return this; } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder getRelatedAccountGroupMembershipsBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder + getRelatedAccountGroupMembershipsBuilder(int index) { return getRelatedAccountGroupMembershipsFieldBuilder().getBuilder(index); } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder + getRelatedAccountGroupMembershipsOrBuilder(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { - return relatedAccountGroupMemberships_.get(index); } else { + return relatedAccountGroupMemberships_.get(index); + } else { return relatedAccountGroupMembershipsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public java.util.List - getRelatedAccountGroupMembershipsOrBuilderList() { + public java.util.List< + ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + getRelatedAccountGroupMembershipsOrBuilderList() { if (relatedAccountGroupMembershipsBuilder_ != null) { return relatedAccountGroupMembershipsBuilder_.getMessageOrBuilderList(); } else { @@ -820,45 +988,67 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder } } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder addRelatedAccountGroupMembershipsBuilder() { - return getRelatedAccountGroupMembershipsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder + addRelatedAccountGroupMembershipsBuilder() { + return getRelatedAccountGroupMembershipsFieldBuilder() + .addBuilder( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder addRelatedAccountGroupMembershipsBuilder( - int index) { - return getRelatedAccountGroupMembershipsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder + addRelatedAccountGroupMembershipsBuilder(int index) { + return getRelatedAccountGroupMembershipsFieldBuilder() + .addBuilder( + index, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); } /** + * + * *
      * The queried memberships.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - public java.util.List - getRelatedAccountGroupMembershipsBuilderList() { + public java.util.List + getRelatedAccountGroupMembershipsBuilderList() { return getRelatedAccountGroupMembershipsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> getRelatedAccountGroupMembershipsFieldBuilder() { if (relatedAccountGroupMembershipsBuilder_ == null) { - relatedAccountGroupMembershipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder>( + relatedAccountGroupMembershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder>( relatedAccountGroupMemberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -870,19 +1060,21 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder a private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -891,21 +1083,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -913,30 +1106,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1146,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,55 +1180,61 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) - private static final com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1 + .SearchRelatedAccountGroupMembershipsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse(); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchRelatedAccountGroupMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRelatedAccountGroupMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java similarity index 51% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java index a5acf9443ce7..48c893087c34 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java @@ -1,75 +1,117 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface SearchRelatedAccountGroupMembershipsResponseOrBuilder extends +public interface SearchRelatedAccountGroupMembershipsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - java.util.List + java.util.List getRelatedAccountGroupMembershipsList(); /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships( + int index); /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ int getRelatedAccountGroupMembershipsCount(); /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - java.util.List + java.util.List getRelatedAccountGroupMembershipsOrBuilderList(); /** + * + * *
    * The queried memberships.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; + * */ - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( - int index); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder + getRelatedAccountGroupMembershipsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java similarity index 66% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java index 62c3a5b580fc..8a9fe4def0f1 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java @@ -1,49 +1,70 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Options for user acceptance testing.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TestingOptions} */ -public final class TestingOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TestingOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TestingOptions) TestingOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TestingOptions.newBuilder() to construct. private TestingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TestingOptions() { testingChallenge_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestingOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TestingOptions.class, com.google.recaptchaenterprise.v1.TestingOptions.Builder.class); + com.google.recaptchaenterprise.v1.TestingOptions.class, + com.google.recaptchaenterprise.v1.TestingOptions.Builder.class); } /** + * + * *
    * Enum that represents the challenge option for challenge-based (CHECKBOX,
    * INVISIBLE) testing keys.
@@ -51,9 +72,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge}
    */
-  public enum TestingChallenge
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum TestingChallenge implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Perform the normal risk analysis and return either nocaptcha or a
      * challenge depending on risk and trust factors.
@@ -63,6 +85,8 @@ public enum TestingChallenge
      */
     TESTING_CHALLENGE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Challenge requests for this key always return a nocaptcha, which
      * does not require a solution.
@@ -72,6 +96,8 @@ public enum TestingChallenge
      */
     NOCAPTCHA(1),
     /**
+     *
+     *
      * 
      * Challenge requests for this key always return an unsolvable
      * challenge.
@@ -84,6 +110,8 @@ public enum TestingChallenge
     ;
 
     /**
+     *
+     *
      * 
      * Perform the normal risk analysis and return either nocaptcha or a
      * challenge depending on risk and trust factors.
@@ -93,6 +121,8 @@ public enum TestingChallenge
      */
     public static final int TESTING_CHALLENGE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Challenge requests for this key always return a nocaptcha, which
      * does not require a solution.
@@ -102,6 +132,8 @@ public enum TestingChallenge
      */
     public static final int NOCAPTCHA_VALUE = 1;
     /**
+     *
+     *
      * 
      * Challenge requests for this key always return an unsolvable
      * challenge.
@@ -111,7 +143,6 @@ public enum TestingChallenge
      */
     public static final int UNSOLVABLE_CHALLENGE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -136,39 +167,42 @@ public static TestingChallenge valueOf(int value) {
      */
     public static TestingChallenge forNumber(int value) {
       switch (value) {
-        case 0: return TESTING_CHALLENGE_UNSPECIFIED;
-        case 1: return NOCAPTCHA;
-        case 2: return UNSOLVABLE_CHALLENGE;
-        default: return null;
+        case 0:
+          return TESTING_CHALLENGE_UNSPECIFIED;
+        case 1:
+          return NOCAPTCHA;
+        case 2:
+          return UNSOLVABLE_CHALLENGE;
+        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<
-        TestingChallenge> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public TestingChallenge findValueByNumber(int number) {
-              return TestingChallenge.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public TestingChallenge findValueByNumber(int number) {
+                return TestingChallenge.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.recaptchaenterprise.v1.TestingOptions.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -177,8 +211,7 @@ public TestingChallenge findValueByNumber(int number) {
     public static TestingChallenge 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;
@@ -198,12 +231,15 @@ private TestingChallenge(int value) {
   public static final int TESTING_SCORE_FIELD_NUMBER = 1;
   private float testingScore_ = 0F;
   /**
+   *
+   *
    * 
    * Optional. All assessments for this Key will return this score. Must be
    * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
    * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The testingScore. */ @java.lang.Override @@ -214,34 +250,51 @@ public float getTestingScore() { public static final int TESTING_CHALLENGE_FIELD_NUMBER = 2; private int testingChallenge_ = 0; /** + * + * *
    * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
    * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
    * unsolvable challenge if CHALLENGE.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for testingChallenge. */ - @java.lang.Override public int getTestingChallengeValue() { + @java.lang.Override + public int getTestingChallengeValue() { return testingChallenge_; } /** + * + * *
    * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
    * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
    * unsolvable challenge if CHALLENGE.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The testingChallenge. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge getTestingChallenge() { - com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge result = com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.forNumber(testingChallenge_); - return result == null ? com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge getTestingChallenge() { + com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge result = + com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.forNumber( + testingChallenge_); + return result == null + ? com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,12 +306,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(testingScore_) != 0) { output.writeFloat(1, testingScore_); } - if (testingChallenge_ != com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.TESTING_CHALLENGE_UNSPECIFIED.getNumber()) { + if (testingChallenge_ + != com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge + .TESTING_CHALLENGE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, testingChallenge_); } getUnknownFields().writeTo(output); @@ -271,12 +326,13 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(testingScore_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, testingScore_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, testingScore_); } - if (testingChallenge_ != com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.TESTING_CHALLENGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, testingChallenge_); + if (testingChallenge_ + != com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge + .TESTING_CHALLENGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, testingChallenge_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -286,16 +342,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.recaptchaenterprise.v1.TestingOptions)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TestingOptions other = (com.google.recaptchaenterprise.v1.TestingOptions) obj; + com.google.recaptchaenterprise.v1.TestingOptions other = + (com.google.recaptchaenterprise.v1.TestingOptions) obj; if (java.lang.Float.floatToIntBits(getTestingScore()) - != java.lang.Float.floatToIntBits( - other.getTestingScore())) return false; + != java.lang.Float.floatToIntBits(other.getTestingScore())) return false; if (testingChallenge_ != other.testingChallenge_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -309,8 +365,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TESTING_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTestingScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTestingScore()); hash = (37 * hash) + TESTING_CHALLENGE_FIELD_NUMBER; hash = (53 * hash) + testingChallenge_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -318,132 +373,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TestingOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TestingOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.TestingOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Options for user acceptance testing.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TestingOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TestingOptions) com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TestingOptions.class, com.google.recaptchaenterprise.v1.TestingOptions.Builder.class); + com.google.recaptchaenterprise.v1.TestingOptions.class, + com.google.recaptchaenterprise.v1.TestingOptions.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TestingOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +513,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; } @java.lang.Override @@ -475,8 +534,11 @@ public com.google.recaptchaenterprise.v1.TestingOptions build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptions buildPartial() { - com.google.recaptchaenterprise.v1.TestingOptions result = new com.google.recaptchaenterprise.v1.TestingOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.TestingOptions result = + new com.google.recaptchaenterprise.v1.TestingOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -495,38 +557,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TestingOptions resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TestingOptions) { - return mergeFrom((com.google.recaptchaenterprise.v1.TestingOptions)other); + return mergeFrom((com.google.recaptchaenterprise.v1.TestingOptions) other); } else { super.mergeFrom(other); return this; @@ -534,7 +597,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TestingOptions other) { - if (other == com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance()) + return this; if (other.getTestingScore() != 0F) { setTestingScore(other.getTestingScore()); } @@ -567,22 +631,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - testingScore_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 16: { - testingChallenge_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + testingScore_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 16: + { + testingChallenge_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -592,16 +659,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float testingScore_ ; + private float testingScore_; /** + * + * *
      * Optional. All assessments for this Key will return this score. Must be
      * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
      * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The testingScore. */ @java.lang.Override @@ -609,12 +680,15 @@ public float getTestingScore() { return testingScore_; } /** + * + * *
      * Optional. All assessments for this Key will return this score. Must be
      * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
      * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The testingScore to set. * @return This builder for chaining. */ @@ -626,12 +700,15 @@ public Builder setTestingScore(float value) { return this; } /** + * + * *
      * Optional. All assessments for this Key will return this score. Must be
      * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
      * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTestingScore() { @@ -643,26 +720,37 @@ public Builder clearTestingScore() { private int testingChallenge_ = 0; /** + * + * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for testingChallenge. */ - @java.lang.Override public int getTestingChallengeValue() { + @java.lang.Override + public int getTestingChallengeValue() { return testingChallenge_; } /** + * + * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for testingChallenge to set. * @return This builder for chaining. */ @@ -673,32 +761,47 @@ public Builder setTestingChallengeValue(int value) { return this; } /** + * + * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The testingChallenge. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge getTestingChallenge() { - com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge result = com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.forNumber(testingChallenge_); - return result == null ? com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.UNRECOGNIZED : result; + com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge result = + com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.forNumber( + testingChallenge_); + return result == null + ? com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The testingChallenge to set. * @return This builder for chaining. */ - public Builder setTestingChallenge(com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge value) { + public Builder setTestingChallenge( + com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge value) { if (value == null) { throw new NullPointerException(); } @@ -708,13 +811,18 @@ public Builder setTestingChallenge(com.google.recaptchaenterprise.v1.TestingOpti return this; } /** + * + * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTestingChallenge() { @@ -723,9 +831,9 @@ public Builder clearTestingChallenge() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -735,12 +843,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TestingOptions) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TestingOptions) private static final com.google.recaptchaenterprise.v1.TestingOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TestingOptions(); } @@ -749,27 +857,27 @@ public static com.google.recaptchaenterprise.v1.TestingOptions getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestingOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -784,6 +892,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TestingOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java similarity index 57% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java index 67fafce1a4d1..75025a0d3f2d 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java @@ -1,42 +1,71 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface TestingOptionsOrBuilder extends +public interface TestingOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TestingOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. All assessments for this Key will return this score. Must be
    * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
    * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The testingScore. */ float getTestingScore(); /** + * + * *
    * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
    * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
    * unsolvable challenge if CHALLENGE.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for testingChallenge. */ int getTestingChallengeValue(); /** + * + * *
    * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
    * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
    * unsolvable challenge if CHALLENGE.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The testingChallenge. */ com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge getTestingChallenge(); diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java similarity index 70% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java index d275528f1fe2..bfce0d7eba98 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Properties of the provided event token.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TokenProperties} */ -public final class TokenProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TokenProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TokenProperties) TokenPropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TokenProperties.newBuilder() to construct. private TokenProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TokenProperties() { invalidReason_ = 0; hostname_ = ""; @@ -29,34 +47,38 @@ private TokenProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TokenProperties(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TokenProperties.class, com.google.recaptchaenterprise.v1.TokenProperties.Builder.class); + com.google.recaptchaenterprise.v1.TokenProperties.class, + com.google.recaptchaenterprise.v1.TokenProperties.Builder.class); } /** + * + * *
    * Enum that represents the types of invalid token reasons.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason} */ - public enum InvalidReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified type.
      * 
@@ -65,6 +87,8 @@ public enum InvalidReason */ INVALID_REASON_UNSPECIFIED(0), /** + * + * *
      * If the failure reason was not accounted for.
      * 
@@ -73,6 +97,8 @@ public enum InvalidReason */ UNKNOWN_INVALID_REASON(1), /** + * + * *
      * The provided user verification token was malformed.
      * 
@@ -81,6 +107,8 @@ public enum InvalidReason */ MALFORMED(2), /** + * + * *
      * The user verification token had expired.
      * 
@@ -89,6 +117,8 @@ public enum InvalidReason */ EXPIRED(3), /** + * + * *
      * The user verification had already been seen.
      * 
@@ -97,6 +127,8 @@ public enum InvalidReason */ DUPE(4), /** + * + * *
      * The user verification token was not present.
      * 
@@ -105,6 +137,8 @@ public enum InvalidReason */ MISSING(5), /** + * + * *
      * A retriable error (such as network failure) occurred on the browser.
      * Could easily be simulated by an attacker.
@@ -117,6 +151,8 @@ public enum InvalidReason
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified type.
      * 
@@ -125,6 +161,8 @@ public enum InvalidReason */ public static final int INVALID_REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
      * If the failure reason was not accounted for.
      * 
@@ -133,6 +171,8 @@ public enum InvalidReason */ public static final int UNKNOWN_INVALID_REASON_VALUE = 1; /** + * + * *
      * The provided user verification token was malformed.
      * 
@@ -141,6 +181,8 @@ public enum InvalidReason */ public static final int MALFORMED_VALUE = 2; /** + * + * *
      * The user verification token had expired.
      * 
@@ -149,6 +191,8 @@ public enum InvalidReason */ public static final int EXPIRED_VALUE = 3; /** + * + * *
      * The user verification had already been seen.
      * 
@@ -157,6 +201,8 @@ public enum InvalidReason */ public static final int DUPE_VALUE = 4; /** + * + * *
      * The user verification token was not present.
      * 
@@ -165,6 +211,8 @@ public enum InvalidReason */ public static final int MISSING_VALUE = 5; /** + * + * *
      * A retriable error (such as network failure) occurred on the browser.
      * Could easily be simulated by an attacker.
@@ -174,7 +222,6 @@ public enum InvalidReason
      */
     public static final int BROWSER_ERROR_VALUE = 6;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -199,53 +246,59 @@ public static InvalidReason valueOf(int value) {
      */
     public static InvalidReason forNumber(int value) {
       switch (value) {
-        case 0: return INVALID_REASON_UNSPECIFIED;
-        case 1: return UNKNOWN_INVALID_REASON;
-        case 2: return MALFORMED;
-        case 3: return EXPIRED;
-        case 4: return DUPE;
-        case 5: return MISSING;
-        case 6: return BROWSER_ERROR;
-        default: return null;
+        case 0:
+          return INVALID_REASON_UNSPECIFIED;
+        case 1:
+          return UNKNOWN_INVALID_REASON;
+        case 2:
+          return MALFORMED;
+        case 3:
+          return EXPIRED;
+        case 4:
+          return DUPE;
+        case 5:
+          return MISSING;
+        case 6:
+          return BROWSER_ERROR;
+        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<
-        InvalidReason> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public InvalidReason findValueByNumber(int number) {
-              return InvalidReason.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public InvalidReason findValueByNumber(int number) {
+            return InvalidReason.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.recaptchaenterprise.v1.TokenProperties.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.TokenProperties.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final InvalidReason[] VALUES = values();
 
-    public static InvalidReason valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static InvalidReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -265,6 +318,8 @@ private InvalidReason(int value) {
   public static final int VALID_FIELD_NUMBER = 1;
   private boolean valid_ = false;
   /**
+   *
+   *
    * 
    * Output only. Whether the provided user response token is valid. When valid
    * = false, the reason could be specified in invalid_reason or it could also
@@ -274,6 +329,7 @@ private InvalidReason(int value) {
    * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The valid. */ @java.lang.Override @@ -284,37 +340,56 @@ public boolean getValid() { public static final int INVALID_REASON_FIELD_NUMBER = 2; private int invalidReason_ = 0; /** + * + * *
    * Output only. Reason associated with the response when valid = false.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for invalidReason. */ - @java.lang.Override public int getInvalidReasonValue() { + @java.lang.Override + public int getInvalidReasonValue() { return invalidReason_; } /** + * + * *
    * Output only. Reason associated with the response when valid = false.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The invalidReason. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason getInvalidReason() { - com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason result = com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.forNumber(invalidReason_); - return result == null ? com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason getInvalidReason() { + com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason result = + com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.forNumber(invalidReason_); + return result == null + ? com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -322,11 +397,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -334,11 +413,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -346,15 +428,19 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int HOSTNAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * Output only. The hostname of the page on which the token was generated (Web
    * keys only).
    * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hostname. */ @java.lang.Override @@ -363,30 +449,30 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * Output only. The hostname of the page on which the token was generated (Web
    * keys only).
    * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -395,15 +481,19 @@ public java.lang.String getHostname() { } public static final int ANDROID_PACKAGE_NAME_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object androidPackageName_ = ""; /** + * + * *
    * Output only. The name of the Android package with which the token was
    * generated (Android keys only).
    * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The androidPackageName. */ @java.lang.Override @@ -412,30 +502,30 @@ public java.lang.String getAndroidPackageName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); androidPackageName_ = s; return s; } } /** + * + * *
    * Output only. The name of the Android package with which the token was
    * generated (Android keys only).
    * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for androidPackageName. */ @java.lang.Override - public com.google.protobuf.ByteString - getAndroidPackageNameBytes() { + public com.google.protobuf.ByteString getAndroidPackageNameBytes() { java.lang.Object ref = androidPackageName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); androidPackageName_ = b; return b; } else { @@ -444,15 +534,19 @@ public java.lang.String getAndroidPackageName() { } public static final int IOS_BUNDLE_ID_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object iosBundleId_ = ""; /** + * + * *
    * Output only. The ID of the iOS bundle with which the token was generated
    * (iOS keys only).
    * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The iosBundleId. */ @java.lang.Override @@ -461,30 +555,30 @@ public java.lang.String getIosBundleId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iosBundleId_ = s; return s; } } /** + * + * *
    * Output only. The ID of the iOS bundle with which the token was generated
    * (iOS keys only).
    * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for iosBundleId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIosBundleIdBytes() { + public com.google.protobuf.ByteString getIosBundleIdBytes() { java.lang.Object ref = iosBundleId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iosBundleId_ = b; return b; } else { @@ -493,14 +587,18 @@ public java.lang.String getIosBundleId() { } public static final int ACTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object action_ = ""; /** + * + * *
    * Output only. Action name provided at token generation.
    * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The action. */ @java.lang.Override @@ -509,29 +607,29 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** + * + * *
    * Output only. Action name provided at token generation.
    * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString - getActionBytes() { + public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { @@ -540,6 +638,7 @@ public java.lang.String getAction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -551,12 +650,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valid_ != false) { output.writeBool(1, valid_); } - if (invalidReason_ != com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.INVALID_REASON_UNSPECIFIED.getNumber()) { + if (invalidReason_ + != com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason + .INVALID_REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(2, invalidReason_); } if (createTime_ != null) { @@ -584,16 +685,16 @@ public int getSerializedSize() { size = 0; if (valid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, valid_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, valid_); } - if (invalidReason_ != com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.INVALID_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, invalidReason_); + if (invalidReason_ + != com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason + .INVALID_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, invalidReason_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hostname_); @@ -615,29 +716,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.recaptchaenterprise.v1.TokenProperties)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TokenProperties other = (com.google.recaptchaenterprise.v1.TokenProperties) obj; + com.google.recaptchaenterprise.v1.TokenProperties other = + (com.google.recaptchaenterprise.v1.TokenProperties) obj; - if (getValid() - != other.getValid()) return false; + if (getValid() != other.getValid()) return false; if (invalidReason_ != other.invalidReason_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (!getHostname() - .equals(other.getHostname())) return false; - if (!getAndroidPackageName() - .equals(other.getAndroidPackageName())) return false; - if (!getIosBundleId() - .equals(other.getIosBundleId())) return false; - if (!getAction() - .equals(other.getAction())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getHostname().equals(other.getHostname())) return false; + if (!getAndroidPackageName().equals(other.getAndroidPackageName())) return false; + if (!getIosBundleId().equals(other.getIosBundleId())) return false; + if (!getAction().equals(other.getAction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -650,8 +746,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValid()); hash = (37 * hash) + INVALID_REASON_FIELD_NUMBER; hash = (53 * hash) + invalidReason_; if (hasCreateTime()) { @@ -672,131 +767,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TokenProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TokenProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.TokenProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Properties of the provided event token.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TokenProperties} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TokenProperties) com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TokenProperties.class, com.google.recaptchaenterprise.v1.TokenProperties.Builder.class); + com.google.recaptchaenterprise.v1.TokenProperties.class, + com.google.recaptchaenterprise.v1.TokenProperties.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TokenProperties.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -816,9 +915,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; } @java.lang.Override @@ -837,8 +936,11 @@ public com.google.recaptchaenterprise.v1.TokenProperties build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TokenProperties buildPartial() { - com.google.recaptchaenterprise.v1.TokenProperties result = new com.google.recaptchaenterprise.v1.TokenProperties(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.TokenProperties result = + new com.google.recaptchaenterprise.v1.TokenProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -852,9 +954,7 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TokenProperties res result.invalidReason_ = invalidReason_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.hostname_ = hostname_; @@ -874,38 +974,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TokenProperties res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TokenProperties) { - return mergeFrom((com.google.recaptchaenterprise.v1.TokenProperties)other); + return mergeFrom((com.google.recaptchaenterprise.v1.TokenProperties) other); } else { super.mergeFrom(other); return this; @@ -913,7 +1014,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TokenProperties other) { - if (other == com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance()) + return this; if (other.getValid() != false) { setValid(other.getValid()); } @@ -969,49 +1071,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - valid_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - invalidReason_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 66: { - androidPackageName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: { - iosBundleId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + valid_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + invalidReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 66: + { + androidPackageName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: + { + iosBundleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1021,10 +1129,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean valid_ ; + private boolean valid_; /** + * + * *
      * Output only. Whether the provided user response token is valid. When valid
      * = false, the reason could be specified in invalid_reason or it could also
@@ -1034,6 +1145,7 @@ public Builder mergeFrom(
      * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The valid. */ @java.lang.Override @@ -1041,6 +1153,8 @@ public boolean getValid() { return valid_; } /** + * + * *
      * Output only. Whether the provided user response token is valid. When valid
      * = false, the reason could be specified in invalid_reason or it could also
@@ -1050,6 +1164,7 @@ public boolean getValid() {
      * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The valid to set. * @return This builder for chaining. */ @@ -1061,6 +1176,8 @@ public Builder setValid(boolean value) { return this; } /** + * + * *
      * Output only. Whether the provided user response token is valid. When valid
      * = false, the reason could be specified in invalid_reason or it could also
@@ -1070,6 +1187,7 @@ public Builder setValid(boolean value) {
      * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearValid() { @@ -1081,22 +1199,33 @@ public Builder clearValid() { private int invalidReason_ = 0; /** + * + * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for invalidReason. */ - @java.lang.Override public int getInvalidReasonValue() { + @java.lang.Override + public int getInvalidReasonValue() { return invalidReason_; } /** + * + * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for invalidReason to set. * @return This builder for chaining. */ @@ -1107,28 +1236,42 @@ public Builder setInvalidReasonValue(int value) { return this; } /** + * + * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The invalidReason. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason getInvalidReason() { - com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason result = com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.forNumber(invalidReason_); - return result == null ? com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.UNRECOGNIZED : result; + com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason result = + com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.forNumber(invalidReason_); + return result == null + ? com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The invalidReason to set. * @return This builder for chaining. */ - public Builder setInvalidReason(com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason value) { + public Builder setInvalidReason( + com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason value) { if (value == null) { throw new NullPointerException(); } @@ -1138,11 +1281,16 @@ public Builder setInvalidReason(com.google.recaptchaenterprise.v1.TokenPropertie return this; } /** + * + * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearInvalidReason() { @@ -1154,39 +1302,58 @@ public Builder clearInvalidReason() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1202,14 +1369,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1220,17 +1390,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1243,11 +1417,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1260,11 +1438,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1272,36 +1454,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1309,19 +1503,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object hostname_ = ""; /** + * + * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -1330,21 +1526,22 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -1352,30 +1549,37 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -1385,18 +1589,22 @@ public Builder clearHostname() { return this; } /** + * + * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000008; @@ -1406,19 +1614,21 @@ public Builder setHostnameBytes( private java.lang.Object androidPackageName_ = ""; /** + * + * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The androidPackageName. */ public java.lang.String getAndroidPackageName() { java.lang.Object ref = androidPackageName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); androidPackageName_ = s; return s; @@ -1427,21 +1637,22 @@ public java.lang.String getAndroidPackageName() { } } /** + * + * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for androidPackageName. */ - public com.google.protobuf.ByteString - getAndroidPackageNameBytes() { + public com.google.protobuf.ByteString getAndroidPackageNameBytes() { java.lang.Object ref = androidPackageName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); androidPackageName_ = b; return b; } else { @@ -1449,30 +1660,37 @@ public java.lang.String getAndroidPackageName() { } } /** + * + * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The androidPackageName to set. * @return This builder for chaining. */ - public Builder setAndroidPackageName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAndroidPackageName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } androidPackageName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearAndroidPackageName() { @@ -1482,18 +1700,22 @@ public Builder clearAndroidPackageName() { return this; } /** + * + * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for androidPackageName to set. * @return This builder for chaining. */ - public Builder setAndroidPackageNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAndroidPackageNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); androidPackageName_ = value; bitField0_ |= 0x00000010; @@ -1503,19 +1725,21 @@ public Builder setAndroidPackageNameBytes( private java.lang.Object iosBundleId_ = ""; /** + * + * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The iosBundleId. */ public java.lang.String getIosBundleId() { java.lang.Object ref = iosBundleId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iosBundleId_ = s; return s; @@ -1524,21 +1748,22 @@ public java.lang.String getIosBundleId() { } } /** + * + * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for iosBundleId. */ - public com.google.protobuf.ByteString - getIosBundleIdBytes() { + public com.google.protobuf.ByteString getIosBundleIdBytes() { java.lang.Object ref = iosBundleId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iosBundleId_ = b; return b; } else { @@ -1546,30 +1771,37 @@ public java.lang.String getIosBundleId() { } } /** + * + * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The iosBundleId to set. * @return This builder for chaining. */ - public Builder setIosBundleId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIosBundleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } iosBundleId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIosBundleId() { @@ -1579,18 +1811,22 @@ public Builder clearIosBundleId() { return this; } /** + * + * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for iosBundleId to set. * @return This builder for chaining. */ - public Builder setIosBundleIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIosBundleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); iosBundleId_ = value; bitField0_ |= 0x00000020; @@ -1600,18 +1836,20 @@ public Builder setIosBundleIdBytes( private java.lang.Object action_ = ""; /** + * + * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -1620,20 +1858,21 @@ public java.lang.String getAction() { } } /** + * + * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for action. */ - public com.google.protobuf.ByteString - getActionBytes() { + public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { @@ -1641,28 +1880,35 @@ public java.lang.String getAction() { } } /** + * + * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } action_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearAction() { @@ -1672,26 +1918,30 @@ public Builder clearAction() { return this; } /** + * + * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for action to set. * @return This builder for chaining. */ - public Builder setActionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); action_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1701,12 +1951,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TokenProperties) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TokenProperties) private static final com.google.recaptchaenterprise.v1.TokenProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TokenProperties(); } @@ -1715,27 +1965,27 @@ public static com.google.recaptchaenterprise.v1.TokenProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1750,6 +2000,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TokenProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java similarity index 73% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java index 05ecaec2a5b7..1ef770aed63c 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface TokenPropertiesOrBuilder extends +public interface TokenPropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TokenProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Whether the provided user response token is valid. When valid
    * = false, the reason could be specified in invalid_reason or it could also
@@ -17,139 +35,181 @@ public interface TokenPropertiesOrBuilder extends
    * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The valid. */ boolean getValid(); /** + * + * *
    * Output only. Reason associated with the response when valid = false.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for invalidReason. */ int getInvalidReasonValue(); /** + * + * *
    * Output only. Reason associated with the response when valid = false.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The invalidReason. */ com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason getInvalidReason(); /** + * + * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The hostname of the page on which the token was generated (Web
    * keys only).
    * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * Output only. The hostname of the page on which the token was generated (Web
    * keys only).
    * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Output only. The name of the Android package with which the token was
    * generated (Android keys only).
    * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The androidPackageName. */ java.lang.String getAndroidPackageName(); /** + * + * *
    * Output only. The name of the Android package with which the token was
    * generated (Android keys only).
    * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for androidPackageName. */ - com.google.protobuf.ByteString - getAndroidPackageNameBytes(); + com.google.protobuf.ByteString getAndroidPackageNameBytes(); /** + * + * *
    * Output only. The ID of the iOS bundle with which the token was generated
    * (iOS keys only).
    * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The iosBundleId. */ java.lang.String getIosBundleId(); /** + * + * *
    * Output only. The ID of the iOS bundle with which the token was generated
    * (iOS keys only).
    * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for iosBundleId. */ - com.google.protobuf.ByteString - getIosBundleIdBytes(); + com.google.protobuf.ByteString getIosBundleIdBytes(); /** + * + * *
    * Output only. Action name provided at token generation.
    * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The action. */ java.lang.String getAction(); /** + * + * *
    * Output only. Action name provided at token generation.
    * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for action. */ - com.google.protobuf.ByteString - getActionBytes(); + com.google.protobuf.ByteString getActionBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java similarity index 71% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java index fcf5f8bea069..4a94c85a404f 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData} */ -public final class TransactionData extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransactionData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData) TransactionDataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransactionData.newBuilder() to construct. private TransactionData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransactionData() { transactionId_ = ""; paymentMethod_ = ""; @@ -31,51 +49,60 @@ private TransactionData() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransactionData(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.class, com.google.recaptchaenterprise.v1.TransactionData.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.class, + com.google.recaptchaenterprise.v1.TransactionData.Builder.class); } - public interface AddressOrBuilder extends + public interface AddressOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData.Address) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. The recipient name, potentially including information such as
      * "care of".
      * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recipient. */ java.lang.String getRecipient(); /** + * + * *
      * Optional. The recipient name, potentially including information such as
      * "care of".
      * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recipient. */ - com.google.protobuf.ByteString - getRecipientBytes(); + com.google.protobuf.ByteString getRecipientBytes(); /** + * + * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -83,11 +110,13 @@ public interface AddressOrBuilder extends
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the address. */ - java.util.List - getAddressList(); + java.util.List getAddressList(); /** + * + * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -95,10 +124,13 @@ public interface AddressOrBuilder extends
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of address. */ int getAddressCount(); /** + * + * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -106,11 +138,14 @@ public interface AddressOrBuilder extends
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The address at the given index. */ java.lang.String getAddress(int index); /** + * + * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -118,114 +153,136 @@ public interface AddressOrBuilder extends
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - com.google.protobuf.ByteString - getAddressBytes(int index); + com.google.protobuf.ByteString getAddressBytes(int index); /** + * + * *
      * Optional. The town/city of the address.
      * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locality. */ java.lang.String getLocality(); /** + * + * *
      * Optional. The town/city of the address.
      * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locality. */ - com.google.protobuf.ByteString - getLocalityBytes(); + com.google.protobuf.ByteString getLocalityBytes(); /** + * + * *
      * Optional. The state, province, or otherwise administrative area of the
      * address.
      * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The administrativeArea. */ java.lang.String getAdministrativeArea(); /** + * + * *
      * Optional. The state, province, or otherwise administrative area of the
      * address.
      * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for administrativeArea. */ - com.google.protobuf.ByteString - getAdministrativeAreaBytes(); + com.google.protobuf.ByteString getAdministrativeAreaBytes(); /** + * + * *
      * Optional. The CLDR country/region of the address.
      * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ java.lang.String getRegionCode(); /** + * + * *
      * Optional. The CLDR country/region of the address.
      * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ - com.google.protobuf.ByteString - getRegionCodeBytes(); + com.google.protobuf.ByteString getRegionCodeBytes(); /** + * + * *
      * Optional. The postal or ZIP code of the address.
      * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The postalCode. */ java.lang.String getPostalCode(); /** + * + * *
      * Optional. The postal or ZIP code of the address.
      * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for postalCode. */ - com.google.protobuf.ByteString - getPostalCodeBytes(); + com.google.protobuf.ByteString getPostalCodeBytes(); } /** + * + * *
    * Structured address format for billing and shipping addresses.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.Address} */ - public static final class Address extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Address extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData.Address) AddressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Address() { recipient_ = ""; - address_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + address_ = com.google.protobuf.LazyStringArrayList.emptyList(); locality_ = ""; administrativeArea_ = ""; regionCode_ = ""; @@ -234,34 +291,39 @@ private Address() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Address(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.Address.class, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.Address.class, + com.google.recaptchaenterprise.v1.TransactionData.Address.Builder.class); } public static final int RECIPIENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object recipient_ = ""; /** + * + * *
      * Optional. The recipient name, potentially including information such as
      * "care of".
      * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recipient. */ @java.lang.Override @@ -270,30 +332,30 @@ public java.lang.String getRecipient() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recipient_ = s; return s; } } /** + * + * *
      * Optional. The recipient name, potentially including information such as
      * "care of".
      * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recipient. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecipientBytes() { + public com.google.protobuf.ByteString getRecipientBytes() { java.lang.Object ref = recipient_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recipient_ = b; return b; } else { @@ -302,10 +364,13 @@ public java.lang.String getRecipient() { } public static final int ADDRESS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList address_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -313,13 +378,15 @@ public java.lang.String getRecipient() {
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the address. */ - public com.google.protobuf.ProtocolStringList - getAddressList() { + public com.google.protobuf.ProtocolStringList getAddressList() { return address_; } /** + * + * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -327,12 +394,15 @@ public java.lang.String getRecipient() {
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** + * + * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -340,6 +410,7 @@ public int getAddressCount() {
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The address at the given index. */ @@ -347,6 +418,8 @@ public java.lang.String getAddress(int index) { return address_.get(index); } /** + * + * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -354,23 +427,27 @@ public java.lang.String getAddress(int index) {
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - public com.google.protobuf.ByteString - getAddressBytes(int index) { + public com.google.protobuf.ByteString getAddressBytes(int index) { return address_.getByteString(index); } public static final int LOCALITY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object locality_ = ""; /** + * + * *
      * Optional. The town/city of the address.
      * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locality. */ @java.lang.Override @@ -379,29 +456,29 @@ public java.lang.String getLocality() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** + * + * *
      * Optional. The town/city of the address.
      * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locality. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocalityBytes() { + public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -410,15 +487,19 @@ public java.lang.String getLocality() { } public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object administrativeArea_ = ""; /** + * + * *
      * Optional. The state, province, or otherwise administrative area of the
      * address.
      * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The administrativeArea. */ @java.lang.Override @@ -427,30 +508,30 @@ public java.lang.String getAdministrativeArea() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; } } /** + * + * *
      * Optional. The state, province, or otherwise administrative area of the
      * address.
      * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for administrativeArea. */ @java.lang.Override - public com.google.protobuf.ByteString - getAdministrativeAreaBytes() { + public com.google.protobuf.ByteString getAdministrativeAreaBytes() { java.lang.Object ref = administrativeArea_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -459,14 +540,18 @@ public java.lang.String getAdministrativeArea() { } public static final int REGION_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** + * + * *
      * Optional. The CLDR country/region of the address.
      * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ @java.lang.Override @@ -475,29 +560,29 @@ public java.lang.String getRegionCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } } /** + * + * *
      * Optional. The CLDR country/region of the address.
      * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { @@ -506,14 +591,18 @@ public java.lang.String getRegionCode() { } public static final int POSTAL_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object postalCode_ = ""; /** + * + * *
      * Optional. The postal or ZIP code of the address.
      * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The postalCode. */ @java.lang.Override @@ -522,29 +611,29 @@ public java.lang.String getPostalCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** + * + * *
      * Optional. The postal or ZIP code of the address.
      * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for postalCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostalCodeBytes() { + public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -553,6 +642,7 @@ public java.lang.String getPostalCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -564,8 +654,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recipient_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipient_); } @@ -624,25 +713,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.recaptchaenterprise.v1.TransactionData.Address)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData.Address other = (com.google.recaptchaenterprise.v1.TransactionData.Address) obj; - - if (!getRecipient() - .equals(other.getRecipient())) return false; - if (!getAddressList() - .equals(other.getAddressList())) return false; - if (!getLocality() - .equals(other.getLocality())) return false; - if (!getAdministrativeArea() - .equals(other.getAdministrativeArea())) return false; - if (!getRegionCode() - .equals(other.getRegionCode())) return false; - if (!getPostalCode() - .equals(other.getPostalCode())) return false; + com.google.recaptchaenterprise.v1.TransactionData.Address other = + (com.google.recaptchaenterprise.v1.TransactionData.Address) obj; + + if (!getRecipient().equals(other.getRecipient())) return false; + if (!getAddressList().equals(other.getAddressList())) return false; + if (!getLocality().equals(other.getLocality())) return false; + if (!getAdministrativeArea().equals(other.getAdministrativeArea())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getPostalCode().equals(other.getPostalCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -674,89 +758,94 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData.Address parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData.Address prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.TransactionData.Address prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -766,46 +855,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Structured address format for billing and shipping addresses.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.Address} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData.Address) com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.Address.class, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.Address.class, + com.google.recaptchaenterprise.v1.TransactionData.Address.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.Address.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recipient_ = ""; - address_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + address_ = com.google.protobuf.LazyStringArrayList.emptyList(); locality_ = ""; administrativeArea_ = ""; regionCode_ = ""; @@ -814,9 +904,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; } @java.lang.Override @@ -835,8 +925,11 @@ public com.google.recaptchaenterprise.v1.TransactionData.Address build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Address buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData.Address result = new com.google.recaptchaenterprise.v1.TransactionData.Address(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.TransactionData.Address result = + new com.google.recaptchaenterprise.v1.TransactionData.Address(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -868,38 +961,41 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.Add public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.TransactionData.Address) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.Address)other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.Address) other); } else { super.mergeFrom(other); return this; @@ -907,7 +1003,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData.Address other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) + return this; if (!other.getRecipient().isEmpty()) { recipient_ = other.recipient_; bitField0_ |= 0x00000001; @@ -969,43 +1066,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - recipient_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAddressIsMutable(); - address_.add(s); - break; - } // case 18 - case 26: { - locality_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - administrativeArea_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - postalCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + recipient_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAddressIsMutable(); + address_.add(s); + break; + } // case 18 + case 26: + { + locality_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + administrativeArea_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + postalCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + 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) { @@ -1015,23 +1119,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object recipient_ = ""; /** + * + * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recipient. */ public java.lang.String getRecipient() { java.lang.Object ref = recipient_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recipient_ = s; return s; @@ -1040,21 +1147,22 @@ public java.lang.String getRecipient() { } } /** + * + * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recipient. */ - public com.google.protobuf.ByteString - getRecipientBytes() { + public com.google.protobuf.ByteString getRecipientBytes() { java.lang.Object ref = recipient_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recipient_ = b; return b; } else { @@ -1062,30 +1170,37 @@ public java.lang.String getRecipient() { } } /** + * + * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The recipient to set. * @return This builder for chaining. */ - public Builder setRecipient( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecipient(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recipient_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRecipient() { @@ -1095,18 +1210,22 @@ public Builder clearRecipient() { return this; } /** + * + * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for recipient to set. * @return This builder for chaining. */ - public Builder setRecipientBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecipientBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recipient_ = value; bitField0_ |= 0x00000001; @@ -1116,6 +1235,7 @@ public Builder setRecipientBytes( private com.google.protobuf.LazyStringArrayList address_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAddressIsMutable() { if (!address_.isModifiable()) { address_ = new com.google.protobuf.LazyStringArrayList(address_); @@ -1123,6 +1243,8 @@ private void ensureAddressIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1130,14 +1252,16 @@ private void ensureAddressIsMutable() {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the address. */ - public com.google.protobuf.ProtocolStringList - getAddressList() { + public com.google.protobuf.ProtocolStringList getAddressList() { address_.makeImmutable(); return address_; } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1145,12 +1269,15 @@ private void ensureAddressIsMutable() {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1158,6 +1285,7 @@ public int getAddressCount() {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The address at the given index. */ @@ -1165,6 +1293,8 @@ public java.lang.String getAddress(int index) { return address_.get(index); } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1172,14 +1302,16 @@ public java.lang.String getAddress(int index) {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - public com.google.protobuf.ByteString - getAddressBytes(int index) { + public com.google.protobuf.ByteString getAddressBytes(int index) { return address_.getByteString(index); } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1187,13 +1319,15 @@ public java.lang.String getAddress(int index) {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The address to set. * @return This builder for chaining. */ - public Builder setAddress( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAddress(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAddressIsMutable(); address_.set(index, value); bitField0_ |= 0x00000002; @@ -1201,6 +1335,8 @@ public Builder setAddress( return this; } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1208,12 +1344,14 @@ public Builder setAddress(
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The address to add. * @return This builder for chaining. */ - public Builder addAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAddressIsMutable(); address_.add(value); bitField0_ |= 0x00000002; @@ -1221,6 +1359,8 @@ public Builder addAddress( return this; } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1228,19 +1368,20 @@ public Builder addAddress(
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The address to add. * @return This builder for chaining. */ - public Builder addAllAddress( - java.lang.Iterable values) { + public Builder addAllAddress(java.lang.Iterable values) { ensureAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, address_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, address_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1248,16 +1389,19 @@ public Builder addAllAddress(
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAddress() { - address_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + address_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1265,12 +1409,14 @@ public Builder clearAddress() {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the address to add. * @return This builder for chaining. */ - public Builder addAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAddressIsMutable(); address_.add(value); @@ -1281,18 +1427,20 @@ public Builder addAddressBytes( private java.lang.Object locality_ = ""; /** + * + * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; @@ -1301,20 +1449,21 @@ public java.lang.String getLocality() { } } /** + * + * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locality. */ - public com.google.protobuf.ByteString - getLocalityBytes() { + public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -1322,28 +1471,35 @@ public java.lang.String getLocality() { } } /** + * + * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The locality to set. * @return This builder for chaining. */ - public Builder setLocality( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocality(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } locality_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLocality() { @@ -1353,17 +1509,21 @@ public Builder clearLocality() { return this; } /** + * + * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for locality to set. * @return This builder for chaining. */ - public Builder setLocalityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocalityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); locality_ = value; bitField0_ |= 0x00000004; @@ -1373,19 +1533,21 @@ public Builder setLocalityBytes( private java.lang.Object administrativeArea_ = ""; /** + * + * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The administrativeArea. */ public java.lang.String getAdministrativeArea() { java.lang.Object ref = administrativeArea_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; @@ -1394,21 +1556,22 @@ public java.lang.String getAdministrativeArea() { } } /** + * + * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for administrativeArea. */ - public com.google.protobuf.ByteString - getAdministrativeAreaBytes() { + public com.google.protobuf.ByteString getAdministrativeAreaBytes() { java.lang.Object ref = administrativeArea_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -1416,30 +1579,37 @@ public java.lang.String getAdministrativeArea() { } } /** + * + * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The administrativeArea to set. * @return This builder for chaining. */ - public Builder setAdministrativeArea( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAdministrativeArea(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } administrativeArea_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAdministrativeArea() { @@ -1449,18 +1619,22 @@ public Builder clearAdministrativeArea() { return this; } /** + * + * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for administrativeArea to set. * @return This builder for chaining. */ - public Builder setAdministrativeAreaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); administrativeArea_ = value; bitField0_ |= 0x00000008; @@ -1470,18 +1644,20 @@ public Builder setAdministrativeAreaBytes( private java.lang.Object regionCode_ = ""; /** + * + * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; @@ -1490,20 +1666,21 @@ public java.lang.String getRegionCode() { } } /** + * + * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { @@ -1511,28 +1688,35 @@ public java.lang.String getRegionCode() { } } /** + * + * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } regionCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRegionCode() { @@ -1542,17 +1726,21 @@ public Builder clearRegionCode() { return this; } /** + * + * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); regionCode_ = value; bitField0_ |= 0x00000010; @@ -1562,18 +1750,20 @@ public Builder setRegionCodeBytes( private java.lang.Object postalCode_ = ""; /** + * + * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; @@ -1582,20 +1772,21 @@ public java.lang.String getPostalCode() { } } /** + * + * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString - getPostalCodeBytes() { + public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1603,28 +1794,35 @@ public java.lang.String getPostalCode() { } } /** + * + * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPostalCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPostalCode() { @@ -1634,23 +1832,28 @@ public Builder clearPostalCode() { return this; } /** + * + * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1663,12 +1866,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData.Address) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData.Address) private static final com.google.recaptchaenterprise.v1.TransactionData.Address DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData.Address(); } @@ -1677,27 +1880,28 @@ public static com.google.recaptchaenterprise.v1.TransactionData.Address getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Address parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1712,14 +1916,16 @@ public com.google.protobuf.Parser
getParserForType() { public com.google.recaptchaenterprise.v1.TransactionData.Address getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UserOrBuilder extends + public interface UserOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData.User) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. Unique account identifier for this user. If using account
      * defender, this should match the hashed_account_id field. Otherwise, a
@@ -1727,10 +1933,13 @@ public interface UserOrBuilder extends
      * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ java.lang.String getAccountId(); /** + * + * *
      * Optional. Unique account identifier for this user. If using account
      * defender, this should match the hashed_account_id field. Otherwise, a
@@ -1738,99 +1947,121 @@ public interface UserOrBuilder extends
      * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ - com.google.protobuf.ByteString - getAccountIdBytes(); + com.google.protobuf.ByteString getAccountIdBytes(); /** + * + * *
      * Optional. The epoch milliseconds of the user's account creation.
      * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The creationMs. */ long getCreationMs(); /** + * + * *
      * Optional. The email address of the user.
      * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
      * Optional. The email address of the user.
      * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); /** + * + * *
      * Optional. Whether the email has been verified to be accessible by the
      * user (OTP or similar).
      * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The emailVerified. */ boolean getEmailVerified(); /** + * + * *
      * Optional. The phone number of the user, with country code.
      * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** + * + * *
      * Optional. The phone number of the user, with country code.
      * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString - getPhoneNumberBytes(); + com.google.protobuf.ByteString getPhoneNumberBytes(); /** + * + * *
      * Optional. Whether the phone number has been verified to be accessible by
      * the user (OTP or similar).
      * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneVerified. */ boolean getPhoneVerified(); } /** + * + * *
    * Details about a user's account involved in the transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.User} */ - public static final class User extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class User extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData.User) UserOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private User() { accountId_ = ""; email_ = ""; @@ -1839,28 +2070,32 @@ private User() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new User(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.User.class, com.google.recaptchaenterprise.v1.TransactionData.User.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.User.class, + com.google.recaptchaenterprise.v1.TransactionData.User.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** + * + * *
      * Optional. Unique account identifier for this user. If using account
      * defender, this should match the hashed_account_id field. Otherwise, a
@@ -1868,6 +2103,7 @@ protected java.lang.Object newInstance(
      * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ @java.lang.Override @@ -1876,14 +2112,15 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** + * + * *
      * Optional. Unique account identifier for this user. If using account
      * defender, this should match the hashed_account_id field. Otherwise, a
@@ -1891,16 +2128,15 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -1911,11 +2147,14 @@ public java.lang.String getAccountId() { public static final int CREATION_MS_FIELD_NUMBER = 1; private long creationMs_ = 0L; /** + * + * *
      * Optional. The epoch milliseconds of the user's account creation.
      * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The creationMs. */ @java.lang.Override @@ -1924,14 +2163,18 @@ public long getCreationMs() { } public static final int EMAIL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** + * + * *
      * Optional. The email address of the user.
      * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The email. */ @java.lang.Override @@ -1940,29 +2183,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
      * Optional. The email address of the user.
      * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -1973,12 +2216,15 @@ public java.lang.String getEmail() { public static final int EMAIL_VERIFIED_FIELD_NUMBER = 3; private boolean emailVerified_ = false; /** + * + * *
      * Optional. Whether the email has been verified to be accessible by the
      * user (OTP or similar).
      * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The emailVerified. */ @java.lang.Override @@ -1987,14 +2233,18 @@ public boolean getEmailVerified() { } public static final int PHONE_NUMBER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object phoneNumber_ = ""; /** + * + * *
      * Optional. The phone number of the user, with country code.
      * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneNumber. */ @java.lang.Override @@ -2003,29 +2253,29 @@ public java.lang.String getPhoneNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } } /** + * + * *
      * Optional. The phone number of the user, with country code.
      * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -2036,12 +2286,15 @@ public java.lang.String getPhoneNumber() { public static final int PHONE_VERIFIED_FIELD_NUMBER = 5; private boolean phoneVerified_ = false; /** + * + * *
      * Optional. Whether the phone number has been verified to be accessible by
      * the user (OTP or similar).
      * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneVerified. */ @java.lang.Override @@ -2050,6 +2303,7 @@ public boolean getPhoneVerified() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2061,8 +2315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (creationMs_ != 0L) { output.writeInt64(1, creationMs_); } @@ -2091,22 +2344,19 @@ public int getSerializedSize() { size = 0; if (creationMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, creationMs_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, creationMs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); } if (emailVerified_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, emailVerified_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, emailVerified_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phoneNumber_); } if (phoneVerified_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, phoneVerified_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, phoneVerified_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, accountId_); @@ -2119,25 +2369,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.recaptchaenterprise.v1.TransactionData.User)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData.User other = (com.google.recaptchaenterprise.v1.TransactionData.User) obj; - - if (!getAccountId() - .equals(other.getAccountId())) return false; - if (getCreationMs() - != other.getCreationMs()) return false; - if (!getEmail() - .equals(other.getEmail())) return false; - if (getEmailVerified() - != other.getEmailVerified()) return false; - if (!getPhoneNumber() - .equals(other.getPhoneNumber())) return false; - if (getPhoneVerified() - != other.getPhoneVerified()) return false; + com.google.recaptchaenterprise.v1.TransactionData.User other = + (com.google.recaptchaenterprise.v1.TransactionData.User) obj; + + if (!getAccountId().equals(other.getAccountId())) return false; + if (getCreationMs() != other.getCreationMs()) return false; + if (!getEmail().equals(other.getEmail())) return false; + if (getEmailVerified() != other.getEmailVerified()) return false; + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (getPhoneVerified() != other.getPhoneVerified()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2152,107 +2397,109 @@ public int hashCode() { hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); hash = (37 * hash) + CREATION_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreationMs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreationMs()); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + EMAIL_VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEmailVerified()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailVerified()); hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); hash = (37 * hash) + PHONE_VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPhoneVerified()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPhoneVerified()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.User parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData.User parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData.User prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.TransactionData.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2262,39 +2509,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about a user's account involved in the transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.User} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData.User) com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.User.class, com.google.recaptchaenterprise.v1.TransactionData.User.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.User.class, + com.google.recaptchaenterprise.v1.TransactionData.User.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.User.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2309,9 +2558,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; } @java.lang.Override @@ -2330,8 +2579,11 @@ public com.google.recaptchaenterprise.v1.TransactionData.User build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.User buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData.User result = new com.google.recaptchaenterprise.v1.TransactionData.User(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.TransactionData.User result = + new com.google.recaptchaenterprise.v1.TransactionData.User(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -2362,38 +2614,41 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.Use public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.TransactionData.User) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.User)other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.User) other); } else { super.mergeFrom(other); return this; @@ -2401,7 +2656,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData.User other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()) + return this; if (!other.getAccountId().isEmpty()) { accountId_ = other.accountId_; bitField0_ |= 0x00000001; @@ -2452,42 +2708,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - creationMs_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 18: { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: { - emailVerified_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: { - phoneNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: { - phoneVerified_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: { - accountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + creationMs_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + emailVerified_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + phoneVerified_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -2497,10 +2760,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object accountId_ = ""; /** + * + * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2508,13 +2774,13 @@ public Builder mergeFrom(
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -2523,6 +2789,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2530,15 +2798,14 @@ public java.lang.String getAccountId() {
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -2546,6 +2813,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2553,18 +2822,22 @@ public java.lang.String getAccountId() {
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2572,6 +2845,7 @@ public Builder setAccountId(
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAccountId() { @@ -2581,6 +2855,8 @@ public Builder clearAccountId() { return this; } /** + * + * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2588,12 +2864,14 @@ public Builder clearAccountId() {
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000001; @@ -2601,13 +2879,16 @@ public Builder setAccountIdBytes( return this; } - private long creationMs_ ; + private long creationMs_; /** + * + * *
        * Optional. The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The creationMs. */ @java.lang.Override @@ -2615,11 +2896,14 @@ public long getCreationMs() { return creationMs_; } /** + * + * *
        * Optional. The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The creationMs to set. * @return This builder for chaining. */ @@ -2631,11 +2915,14 @@ public Builder setCreationMs(long value) { return this; } /** + * + * *
        * Optional. The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCreationMs() { @@ -2647,18 +2934,20 @@ public Builder clearCreationMs() { private java.lang.Object email_ = ""; /** + * + * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -2667,20 +2956,21 @@ public java.lang.String getEmail() { } } /** + * + * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -2688,28 +2978,35 @@ public java.lang.String getEmail() { } } /** + * + * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } email_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEmail() { @@ -2719,17 +3016,21 @@ public Builder clearEmail() { return this; } /** + * + * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000004; @@ -2737,14 +3038,17 @@ public Builder setEmailBytes( return this; } - private boolean emailVerified_ ; + private boolean emailVerified_; /** + * + * *
        * Optional. Whether the email has been verified to be accessible by the
        * user (OTP or similar).
        * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The emailVerified. */ @java.lang.Override @@ -2752,12 +3056,15 @@ public boolean getEmailVerified() { return emailVerified_; } /** + * + * *
        * Optional. Whether the email has been verified to be accessible by the
        * user (OTP or similar).
        * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The emailVerified to set. * @return This builder for chaining. */ @@ -2769,12 +3076,15 @@ public Builder setEmailVerified(boolean value) { return this; } /** + * + * *
        * Optional. Whether the email has been verified to be accessible by the
        * user (OTP or similar).
        * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEmailVerified() { @@ -2786,18 +3096,20 @@ public Builder clearEmailVerified() { private java.lang.Object phoneNumber_ = ""; /** + * + * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; @@ -2806,20 +3118,21 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -2827,28 +3140,35 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phoneNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPhoneNumber() { @@ -2858,17 +3178,21 @@ public Builder clearPhoneNumber() { return this; } /** + * + * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phoneNumber_ = value; bitField0_ |= 0x00000010; @@ -2876,14 +3200,17 @@ public Builder setPhoneNumberBytes( return this; } - private boolean phoneVerified_ ; + private boolean phoneVerified_; /** + * + * *
        * Optional. Whether the phone number has been verified to be accessible by
        * the user (OTP or similar).
        * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneVerified. */ @java.lang.Override @@ -2891,12 +3218,15 @@ public boolean getPhoneVerified() { return phoneVerified_; } /** + * + * *
        * Optional. Whether the phone number has been verified to be accessible by
        * the user (OTP or similar).
        * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The phoneVerified to set. * @return This builder for chaining. */ @@ -2908,12 +3238,15 @@ public Builder setPhoneVerified(boolean value) { return this; } /** + * + * *
        * Optional. Whether the phone number has been verified to be accessible by
        * the user (OTP or similar).
        * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPhoneVerified() { @@ -2922,6 +3255,7 @@ public Builder clearPhoneVerified() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2934,12 +3268,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData.User) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData.User) private static final com.google.recaptchaenterprise.v1.TransactionData.User DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData.User(); } @@ -2948,27 +3282,28 @@ public static com.google.recaptchaenterprise.v1.TransactionData.User getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2983,92 +3318,111 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TransactionData.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ItemOrBuilder extends + public interface ItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData.Item) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. The full name of the item.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Optional. The full name of the item.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Optional. The value per item that the user is paying, in the transaction
      * currency, after discounts.
      * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ double getValue(); /** + * + * *
      * Optional. The quantity of this item that is being purchased.
      * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The quantity. */ long getQuantity(); /** + * + * *
      * Optional. When a merchant is specified, its corresponding account_id.
      * Necessary to populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The merchantAccountId. */ java.lang.String getMerchantAccountId(); /** + * + * *
      * Optional. When a merchant is specified, its corresponding account_id.
      * Necessary to populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for merchantAccountId. */ - com.google.protobuf.ByteString - getMerchantAccountIdBytes(); + com.google.protobuf.ByteString getMerchantAccountIdBytes(); } /** + * + * *
    * Line items being purchased in this transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.Item} */ - public static final class Item extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Item extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData.Item) ItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Item.newBuilder() to construct. private Item(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Item() { name_ = ""; merchantAccountId_ = ""; @@ -3076,33 +3430,38 @@ private Item() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Item(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.Item.class, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.Item.class, + com.google.recaptchaenterprise.v1.TransactionData.Item.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Optional. The full name of the item.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -3111,29 +3470,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Optional. The full name of the item.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -3144,12 +3503,15 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private double value_ = 0D; /** + * + * *
      * Optional. The value per item that the user is paying, in the transaction
      * currency, after discounts.
      * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -3160,11 +3522,14 @@ public double getValue() { public static final int QUANTITY_FIELD_NUMBER = 3; private long quantity_ = 0L; /** + * + * *
      * Optional. The quantity of this item that is being purchased.
      * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The quantity. */ @java.lang.Override @@ -3173,15 +3538,19 @@ public long getQuantity() { } public static final int MERCHANT_ACCOUNT_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object merchantAccountId_ = ""; /** + * + * *
      * Optional. When a merchant is specified, its corresponding account_id.
      * Necessary to populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The merchantAccountId. */ @java.lang.Override @@ -3190,30 +3559,30 @@ public java.lang.String getMerchantAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); merchantAccountId_ = s; return s; } } /** + * + * *
      * Optional. When a merchant is specified, its corresponding account_id.
      * Necessary to populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for merchantAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMerchantAccountIdBytes() { + public com.google.protobuf.ByteString getMerchantAccountIdBytes() { java.lang.Object ref = merchantAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); merchantAccountId_ = b; return b; } else { @@ -3222,6 +3591,7 @@ public java.lang.String getMerchantAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3233,8 +3603,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -3260,12 +3629,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, value_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_); } if (quantity_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, quantity_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, quantity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(merchantAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, merchantAccountId_); @@ -3278,22 +3645,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionData.Item)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData.Item other = (com.google.recaptchaenterprise.v1.TransactionData.Item) obj; + com.google.recaptchaenterprise.v1.TransactionData.Item other = + (com.google.recaptchaenterprise.v1.TransactionData.Item) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; - if (getQuantity() - != other.getQuantity()) return false; - if (!getMerchantAccountId() - .equals(other.getMerchantAccountId())) return false; + != java.lang.Double.doubleToLongBits(other.getValue())) return false; + if (getQuantity() != other.getQuantity()) return false; + if (!getMerchantAccountId().equals(other.getMerchantAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3308,11 +3672,12 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getQuantity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getQuantity()); hash = (37 * hash) + MERCHANT_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getMerchantAccountId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -3321,89 +3686,94 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData.Item parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData.Item prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.TransactionData.Item prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3413,39 +3783,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Line items being purchased in this transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.Item} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData.Item) com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.Item.class, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.Item.class, + com.google.recaptchaenterprise.v1.TransactionData.Item.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.Item.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3458,9 +3830,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; } @java.lang.Override @@ -3479,8 +3851,11 @@ public com.google.recaptchaenterprise.v1.TransactionData.Item build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Item buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData.Item result = new com.google.recaptchaenterprise.v1.TransactionData.Item(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.TransactionData.Item result = + new com.google.recaptchaenterprise.v1.TransactionData.Item(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -3505,38 +3880,41 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.Ite public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.TransactionData.Item) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.Item)other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.Item) other); } else { super.mergeFrom(other); return this; @@ -3544,7 +3922,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData.Item other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -3587,32 +3966,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: { - value_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 24: { - quantity_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - merchantAccountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 24: + { + quantity_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + merchantAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -3622,22 +4006,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -3646,20 +4033,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -3667,28 +4055,35 @@ public java.lang.String getName() { } } /** + * + * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3698,17 +4093,21 @@ public Builder clearName() { return this; } /** + * + * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3716,14 +4115,17 @@ public Builder setNameBytes( return this; } - private double value_ ; + private double value_; /** + * + * *
        * Optional. The value per item that the user is paying, in the transaction
        * currency, after discounts.
        * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -3731,12 +4133,15 @@ public double getValue() { return value_; } /** + * + * *
        * Optional. The value per item that the user is paying, in the transaction
        * currency, after discounts.
        * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The value to set. * @return This builder for chaining. */ @@ -3748,12 +4153,15 @@ public Builder setValue(double value) { return this; } /** + * + * *
        * Optional. The value per item that the user is paying, in the transaction
        * currency, after discounts.
        * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -3763,13 +4171,16 @@ public Builder clearValue() { return this; } - private long quantity_ ; + private long quantity_; /** + * + * *
        * Optional. The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The quantity. */ @java.lang.Override @@ -3777,11 +4188,14 @@ public long getQuantity() { return quantity_; } /** + * + * *
        * Optional. The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The quantity to set. * @return This builder for chaining. */ @@ -3793,11 +4207,14 @@ public Builder setQuantity(long value) { return this; } /** + * + * *
        * Optional. The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearQuantity() { @@ -3809,19 +4226,21 @@ public Builder clearQuantity() { private java.lang.Object merchantAccountId_ = ""; /** + * + * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The merchantAccountId. */ public java.lang.String getMerchantAccountId() { java.lang.Object ref = merchantAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); merchantAccountId_ = s; return s; @@ -3830,21 +4249,22 @@ public java.lang.String getMerchantAccountId() { } } /** + * + * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for merchantAccountId. */ - public com.google.protobuf.ByteString - getMerchantAccountIdBytes() { + public com.google.protobuf.ByteString getMerchantAccountIdBytes() { java.lang.Object ref = merchantAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); merchantAccountId_ = b; return b; } else { @@ -3852,30 +4272,37 @@ public java.lang.String getMerchantAccountId() { } } /** + * + * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The merchantAccountId to set. * @return This builder for chaining. */ - public Builder setMerchantAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMerchantAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } merchantAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMerchantAccountId() { @@ -3885,24 +4312,29 @@ public Builder clearMerchantAccountId() { return this; } /** + * + * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for merchantAccountId to set. * @return This builder for chaining. */ - public Builder setMerchantAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMerchantAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); merchantAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3915,12 +4347,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData.Item) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData.Item) private static final com.google.recaptchaenterprise.v1.TransactionData.Item DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData.Item(); } @@ -3929,27 +4361,28 @@ public static com.google.recaptchaenterprise.v1.TransactionData.Item getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Item parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Item parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -3964,115 +4397,138 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TransactionData.Item getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GatewayInfoOrBuilder extends + public interface GatewayInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. Name of the gateway service (for example, stripe, square,
      * paypal).
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Optional. Name of the gateway service (for example, stripe, square,
      * paypal).
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Optional. Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gatewayResponseCode. */ java.lang.String getGatewayResponseCode(); /** + * + * *
      * Optional. Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gatewayResponseCode. */ - com.google.protobuf.ByteString - getGatewayResponseCodeBytes(); + com.google.protobuf.ByteString getGatewayResponseCodeBytes(); /** + * + * *
      * Optional. AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The avsResponseCode. */ java.lang.String getAvsResponseCode(); /** + * + * *
      * Optional. AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for avsResponseCode. */ - com.google.protobuf.ByteString - getAvsResponseCodeBytes(); + com.google.protobuf.ByteString getAvsResponseCodeBytes(); /** + * + * *
      * Optional. CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cvvResponseCode. */ java.lang.String getCvvResponseCode(); /** + * + * *
      * Optional. CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cvvResponseCode. */ - com.google.protobuf.ByteString - getCvvResponseCodeBytes(); + com.google.protobuf.ByteString getCvvResponseCodeBytes(); } /** + * + * *
    * Details about the transaction from the gateway.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo} */ - public static final class GatewayInfo extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GatewayInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) GatewayInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatewayInfo.newBuilder() to construct. private GatewayInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GatewayInfo() { name_ = ""; gatewayResponseCode_ = ""; @@ -4082,34 +4538,39 @@ private GatewayInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GatewayInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.class, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.class, + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Optional. Name of the gateway service (for example, stripe, square,
      * paypal).
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -4118,30 +4579,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; } } /** + * + * *
      * Optional. Name of the gateway service (for example, stripe, square,
      * paypal).
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -4150,14 +4611,18 @@ public java.lang.String getName() { } public static final int GATEWAY_RESPONSE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object gatewayResponseCode_ = ""; /** + * + * *
      * Optional. Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gatewayResponseCode. */ @java.lang.Override @@ -4166,29 +4631,29 @@ public java.lang.String getGatewayResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayResponseCode_ = s; return s; } } /** + * + * *
      * Optional. Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gatewayResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getGatewayResponseCodeBytes() { + public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { java.lang.Object ref = gatewayResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gatewayResponseCode_ = b; return b; } else { @@ -4197,15 +4662,19 @@ public java.lang.String getGatewayResponseCode() { } public static final int AVS_RESPONSE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object avsResponseCode_ = ""; /** + * + * *
      * Optional. AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The avsResponseCode. */ @java.lang.Override @@ -4214,30 +4683,30 @@ public java.lang.String getAvsResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avsResponseCode_ = s; return s; } } /** + * + * *
      * Optional. AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for avsResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getAvsResponseCodeBytes() { + public com.google.protobuf.ByteString getAvsResponseCodeBytes() { java.lang.Object ref = avsResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); avsResponseCode_ = b; return b; } else { @@ -4246,15 +4715,19 @@ public java.lang.String getAvsResponseCode() { } public static final int CVV_RESPONSE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object cvvResponseCode_ = ""; /** + * + * *
      * Optional. CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cvvResponseCode. */ @java.lang.Override @@ -4263,30 +4736,30 @@ public java.lang.String getCvvResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cvvResponseCode_ = s; return s; } } /** + * + * *
      * Optional. CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cvvResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCvvResponseCodeBytes() { + public com.google.protobuf.ByteString getCvvResponseCodeBytes() { java.lang.Object ref = cvvResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cvvResponseCode_ = b; return b; } else { @@ -4295,6 +4768,7 @@ public java.lang.String getCvvResponseCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4306,8 +4780,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -4349,21 +4822,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.recaptchaenterprise.v1.TransactionData.GatewayInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo other = (com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo) obj; + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo other = + (com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getGatewayResponseCode() - .equals(other.getGatewayResponseCode())) return false; - if (!getAvsResponseCode() - .equals(other.getAvsResponseCode())) return false; - if (!getCvvResponseCode() - .equals(other.getCvvResponseCode())) return false; + if (!getName().equals(other.getName())) return false; + if (!getGatewayResponseCode().equals(other.getGatewayResponseCode())) return false; + if (!getAvsResponseCode().equals(other.getAvsResponseCode())) return false; + if (!getCvvResponseCode().equals(other.getCvvResponseCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4389,89 +4859,94 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4481,39 +4956,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about the transaction from the gateway.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.class, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.class, + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4526,13 +5003,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance(); } @@ -4547,13 +5025,17 @@ public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo result = new com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo result = + new com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -4573,46 +5055,52 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.Gat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1.TransactionData.GatewayInfo) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo)other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo other) { + if (other + == com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -4659,32 +5147,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - gatewayResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - avsResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - cvvResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gatewayResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + avsResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + cvvResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -4694,23 +5187,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4719,21 +5215,22 @@ public java.lang.String getName() { } } /** + * + * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -4741,30 +5238,37 @@ public java.lang.String getName() { } } /** + * + * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -4774,18 +5278,22 @@ public Builder clearName() { return this; } /** + * + * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4795,18 +5303,20 @@ public Builder setNameBytes( private java.lang.Object gatewayResponseCode_ = ""; /** + * + * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gatewayResponseCode. */ public java.lang.String getGatewayResponseCode() { java.lang.Object ref = gatewayResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayResponseCode_ = s; return s; @@ -4815,20 +5325,21 @@ public java.lang.String getGatewayResponseCode() { } } /** + * + * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gatewayResponseCode. */ - public com.google.protobuf.ByteString - getGatewayResponseCodeBytes() { + public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { java.lang.Object ref = gatewayResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gatewayResponseCode_ = b; return b; } else { @@ -4836,28 +5347,35 @@ public java.lang.String getGatewayResponseCode() { } } /** + * + * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The gatewayResponseCode to set. * @return This builder for chaining. */ - public Builder setGatewayResponseCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGatewayResponseCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } gatewayResponseCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearGatewayResponseCode() { @@ -4867,17 +5385,21 @@ public Builder clearGatewayResponseCode() { return this; } /** + * + * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for gatewayResponseCode to set. * @return This builder for chaining. */ - public Builder setGatewayResponseCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGatewayResponseCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); gatewayResponseCode_ = value; bitField0_ |= 0x00000002; @@ -4887,19 +5409,21 @@ public Builder setGatewayResponseCodeBytes( private java.lang.Object avsResponseCode_ = ""; /** + * + * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The avsResponseCode. */ public java.lang.String getAvsResponseCode() { java.lang.Object ref = avsResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avsResponseCode_ = s; return s; @@ -4908,21 +5432,22 @@ public java.lang.String getAvsResponseCode() { } } /** + * + * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for avsResponseCode. */ - public com.google.protobuf.ByteString - getAvsResponseCodeBytes() { + public com.google.protobuf.ByteString getAvsResponseCodeBytes() { java.lang.Object ref = avsResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); avsResponseCode_ = b; return b; } else { @@ -4930,30 +5455,37 @@ public java.lang.String getAvsResponseCode() { } } /** + * + * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The avsResponseCode to set. * @return This builder for chaining. */ - public Builder setAvsResponseCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAvsResponseCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } avsResponseCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAvsResponseCode() { @@ -4963,18 +5495,22 @@ public Builder clearAvsResponseCode() { return this; } /** + * + * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for avsResponseCode to set. * @return This builder for chaining. */ - public Builder setAvsResponseCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAvsResponseCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); avsResponseCode_ = value; bitField0_ |= 0x00000004; @@ -4984,19 +5520,21 @@ public Builder setAvsResponseCodeBytes( private java.lang.Object cvvResponseCode_ = ""; /** + * + * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cvvResponseCode. */ public java.lang.String getCvvResponseCode() { java.lang.Object ref = cvvResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cvvResponseCode_ = s; return s; @@ -5005,21 +5543,22 @@ public java.lang.String getCvvResponseCode() { } } /** + * + * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cvvResponseCode. */ - public com.google.protobuf.ByteString - getCvvResponseCodeBytes() { + public com.google.protobuf.ByteString getCvvResponseCodeBytes() { java.lang.Object ref = cvvResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cvvResponseCode_ = b; return b; } else { @@ -5027,30 +5566,37 @@ public java.lang.String getCvvResponseCode() { } } /** + * + * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The cvvResponseCode to set. * @return This builder for chaining. */ - public Builder setCvvResponseCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCvvResponseCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cvvResponseCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCvvResponseCode() { @@ -5060,24 +5606,29 @@ public Builder clearCvvResponseCode() { return this; } /** + * + * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for cvvResponseCode to set. * @return This builder for chaining. */ - public Builder setCvvResponseCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCvvResponseCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cvvResponseCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5090,41 +5641,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) - private static final com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo(); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatewayInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -5136,17 +5690,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int TRANSACTION_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object transactionId_ = ""; /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5155,6 +5712,7 @@ public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getDefaultI
    * 
* * optional string transaction_id = 11; + * * @return Whether the transactionId field is set. */ @java.lang.Override @@ -5162,6 +5720,8 @@ public boolean hasTransactionId() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5170,6 +5730,7 @@ public boolean hasTransactionId() {
    * 
* * optional string transaction_id = 11; + * * @return The transactionId. */ @java.lang.Override @@ -5178,14 +5739,15 @@ public java.lang.String getTransactionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; } } /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5194,16 +5756,15 @@ public java.lang.String getTransactionId() {
    * 
* * optional string transaction_id = 11; + * * @return The bytes for transactionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTransactionIdBytes() { + public com.google.protobuf.ByteString getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); transactionId_ = b; return b; } else { @@ -5212,9 +5773,12 @@ public java.lang.String getTransactionId() { } public static final int PAYMENT_METHOD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object paymentMethod_ = ""; /** + * + * *
    * Optional. The payment method for the transaction. The allowed values are:
    *
@@ -5228,6 +5792,7 @@ public java.lang.String getTransactionId() {
    * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The paymentMethod. */ @java.lang.Override @@ -5236,14 +5801,15 @@ public java.lang.String getPaymentMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentMethod_ = s; return s; } } /** + * + * *
    * Optional. The payment method for the transaction. The allowed values are:
    *
@@ -5257,16 +5823,15 @@ public java.lang.String getPaymentMethod() {
    * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for paymentMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPaymentMethodBytes() { + public com.google.protobuf.ByteString getPaymentMethodBytes() { java.lang.Object ref = paymentMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); paymentMethod_ = b; return b; } else { @@ -5275,15 +5840,19 @@ public java.lang.String getPaymentMethod() { } public static final int CARD_BIN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object cardBin_ = ""; /** + * + * *
    * Optional. The Bank Identification Number - generally the first 6 or 8
    * digits of the card.
    * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cardBin. */ @java.lang.Override @@ -5292,30 +5861,30 @@ public java.lang.String getCardBin() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardBin_ = s; return s; } } /** + * + * *
    * Optional. The Bank Identification Number - generally the first 6 or 8
    * digits of the card.
    * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cardBin. */ @java.lang.Override - public com.google.protobuf.ByteString - getCardBinBytes() { + public com.google.protobuf.ByteString getCardBinBytes() { java.lang.Object ref = cardBin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cardBin_ = b; return b; } else { @@ -5324,14 +5893,18 @@ public java.lang.String getCardBin() { } public static final int CARD_LAST_FOUR_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object cardLastFour_ = ""; /** + * + * *
    * Optional. The last four digits of the card.
    * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cardLastFour. */ @java.lang.Override @@ -5340,29 +5913,29 @@ public java.lang.String getCardLastFour() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardLastFour_ = s; return s; } } /** + * + * *
    * Optional. The last four digits of the card.
    * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cardLastFour. */ @java.lang.Override - public com.google.protobuf.ByteString - getCardLastFourBytes() { + public com.google.protobuf.ByteString getCardLastFourBytes() { java.lang.Object ref = cardLastFour_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cardLastFour_ = b; return b; } else { @@ -5371,14 +5944,18 @@ public java.lang.String getCardLastFour() { } public static final int CURRENCY_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object currencyCode_ = ""; /** + * + * *
    * Optional. The currency code in ISO-4217 format.
    * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ @java.lang.Override @@ -5387,29 +5964,29 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** + * + * *
    * Optional. The currency code in ISO-4217 format.
    * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -5420,11 +5997,14 @@ public java.lang.String getCurrencyCode() { public static final int VALUE_FIELD_NUMBER = 5; private double value_ = 0D; /** + * + * *
    * Optional. The decimal value of the transaction in the specified currency.
    * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -5435,12 +6015,15 @@ public double getValue() { public static final int SHIPPING_VALUE_FIELD_NUMBER = 12; private double shippingValue_ = 0D; /** + * + * *
    * Optional. The value of shipping in the specified currency. 0 for free or no
    * shipping.
    * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The shippingValue. */ @java.lang.Override @@ -5451,12 +6034,17 @@ public double getShippingValue() { public static final int SHIPPING_ADDRESS_FIELD_NUMBER = 6; private com.google.recaptchaenterprise.v1.TransactionData.Address shippingAddress_; /** + * + * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shippingAddress field is set. */ @java.lang.Override @@ -5464,39 +6052,58 @@ public boolean hasShippingAddress() { return shippingAddress_ != null; } /** + * + * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shippingAddress. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Address getShippingAddress() { - return shippingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : shippingAddress_; + return shippingAddress_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() + : shippingAddress_; } /** + * + * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder() { - return shippingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : shippingAddress_; + public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder + getShippingAddressOrBuilder() { + return shippingAddress_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() + : shippingAddress_; } public static final int BILLING_ADDRESS_FIELD_NUMBER = 7; private com.google.recaptchaenterprise.v1.TransactionData.Address billingAddress_; /** + * + * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the billingAddress field is set. */ @java.lang.Override @@ -5504,37 +6111,56 @@ public boolean hasBillingAddress() { return billingAddress_ != null; } /** + * + * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The billingAddress. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Address getBillingAddress() { - return billingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : billingAddress_; + return billingAddress_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() + : billingAddress_; } /** + * + * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder() { - return billingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : billingAddress_; + public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder + getBillingAddressOrBuilder() { + return billingAddress_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() + : billingAddress_; } public static final int USER_FIELD_NUMBER = 8; private com.google.recaptchaenterprise.v1.TransactionData.User user_; /** + * + * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the user field is set. */ @java.lang.Override @@ -5542,83 +6168,117 @@ public boolean hasUser() { return user_ != null; } /** + * + * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The user. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.User getUser() { - return user_ == null ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() : user_; + return user_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() + : user_; } /** + * + * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getUserOrBuilder() { - return user_ == null ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() : user_; + return user_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() + : user_; } public static final int MERCHANTS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private java.util.List merchants_; /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getMerchantsList() { return merchants_; } /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMerchantsOrBuilderList() { return merchants_; } /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getMerchantsCount() { return merchants_.size(); } /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.User getMerchants(int index) { return merchants_.get(index); } /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMerchantsOrBuilder( @@ -5627,59 +6287,80 @@ public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMercha } public static final int ITEMS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List items_; /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getItemsList() { return items_; } /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getItemsCount() { return items_.size(); } /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Item getItems(int index) { return items_.get(index); } /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsOrBuilder( @@ -5690,12 +6371,17 @@ public com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsO public static final int GATEWAY_INFO_FIELD_NUMBER = 10; private com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo gatewayInfo_; /** + * + * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gatewayInfo field is set. */ @java.lang.Override @@ -5703,32 +6389,47 @@ public boolean hasGatewayInfo() { return gatewayInfo_ != null; } /** + * + * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gatewayInfo. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getGatewayInfo() { - return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; + return gatewayInfo_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() + : gatewayInfo_; } /** + * + * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder() { - return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder + getGatewayInfoOrBuilder() { + return gatewayInfo_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() + : gatewayInfo_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5740,8 +6441,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paymentMethod_); } @@ -5803,39 +6503,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, value_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, value_); } if (shippingAddress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getShippingAddress()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getShippingAddress()); } if (billingAddress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getBillingAddress()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBillingAddress()); } if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUser()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUser()); } if (gatewayInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getGatewayInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getGatewayInfo()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, transactionId_); } if (java.lang.Double.doubleToRawLongBits(shippingValue_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(12, shippingValue_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, shippingValue_); } for (int i = 0; i < merchants_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, merchants_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, merchants_.get(i)); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, items_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5845,55 +6537,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionData)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData other = (com.google.recaptchaenterprise.v1.TransactionData) obj; + com.google.recaptchaenterprise.v1.TransactionData other = + (com.google.recaptchaenterprise.v1.TransactionData) obj; if (hasTransactionId() != other.hasTransactionId()) return false; if (hasTransactionId()) { - if (!getTransactionId() - .equals(other.getTransactionId())) return false; - } - if (!getPaymentMethod() - .equals(other.getPaymentMethod())) return false; - if (!getCardBin() - .equals(other.getCardBin())) return false; - if (!getCardLastFour() - .equals(other.getCardLastFour())) return false; - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; + if (!getTransactionId().equals(other.getTransactionId())) return false; + } + if (!getPaymentMethod().equals(other.getPaymentMethod())) return false; + if (!getCardBin().equals(other.getCardBin())) return false; + if (!getCardLastFour().equals(other.getCardLastFour())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; + != java.lang.Double.doubleToLongBits(other.getValue())) return false; if (java.lang.Double.doubleToLongBits(getShippingValue()) - != java.lang.Double.doubleToLongBits( - other.getShippingValue())) return false; + != java.lang.Double.doubleToLongBits(other.getShippingValue())) return false; if (hasShippingAddress() != other.hasShippingAddress()) return false; if (hasShippingAddress()) { - if (!getShippingAddress() - .equals(other.getShippingAddress())) return false; + if (!getShippingAddress().equals(other.getShippingAddress())) return false; } if (hasBillingAddress() != other.hasBillingAddress()) return false; if (hasBillingAddress()) { - if (!getBillingAddress() - .equals(other.getBillingAddress())) return false; + if (!getBillingAddress().equals(other.getBillingAddress())) return false; } if (hasUser() != other.hasUser()) return false; if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; + if (!getUser().equals(other.getUser())) return false; } - if (!getMerchantsList() - .equals(other.getMerchantsList())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getMerchantsList().equals(other.getMerchantsList())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (hasGatewayInfo() != other.hasGatewayInfo()) return false; if (hasGatewayInfo()) { - if (!getGatewayInfo() - .equals(other.getGatewayInfo())) return false; + if (!getGatewayInfo().equals(other.getGatewayInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5919,11 +6599,14 @@ public int hashCode() { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + SHIPPING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getShippingValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getShippingValue())); if (hasShippingAddress()) { hash = (37 * hash) + SHIPPING_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShippingAddress().hashCode(); @@ -5954,131 +6637,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData) com.google.recaptchaenterprise.v1.TransactionDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.class, com.google.recaptchaenterprise.v1.TransactionData.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.class, + com.google.recaptchaenterprise.v1.TransactionData.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6128,9 +6815,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; } @java.lang.Override @@ -6149,14 +6836,18 @@ public com.google.recaptchaenterprise.v1.TransactionData build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData result = new com.google.recaptchaenterprise.v1.TransactionData(this); + com.google.recaptchaenterprise.v1.TransactionData result = + new com.google.recaptchaenterprise.v1.TransactionData(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.TransactionData result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.TransactionData result) { if (merchantsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { merchants_ = java.util.Collections.unmodifiableList(merchants_); @@ -6203,24 +6894,19 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData res result.shippingValue_ = shippingValue_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.shippingAddress_ = shippingAddressBuilder_ == null - ? shippingAddress_ - : shippingAddressBuilder_.build(); + result.shippingAddress_ = + shippingAddressBuilder_ == null ? shippingAddress_ : shippingAddressBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.billingAddress_ = billingAddressBuilder_ == null - ? billingAddress_ - : billingAddressBuilder_.build(); + result.billingAddress_ = + billingAddressBuilder_ == null ? billingAddress_ : billingAddressBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); + result.user_ = userBuilder_ == null ? user_ : userBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { - result.gatewayInfo_ = gatewayInfoBuilder_ == null - ? gatewayInfo_ - : gatewayInfoBuilder_.build(); + result.gatewayInfo_ = + gatewayInfoBuilder_ == null ? gatewayInfo_ : gatewayInfoBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -6229,38 +6915,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TransactionData) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData)other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData) other); } else { super.mergeFrom(other); return this; @@ -6268,7 +6955,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance()) + return this; if (other.hasTransactionId()) { transactionId_ = other.transactionId_; bitField0_ |= 0x00000001; @@ -6327,9 +7015,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData other merchantsBuilder_ = null; merchants_ = other.merchants_; bitField0_ = (bitField0_ & ~0x00000400); - merchantsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMerchantsFieldBuilder() : null; + merchantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMerchantsFieldBuilder() + : null; } else { merchantsBuilder_.addAllMessages(other.merchants_); } @@ -6353,9 +7042,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData other itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000800); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() + : null; } else { itemsBuilder_.addAllMessages(other.items_); } @@ -6390,101 +7080,107 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - paymentMethod_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - cardBin_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - cardLastFour_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 41: { - value_ = input.readDouble(); - bitField0_ |= 0x00000020; - break; - } // case 41 - case 50: { - input.readMessage( - getShippingAddressFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: { - input.readMessage( - getBillingAddressFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 82: { - input.readMessage( - getGatewayInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 82 - case 90: { - transactionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 90 - case 97: { - shippingValue_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 97 - case 106: { - com.google.recaptchaenterprise.v1.TransactionData.User m = - input.readMessage( - com.google.recaptchaenterprise.v1.TransactionData.User.parser(), - extensionRegistry); - if (merchantsBuilder_ == null) { - ensureMerchantsIsMutable(); - merchants_.add(m); - } else { - merchantsBuilder_.addMessage(m); - } - break; - } // case 106 - case 114: { - com.google.recaptchaenterprise.v1.TransactionData.Item m = - input.readMessage( - com.google.recaptchaenterprise.v1.TransactionData.Item.parser(), - extensionRegistry); - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(m); - } else { - itemsBuilder_.addMessage(m); - } - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + paymentMethod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + cardBin_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + cardLastFour_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 41: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 41 + case 50: + { + input.readMessage(getShippingAddressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + input.readMessage(getBillingAddressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: + { + input.readMessage(getUserFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 82: + { + input.readMessage(getGatewayInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 82 + case 90: + { + transactionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 90 + case 97: + { + shippingValue_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 97 + case 106: + { + com.google.recaptchaenterprise.v1.TransactionData.User m = + input.readMessage( + com.google.recaptchaenterprise.v1.TransactionData.User.parser(), + extensionRegistry); + if (merchantsBuilder_ == null) { + ensureMerchantsIsMutable(); + merchants_.add(m); + } else { + merchantsBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: + { + com.google.recaptchaenterprise.v1.TransactionData.Item m = + input.readMessage( + com.google.recaptchaenterprise.v1.TransactionData.Item.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 114 + 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) { @@ -6494,10 +7190,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object transactionId_ = ""; /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6506,12 +7205,15 @@ public Builder mergeFrom(
      * 
* * optional string transaction_id = 11; + * * @return Whether the transactionId field is set. */ public boolean hasTransactionId() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6520,13 +7222,13 @@ public boolean hasTransactionId() {
      * 
* * optional string transaction_id = 11; + * * @return The transactionId. */ public java.lang.String getTransactionId() { java.lang.Object ref = transactionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; @@ -6535,6 +7237,8 @@ public java.lang.String getTransactionId() { } } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6543,15 +7247,14 @@ public java.lang.String getTransactionId() {
      * 
* * optional string transaction_id = 11; + * * @return The bytes for transactionId. */ - public com.google.protobuf.ByteString - getTransactionIdBytes() { + public com.google.protobuf.ByteString getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); transactionId_ = b; return b; } else { @@ -6559,6 +7262,8 @@ public java.lang.String getTransactionId() { } } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6567,18 +7272,22 @@ public java.lang.String getTransactionId() {
      * 
* * optional string transaction_id = 11; + * * @param value The transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTransactionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } transactionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6587,6 +7296,7 @@ public Builder setTransactionId(
      * 
* * optional string transaction_id = 11; + * * @return This builder for chaining. */ public Builder clearTransactionId() { @@ -6596,6 +7306,8 @@ public Builder clearTransactionId() { return this; } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6604,12 +7316,14 @@ public Builder clearTransactionId() {
      * 
* * optional string transaction_id = 11; + * * @param value The bytes for transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); transactionId_ = value; bitField0_ |= 0x00000001; @@ -6619,6 +7333,8 @@ public Builder setTransactionIdBytes( private java.lang.Object paymentMethod_ = ""; /** + * + * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -6632,13 +7348,13 @@ public Builder setTransactionIdBytes(
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The paymentMethod. */ public java.lang.String getPaymentMethod() { java.lang.Object ref = paymentMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentMethod_ = s; return s; @@ -6647,6 +7363,8 @@ public java.lang.String getPaymentMethod() { } } /** + * + * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -6660,15 +7378,14 @@ public java.lang.String getPaymentMethod() {
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for paymentMethod. */ - public com.google.protobuf.ByteString - getPaymentMethodBytes() { + public com.google.protobuf.ByteString getPaymentMethodBytes() { java.lang.Object ref = paymentMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); paymentMethod_ = b; return b; } else { @@ -6676,6 +7393,8 @@ public java.lang.String getPaymentMethod() { } } /** + * + * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -6689,18 +7408,22 @@ public java.lang.String getPaymentMethod() {
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The paymentMethod to set. * @return This builder for chaining. */ - public Builder setPaymentMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPaymentMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } paymentMethod_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -6714,6 +7437,7 @@ public Builder setPaymentMethod(
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPaymentMethod() { @@ -6723,6 +7447,8 @@ public Builder clearPaymentMethod() { return this; } /** + * + * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -6736,12 +7462,14 @@ public Builder clearPaymentMethod() {
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for paymentMethod to set. * @return This builder for chaining. */ - public Builder setPaymentMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPaymentMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); paymentMethod_ = value; bitField0_ |= 0x00000002; @@ -6751,19 +7479,21 @@ public Builder setPaymentMethodBytes( private java.lang.Object cardBin_ = ""; /** + * + * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cardBin. */ public java.lang.String getCardBin() { java.lang.Object ref = cardBin_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardBin_ = s; return s; @@ -6772,21 +7502,22 @@ public java.lang.String getCardBin() { } } /** + * + * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cardBin. */ - public com.google.protobuf.ByteString - getCardBinBytes() { + public com.google.protobuf.ByteString getCardBinBytes() { java.lang.Object ref = cardBin_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cardBin_ = b; return b; } else { @@ -6794,30 +7525,37 @@ public java.lang.String getCardBin() { } } /** + * + * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The cardBin to set. * @return This builder for chaining. */ - public Builder setCardBin( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCardBin(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cardBin_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCardBin() { @@ -6827,18 +7565,22 @@ public Builder clearCardBin() { return this; } /** + * + * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for cardBin to set. * @return This builder for chaining. */ - public Builder setCardBinBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCardBinBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cardBin_ = value; bitField0_ |= 0x00000004; @@ -6848,18 +7590,20 @@ public Builder setCardBinBytes( private java.lang.Object cardLastFour_ = ""; /** + * + * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cardLastFour. */ public java.lang.String getCardLastFour() { java.lang.Object ref = cardLastFour_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardLastFour_ = s; return s; @@ -6868,20 +7612,21 @@ public java.lang.String getCardLastFour() { } } /** + * + * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cardLastFour. */ - public com.google.protobuf.ByteString - getCardLastFourBytes() { + public com.google.protobuf.ByteString getCardLastFourBytes() { java.lang.Object ref = cardLastFour_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cardLastFour_ = b; return b; } else { @@ -6889,28 +7634,35 @@ public java.lang.String getCardLastFour() { } } /** + * + * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The cardLastFour to set. * @return This builder for chaining. */ - public Builder setCardLastFour( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCardLastFour(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cardLastFour_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCardLastFour() { @@ -6920,17 +7672,21 @@ public Builder clearCardLastFour() { return this; } /** + * + * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for cardLastFour to set. * @return This builder for chaining. */ - public Builder setCardLastFourBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCardLastFourBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cardLastFour_ = value; bitField0_ |= 0x00000008; @@ -6940,18 +7696,20 @@ public Builder setCardLastFourBytes( private java.lang.Object currencyCode_ = ""; /** + * + * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -6960,20 +7718,21 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -6981,28 +7740,35 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } currencyCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCurrencyCode() { @@ -7012,17 +7778,21 @@ public Builder clearCurrencyCode() { return this; } /** + * + * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000010; @@ -7030,13 +7800,16 @@ public Builder setCurrencyCodeBytes( return this; } - private double value_ ; + private double value_; /** + * + * *
      * Optional. The decimal value of the transaction in the specified currency.
      * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -7044,11 +7817,14 @@ public double getValue() { return value_; } /** + * + * *
      * Optional. The decimal value of the transaction in the specified currency.
      * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The value to set. * @return This builder for chaining. */ @@ -7060,11 +7836,14 @@ public Builder setValue(double value) { return this; } /** + * + * *
      * Optional. The decimal value of the transaction in the specified currency.
      * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -7074,14 +7853,17 @@ public Builder clearValue() { return this; } - private double shippingValue_ ; + private double shippingValue_; /** + * + * *
      * Optional. The value of shipping in the specified currency. 0 for free or no
      * shipping.
      * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The shippingValue. */ @java.lang.Override @@ -7089,12 +7871,15 @@ public double getShippingValue() { return shippingValue_; } /** + * + * *
      * Optional. The value of shipping in the specified currency. 0 for free or no
      * shipping.
      * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The shippingValue to set. * @return This builder for chaining. */ @@ -7106,12 +7891,15 @@ public Builder setShippingValue(double value) { return this; } /** + * + * *
      * Optional. The value of shipping in the specified currency. 0 for free or no
      * shipping.
      * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearShippingValue() { @@ -7123,44 +7911,64 @@ public Builder clearShippingValue() { private com.google.recaptchaenterprise.v1.TransactionData.Address shippingAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> shippingAddressBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.Address, + com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> + shippingAddressBuilder_; /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shippingAddress field is set. */ public boolean hasShippingAddress() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shippingAddress. */ public com.google.recaptchaenterprise.v1.TransactionData.Address getShippingAddress() { if (shippingAddressBuilder_ == null) { - return shippingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : shippingAddress_; + return shippingAddress_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() + : shippingAddress_; } else { return shippingAddressBuilder_.getMessage(); } } /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setShippingAddress(com.google.recaptchaenterprise.v1.TransactionData.Address value) { + public Builder setShippingAddress( + com.google.recaptchaenterprise.v1.TransactionData.Address value) { if (shippingAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7174,12 +7982,16 @@ public Builder setShippingAddress(com.google.recaptchaenterprise.v1.TransactionD return this; } /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setShippingAddress( com.google.recaptchaenterprise.v1.TransactionData.Address.Builder builderForValue) { @@ -7193,18 +8005,24 @@ public Builder setShippingAddress( return this; } /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeShippingAddress(com.google.recaptchaenterprise.v1.TransactionData.Address value) { + public Builder mergeShippingAddress( + com.google.recaptchaenterprise.v1.TransactionData.Address value) { if (shippingAddressBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - shippingAddress_ != null && - shippingAddress_ != com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && shippingAddress_ != null + && shippingAddress_ + != com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) { getShippingAddressBuilder().mergeFrom(value); } else { shippingAddress_ = value; @@ -7217,12 +8035,16 @@ public Builder mergeShippingAddress(com.google.recaptchaenterprise.v1.Transactio return this; } /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearShippingAddress() { bitField0_ = (bitField0_ & ~0x00000080); @@ -7235,51 +8057,69 @@ public Builder clearShippingAddress() { return this; } /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.TransactionData.Address.Builder getShippingAddressBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.Address.Builder + getShippingAddressBuilder() { bitField0_ |= 0x00000080; onChanged(); return getShippingAddressFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder + getShippingAddressOrBuilder() { if (shippingAddressBuilder_ != null) { return shippingAddressBuilder_.getMessageOrBuilder(); } else { - return shippingAddress_ == null ? - com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : shippingAddress_; + return shippingAddress_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() + : shippingAddress_; } } /** + * + * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.Address, + com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> getShippingAddressFieldBuilder() { if (shippingAddressBuilder_ == null) { - shippingAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder>( - getShippingAddress(), - getParentForChildren(), - isClean()); + shippingAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.Address, + com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder>( + getShippingAddress(), getParentForChildren(), isClean()); shippingAddress_ = null; } return shippingAddressBuilder_; @@ -7287,41 +8127,61 @@ public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getShi private com.google.recaptchaenterprise.v1.TransactionData.Address billingAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> billingAddressBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.Address, + com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> + billingAddressBuilder_; /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the billingAddress field is set. */ public boolean hasBillingAddress() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The billingAddress. */ public com.google.recaptchaenterprise.v1.TransactionData.Address getBillingAddress() { if (billingAddressBuilder_ == null) { - return billingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : billingAddress_; + return billingAddress_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() + : billingAddress_; } else { return billingAddressBuilder_.getMessage(); } } /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setBillingAddress(com.google.recaptchaenterprise.v1.TransactionData.Address value) { + public Builder setBillingAddress( + com.google.recaptchaenterprise.v1.TransactionData.Address value) { if (billingAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7335,11 +8195,15 @@ public Builder setBillingAddress(com.google.recaptchaenterprise.v1.TransactionDa return this; } /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBillingAddress( com.google.recaptchaenterprise.v1.TransactionData.Address.Builder builderForValue) { @@ -7353,17 +8217,23 @@ public Builder setBillingAddress( return this; } /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeBillingAddress(com.google.recaptchaenterprise.v1.TransactionData.Address value) { + public Builder mergeBillingAddress( + com.google.recaptchaenterprise.v1.TransactionData.Address value) { if (billingAddressBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - billingAddress_ != null && - billingAddress_ != com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && billingAddress_ != null + && billingAddress_ + != com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) { getBillingAddressBuilder().mergeFrom(value); } else { billingAddress_ = value; @@ -7376,11 +8246,15 @@ public Builder mergeBillingAddress(com.google.recaptchaenterprise.v1.Transaction return this; } /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBillingAddress() { bitField0_ = (bitField0_ & ~0x00000100); @@ -7393,48 +8267,66 @@ public Builder clearBillingAddress() { return this; } /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.TransactionData.Address.Builder getBillingAddressBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.Address.Builder + getBillingAddressBuilder() { bitField0_ |= 0x00000100; onChanged(); return getBillingAddressFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder + getBillingAddressOrBuilder() { if (billingAddressBuilder_ != null) { return billingAddressBuilder_.getMessageOrBuilder(); } else { - return billingAddress_ == null ? - com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : billingAddress_; + return billingAddress_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() + : billingAddress_; } } /** + * + * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.Address, + com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> getBillingAddressFieldBuilder() { if (billingAddressBuilder_ == null) { - billingAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder>( - getBillingAddress(), - getParentForChildren(), - isClean()); + billingAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.Address, + com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder>( + getBillingAddress(), getParentForChildren(), isClean()); billingAddress_ = null; } return billingAddressBuilder_; @@ -7442,39 +8334,58 @@ public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getBil private com.google.recaptchaenterprise.v1.TransactionData.User user_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> userBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.User, + com.google.recaptchaenterprise.v1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> + userBuilder_; /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The user. */ public com.google.recaptchaenterprise.v1.TransactionData.User getUser() { if (userBuilder_ == null) { - return user_ == null ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() : user_; + return user_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() + : user_; } else { return userBuilder_.getMessage(); } } /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUser(com.google.recaptchaenterprise.v1.TransactionData.User value) { if (userBuilder_ == null) { @@ -7490,11 +8401,15 @@ public Builder setUser(com.google.recaptchaenterprise.v1.TransactionData.User va return this; } /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUser( com.google.recaptchaenterprise.v1.TransactionData.User.Builder builderForValue) { @@ -7508,17 +8423,22 @@ public Builder setUser( return this; } /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUser(com.google.recaptchaenterprise.v1.TransactionData.User value) { if (userBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - user_ != null && - user_ != com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && user_ != null + && user_ + != com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()) { getUserBuilder().mergeFrom(value); } else { user_ = value; @@ -7531,11 +8451,15 @@ public Builder mergeUser(com.google.recaptchaenterprise.v1.TransactionData.User return this; } /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000200); @@ -7548,11 +8472,15 @@ public Builder clearUser() { return this; } /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder getUserBuilder() { bitField0_ |= 0x00000200; @@ -7560,61 +8488,84 @@ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder getUserBui return getUserFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { - return user_ == null ? - com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() : user_; + return user_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() + : user_; } } /** + * + * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.User, + com.google.recaptchaenterprise.v1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); + userBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.User, + com.google.recaptchaenterprise.v1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>( + getUser(), getParentForChildren(), isClean()); user_ = null; } return userBuilder_; } private java.util.List merchants_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMerchantsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - merchants_ = new java.util.ArrayList(merchants_); + merchants_ = + new java.util.ArrayList( + merchants_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> merchantsBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.User, + com.google.recaptchaenterprise.v1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> + merchantsBuilder_; /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getMerchantsList() { + public java.util.List + getMerchantsList() { if (merchantsBuilder_ == null) { return java.util.Collections.unmodifiableList(merchants_); } else { @@ -7622,11 +8573,15 @@ public java.util.List ge } } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getMerchantsCount() { if (merchantsBuilder_ == null) { @@ -7636,11 +8591,15 @@ public int getMerchantsCount() { } } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.User getMerchants(int index) { if (merchantsBuilder_ == null) { @@ -7650,11 +8609,15 @@ public com.google.recaptchaenterprise.v1.TransactionData.User getMerchants(int i } } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMerchants( int index, com.google.recaptchaenterprise.v1.TransactionData.User value) { @@ -7671,11 +8634,15 @@ public Builder setMerchants( return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMerchants( int index, com.google.recaptchaenterprise.v1.TransactionData.User.Builder builderForValue) { @@ -7689,11 +8656,15 @@ public Builder setMerchants( return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addMerchants(com.google.recaptchaenterprise.v1.TransactionData.User value) { if (merchantsBuilder_ == null) { @@ -7709,11 +8680,15 @@ public Builder addMerchants(com.google.recaptchaenterprise.v1.TransactionData.Us return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addMerchants( int index, com.google.recaptchaenterprise.v1.TransactionData.User value) { @@ -7730,11 +8705,15 @@ public Builder addMerchants( return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addMerchants( com.google.recaptchaenterprise.v1.TransactionData.User.Builder builderForValue) { @@ -7748,11 +8727,15 @@ public Builder addMerchants( return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addMerchants( int index, com.google.recaptchaenterprise.v1.TransactionData.User.Builder builderForValue) { @@ -7766,18 +8749,22 @@ public Builder addMerchants( return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllMerchants( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (merchantsBuilder_ == null) { ensureMerchantsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, merchants_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, merchants_); onChanged(); } else { merchantsBuilder_.addAllMessages(values); @@ -7785,11 +8772,15 @@ public Builder addAllMerchants( return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMerchants() { if (merchantsBuilder_ == null) { @@ -7802,11 +8793,15 @@ public Builder clearMerchants() { return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeMerchants(int index) { if (merchantsBuilder_ == null) { @@ -7819,39 +8814,52 @@ public Builder removeMerchants(int index) { return this; } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder getMerchantsBuilder( int index) { return getMerchantsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMerchantsOrBuilder( int index) { if (merchantsBuilder_ == null) { - return merchants_.get(index); } else { + return merchants_.get(index); + } else { return merchantsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getMerchantsOrBuilderList() { + public java.util.List + getMerchantsOrBuilderList() { if (merchantsBuilder_ != null) { return merchantsBuilder_.getMessageOrBuilderList(); } else { @@ -7859,72 +8867,97 @@ public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMercha } } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder addMerchantsBuilder() { - return getMerchantsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()); + return getMerchantsFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()); } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder addMerchantsBuilder( int index) { - return getMerchantsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()); + return getMerchantsFieldBuilder() + .addBuilder( + index, com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()); } /** + * + * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getMerchantsBuilderList() { + public java.util.List + getMerchantsBuilderList() { return getMerchantsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.User, + com.google.recaptchaenterprise.v1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> getMerchantsFieldBuilder() { if (merchantsBuilder_ == null) { - merchantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>( - merchants_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); + merchantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.User, + com.google.recaptchaenterprise.v1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>( + merchants_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); merchants_ = null; } return merchantsBuilder_; } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - items_ = new java.util.ArrayList(items_); + items_ = + new java.util.ArrayList(items_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Item, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> itemsBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.Item, + com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, + com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> + itemsBuilder_; /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { @@ -7934,11 +8967,15 @@ public java.util.List ge } } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getItemsCount() { if (itemsBuilder_ == null) { @@ -7948,11 +8985,15 @@ public int getItemsCount() { } } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.Item getItems(int index) { if (itemsBuilder_ == null) { @@ -7962,11 +9003,15 @@ public com.google.recaptchaenterprise.v1.TransactionData.Item getItems(int index } } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setItems( int index, com.google.recaptchaenterprise.v1.TransactionData.Item value) { @@ -7983,11 +9028,15 @@ public Builder setItems( return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setItems( int index, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder builderForValue) { @@ -8001,11 +9050,15 @@ public Builder setItems( return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addItems(com.google.recaptchaenterprise.v1.TransactionData.Item value) { if (itemsBuilder_ == null) { @@ -8021,11 +9074,15 @@ public Builder addItems(com.google.recaptchaenterprise.v1.TransactionData.Item v return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addItems( int index, com.google.recaptchaenterprise.v1.TransactionData.Item value) { @@ -8042,11 +9099,15 @@ public Builder addItems( return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addItems( com.google.recaptchaenterprise.v1.TransactionData.Item.Builder builderForValue) { @@ -8060,11 +9121,15 @@ public Builder addItems( return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addItems( int index, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder builderForValue) { @@ -8078,18 +9143,22 @@ public Builder addItems( return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllItems( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -8097,11 +9166,15 @@ public Builder addAllItems( return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearItems() { if (itemsBuilder_ == null) { @@ -8114,11 +9187,15 @@ public Builder clearItems() { return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { @@ -8131,39 +9208,52 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.Item.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { - return items_.get(index); } else { + return items_.get(index); + } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -8171,49 +9261,65 @@ public com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsO } } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.Item.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()); } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.TransactionData.Item.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder( + index, com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()); } /** + * + * *
      * Optional. Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Item, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.Item, + com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, + com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Item, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder>( - items_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.Item, + com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, + com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder>( + items_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; @@ -8221,44 +9327,64 @@ public com.google.recaptchaenterprise.v1.TransactionData.Item.Builder addItemsBu private com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo gatewayInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder> gatewayInfoBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder> + gatewayInfoBuilder_; /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gatewayInfo field is set. */ public boolean hasGatewayInfo() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gatewayInfo. */ public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getGatewayInfo() { if (gatewayInfoBuilder_ == null) { - return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; + return gatewayInfo_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() + : gatewayInfo_; } else { return gatewayInfoBuilder_.getMessage(); } } /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGatewayInfo(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo value) { + public Builder setGatewayInfo( + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo value) { if (gatewayInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8272,12 +9398,16 @@ public Builder setGatewayInfo(com.google.recaptchaenterprise.v1.TransactionData. return this; } /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGatewayInfo( com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder builderForValue) { @@ -8291,18 +9421,25 @@ public Builder setGatewayInfo( return this; } /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGatewayInfo(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo value) { + public Builder mergeGatewayInfo( + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo value) { if (gatewayInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - gatewayInfo_ != null && - gatewayInfo_ != com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && gatewayInfo_ != null + && gatewayInfo_ + != com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo + .getDefaultInstance()) { getGatewayInfoBuilder().mergeFrom(value); } else { gatewayInfo_ = value; @@ -8315,12 +9452,16 @@ public Builder mergeGatewayInfo(com.google.recaptchaenterprise.v1.TransactionDat return this; } /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGatewayInfo() { bitField0_ = (bitField0_ & ~0x00001000); @@ -8333,58 +9474,76 @@ public Builder clearGatewayInfo() { return this; } /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder getGatewayInfoBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder + getGatewayInfoBuilder() { bitField0_ |= 0x00001000; onChanged(); return getGatewayInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder + getGatewayInfoOrBuilder() { if (gatewayInfoBuilder_ != null) { return gatewayInfoBuilder_.getMessageOrBuilder(); } else { - return gatewayInfo_ == null ? - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; + return gatewayInfo_ == null + ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() + : gatewayInfo_; } } /** + * + * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder> getGatewayInfoFieldBuilder() { if (gatewayInfoBuilder_ == null) { - gatewayInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder>( - getGatewayInfo(), - getParentForChildren(), - isClean()); + gatewayInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder>( + getGatewayInfo(), getParentForChildren(), isClean()); gatewayInfo_ = null; } return gatewayInfoBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8394,12 +9553,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData) private static final com.google.recaptchaenterprise.v1.TransactionData DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData(); } @@ -8408,27 +9567,27 @@ public static com.google.recaptchaenterprise.v1.TransactionData getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -8443,6 +9602,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TransactionData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java similarity index 64% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java index d1b8e2c756e9..e8dcf0d16e07 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface TransactionDataOrBuilder extends +public interface TransactionDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -16,10 +34,13 @@ public interface TransactionDataOrBuilder extends
    * 
* * optional string transaction_id = 11; + * * @return Whether the transactionId field is set. */ boolean hasTransactionId(); /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -28,10 +49,13 @@ public interface TransactionDataOrBuilder extends
    * 
* * optional string transaction_id = 11; + * * @return The transactionId. */ java.lang.String getTransactionId(); /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -40,12 +64,14 @@ public interface TransactionDataOrBuilder extends
    * 
* * optional string transaction_id = 11; + * * @return The bytes for transactionId. */ - com.google.protobuf.ByteString - getTransactionIdBytes(); + com.google.protobuf.ByteString getTransactionIdBytes(); /** + * + * *
    * Optional. The payment method for the transaction. The allowed values are:
    *
@@ -59,10 +85,13 @@ public interface TransactionDataOrBuilder extends
    * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The paymentMethod. */ java.lang.String getPaymentMethod(); /** + * + * *
    * Optional. The payment method for the transaction. The allowed values are:
    *
@@ -76,293 +105,406 @@ public interface TransactionDataOrBuilder extends
    * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for paymentMethod. */ - com.google.protobuf.ByteString - getPaymentMethodBytes(); + com.google.protobuf.ByteString getPaymentMethodBytes(); /** + * + * *
    * Optional. The Bank Identification Number - generally the first 6 or 8
    * digits of the card.
    * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cardBin. */ java.lang.String getCardBin(); /** + * + * *
    * Optional. The Bank Identification Number - generally the first 6 or 8
    * digits of the card.
    * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cardBin. */ - com.google.protobuf.ByteString - getCardBinBytes(); + com.google.protobuf.ByteString getCardBinBytes(); /** + * + * *
    * Optional. The last four digits of the card.
    * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cardLastFour. */ java.lang.String getCardLastFour(); /** + * + * *
    * Optional. The last four digits of the card.
    * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cardLastFour. */ - com.google.protobuf.ByteString - getCardLastFourBytes(); + com.google.protobuf.ByteString getCardLastFourBytes(); /** + * + * *
    * Optional. The currency code in ISO-4217 format.
    * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** + * + * *
    * Optional. The currency code in ISO-4217 format.
    * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); + com.google.protobuf.ByteString getCurrencyCodeBytes(); /** + * + * *
    * Optional. The decimal value of the transaction in the specified currency.
    * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ double getValue(); /** + * + * *
    * Optional. The value of shipping in the specified currency. 0 for free or no
    * shipping.
    * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The shippingValue. */ double getShippingValue(); /** + * + * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shippingAddress field is set. */ boolean hasShippingAddress(); /** + * + * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shippingAddress. */ com.google.recaptchaenterprise.v1.TransactionData.Address getShippingAddress(); /** + * + * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder(); /** + * + * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the billingAddress field is set. */ boolean hasBillingAddress(); /** + * + * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The billingAddress. */ com.google.recaptchaenterprise.v1.TransactionData.Address getBillingAddress(); /** + * + * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder(); /** + * + * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the user field is set. */ boolean hasUser(); /** + * + * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The user. */ com.google.recaptchaenterprise.v1.TransactionData.User getUser(); /** + * + * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getUserOrBuilder(); /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getMerchantsList(); + java.util.List getMerchantsList(); /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TransactionData.User getMerchants(int index); /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getMerchantsCount(); /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getMerchantsOrBuilderList(); /** + * + * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMerchantsOrBuilder( - int index); + com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMerchantsOrBuilder(int index); /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TransactionData.Item getItems(int index); /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getItemsCount(); /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * Optional. Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsOrBuilder( - int index); + com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsOrBuilder(int index); /** + * + * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gatewayInfo field is set. */ boolean hasGatewayInfo(); /** + * + * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gatewayInfo. */ com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getGatewayInfo(); /** + * + * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java similarity index 73% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java index 3a1c8c56876d..7e325d0b3640 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Describes an event in the lifecycle of a payment transaction.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionEvent} */ -public final class TransactionEvent extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransactionEvent extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionEvent) TransactionEventOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransactionEvent.newBuilder() to construct. private TransactionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransactionEvent() { eventType_ = 0; reason_ = ""; @@ -26,34 +44,38 @@ private TransactionEvent() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransactionEvent(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionEvent.class, com.google.recaptchaenterprise.v1.TransactionEvent.Builder.class); + com.google.recaptchaenterprise.v1.TransactionEvent.class, + com.google.recaptchaenterprise.v1.TransactionEvent.Builder.class); } /** + * + * *
    * Enum that represents an event in the payment transaction lifecycle.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType} */ - public enum TransactionEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum TransactionEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default, unspecified event type.
      * 
@@ -62,6 +84,8 @@ public enum TransactionEventType */ TRANSACTION_EVENT_TYPE_UNSPECIFIED(0), /** + * + * *
      * Indicates that the transaction is approved by the merchant. The
      * accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
@@ -72,6 +96,8 @@ public enum TransactionEventType
      */
     MERCHANT_APPROVE(1),
     /**
+     *
+     *
      * 
      * Indicates that the transaction is denied and concluded due to risks
      * detected by the merchant. The accompanying reasons can include terms such
@@ -82,6 +108,8 @@ public enum TransactionEventType
      */
     MERCHANT_DENY(2),
     /**
+     *
+     *
      * 
      * Indicates that the transaction is being evaluated by a human, due to
      * suspicion or risk.
@@ -91,6 +119,8 @@ public enum TransactionEventType
      */
     MANUAL_REVIEW(3),
     /**
+     *
+     *
      * 
      * Indicates that the authorization attempt with the card issuer succeeded.
      * 
@@ -99,6 +129,8 @@ public enum TransactionEventType */ AUTHORIZATION(4), /** + * + * *
      * Indicates that the authorization attempt with the card issuer failed.
      * The accompanying reasons can include Visa's '54' indicating that the card
@@ -109,6 +141,8 @@ public enum TransactionEventType
      */
     AUTHORIZATION_DECLINE(5),
     /**
+     *
+     *
      * 
      * Indicates that the transaction is completed because the funds were
      * settled.
@@ -118,6 +152,8 @@ public enum TransactionEventType
      */
     PAYMENT_CAPTURE(6),
     /**
+     *
+     *
      * 
      * Indicates that the transaction could not be completed because the funds
      * were not settled.
@@ -127,6 +163,8 @@ public enum TransactionEventType
      */
     PAYMENT_CAPTURE_DECLINE(7),
     /**
+     *
+     *
      * 
      * Indicates that the transaction has been canceled. Specify the reason
      * for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
@@ -136,6 +174,8 @@ public enum TransactionEventType
      */
     CANCEL(8),
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a chargeback inquiry due to
      * fraud for the transaction, requesting additional information before a
@@ -147,6 +187,8 @@ public enum TransactionEventType
      */
     CHARGEBACK_INQUIRY(9),
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a chargeback alert due to fraud
      * for the transaction. The process of resolving the dispute without
@@ -157,6 +199,8 @@ public enum TransactionEventType
      */
     CHARGEBACK_ALERT(10),
     /**
+     *
+     *
      * 
      * Indicates that a fraud notification is issued for the transaction, sent
      * by the payment instrument's issuing bank because the transaction appears
@@ -169,6 +213,8 @@ public enum TransactionEventType
      */
     FRAUD_NOTIFICATION(11),
     /**
+     *
+     *
      * 
      * Indicates that the merchant is informed by the payment network that the
      * transaction has entered the chargeback process due to fraud. Reason code
@@ -180,6 +226,8 @@ public enum TransactionEventType
      */
     CHARGEBACK(12),
     /**
+     *
+     *
      * 
      * Indicates that the transaction has entered the chargeback process due to
      * fraud, and that the merchant has chosen to enter representment. Reason
@@ -191,6 +239,8 @@ public enum TransactionEventType
      */
     CHARGEBACK_REPRESENTMENT(13),
     /**
+     *
+     *
      * 
      * Indicates that the transaction has had a fraud chargeback which was
      * illegitimate and was reversed as a result. For partial chargebacks, we
@@ -201,6 +251,8 @@ public enum TransactionEventType
      */
     CHARGEBACK_REVERSE(14),
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a refund for a completed
      * transaction. For partial refunds, we recommend that you include an amount
@@ -212,6 +264,8 @@ public enum TransactionEventType
      */
     REFUND_REQUEST(15),
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a refund request for this
      * transaction, but that they have declined it. For partial refunds, we
@@ -223,6 +277,8 @@ public enum TransactionEventType
      */
     REFUND_DECLINE(16),
     /**
+     *
+     *
      * 
      * Indicates that the completed transaction was refunded by the merchant.
      * For partial refunds, we recommend that you include an amount in the
@@ -234,6 +290,8 @@ public enum TransactionEventType
      */
     REFUND(17),
     /**
+     *
+     *
      * 
      * Indicates that the completed transaction was refunded by the merchant,
      * and that this refund was reversed. For partial refunds, we recommend that
@@ -247,6 +305,8 @@ public enum TransactionEventType
     ;
 
     /**
+     *
+     *
      * 
      * Default, unspecified event type.
      * 
@@ -255,6 +315,8 @@ public enum TransactionEventType */ public static final int TRANSACTION_EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the transaction is approved by the merchant. The
      * accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
@@ -265,6 +327,8 @@ public enum TransactionEventType
      */
     public static final int MERCHANT_APPROVE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates that the transaction is denied and concluded due to risks
      * detected by the merchant. The accompanying reasons can include terms such
@@ -275,6 +339,8 @@ public enum TransactionEventType
      */
     public static final int MERCHANT_DENY_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates that the transaction is being evaluated by a human, due to
      * suspicion or risk.
@@ -284,6 +350,8 @@ public enum TransactionEventType
      */
     public static final int MANUAL_REVIEW_VALUE = 3;
     /**
+     *
+     *
      * 
      * Indicates that the authorization attempt with the card issuer succeeded.
      * 
@@ -292,6 +360,8 @@ public enum TransactionEventType */ public static final int AUTHORIZATION_VALUE = 4; /** + * + * *
      * Indicates that the authorization attempt with the card issuer failed.
      * The accompanying reasons can include Visa's '54' indicating that the card
@@ -302,6 +372,8 @@ public enum TransactionEventType
      */
     public static final int AUTHORIZATION_DECLINE_VALUE = 5;
     /**
+     *
+     *
      * 
      * Indicates that the transaction is completed because the funds were
      * settled.
@@ -311,6 +383,8 @@ public enum TransactionEventType
      */
     public static final int PAYMENT_CAPTURE_VALUE = 6;
     /**
+     *
+     *
      * 
      * Indicates that the transaction could not be completed because the funds
      * were not settled.
@@ -320,6 +394,8 @@ public enum TransactionEventType
      */
     public static final int PAYMENT_CAPTURE_DECLINE_VALUE = 7;
     /**
+     *
+     *
      * 
      * Indicates that the transaction has been canceled. Specify the reason
      * for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
@@ -329,6 +405,8 @@ public enum TransactionEventType
      */
     public static final int CANCEL_VALUE = 8;
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a chargeback inquiry due to
      * fraud for the transaction, requesting additional information before a
@@ -340,6 +418,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_INQUIRY_VALUE = 9;
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a chargeback alert due to fraud
      * for the transaction. The process of resolving the dispute without
@@ -350,6 +430,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_ALERT_VALUE = 10;
     /**
+     *
+     *
      * 
      * Indicates that a fraud notification is issued for the transaction, sent
      * by the payment instrument's issuing bank because the transaction appears
@@ -362,6 +444,8 @@ public enum TransactionEventType
      */
     public static final int FRAUD_NOTIFICATION_VALUE = 11;
     /**
+     *
+     *
      * 
      * Indicates that the merchant is informed by the payment network that the
      * transaction has entered the chargeback process due to fraud. Reason code
@@ -373,6 +457,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_VALUE = 12;
     /**
+     *
+     *
      * 
      * Indicates that the transaction has entered the chargeback process due to
      * fraud, and that the merchant has chosen to enter representment. Reason
@@ -384,6 +470,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_REPRESENTMENT_VALUE = 13;
     /**
+     *
+     *
      * 
      * Indicates that the transaction has had a fraud chargeback which was
      * illegitimate and was reversed as a result. For partial chargebacks, we
@@ -394,6 +482,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_REVERSE_VALUE = 14;
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a refund for a completed
      * transaction. For partial refunds, we recommend that you include an amount
@@ -405,6 +495,8 @@ public enum TransactionEventType
      */
     public static final int REFUND_REQUEST_VALUE = 15;
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a refund request for this
      * transaction, but that they have declined it. For partial refunds, we
@@ -416,6 +508,8 @@ public enum TransactionEventType
      */
     public static final int REFUND_DECLINE_VALUE = 16;
     /**
+     *
+     *
      * 
      * Indicates that the completed transaction was refunded by the merchant.
      * For partial refunds, we recommend that you include an amount in the
@@ -427,6 +521,8 @@ public enum TransactionEventType
      */
     public static final int REFUND_VALUE = 17;
     /**
+     *
+     *
      * 
      * Indicates that the completed transaction was refunded by the merchant,
      * and that this refund was reversed. For partial refunds, we recommend that
@@ -437,7 +533,6 @@ public enum TransactionEventType
      */
     public static final int REFUND_REVERSE_VALUE = 18;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -462,26 +557,46 @@ public static TransactionEventType valueOf(int value) {
      */
     public static TransactionEventType forNumber(int value) {
       switch (value) {
-        case 0: return TRANSACTION_EVENT_TYPE_UNSPECIFIED;
-        case 1: return MERCHANT_APPROVE;
-        case 2: return MERCHANT_DENY;
-        case 3: return MANUAL_REVIEW;
-        case 4: return AUTHORIZATION;
-        case 5: return AUTHORIZATION_DECLINE;
-        case 6: return PAYMENT_CAPTURE;
-        case 7: return PAYMENT_CAPTURE_DECLINE;
-        case 8: return CANCEL;
-        case 9: return CHARGEBACK_INQUIRY;
-        case 10: return CHARGEBACK_ALERT;
-        case 11: return FRAUD_NOTIFICATION;
-        case 12: return CHARGEBACK;
-        case 13: return CHARGEBACK_REPRESENTMENT;
-        case 14: return CHARGEBACK_REVERSE;
-        case 15: return REFUND_REQUEST;
-        case 16: return REFUND_DECLINE;
-        case 17: return REFUND;
-        case 18: return REFUND_REVERSE;
-        default: return null;
+        case 0:
+          return TRANSACTION_EVENT_TYPE_UNSPECIFIED;
+        case 1:
+          return MERCHANT_APPROVE;
+        case 2:
+          return MERCHANT_DENY;
+        case 3:
+          return MANUAL_REVIEW;
+        case 4:
+          return AUTHORIZATION;
+        case 5:
+          return AUTHORIZATION_DECLINE;
+        case 6:
+          return PAYMENT_CAPTURE;
+        case 7:
+          return PAYMENT_CAPTURE_DECLINE;
+        case 8:
+          return CANCEL;
+        case 9:
+          return CHARGEBACK_INQUIRY;
+        case 10:
+          return CHARGEBACK_ALERT;
+        case 11:
+          return FRAUD_NOTIFICATION;
+        case 12:
+          return CHARGEBACK;
+        case 13:
+          return CHARGEBACK_REPRESENTMENT;
+        case 14:
+          return CHARGEBACK_REVERSE;
+        case 15:
+          return REFUND_REQUEST;
+        case 16:
+          return REFUND_DECLINE;
+        case 17:
+          return REFUND;
+        case 18:
+          return REFUND_REVERSE;
+        default:
+          return null;
       }
     }
 
@@ -489,29 +604,31 @@ public static TransactionEventType forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        TransactionEventType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public TransactionEventType findValueByNumber(int number) {
-              return TransactionEventType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public TransactionEventType findValueByNumber(int number) {
+                return TransactionEventType.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.recaptchaenterprise.v1.TransactionEvent.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.TransactionEvent.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final TransactionEventType[] VALUES = values();
@@ -519,8 +636,7 @@ public TransactionEventType findValueByNumber(int number) {
     public static TransactionEventType 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;
@@ -540,33 +656,52 @@ private TransactionEventType(int value) {
   public static final int EVENT_TYPE_FIELD_NUMBER = 1;
   private int eventType_ = 0;
   /**
+   *
+   *
    * 
    * Optional. The type of this transaction event.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override public int getEventTypeValue() { + @java.lang.Override + public int getEventTypeValue() { return eventType_; } /** + * + * *
    * Optional. The type of this transaction event.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventType. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType getEventType() { - com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType result = com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.forNumber(eventType_); - return result == null ? com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType getEventType() { + com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType result = + com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.forNumber( + eventType_); + return result == null + ? com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.UNRECOGNIZED + : result; } public static final int REASON_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** + * + * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -574,6 +709,7 @@ private TransactionEventType(int value) {
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reason. */ @java.lang.Override @@ -582,14 +718,15 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** + * + * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -597,16 +734,15 @@ public java.lang.String getReason() {
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString - getReasonBytes() { + public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { @@ -617,6 +753,8 @@ public java.lang.String getReason() { public static final int VALUE_FIELD_NUMBER = 3; private double value_ = 0D; /** + * + * *
    * Optional. The value that corresponds with this transaction event, if one
    * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -624,6 +762,7 @@ public java.lang.String getReason() {
    * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -634,12 +773,16 @@ public double getValue() { public static final int EVENT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp eventTime_; /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -647,12 +790,16 @@ public boolean hasEventTime() { return eventTime_ != null; } /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ @java.lang.Override @@ -660,12 +807,15 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { @@ -673,6 +823,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -684,9 +835,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (eventType_ != com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.TRANSACTION_EVENT_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (eventType_ + != com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType + .TRANSACTION_EVENT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { @@ -707,20 +860,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (eventType_ != com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.TRANSACTION_EVENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, eventType_); + if (eventType_ + != com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType + .TRANSACTION_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, value_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, value_); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -730,23 +883,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionEvent)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionEvent other = (com.google.recaptchaenterprise.v1.TransactionEvent) obj; + com.google.recaptchaenterprise.v1.TransactionEvent other = + (com.google.recaptchaenterprise.v1.TransactionEvent) obj; if (eventType_ != other.eventType_) return false; - if (!getReason() - .equals(other.getReason())) return false; + if (!getReason().equals(other.getReason())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; + != java.lang.Double.doubleToLongBits(other.getValue())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime() - .equals(other.getEventTime())) return false; + if (!getEventTime().equals(other.getEventTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -764,8 +915,9 @@ public int hashCode() { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); @@ -776,131 +928,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes an event in the lifecycle of a payment transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionEvent} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionEvent) com.google.recaptchaenterprise.v1.TransactionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionEvent.class, com.google.recaptchaenterprise.v1.TransactionEvent.Builder.class); + com.google.recaptchaenterprise.v1.TransactionEvent.class, + com.google.recaptchaenterprise.v1.TransactionEvent.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionEvent.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -917,9 +1073,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; } @java.lang.Override @@ -938,8 +1094,11 @@ public com.google.recaptchaenterprise.v1.TransactionEvent build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionEvent buildPartial() { - com.google.recaptchaenterprise.v1.TransactionEvent result = new com.google.recaptchaenterprise.v1.TransactionEvent(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.TransactionEvent result = + new com.google.recaptchaenterprise.v1.TransactionEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -956,9 +1115,7 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionEvent re result.value_ = value_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.eventTime_ = eventTimeBuilder_ == null - ? eventTime_ - : eventTimeBuilder_.build(); + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); } } @@ -966,38 +1123,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionEvent re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TransactionEvent) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionEvent)other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionEvent) other); } else { super.mergeFrom(other); return this; @@ -1005,7 +1163,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionEvent other) { - if (other == com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) + return this; if (other.eventType_ != 0) { setEventTypeValue(other.getEventTypeValue()); } @@ -1046,34 +1205,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - eventType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 25: { - value_ = input.readDouble(); - bitField0_ |= 0x00000004; - break; - } // case 25 - case 34: { - input.readMessage( - getEventTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + eventType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 25: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: + { + input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -1083,26 +1245,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int eventType_ = 0; /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override public int getEventTypeValue() { + @java.lang.Override + public int getEventTypeValue() { return eventType_; } /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for eventType to set. * @return This builder for chaining. */ @@ -1113,28 +1287,43 @@ public Builder setEventTypeValue(int value) { return this; } /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventType. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType getEventType() { - com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType result = com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.forNumber(eventType_); - return result == null ? com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.UNRECOGNIZED : result; + com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType result = + com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.forNumber( + eventType_); + return result == null + ? com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType(com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType value) { + public Builder setEventType( + com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType value) { if (value == null) { throw new NullPointerException(); } @@ -1144,11 +1333,16 @@ public Builder setEventType(com.google.recaptchaenterprise.v1.TransactionEvent.T return this; } /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEventType() { @@ -1160,6 +1354,8 @@ public Builder clearEventType() { private java.lang.Object reason_ = ""; /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1167,13 +1363,13 @@ public Builder clearEventType() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -1182,6 +1378,8 @@ public java.lang.String getReason() { } } /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1189,15 +1387,14 @@ public java.lang.String getReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reason. */ - public com.google.protobuf.ByteString - getReasonBytes() { + public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { @@ -1205,6 +1402,8 @@ public java.lang.String getReason() { } } /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1212,18 +1411,22 @@ public java.lang.String getReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } reason_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1231,6 +1434,7 @@ public Builder setReason(
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReason() { @@ -1240,6 +1444,8 @@ public Builder clearReason() { return this; } /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1247,12 +1453,14 @@ public Builder clearReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000002; @@ -1260,8 +1468,10 @@ public Builder setReasonBytes( return this; } - private double value_ ; + private double value_; /** + * + * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1269,6 +1479,7 @@ public Builder setReasonBytes(
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -1276,6 +1487,8 @@ public double getValue() { return value_; } /** + * + * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1283,6 +1496,7 @@ public double getValue() {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The value to set. * @return This builder for chaining. */ @@ -1294,6 +1508,8 @@ public Builder setValue(double value) { return this; } /** + * + * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1301,6 +1517,7 @@ public Builder setValue(double value) {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -1312,26 +1529,37 @@ public Builder clearValue() { private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -1342,12 +1570,15 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { @@ -1363,15 +1594,17 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEventTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); } else { @@ -1382,18 +1615,21 @@ public Builder setEventTime( return this; } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - eventTime_ != null && - eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; @@ -1406,12 +1642,15 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEventTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1424,12 +1663,15 @@ public Builder clearEventTime() { return this; } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { bitField0_ |= 0x00000008; @@ -1437,45 +1679,53 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEventTime(), - getParentForChildren(), - isClean()); + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); eventTime_ = null; } return eventTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1485,12 +1735,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionEvent) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionEvent) private static final com.google.recaptchaenterprise.v1.TransactionEvent DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionEvent(); } @@ -1499,27 +1749,27 @@ public static com.google.recaptchaenterprise.v1.TransactionEvent getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1534,6 +1784,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TransactionEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java similarity index 67% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java index 9ceebf50bd5c..c7c2951203d5 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java @@ -1,32 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface TransactionEventOrBuilder extends +public interface TransactionEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The type of this transaction event.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventType. */ int getEventTypeValue(); /** + * + * *
    * Optional. The type of this transaction event.
    * 
* - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventType. */ com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType getEventType(); /** + * + * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -34,10 +62,13 @@ public interface TransactionEventOrBuilder extends
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reason. */ java.lang.String getReason(); /** + * + * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -45,12 +76,14 @@ public interface TransactionEventOrBuilder extends
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reason. */ - com.google.protobuf.ByteString - getReasonBytes(); + com.google.protobuf.ByteString getReasonBytes(); /** + * + * *
    * Optional. The value that corresponds with this transaction event, if one
    * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -58,37 +91,49 @@ public interface TransactionEventOrBuilder extends
    * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ double getValue(); /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java similarity index 63% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java index 86c9b8139755..55090f693999 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java @@ -1,55 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The update firewall policy request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest} */ -public final class UpdateFirewallPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFirewallPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) UpdateFirewallPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFirewallPolicyRequest.newBuilder() to construct. private UpdateFirewallPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFirewallPolicyRequest() { - } + + private UpdateFirewallPolicyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFirewallPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.Builder.class); } public static final int FIREWALL_POLICY_FIELD_NUMBER = 1; private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_; /** + * + * *
    * Required. The policy to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the firewallPolicy field is set. */ @java.lang.Override @@ -57,38 +80,55 @@ public boolean hasFirewallPolicy() { return firewallPolicy_ != null; } /** + * + * *
    * Required. The policy to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The firewallPolicy. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } /** + * + * *
    * Required. The policy to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -96,12 +136,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -109,12 +153,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -122,6 +169,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (firewallPolicy_ != null) { output.writeMessage(1, getFirewallPolicy()); } @@ -151,12 +198,10 @@ public int getSerializedSize() { size = 0; if (firewallPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFirewallPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFirewallPolicy()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -166,22 +211,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest other = (com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) obj; + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest other = + (com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) obj; if (hasFirewallPolicy() != other.hasFirewallPolicy()) return false; if (hasFirewallPolicy()) { - if (!getFirewallPolicy() - .equals(other.getFirewallPolicy())) return false; + if (!getFirewallPolicy().equals(other.getFirewallPolicy())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -208,131 +252,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The update firewall policy request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,13 +400,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.getDefaultInstance(); } @@ -372,23 +422,24 @@ public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest buildPartial() { - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest result = new com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest result = + new com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.firewallPolicy_ = firewallPolicyBuilder_ == null - ? firewallPolicy_ - : firewallPolicyBuilder_.build(); + result.firewallPolicy_ = + firewallPolicyBuilder_ == null ? firewallPolicy_ : firewallPolicyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -396,38 +447,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.UpdateFirewallPolic public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -435,7 +487,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest other) { - if (other == com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.getDefaultInstance()) + return this; if (other.hasFirewallPolicy()) { mergeFirewallPolicy(other.getFirewallPolicy()); } @@ -468,26 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getFirewallPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getFirewallPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -497,43 +550,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> firewallPolicyBuilder_; + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + firewallPolicyBuilder_; /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the firewallPolicy field is set. */ public boolean hasFirewallPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The firewallPolicy. */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { if (firewallPolicyBuilder_ == null) { - return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } else { return firewallPolicyBuilder_.getMessage(); } } /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { @@ -549,11 +622,15 @@ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolic return this; } /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFirewallPolicy( com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -567,17 +644,22 @@ public Builder setFirewallPolicy( return this; } /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - firewallPolicy_ != null && - firewallPolicy_ != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && firewallPolicy_ != null + && firewallPolicy_ + != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { getFirewallPolicyBuilder().mergeFrom(value); } else { firewallPolicy_ = value; @@ -590,11 +672,15 @@ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPol return this; } /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFirewallPolicy() { bitField0_ = (bitField0_ & ~0x00000001); @@ -607,11 +693,15 @@ public Builder clearFirewallPolicy() { return this; } /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolicyBuilder() { bitField0_ |= 0x00000001; @@ -619,36 +709,48 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolic return getFirewallPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { if (firewallPolicyBuilder_ != null) { return firewallPolicyBuilder_.getMessageOrBuilder(); } else { - return firewallPolicy_ == null ? - com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; + return firewallPolicy_ == null + ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() + : firewallPolicy_; } } /** + * + * *
      * Required. The policy to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> getFirewallPolicyFieldBuilder() { if (firewallPolicyBuilder_ == null) { - firewallPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( - getFirewallPolicy(), - getParentForChildren(), - isClean()); + firewallPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicy, + com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( + getFirewallPolicy(), getParentForChildren(), isClean()); firewallPolicy_ = null; } return firewallPolicyBuilder_; @@ -656,42 +758,58 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoli 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_; /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -707,15 +825,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -726,18 +846,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -750,12 +873,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -768,12 +894,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -781,45 +910,55 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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); } @@ -829,12 +968,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) - private static final com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest(); } @@ -843,27 +983,27 @@ public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFirewallPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFirewallPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -878,6 +1018,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java index d2ae393fdc52..d3d370999177 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java @@ -1,66 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface UpdateFirewallPolicyRequestOrBuilder extends +public interface UpdateFirewallPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The policy to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the firewallPolicy field is set. */ boolean hasFirewallPolicy(); /** + * + * *
    * Required. The policy to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The firewallPolicy. */ com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(); /** + * + * *
    * Required. The policy to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder(); /** + * + * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java similarity index 65% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java index 2fa18150854a..7c188e738a0b 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java @@ -1,55 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * The update key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UpdateKeyRequest} */ -public final class UpdateKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) UpdateKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateKeyRequest.newBuilder() to construct. private UpdateKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateKeyRequest() { - } + + private UpdateKeyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, com.google.recaptchaenterprise.v1.UpdateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, + com.google.recaptchaenterprise.v1.UpdateKeyRequest.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.recaptchaenterprise.v1.Key key_; /** + * + * *
    * Required. The key to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the key field is set. */ @java.lang.Override @@ -57,11 +80,16 @@ public boolean hasKey() { return key_ != null; } /** + * + * *
    * Required. The key to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The key. */ @java.lang.Override @@ -69,11 +97,15 @@ public com.google.recaptchaenterprise.v1.Key getKey() { return key_ == null ? com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; } /** + * + * *
    * Required. The key to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { @@ -83,12 +115,16 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -96,12 +132,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -109,12 +149,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -122,6 +165,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (key_ != null) { output.writeMessage(1, getKey()); } @@ -151,12 +194,10 @@ public int getSerializedSize() { size = 0; if (key_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKey()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKey()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -166,22 +207,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.UpdateKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.UpdateKeyRequest other = (com.google.recaptchaenterprise.v1.UpdateKeyRequest) obj; + com.google.recaptchaenterprise.v1.UpdateKeyRequest other = + (com.google.recaptchaenterprise.v1.UpdateKeyRequest) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -208,131 +248,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.UpdateKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The update key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UpdateKeyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) com.google.recaptchaenterprise.v1.UpdateKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, com.google.recaptchaenterprise.v1.UpdateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, + com.google.recaptchaenterprise.v1.UpdateKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.UpdateKeyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +395,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; } @java.lang.Override @@ -372,8 +416,11 @@ public com.google.recaptchaenterprise.v1.UpdateKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.UpdateKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.UpdateKeyRequest result = new com.google.recaptchaenterprise.v1.UpdateKeyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.UpdateKeyRequest result = + new com.google.recaptchaenterprise.v1.UpdateKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +428,10 @@ public com.google.recaptchaenterprise.v1.UpdateKeyRequest buildPartial() { private void buildPartial0(com.google.recaptchaenterprise.v1.UpdateKeyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = keyBuilder_ == null - ? key_ - : keyBuilder_.build(); + result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -396,38 +439,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.UpdateKeyRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.UpdateKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.UpdateKeyRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1.UpdateKeyRequest) other); } else { super.mergeFrom(other); return this; @@ -435,7 +479,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.UpdateKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.UpdateKeyRequest.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.UpdateKeyRequest.getDefaultInstance()) + return this; if (other.hasKey()) { mergeKey(other.getKey()); } @@ -468,26 +513,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getKeyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getKeyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -497,28 +541,42 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.recaptchaenterprise.v1.Key key_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> keyBuilder_; + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder> + keyBuilder_; /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The key. */ public com.google.recaptchaenterprise.v1.Key getKey() { @@ -529,11 +587,15 @@ public com.google.recaptchaenterprise.v1.Key getKey() { } } /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setKey(com.google.recaptchaenterprise.v1.Key value) { if (keyBuilder_ == null) { @@ -549,14 +611,17 @@ public Builder setKey(com.google.recaptchaenterprise.v1.Key value) { return this; } /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKey( - com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { + public Builder setKey(com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { @@ -567,17 +632,21 @@ public Builder setKey( return this; } /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeKey(com.google.recaptchaenterprise.v1.Key value) { if (keyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - key_ != null && - key_ != com.google.recaptchaenterprise.v1.Key.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && key_ != null + && key_ != com.google.recaptchaenterprise.v1.Key.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; @@ -590,11 +659,15 @@ public Builder mergeKey(com.google.recaptchaenterprise.v1.Key value) { return this; } /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); @@ -607,11 +680,15 @@ public Builder clearKey() { return this; } /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.Key.Builder getKeyBuilder() { bitField0_ |= 0x00000001; @@ -619,36 +696,46 @@ public com.google.recaptchaenterprise.v1.Key.Builder getKeyBuilder() { return getKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { - return key_ == null ? - com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; + return key_ == null ? com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; } } /** + * + * *
      * Required. The key to update.
      * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { - keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder>( - getKey(), - getParentForChildren(), - isClean()); + keyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.Key, + com.google.recaptchaenterprise.v1.Key.Builder, + com.google.recaptchaenterprise.v1.KeyOrBuilder>( + getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; @@ -656,42 +743,58 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { 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_; /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -707,15 +810,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -726,18 +831,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -750,12 +858,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -768,12 +879,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -781,45 +895,55 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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); } @@ -829,12 +953,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) private static final com.google.recaptchaenterprise.v1.UpdateKeyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.UpdateKeyRequest(); } @@ -843,27 +967,27 @@ public static com.google.recaptchaenterprise.v1.UpdateKeyRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -878,6 +1002,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.UpdateKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java index ffc63479d0ab..ebe5d6dc9f6f 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java @@ -1,66 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface UpdateKeyRequestOrBuilder extends +public interface UpdateKeyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The key to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the key field is set. */ boolean hasKey(); /** + * + * *
    * Required. The key to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The key. */ com.google.recaptchaenterprise.v1.Key getKey(); /** + * + * *
    * Required. The key to update.
    * 
* - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder(); /** + * + * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java similarity index 71% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java index 0143a11b8910..188d7d9bdede 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserId.java @@ -1,58 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * An identifier associated with a user.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UserId} */ -public final class UserId extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UserId extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.UserId) UserIdOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UserId.newBuilder() to construct. private UserId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UserId() { - } + + private UserId() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UserId(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UserId.class, com.google.recaptchaenterprise.v1.UserId.Builder.class); + com.google.recaptchaenterprise.v1.UserId.class, + com.google.recaptchaenterprise.v1.UserId.Builder.class); } private int idOneofCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object idOneof_; + public enum IdOneofCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EMAIL(1), PHONE_NUMBER(2), USERNAME(3), IDONEOF_NOT_SET(0); private final int value; + private IdOneofCase(int value) { this.value = value; } @@ -68,42 +90,52 @@ public static IdOneofCase valueOf(int value) { public static IdOneofCase forNumber(int value) { switch (value) { - case 1: return EMAIL; - case 2: return PHONE_NUMBER; - case 3: return USERNAME; - case 0: return IDONEOF_NOT_SET; - default: return null; + case 1: + return EMAIL; + case 2: + return PHONE_NUMBER; + case 3: + return USERNAME; + case 0: + return IDONEOF_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public IdOneofCase - getIdOneofCase() { - return IdOneofCase.forNumber( - idOneofCase_); + public IdOneofCase getIdOneofCase() { + return IdOneofCase.forNumber(idOneofCase_); } public static final int EMAIL_FIELD_NUMBER = 1; /** + * + * *
    * Optional. An email address.
    * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the email field is set. */ public boolean hasEmail() { return idOneofCase_ == 1; } /** + * + * *
    * Optional. An email address.
    * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The email. */ public java.lang.String getEmail() { @@ -114,8 +146,7 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (idOneofCase_ == 1) { idOneof_ = s; @@ -124,23 +155,24 @@ public java.lang.String getEmail() { } } /** + * + * *
    * Optional. An email address.
    * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = ""; if (idOneofCase_ == 1) { ref = idOneof_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (idOneofCase_ == 1) { idOneof_ = b; } @@ -152,22 +184,28 @@ public java.lang.String getEmail() { public static final int PHONE_NUMBER_FIELD_NUMBER = 2; /** + * + * *
    * Optional. A phone number. Should use the E.164 format.
    * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return idOneofCase_ == 2; } /** + * + * *
    * Optional. A phone number. Should use the E.164 format.
    * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { @@ -178,8 +216,7 @@ public java.lang.String getPhoneNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (idOneofCase_ == 2) { idOneof_ = s; @@ -188,23 +225,24 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
    * Optional. A phone number. Should use the E.164 format.
    * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = ""; if (idOneofCase_ == 2) { ref = idOneof_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (idOneofCase_ == 2) { idOneof_ = b; } @@ -216,6 +254,8 @@ public java.lang.String getPhoneNumber() { public static final int USERNAME_FIELD_NUMBER = 3; /** + * + * *
    * Optional. A unique username, if different from all the other identifiers
    * and `account_id` that are provided. Can be a unique login handle or
@@ -223,12 +263,15 @@ public java.lang.String getPhoneNumber() {
    * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the username field is set. */ public boolean hasUsername() { return idOneofCase_ == 3; } /** + * + * *
    * Optional. A unique username, if different from all the other identifiers
    * and `account_id` that are provided. Can be a unique login handle or
@@ -236,6 +279,7 @@ public boolean hasUsername() {
    * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The username. */ public java.lang.String getUsername() { @@ -246,8 +290,7 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (idOneofCase_ == 3) { idOneof_ = s; @@ -256,6 +299,8 @@ public java.lang.String getUsername() { } } /** + * + * *
    * Optional. A unique username, if different from all the other identifiers
    * and `account_id` that are provided. Can be a unique login handle or
@@ -263,18 +308,17 @@ public java.lang.String getUsername() {
    * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = ""; if (idOneofCase_ == 3) { ref = idOneof_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (idOneofCase_ == 3) { idOneof_ = b; } @@ -285,6 +329,7 @@ public java.lang.String getUsername() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -296,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (idOneofCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, idOneof_); } @@ -333,7 +377,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.UserId)) { return super.equals(obj); @@ -343,16 +387,13 @@ public boolean equals(final java.lang.Object obj) { if (!getIdOneofCase().equals(other.getIdOneofCase())) return false; switch (idOneofCase_) { case 1: - if (!getEmail() - .equals(other.getEmail())) return false; + if (!getEmail().equals(other.getEmail())) return false; break; case 2: - if (!getPhoneNumber() - .equals(other.getPhoneNumber())) return false; + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; break; case 3: - if (!getUsername() - .equals(other.getUsername())) return false; + if (!getUsername().equals(other.getUsername())) return false; break; case 0: default: @@ -389,132 +430,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.UserId parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.UserId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UserId parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.UserId parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.UserId parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.UserId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.UserId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An identifier associated with a user.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UserId} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.UserId) com.google.recaptchaenterprise.v1.UserIdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UserId.class, com.google.recaptchaenterprise.v1.UserId.Builder.class); + com.google.recaptchaenterprise.v1.UserId.class, + com.google.recaptchaenterprise.v1.UserId.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.UserId.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -525,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; } @java.lang.Override @@ -546,8 +591,11 @@ public com.google.recaptchaenterprise.v1.UserId build() { @java.lang.Override public com.google.recaptchaenterprise.v1.UserId buildPartial() { - com.google.recaptchaenterprise.v1.UserId result = new com.google.recaptchaenterprise.v1.UserId(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.UserId result = + new com.google.recaptchaenterprise.v1.UserId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -566,38 +614,39 @@ private void buildPartialOneofs(com.google.recaptchaenterprise.v1.UserId result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.UserId) { - return mergeFrom((com.google.recaptchaenterprise.v1.UserId)other); + return mergeFrom((com.google.recaptchaenterprise.v1.UserId) other); } else { super.mergeFrom(other); return this; @@ -607,27 +656,31 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.recaptchaenterprise.v1.UserId other) { if (other == com.google.recaptchaenterprise.v1.UserId.getDefaultInstance()) return this; switch (other.getIdOneofCase()) { - case EMAIL: { - idOneofCase_ = 1; - idOneof_ = other.idOneof_; - onChanged(); - break; - } - case PHONE_NUMBER: { - idOneofCase_ = 2; - idOneof_ = other.idOneof_; - onChanged(); - break; - } - case USERNAME: { - idOneofCase_ = 3; - idOneof_ = other.idOneof_; - onChanged(); - break; - } - case IDONEOF_NOT_SET: { - break; - } + case EMAIL: + { + idOneofCase_ = 1; + idOneof_ = other.idOneof_; + onChanged(); + break; + } + case PHONE_NUMBER: + { + idOneofCase_ = 2; + idOneof_ = other.idOneof_; + onChanged(); + break; + } + case USERNAME: + { + idOneofCase_ = 3; + idOneof_ = other.idOneof_; + onChanged(); + break; + } + case IDONEOF_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -655,30 +708,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - idOneofCase_ = 1; - idOneof_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - idOneofCase_ = 2; - idOneof_ = s; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - idOneofCase_ = 3; - idOneof_ = s; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + idOneofCase_ = 1; + idOneof_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + idOneofCase_ = 2; + idOneof_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + idOneofCase_ = 3; + idOneof_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -688,12 +745,12 @@ public Builder mergeFrom( } // finally return this; } + private int idOneofCase_ = 0; private java.lang.Object idOneof_; - public IdOneofCase - getIdOneofCase() { - return IdOneofCase.forNumber( - idOneofCase_); + + public IdOneofCase getIdOneofCase() { + return IdOneofCase.forNumber(idOneofCase_); } public Builder clearIdOneof() { @@ -706,11 +763,14 @@ public Builder clearIdOneof() { private int bitField0_; /** + * + * *
      * Optional. An email address.
      * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the email field is set. */ @java.lang.Override @@ -718,11 +778,14 @@ public boolean hasEmail() { return idOneofCase_ == 1; } /** + * + * *
      * Optional. An email address.
      * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The email. */ @java.lang.Override @@ -732,8 +795,7 @@ public java.lang.String getEmail() { ref = idOneof_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (idOneofCase_ == 1) { idOneof_ = s; @@ -744,24 +806,25 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Optional. An email address.
      * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = ""; if (idOneofCase_ == 1) { ref = idOneof_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (idOneofCase_ == 1) { idOneof_ = b; } @@ -771,28 +834,35 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Optional. An email address.
      * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } idOneofCase_ = 1; idOneof_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An email address.
      * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEmail() { @@ -804,17 +874,21 @@ public Builder clearEmail() { return this; } /** + * + * *
      * Optional. An email address.
      * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); idOneofCase_ = 1; idOneof_ = value; @@ -823,11 +897,14 @@ public Builder setEmailBytes( } /** + * + * *
      * Optional. A phone number. Should use the E.164 format.
      * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the phoneNumber field is set. */ @java.lang.Override @@ -835,11 +912,14 @@ public boolean hasPhoneNumber() { return idOneofCase_ == 2; } /** + * + * *
      * Optional. A phone number. Should use the E.164 format.
      * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneNumber. */ @java.lang.Override @@ -849,8 +929,7 @@ public java.lang.String getPhoneNumber() { ref = idOneof_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (idOneofCase_ == 2) { idOneof_ = s; @@ -861,24 +940,25 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
      * Optional. A phone number. Should use the E.164 format.
      * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = ""; if (idOneofCase_ == 2) { ref = idOneof_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (idOneofCase_ == 2) { idOneof_ = b; } @@ -888,28 +968,35 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
      * Optional. A phone number. Should use the E.164 format.
      * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } idOneofCase_ = 2; idOneof_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A phone number. Should use the E.164 format.
      * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPhoneNumber() { @@ -921,17 +1008,21 @@ public Builder clearPhoneNumber() { return this; } /** + * + * *
      * Optional. A phone number. Should use the E.164 format.
      * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); idOneofCase_ = 2; idOneof_ = value; @@ -940,6 +1031,8 @@ public Builder setPhoneNumberBytes( } /** + * + * *
      * Optional. A unique username, if different from all the other identifiers
      * and `account_id` that are provided. Can be a unique login handle or
@@ -947,6 +1040,7 @@ public Builder setPhoneNumberBytes(
      * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the username field is set. */ @java.lang.Override @@ -954,6 +1048,8 @@ public boolean hasUsername() { return idOneofCase_ == 3; } /** + * + * *
      * Optional. A unique username, if different from all the other identifiers
      * and `account_id` that are provided. Can be a unique login handle or
@@ -961,6 +1057,7 @@ public boolean hasUsername() {
      * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The username. */ @java.lang.Override @@ -970,8 +1067,7 @@ public java.lang.String getUsername() { ref = idOneof_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (idOneofCase_ == 3) { idOneof_ = s; @@ -982,6 +1078,8 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Optional. A unique username, if different from all the other identifiers
      * and `account_id` that are provided. Can be a unique login handle or
@@ -989,19 +1087,18 @@ public java.lang.String getUsername() {
      * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = ""; if (idOneofCase_ == 3) { ref = idOneof_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (idOneofCase_ == 3) { idOneof_ = b; } @@ -1011,6 +1108,8 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Optional. A unique username, if different from all the other identifiers
      * and `account_id` that are provided. Can be a unique login handle or
@@ -1018,18 +1117,22 @@ public java.lang.String getUsername() {
      * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } idOneofCase_ = 3; idOneof_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A unique username, if different from all the other identifiers
      * and `account_id` that are provided. Can be a unique login handle or
@@ -1037,6 +1140,7 @@ public Builder setUsername(
      * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1048,6 +1152,8 @@ public Builder clearUsername() { return this; } /** + * + * *
      * Optional. A unique username, if different from all the other identifiers
      * and `account_id` that are provided. Can be a unique login handle or
@@ -1055,21 +1161,23 @@ public Builder clearUsername() {
      * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); idOneofCase_ = 3; idOneof_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,12 +1187,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.UserId) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.UserId) private static final com.google.recaptchaenterprise.v1.UserId DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.UserId(); } @@ -1093,27 +1201,27 @@ public static com.google.recaptchaenterprise.v1.UserId getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,6 +1236,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.UserId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java similarity index 75% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java index e6cec5e769f2..8eab5ed86a8d 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserIdOrBuilder.java @@ -1,71 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface UserIdOrBuilder extends +public interface UserIdOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.UserId) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. An email address.
    * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the email field is set. */ boolean hasEmail(); /** + * + * *
    * Optional. An email address.
    * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
    * Optional. An email address.
    * 
* * string email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); /** + * + * *
    * Optional. A phone number. Should use the E.164 format.
    * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the phoneNumber field is set. */ boolean hasPhoneNumber(); /** + * + * *
    * Optional. A phone number. Should use the E.164 format.
    * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** + * + * *
    * Optional. A phone number. Should use the E.164 format.
    * 
* * string phone_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString - getPhoneNumberBytes(); + com.google.protobuf.ByteString getPhoneNumberBytes(); /** + * + * *
    * Optional. A unique username, if different from all the other identifiers
    * and `account_id` that are provided. Can be a unique login handle or
@@ -73,10 +107,13 @@ public interface UserIdOrBuilder extends
    * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the username field is set. */ boolean hasUsername(); /** + * + * *
    * Optional. A unique username, if different from all the other identifiers
    * and `account_id` that are provided. Can be a unique login handle or
@@ -84,10 +121,13 @@ public interface UserIdOrBuilder extends
    * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Optional. A unique username, if different from all the other identifiers
    * and `account_id` that are provided. Can be a unique login handle or
@@ -95,10 +135,10 @@ public interface UserIdOrBuilder extends
    * 
* * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); com.google.recaptchaenterprise.v1.UserId.IdOneofCase getIdOneofCase(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java similarity index 66% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java index ebba1a38af7c..3b403c905c86 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfo.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * User information associated with a request protected by reCAPTCHA Enterprise.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UserInfo} */ -public final class UserInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UserInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.UserInfo) UserInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UserInfo.newBuilder() to construct. private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UserInfo() { accountId_ = ""; userIds_ = java.util.Collections.emptyList(); @@ -26,34 +44,40 @@ private UserInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UserInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UserInfo.class, com.google.recaptchaenterprise.v1.UserInfo.Builder.class); + com.google.recaptchaenterprise.v1.UserInfo.class, + com.google.recaptchaenterprise.v1.UserInfo.Builder.class); } public static final int CREATE_ACCOUNT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createAccountTime_; /** + * + * *
    * Optional. Creation time for this account associated with this user. Leave
    * blank for non logged-in actions, guest checkout, or when there is no
    * account associated with the current user.
    * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createAccountTime field is set. */ @java.lang.Override @@ -61,37 +85,53 @@ public boolean hasCreateAccountTime() { return createAccountTime_ != null; } /** + * + * *
    * Optional. Creation time for this account associated with this user. Leave
    * blank for non logged-in actions, guest checkout, or when there is no
    * account associated with the current user.
    * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The createAccountTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateAccountTime() { - return createAccountTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createAccountTime_; + return createAccountTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createAccountTime_; } /** + * + * *
    * Optional. Creation time for this account associated with this user. Leave
    * blank for non logged-in actions, guest checkout, or when there is no
    * account associated with the current user.
    * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder() { - return createAccountTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createAccountTime_; + return createAccountTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createAccountTime_; } public static final int ACCOUNT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** + * + * *
    * Optional. For logged-in requests or login/registration requests, the unique
    * account identifier associated with this user. You can use the username if
@@ -101,6 +141,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder() {
    * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ @java.lang.Override @@ -109,14 +150,15 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** + * + * *
    * Optional. For logged-in requests or login/registration requests, the unique
    * account identifier associated with this user. You can use the username if
@@ -126,16 +168,15 @@ public java.lang.String getAccountId() {
    * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -144,67 +185,88 @@ public java.lang.String getAccountId() { } public static final int USER_IDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List userIds_; /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getUserIdsList() { return userIds_; } /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getUserIdsOrBuilderList() { return userIds_; } /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getUserIdsCount() { return userIds_.size(); } /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1.UserId getUserIds(int index) { return userIds_.get(index); } /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder(int index) { return userIds_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createAccountTime_ != null) { output.writeMessage(1, getCreateAccountTime()); } @@ -237,15 +298,13 @@ public int getSerializedSize() { size = 0; if (createAccountTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateAccountTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateAccountTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accountId_); } for (int i = 0; i < userIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, userIds_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, userIds_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -255,22 +314,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.recaptchaenterprise.v1.UserInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.UserInfo other = (com.google.recaptchaenterprise.v1.UserInfo) obj; + com.google.recaptchaenterprise.v1.UserInfo other = + (com.google.recaptchaenterprise.v1.UserInfo) obj; if (hasCreateAccountTime() != other.hasCreateAccountTime()) return false; if (hasCreateAccountTime()) { - if (!getCreateAccountTime() - .equals(other.getCreateAccountTime())) return false; + if (!getCreateAccountTime().equals(other.getCreateAccountTime())) return false; } - if (!getAccountId() - .equals(other.getAccountId())) return false; - if (!getUserIdsList() - .equals(other.getUserIdsList())) return false; + if (!getAccountId().equals(other.getAccountId())) return false; + if (!getUserIdsList().equals(other.getUserIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,132 +354,136 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.UserInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.UserInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.UserInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.UserInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * User information associated with a request protected by reCAPTCHA Enterprise.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UserInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.UserInfo) com.google.recaptchaenterprise.v1.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UserInfo.class, com.google.recaptchaenterprise.v1.UserInfo.Builder.class); + com.google.recaptchaenterprise.v1.UserInfo.class, + com.google.recaptchaenterprise.v1.UserInfo.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.UserInfo.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; } @java.lang.Override @@ -465,9 +526,12 @@ public com.google.recaptchaenterprise.v1.UserInfo build() { @java.lang.Override public com.google.recaptchaenterprise.v1.UserInfo buildPartial() { - com.google.recaptchaenterprise.v1.UserInfo result = new com.google.recaptchaenterprise.v1.UserInfo(this); + com.google.recaptchaenterprise.v1.UserInfo result = + new com.google.recaptchaenterprise.v1.UserInfo(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -487,9 +551,10 @@ private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.UserIn private void buildPartial0(com.google.recaptchaenterprise.v1.UserInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createAccountTime_ = createAccountTimeBuilder_ == null - ? createAccountTime_ - : createAccountTimeBuilder_.build(); + result.createAccountTime_ = + createAccountTimeBuilder_ == null + ? createAccountTime_ + : createAccountTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.accountId_ = accountId_; @@ -500,38 +565,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.UserInfo result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.UserInfo) { - return mergeFrom((com.google.recaptchaenterprise.v1.UserInfo)other); + return mergeFrom((com.google.recaptchaenterprise.v1.UserInfo) other); } else { super.mergeFrom(other); return this; @@ -566,9 +632,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.UserInfo other) { userIdsBuilder_ = null; userIds_ = other.userIds_; bitField0_ = (bitField0_ & ~0x00000004); - userIdsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUserIdsFieldBuilder() : null; + userIdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUserIdsFieldBuilder() + : null; } else { userIdsBuilder_.addAllMessages(other.userIds_); } @@ -600,37 +667,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateAccountTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - accountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.recaptchaenterprise.v1.UserId m = - input.readMessage( - com.google.recaptchaenterprise.v1.UserId.parser(), - extensionRegistry); - if (userIdsBuilder_ == null) { - ensureUserIdsIsMutable(); - userIds_.add(m); - } else { - userIdsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getCreateAccountTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.recaptchaenterprise.v1.UserId m = + input.readMessage( + com.google.recaptchaenterprise.v1.UserId.parser(), extensionRegistry); + if (userIdsBuilder_ == null) { + ensureUserIdsIsMutable(); + userIds_.add(m); + } else { + userIdsBuilder_.addMessage(m); + } + 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) { @@ -640,49 +709,69 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createAccountTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createAccountTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createAccountTimeBuilder_; /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createAccountTime field is set. */ public boolean hasCreateAccountTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The createAccountTime. */ public com.google.protobuf.Timestamp getCreateAccountTime() { if (createAccountTimeBuilder_ == null) { - return createAccountTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createAccountTime_; + return createAccountTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createAccountTime_; } else { return createAccountTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCreateAccountTime(com.google.protobuf.Timestamp value) { if (createAccountTimeBuilder_ == null) { @@ -698,16 +787,19 @@ public Builder setCreateAccountTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCreateAccountTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateAccountTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createAccountTimeBuilder_ == null) { createAccountTime_ = builderForValue.build(); } else { @@ -718,19 +810,23 @@ public Builder setCreateAccountTime( return this; } /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCreateAccountTime(com.google.protobuf.Timestamp value) { if (createAccountTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createAccountTime_ != null && - createAccountTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createAccountTime_ != null + && createAccountTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateAccountTimeBuilder().mergeFrom(value); } else { createAccountTime_ = value; @@ -743,13 +839,17 @@ public Builder mergeCreateAccountTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCreateAccountTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -762,13 +862,17 @@ public Builder clearCreateAccountTime() { return this; } /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getCreateAccountTimeBuilder() { bitField0_ |= 0x00000001; @@ -776,40 +880,52 @@ public com.google.protobuf.Timestamp.Builder getCreateAccountTimeBuilder() { return getCreateAccountTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder() { if (createAccountTimeBuilder_ != null) { return createAccountTimeBuilder_.getMessageOrBuilder(); } else { - return createAccountTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createAccountTime_; + return createAccountTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createAccountTime_; } } /** + * + * *
      * Optional. Creation time for this account associated with this user. Leave
      * blank for non logged-in actions, guest checkout, or when there is no
      * account associated with the current user.
      * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getCreateAccountTimeFieldBuilder() { if (createAccountTimeBuilder_ == null) { - createAccountTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateAccountTime(), - getParentForChildren(), - isClean()); + createAccountTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateAccountTime(), getParentForChildren(), isClean()); createAccountTime_ = null; } return createAccountTimeBuilder_; @@ -817,6 +933,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder() { private java.lang.Object accountId_ = ""; /** + * + * *
      * Optional. For logged-in requests or login/registration requests, the unique
      * account identifier associated with this user. You can use the username if
@@ -826,13 +944,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder() {
      * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -841,6 +959,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
      * Optional. For logged-in requests or login/registration requests, the unique
      * account identifier associated with this user. You can use the username if
@@ -850,15 +970,14 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -866,6 +985,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
      * Optional. For logged-in requests or login/registration requests, the unique
      * account identifier associated with this user. You can use the username if
@@ -875,18 +996,22 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accountId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. For logged-in requests or login/registration requests, the unique
      * account identifier associated with this user. You can use the username if
@@ -896,6 +1021,7 @@ public Builder setAccountId(
      * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAccountId() { @@ -905,6 +1031,8 @@ public Builder clearAccountId() { return this; } /** + * + * *
      * Optional. For logged-in requests or login/registration requests, the unique
      * account identifier associated with this user. You can use the username if
@@ -914,12 +1042,14 @@ public Builder clearAccountId() {
      * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000002; @@ -928,23 +1058,31 @@ public Builder setAccountIdBytes( } private java.util.List userIds_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureUserIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { userIds_ = new java.util.ArrayList(userIds_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.UserId, com.google.recaptchaenterprise.v1.UserId.Builder, com.google.recaptchaenterprise.v1.UserIdOrBuilder> userIdsBuilder_; + com.google.recaptchaenterprise.v1.UserId, + com.google.recaptchaenterprise.v1.UserId.Builder, + com.google.recaptchaenterprise.v1.UserIdOrBuilder> + userIdsBuilder_; /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getUserIdsList() { if (userIdsBuilder_ == null) { @@ -954,11 +1092,15 @@ public java.util.List getUserIdsList() } } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getUserIdsCount() { if (userIdsBuilder_ == null) { @@ -968,11 +1110,15 @@ public int getUserIdsCount() { } } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.UserId getUserIds(int index) { if (userIdsBuilder_ == null) { @@ -982,14 +1128,17 @@ public com.google.recaptchaenterprise.v1.UserId getUserIds(int index) { } } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUserIds( - int index, com.google.recaptchaenterprise.v1.UserId value) { + public Builder setUserIds(int index, com.google.recaptchaenterprise.v1.UserId value) { if (userIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1003,11 +1152,15 @@ public Builder setUserIds( return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUserIds( int index, com.google.recaptchaenterprise.v1.UserId.Builder builderForValue) { @@ -1021,11 +1174,15 @@ public Builder setUserIds( return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addUserIds(com.google.recaptchaenterprise.v1.UserId value) { if (userIdsBuilder_ == null) { @@ -1041,14 +1198,17 @@ public Builder addUserIds(com.google.recaptchaenterprise.v1.UserId value) { return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addUserIds( - int index, com.google.recaptchaenterprise.v1.UserId value) { + public Builder addUserIds(int index, com.google.recaptchaenterprise.v1.UserId value) { if (userIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1062,14 +1222,17 @@ public Builder addUserIds( return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addUserIds( - com.google.recaptchaenterprise.v1.UserId.Builder builderForValue) { + public Builder addUserIds(com.google.recaptchaenterprise.v1.UserId.Builder builderForValue) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.add(builderForValue.build()); @@ -1080,11 +1243,15 @@ public Builder addUserIds( return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addUserIds( int index, com.google.recaptchaenterprise.v1.UserId.Builder builderForValue) { @@ -1098,18 +1265,21 @@ public Builder addUserIds( return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllUserIds( java.lang.Iterable values) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, userIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userIds_); onChanged(); } else { userIdsBuilder_.addAllMessages(values); @@ -1117,11 +1287,15 @@ public Builder addAllUserIds( return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUserIds() { if (userIdsBuilder_ == null) { @@ -1134,11 +1308,15 @@ public Builder clearUserIds() { return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeUserIds(int index) { if (userIdsBuilder_ == null) { @@ -1151,39 +1329,50 @@ public Builder removeUserIds(int index) { return this; } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.UserId.Builder getUserIdsBuilder( - int index) { + public com.google.recaptchaenterprise.v1.UserId.Builder getUserIdsBuilder(int index) { return getUserIdsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder(int index) { if (userIdsBuilder_ == null) { - return userIds_.get(index); } else { + return userIds_.get(index); + } else { return userIdsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getUserIdsOrBuilderList() { + public java.util.List + getUserIdsOrBuilderList() { if (userIdsBuilder_ != null) { return userIdsBuilder_.getMessageOrBuilderList(); } else { @@ -1191,56 +1380,70 @@ public com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder( } } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.recaptchaenterprise.v1.UserId.Builder addUserIdsBuilder() { - return getUserIdsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1.UserId.getDefaultInstance()); + return getUserIdsFieldBuilder() + .addBuilder(com.google.recaptchaenterprise.v1.UserId.getDefaultInstance()); } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1.UserId.Builder addUserIdsBuilder( - int index) { - return getUserIdsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1.UserId.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.UserId.Builder addUserIdsBuilder(int index) { + return getUserIdsFieldBuilder() + .addBuilder(index, com.google.recaptchaenterprise.v1.UserId.getDefaultInstance()); } /** + * + * *
      * Optional. Identifiers associated with this user or request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getUserIdsBuilderList() { + public java.util.List + getUserIdsBuilderList() { return getUserIdsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.UserId, com.google.recaptchaenterprise.v1.UserId.Builder, com.google.recaptchaenterprise.v1.UserIdOrBuilder> + com.google.recaptchaenterprise.v1.UserId, + com.google.recaptchaenterprise.v1.UserId.Builder, + com.google.recaptchaenterprise.v1.UserIdOrBuilder> getUserIdsFieldBuilder() { if (userIdsBuilder_ == null) { - userIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.UserId, com.google.recaptchaenterprise.v1.UserId.Builder, com.google.recaptchaenterprise.v1.UserIdOrBuilder>( - userIds_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + userIdsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.UserId, + com.google.recaptchaenterprise.v1.UserId.Builder, + com.google.recaptchaenterprise.v1.UserIdOrBuilder>( + userIds_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); userIds_ = null; } return userIdsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1250,12 +1453,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.UserInfo) private static final com.google.recaptchaenterprise.v1.UserInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.UserInfo(); } @@ -1264,27 +1467,27 @@ public static com.google.recaptchaenterprise.v1.UserInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1299,6 +1502,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java similarity index 61% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java index 58d46a50667b..ae4fcb9d0972 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UserInfoOrBuilder.java @@ -1,46 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface UserInfoOrBuilder extends +public interface UserInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.UserInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Creation time for this account associated with this user. Leave
    * blank for non logged-in actions, guest checkout, or when there is no
    * account associated with the current user.
    * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createAccountTime field is set. */ boolean hasCreateAccountTime(); /** + * + * *
    * Optional. Creation time for this account associated with this user. Leave
    * blank for non logged-in actions, guest checkout, or when there is no
    * account associated with the current user.
    * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The createAccountTime. */ com.google.protobuf.Timestamp getCreateAccountTime(); /** + * + * *
    * Optional. Creation time for this account associated with this user. Leave
    * blank for non logged-in actions, guest checkout, or when there is no
    * account associated with the current user.
    * 
* - * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getCreateAccountTimeOrBuilder(); /** + * + * *
    * Optional. For logged-in requests or login/registration requests, the unique
    * account identifier associated with this user. You can use the username if
@@ -50,10 +82,13 @@ public interface UserInfoOrBuilder extends
    * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The accountId. */ java.lang.String getAccountId(); /** + * + * *
    * Optional. For logged-in requests or login/registration requests, the unique
    * account identifier associated with this user. You can use the username if
@@ -63,52 +98,70 @@ public interface UserInfoOrBuilder extends
    * 
* * string account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for accountId. */ - com.google.protobuf.ByteString - getAccountIdBytes(); + com.google.protobuf.ByteString getAccountIdBytes(); /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getUserIdsList(); + java.util.List getUserIdsList(); /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1.UserId getUserIds(int index); /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getUserIdsCount(); /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getUserIdsOrBuilderList(); /** + * + * *
    * Optional. Identifiers associated with this user or request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder( - int index); + com.google.recaptchaenterprise.v1.UserIdOrBuilder getUserIdsOrBuilder(int index); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java similarity index 64% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java index 1c46c727ab83..ddd73cf573bc 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Settings specific to keys that can be used for WAF (Web Application
  * Firewall).
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.WafSettings}
  */
-public final class WafSettings extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WafSettings extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.WafSettings)
     WafSettingsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WafSettings.newBuilder() to construct.
   private WafSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WafSettings() {
     wafService_ = 0;
     wafFeature_ = 0;
@@ -27,25 +45,28 @@ private WafSettings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WafSettings();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+        .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.WafSettings.class, com.google.recaptchaenterprise.v1.WafSettings.Builder.class);
+            com.google.recaptchaenterprise.v1.WafSettings.class,
+            com.google.recaptchaenterprise.v1.WafSettings.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Supported WAF features. For more information, see
    * https://cloud.google.com/recaptcha-enterprise/docs/usecase#comparison_of_features.
@@ -53,9 +74,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature}
    */
-  public enum WafFeature
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Undefined feature.
      * 
@@ -64,6 +86,8 @@ public enum WafFeature */ WAF_FEATURE_UNSPECIFIED(0), /** + * + * *
      * Redirects suspicious traffic to reCAPTCHA.
      * 
@@ -72,6 +96,8 @@ public enum WafFeature */ CHALLENGE_PAGE(1), /** + * + * *
      * Use reCAPTCHA session-tokens to protect the whole user session on the
      * site's domain.
@@ -81,6 +107,8 @@ public enum WafFeature
      */
     SESSION_TOKEN(2),
     /**
+     *
+     *
      * 
      * Use reCAPTCHA action-tokens to protect user actions.
      * 
@@ -89,6 +117,8 @@ public enum WafFeature */ ACTION_TOKEN(3), /** + * + * *
      * Use reCAPTCHA WAF express protection to protect any content other than
      * web pages, like APIs and IoT devices.
@@ -101,6 +131,8 @@ public enum WafFeature
     ;
 
     /**
+     *
+     *
      * 
      * Undefined feature.
      * 
@@ -109,6 +141,8 @@ public enum WafFeature */ public static final int WAF_FEATURE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Redirects suspicious traffic to reCAPTCHA.
      * 
@@ -117,6 +151,8 @@ public enum WafFeature */ public static final int CHALLENGE_PAGE_VALUE = 1; /** + * + * *
      * Use reCAPTCHA session-tokens to protect the whole user session on the
      * site's domain.
@@ -126,6 +162,8 @@ public enum WafFeature
      */
     public static final int SESSION_TOKEN_VALUE = 2;
     /**
+     *
+     *
      * 
      * Use reCAPTCHA action-tokens to protect user actions.
      * 
@@ -134,6 +172,8 @@ public enum WafFeature */ public static final int ACTION_TOKEN_VALUE = 3; /** + * + * *
      * Use reCAPTCHA WAF express protection to protect any content other than
      * web pages, like APIs and IoT devices.
@@ -143,7 +183,6 @@ public enum WafFeature
      */
     public static final int EXPRESS_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -168,51 +207,53 @@ public static WafFeature valueOf(int value) {
      */
     public static WafFeature forNumber(int value) {
       switch (value) {
-        case 0: return WAF_FEATURE_UNSPECIFIED;
-        case 1: return CHALLENGE_PAGE;
-        case 2: return SESSION_TOKEN;
-        case 3: return ACTION_TOKEN;
-        case 5: return EXPRESS;
-        default: return null;
+        case 0:
+          return WAF_FEATURE_UNSPECIFIED;
+        case 1:
+          return CHALLENGE_PAGE;
+        case 2:
+          return SESSION_TOKEN;
+        case 3:
+          return ACTION_TOKEN;
+        case 5:
+          return EXPRESS;
+        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<
-        WafFeature> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public WafFeature findValueByNumber(int number) {
-              return WafFeature.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public WafFeature findValueByNumber(int number) {
+            return WafFeature.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.recaptchaenterprise.v1.WafSettings.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final WafFeature[] VALUES = values();
 
-    public static WafFeature valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static WafFeature 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;
@@ -230,15 +271,18 @@ private WafFeature(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Web Application Firewalls supported by reCAPTCHA Enterprise.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.WafSettings.WafService} */ - public enum WafService - implements com.google.protobuf.ProtocolMessageEnum { + public enum WafService implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Undefined WAF
      * 
@@ -247,6 +291,8 @@ public enum WafService */ WAF_SERVICE_UNSPECIFIED(0), /** + * + * *
      * Cloud Armor
      * 
@@ -255,6 +301,8 @@ public enum WafService */ CA(1), /** + * + * *
      * Fastly
      * 
@@ -266,6 +314,8 @@ public enum WafService ; /** + * + * *
      * Undefined WAF
      * 
@@ -274,6 +324,8 @@ public enum WafService */ public static final int WAF_SERVICE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Cloud Armor
      * 
@@ -282,6 +334,8 @@ public enum WafService */ public static final int CA_VALUE = 1; /** + * + * *
      * Fastly
      * 
@@ -290,7 +344,6 @@ public enum WafService */ public static final int FASTLY_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -315,49 +368,49 @@ public static WafService valueOf(int value) { */ public static WafService forNumber(int value) { switch (value) { - case 0: return WAF_SERVICE_UNSPECIFIED; - case 1: return CA; - case 3: return FASTLY; - default: return null; + case 0: + return WAF_SERVICE_UNSPECIFIED; + case 1: + return CA; + case 3: + return FASTLY; + 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< - WafService> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WafService findValueByNumber(int number) { - return WafService.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WafService findValueByNumber(int number) { + return WafService.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.recaptchaenterprise.v1.WafSettings.getDescriptor().getEnumTypes().get(1); } private static final WafService[] VALUES = values(); - public static WafService valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static WafService 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; @@ -377,56 +430,87 @@ private WafService(int value) { public static final int WAF_SERVICE_FIELD_NUMBER = 1; private int wafService_ = 0; /** + * + * *
    * Required. The WAF service that uses this key.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for wafService. */ - @java.lang.Override public int getWafServiceValue() { + @java.lang.Override + public int getWafServiceValue() { return wafService_; } /** + * + * *
    * Required. The WAF service that uses this key.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The wafService. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService() { - com.google.recaptchaenterprise.v1.WafSettings.WafService result = com.google.recaptchaenterprise.v1.WafSettings.WafService.forNumber(wafService_); - return result == null ? com.google.recaptchaenterprise.v1.WafSettings.WafService.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService() { + com.google.recaptchaenterprise.v1.WafSettings.WafService result = + com.google.recaptchaenterprise.v1.WafSettings.WafService.forNumber(wafService_); + return result == null + ? com.google.recaptchaenterprise.v1.WafSettings.WafService.UNRECOGNIZED + : result; } public static final int WAF_FEATURE_FIELD_NUMBER = 2; private int wafFeature_ = 0; /** + * + * *
    * Required. The WAF feature for which this key is enabled.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for wafFeature. */ - @java.lang.Override public int getWafFeatureValue() { + @java.lang.Override + public int getWafFeatureValue() { return wafFeature_; } /** + * + * *
    * Required. The WAF feature for which this key is enabled.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The wafFeature. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature() { - com.google.recaptchaenterprise.v1.WafSettings.WafFeature result = com.google.recaptchaenterprise.v1.WafSettings.WafFeature.forNumber(wafFeature_); - return result == null ? com.google.recaptchaenterprise.v1.WafSettings.WafFeature.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature() { + com.google.recaptchaenterprise.v1.WafSettings.WafFeature result = + com.google.recaptchaenterprise.v1.WafSettings.WafFeature.forNumber(wafFeature_); + return result == null + ? com.google.recaptchaenterprise.v1.WafSettings.WafFeature.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -438,12 +522,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (wafService_ != com.google.recaptchaenterprise.v1.WafSettings.WafService.WAF_SERVICE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (wafService_ + != com.google.recaptchaenterprise.v1.WafSettings.WafService.WAF_SERVICE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, wafService_); } - if (wafFeature_ != com.google.recaptchaenterprise.v1.WafSettings.WafFeature.WAF_FEATURE_UNSPECIFIED.getNumber()) { + if (wafFeature_ + != com.google.recaptchaenterprise.v1.WafSettings.WafFeature.WAF_FEATURE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, wafFeature_); } getUnknownFields().writeTo(output); @@ -455,13 +542,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (wafService_ != com.google.recaptchaenterprise.v1.WafSettings.WafService.WAF_SERVICE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, wafService_); + if (wafService_ + != com.google.recaptchaenterprise.v1.WafSettings.WafService.WAF_SERVICE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, wafService_); } - if (wafFeature_ != com.google.recaptchaenterprise.v1.WafSettings.WafFeature.WAF_FEATURE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, wafFeature_); + if (wafFeature_ + != com.google.recaptchaenterprise.v1.WafSettings.WafFeature.WAF_FEATURE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, wafFeature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -471,12 +560,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.WafSettings)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.WafSettings other = (com.google.recaptchaenterprise.v1.WafSettings) obj; + com.google.recaptchaenterprise.v1.WafSettings other = + (com.google.recaptchaenterprise.v1.WafSettings) obj; if (wafService_ != other.wafService_) return false; if (wafFeature_ != other.wafFeature_) return false; @@ -500,99 +590,104 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WafSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.WafSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.WafSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.WafSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Settings specific to keys that can be used for WAF (Web Application
    * Firewall).
@@ -600,33 +695,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.WafSettings}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.WafSettings)
       com.google.recaptchaenterprise.v1.WafSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.WafSettings.class, com.google.recaptchaenterprise.v1.WafSettings.Builder.class);
+              com.google.recaptchaenterprise.v1.WafSettings.class,
+              com.google.recaptchaenterprise.v1.WafSettings.Builder.class);
     }
 
     // Construct using com.google.recaptchaenterprise.v1.WafSettings.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -637,9 +731,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
+          .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
     }
 
     @java.lang.Override
@@ -658,8 +752,11 @@ public com.google.recaptchaenterprise.v1.WafSettings build() {
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.WafSettings buildPartial() {
-      com.google.recaptchaenterprise.v1.WafSettings result = new com.google.recaptchaenterprise.v1.WafSettings(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.recaptchaenterprise.v1.WafSettings result =
+          new com.google.recaptchaenterprise.v1.WafSettings(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -678,38 +775,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.WafSettings result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.WafSettings) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.WafSettings)other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.WafSettings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -750,22 +848,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              wafService_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              wafFeature_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                wafService_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                wafFeature_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -775,26 +876,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int wafService_ = 0;
     /**
+     *
+     *
      * 
      * Required. The WAF service that uses this key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for wafService. */ - @java.lang.Override public int getWafServiceValue() { + @java.lang.Override + public int getWafServiceValue() { return wafService_; } /** + * + * *
      * Required. The WAF service that uses this key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for wafService to set. * @return This builder for chaining. */ @@ -805,24 +918,37 @@ public Builder setWafServiceValue(int value) { return this; } /** + * + * *
      * Required. The WAF service that uses this key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The wafService. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService() { - com.google.recaptchaenterprise.v1.WafSettings.WafService result = com.google.recaptchaenterprise.v1.WafSettings.WafService.forNumber(wafService_); - return result == null ? com.google.recaptchaenterprise.v1.WafSettings.WafService.UNRECOGNIZED : result; + com.google.recaptchaenterprise.v1.WafSettings.WafService result = + com.google.recaptchaenterprise.v1.WafSettings.WafService.forNumber(wafService_); + return result == null + ? com.google.recaptchaenterprise.v1.WafSettings.WafService.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The WAF service that uses this key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The wafService to set. * @return This builder for chaining. */ @@ -836,11 +962,16 @@ public Builder setWafService(com.google.recaptchaenterprise.v1.WafSettings.WafSe return this; } /** + * + * *
      * Required. The WAF service that uses this key.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearWafService() { @@ -852,22 +983,33 @@ public Builder clearWafService() { private int wafFeature_ = 0; /** + * + * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for wafFeature. */ - @java.lang.Override public int getWafFeatureValue() { + @java.lang.Override + public int getWafFeatureValue() { return wafFeature_; } /** + * + * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for wafFeature to set. * @return This builder for chaining. */ @@ -878,24 +1020,37 @@ public Builder setWafFeatureValue(int value) { return this; } /** + * + * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The wafFeature. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature() { - com.google.recaptchaenterprise.v1.WafSettings.WafFeature result = com.google.recaptchaenterprise.v1.WafSettings.WafFeature.forNumber(wafFeature_); - return result == null ? com.google.recaptchaenterprise.v1.WafSettings.WafFeature.UNRECOGNIZED : result; + com.google.recaptchaenterprise.v1.WafSettings.WafFeature result = + com.google.recaptchaenterprise.v1.WafSettings.WafFeature.forNumber(wafFeature_); + return result == null + ? com.google.recaptchaenterprise.v1.WafSettings.WafFeature.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The wafFeature to set. * @return This builder for chaining. */ @@ -909,11 +1064,16 @@ public Builder setWafFeature(com.google.recaptchaenterprise.v1.WafSettings.WafFe return this; } /** + * + * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearWafFeature() { @@ -922,9 +1082,9 @@ public Builder clearWafFeature() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -934,12 +1094,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.WafSettings) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.WafSettings) private static final com.google.recaptchaenterprise.v1.WafSettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.WafSettings(); } @@ -948,27 +1108,27 @@ public static com.google.recaptchaenterprise.v1.WafSettings getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WafSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WafSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -983,6 +1143,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.WafSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java new file mode 100644 index 000000000000..e79eed6c0cb3 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface WafSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.WafSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The WAF service that uses this key.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for wafService. + */ + int getWafServiceValue(); + /** + * + * + *
+   * Required. The WAF service that uses this key.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The wafService. + */ + com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService(); + + /** + * + * + *
+   * Required. The WAF feature for which this key is enabled.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for wafFeature. + */ + int getWafFeatureValue(); + /** + * + * + *
+   * Required. The WAF feature for which this key is enabled.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The wafFeature. + */ + com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java similarity index 70% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java index c6dc0e03762f..a4fcfcaf626b 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java @@ -1,61 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** + * + * *
  * Settings specific to keys that can be used by websites.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.WebKeySettings} */ -public final class WebKeySettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebKeySettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.WebKeySettings) WebKeySettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebKeySettings.newBuilder() to construct. private WebKeySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebKeySettings() { - allowedDomains_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); integrationType_ = 0; challengeSecurityPreference_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebKeySettings(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.WebKeySettings.class, com.google.recaptchaenterprise.v1.WebKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.WebKeySettings.class, + com.google.recaptchaenterprise.v1.WebKeySettings.Builder.class); } /** + * + * *
    * Enum that represents the integration types for web keys.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType} */ - public enum IntegrationType - implements com.google.protobuf.ProtocolMessageEnum { + public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default type that indicates this enum hasn't been specified. This is not
      * a valid IntegrationType, one of the other types must be specified
@@ -66,6 +87,8 @@ public enum IntegrationType
      */
     INTEGRATION_TYPE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Only used to produce scores. It doesn't display the "I'm not a robot"
      * checkbox and never shows captcha challenges.
@@ -75,6 +98,8 @@ public enum IntegrationType
      */
     SCORE(1),
     /**
+     *
+     *
      * 
      * Displays the "I'm not a robot" checkbox and may show captcha challenges
      * after it is checked.
@@ -84,6 +109,8 @@ public enum IntegrationType
      */
     CHECKBOX(2),
     /**
+     *
+     *
      * 
      * Doesn't display the "I'm not a robot" checkbox, but may show captcha
      * challenges after risk analysis.
@@ -96,6 +123,8 @@ public enum IntegrationType
     ;
 
     /**
+     *
+     *
      * 
      * Default type that indicates this enum hasn't been specified. This is not
      * a valid IntegrationType, one of the other types must be specified
@@ -106,6 +135,8 @@ public enum IntegrationType
      */
     public static final int INTEGRATION_TYPE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Only used to produce scores. It doesn't display the "I'm not a robot"
      * checkbox and never shows captcha challenges.
@@ -115,6 +146,8 @@ public enum IntegrationType
      */
     public static final int SCORE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Displays the "I'm not a robot" checkbox and may show captcha challenges
      * after it is checked.
@@ -124,6 +157,8 @@ public enum IntegrationType
      */
     public static final int CHECKBOX_VALUE = 2;
     /**
+     *
+     *
      * 
      * Doesn't display the "I'm not a robot" checkbox, but may show captcha
      * challenges after risk analysis.
@@ -133,7 +168,6 @@ public enum IntegrationType
      */
     public static final int INVISIBLE_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -158,40 +192,44 @@ public static IntegrationType valueOf(int value) {
      */
     public static IntegrationType forNumber(int value) {
       switch (value) {
-        case 0: return INTEGRATION_TYPE_UNSPECIFIED;
-        case 1: return SCORE;
-        case 2: return CHECKBOX;
-        case 3: return INVISIBLE;
-        default: return null;
+        case 0:
+          return INTEGRATION_TYPE_UNSPECIFIED;
+        case 1:
+          return SCORE;
+        case 2:
+          return CHECKBOX;
+        case 3:
+          return INVISIBLE;
+        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<
-        IntegrationType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public IntegrationType findValueByNumber(int number) {
-              return IntegrationType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public IntegrationType findValueByNumber(int number) {
+                return IntegrationType.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.recaptchaenterprise.v1.WebKeySettings.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -200,8 +238,7 @@ public IntegrationType findValueByNumber(int number) {
     public static IntegrationType 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;
@@ -219,16 +256,20 @@ private IntegrationType(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Enum that represents the possible challenge frequency and difficulty
    * configurations for a web key.
    * 
* - * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference} + * Protobuf enum {@code + * google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference} */ - public enum ChallengeSecurityPreference - implements com.google.protobuf.ProtocolMessageEnum { + public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default type that indicates this enum hasn't been specified.
      * 
@@ -237,6 +278,8 @@ public enum ChallengeSecurityPreference */ CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED(0), /** + * + * *
      * Key tends to show fewer and easier challenges.
      * 
@@ -245,6 +288,8 @@ public enum ChallengeSecurityPreference */ USABILITY(1), /** + * + * *
      * Key tends to show balanced (in amount and difficulty) challenges.
      * 
@@ -253,6 +298,8 @@ public enum ChallengeSecurityPreference */ BALANCE(2), /** + * + * *
      * Key tends to show more and harder challenges.
      * 
@@ -264,6 +311,8 @@ public enum ChallengeSecurityPreference ; /** + * + * *
      * Default type that indicates this enum hasn't been specified.
      * 
@@ -272,6 +321,8 @@ public enum ChallengeSecurityPreference */ public static final int CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Key tends to show fewer and easier challenges.
      * 
@@ -280,6 +331,8 @@ public enum ChallengeSecurityPreference */ public static final int USABILITY_VALUE = 1; /** + * + * *
      * Key tends to show balanced (in amount and difficulty) challenges.
      * 
@@ -288,6 +341,8 @@ public enum ChallengeSecurityPreference */ public static final int BALANCE_VALUE = 2; /** + * + * *
      * Key tends to show more and harder challenges.
      * 
@@ -296,7 +351,6 @@ public enum ChallengeSecurityPreference */ public static final int SECURITY_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -321,11 +375,16 @@ public static ChallengeSecurityPreference valueOf(int value) { */ public static ChallengeSecurityPreference forNumber(int value) { switch (value) { - case 0: return CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED; - case 1: return USABILITY; - case 2: return BALANCE; - case 3: return SECURITY; - default: return null; + case 0: + return CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED; + case 1: + return USABILITY; + case 2: + return BALANCE; + case 3: + return SECURITY; + default: + return null; } } @@ -333,28 +392,28 @@ public static ChallengeSecurityPreference forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ChallengeSecurityPreference> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ChallengeSecurityPreference findValueByNumber(int number) { - return ChallengeSecurityPreference.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChallengeSecurityPreference findValueByNumber(int number) { + return ChallengeSecurityPreference.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.recaptchaenterprise.v1.WebKeySettings.getDescriptor().getEnumTypes().get(1); } @@ -363,8 +422,7 @@ public ChallengeSecurityPreference findValueByNumber(int number) { public static ChallengeSecurityPreference 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; @@ -384,11 +442,14 @@ private ChallengeSecurityPreference(int value) { public static final int ALLOW_ALL_DOMAINS_FIELD_NUMBER = 3; private boolean allowAllDomains_ = false; /** + * + * *
    * Optional. If set to true, it means allowed_domains will not be enforced.
    * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllDomains. */ @java.lang.Override @@ -397,10 +458,13 @@ public boolean getAllowAllDomains() { } public static final int ALLOWED_DOMAINS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -409,13 +473,15 @@ public boolean getAllowAllDomains() {
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedDomains. */ - public com.google.protobuf.ProtocolStringList - getAllowedDomainsList() { + public com.google.protobuf.ProtocolStringList getAllowedDomainsList() { return allowedDomains_; } /** + * + * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -424,12 +490,15 @@ public boolean getAllowAllDomains() {
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedDomains. */ public int getAllowedDomainsCount() { return allowedDomains_.size(); } /** + * + * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -438,6 +507,7 @@ public int getAllowedDomainsCount() {
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedDomains at the given index. */ @@ -445,6 +515,8 @@ public java.lang.String getAllowedDomains(int index) { return allowedDomains_.get(index); } /** + * + * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -453,23 +525,26 @@ public java.lang.String getAllowedDomains(int index) {
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedDomains at the given index. */ - public com.google.protobuf.ByteString - getAllowedDomainsBytes(int index) { + public com.google.protobuf.ByteString getAllowedDomainsBytes(int index) { return allowedDomains_.getByteString(index); } public static final int ALLOW_AMP_TRAFFIC_FIELD_NUMBER = 2; private boolean allowAmpTraffic_ = false; /** + * + * *
    * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
    * Pages) websites. This is supported only for the SCORE integration type.
    * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAmpTraffic. */ @java.lang.Override @@ -480,60 +555,94 @@ public boolean getAllowAmpTraffic() { public static final int INTEGRATION_TYPE_FIELD_NUMBER = 4; private int integrationType_ = 0; /** + * + * *
    * Required. Describes how this key is integrated with the website.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for integrationType. */ - @java.lang.Override public int getIntegrationTypeValue() { + @java.lang.Override + public int getIntegrationTypeValue() { return integrationType_; } /** + * + * *
    * Required. Describes how this key is integrated with the website.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The integrationType. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType getIntegrationType() { - com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType result = com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.forNumber(integrationType_); - return result == null ? com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType getIntegrationType() { + com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType result = + com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.forNumber( + integrationType_); + return result == null + ? com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.UNRECOGNIZED + : result; } public static final int CHALLENGE_SECURITY_PREFERENCE_FIELD_NUMBER = 5; private int challengeSecurityPreference_ = 0; /** + * + * *
    * Optional. Settings for the frequency and difficulty at which this key
    * triggers captcha challenges. This should only be specified for
    * IntegrationTypes CHECKBOX and INVISIBLE.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for challengeSecurityPreference. */ - @java.lang.Override public int getChallengeSecurityPreferenceValue() { + @java.lang.Override + public int getChallengeSecurityPreferenceValue() { return challengeSecurityPreference_; } /** + * + * *
    * Optional. Settings for the frequency and difficulty at which this key
    * triggers captcha challenges. This should only be specified for
    * IntegrationTypes CHECKBOX and INVISIBLE.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The challengeSecurityPreference. */ - @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference() { - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference result = com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.forNumber(challengeSecurityPreference_); - return result == null ? com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference + getChallengeSecurityPreference() { + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference result = + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.forNumber( + challengeSecurityPreference_); + return result == null + ? com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -545,8 +654,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedDomains_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedDomains_.getRaw(i)); } @@ -556,10 +664,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (allowAllDomains_ != false) { output.writeBool(3, allowAllDomains_); } - if (integrationType_ != com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.INTEGRATION_TYPE_UNSPECIFIED.getNumber()) { + if (integrationType_ + != com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType + .INTEGRATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, integrationType_); } - if (challengeSecurityPreference_ != com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED.getNumber()) { + if (challengeSecurityPreference_ + != com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference + .CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, challengeSecurityPreference_); } getUnknownFields().writeTo(output); @@ -580,20 +694,23 @@ public int getSerializedSize() { size += 1 * getAllowedDomainsList().size(); } if (allowAmpTraffic_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowAmpTraffic_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowAmpTraffic_); } if (allowAllDomains_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, allowAllDomains_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowAllDomains_); } - if (integrationType_ != com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.INTEGRATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, integrationType_); + if (integrationType_ + != com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType + .INTEGRATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, integrationType_); } - if (challengeSecurityPreference_ != com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, challengeSecurityPreference_); + if (challengeSecurityPreference_ + != com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference + .CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(5, challengeSecurityPreference_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -603,19 +720,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.recaptchaenterprise.v1.WebKeySettings)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.WebKeySettings other = (com.google.recaptchaenterprise.v1.WebKeySettings) obj; + com.google.recaptchaenterprise.v1.WebKeySettings other = + (com.google.recaptchaenterprise.v1.WebKeySettings) obj; - if (getAllowAllDomains() - != other.getAllowAllDomains()) return false; - if (!getAllowedDomainsList() - .equals(other.getAllowedDomainsList())) return false; - if (getAllowAmpTraffic() - != other.getAllowAmpTraffic()) return false; + if (getAllowAllDomains() != other.getAllowAllDomains()) return false; + if (!getAllowedDomainsList().equals(other.getAllowedDomainsList())) return false; + if (getAllowAmpTraffic() != other.getAllowAmpTraffic()) return false; if (integrationType_ != other.integrationType_) return false; if (challengeSecurityPreference_ != other.challengeSecurityPreference_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -630,15 +745,13 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_ALL_DOMAINS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowAllDomains()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAllDomains()); if (getAllowedDomainsCount() > 0) { hash = (37 * hash) + ALLOWED_DOMAINS_FIELD_NUMBER; hash = (53 * hash) + getAllowedDomainsList().hashCode(); } hash = (37 * hash) + ALLOW_AMP_TRAFFIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowAmpTraffic()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAmpTraffic()); hash = (37 * hash) + INTEGRATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + integrationType_; hash = (37 * hash) + CHALLENGE_SECURITY_PREFERENCE_FIELD_NUMBER; @@ -648,139 +761,142 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.WebKeySettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.WebKeySettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1.WebKeySettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Settings specific to keys that can be used by websites.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.WebKeySettings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.WebKeySettings) com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.WebKeySettings.class, com.google.recaptchaenterprise.v1.WebKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.WebKeySettings.class, + com.google.recaptchaenterprise.v1.WebKeySettings.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.WebKeySettings.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; allowAllDomains_ = false; - allowedDomains_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); allowAmpTraffic_ = false; integrationType_ = 0; challengeSecurityPreference_ = 0; @@ -788,9 +904,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; } @java.lang.Override @@ -809,8 +925,11 @@ public com.google.recaptchaenterprise.v1.WebKeySettings build() { @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings buildPartial() { - com.google.recaptchaenterprise.v1.WebKeySettings result = new com.google.recaptchaenterprise.v1.WebKeySettings(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1.WebKeySettings result = + new com.google.recaptchaenterprise.v1.WebKeySettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -839,38 +958,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.WebKeySettings resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.WebKeySettings) { - return mergeFrom((com.google.recaptchaenterprise.v1.WebKeySettings)other); + return mergeFrom((com.google.recaptchaenterprise.v1.WebKeySettings) other); } else { super.mergeFrom(other); return this; @@ -878,7 +998,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.WebKeySettings other) { - if (other == com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance()) + return this; if (other.getAllowAllDomains() != false) { setAllowAllDomains(other.getAllowAllDomains()); } @@ -927,38 +1048,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedDomainsIsMutable(); - allowedDomains_.add(s); - break; - } // case 10 - case 16: { - allowAmpTraffic_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 24: { - allowAllDomains_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 24 - case 32: { - integrationType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - challengeSecurityPreference_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedDomainsIsMutable(); + allowedDomains_.add(s); + break; + } // case 10 + case 16: + { + allowAmpTraffic_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 24: + { + allowAllDomains_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 32: + { + integrationType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + challengeSecurityPreference_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -968,15 +1095,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean allowAllDomains_ ; + private boolean allowAllDomains_; /** + * + * *
      * Optional. If set to true, it means allowed_domains will not be enforced.
      * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllDomains. */ @java.lang.Override @@ -984,11 +1115,14 @@ public boolean getAllowAllDomains() { return allowAllDomains_; } /** + * + * *
      * Optional. If set to true, it means allowed_domains will not be enforced.
      * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowAllDomains to set. * @return This builder for chaining. */ @@ -1000,11 +1134,14 @@ public Builder setAllowAllDomains(boolean value) { return this; } /** + * + * *
      * Optional. If set to true, it means allowed_domains will not be enforced.
      * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowAllDomains() { @@ -1016,6 +1153,7 @@ public Builder clearAllowAllDomains() { private com.google.protobuf.LazyStringArrayList allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAllowedDomainsIsMutable() { if (!allowedDomains_.isModifiable()) { allowedDomains_ = new com.google.protobuf.LazyStringArrayList(allowedDomains_); @@ -1023,6 +1161,8 @@ private void ensureAllowedDomainsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1031,14 +1171,16 @@ private void ensureAllowedDomainsIsMutable() {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedDomains. */ - public com.google.protobuf.ProtocolStringList - getAllowedDomainsList() { + public com.google.protobuf.ProtocolStringList getAllowedDomainsList() { allowedDomains_.makeImmutable(); return allowedDomains_; } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1047,12 +1189,15 @@ private void ensureAllowedDomainsIsMutable() {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedDomains. */ public int getAllowedDomainsCount() { return allowedDomains_.size(); } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1061,6 +1206,7 @@ public int getAllowedDomainsCount() {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedDomains at the given index. */ @@ -1068,6 +1214,8 @@ public java.lang.String getAllowedDomains(int index) { return allowedDomains_.get(index); } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1076,14 +1224,16 @@ public java.lang.String getAllowedDomains(int index) {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedDomains at the given index. */ - public com.google.protobuf.ByteString - getAllowedDomainsBytes(int index) { + public com.google.protobuf.ByteString getAllowedDomainsBytes(int index) { return allowedDomains_.getByteString(index); } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1092,13 +1242,15 @@ public java.lang.String getAllowedDomains(int index) {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The allowedDomains to set. * @return This builder for chaining. */ - public Builder setAllowedDomains( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAllowedDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedDomainsIsMutable(); allowedDomains_.set(index, value); bitField0_ |= 0x00000002; @@ -1106,6 +1258,8 @@ public Builder setAllowedDomains( return this; } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1114,12 +1268,14 @@ public Builder setAllowedDomains(
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowedDomains to add. * @return This builder for chaining. */ - public Builder addAllowedDomains( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedDomainsIsMutable(); allowedDomains_.add(value); bitField0_ |= 0x00000002; @@ -1127,6 +1283,8 @@ public Builder addAllowedDomains( return this; } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1135,19 +1293,20 @@ public Builder addAllowedDomains(
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The allowedDomains to add. * @return This builder for chaining. */ - public Builder addAllAllowedDomains( - java.lang.Iterable values) { + public Builder addAllAllowedDomains(java.lang.Iterable values) { ensureAllowedDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedDomains_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedDomains_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1156,16 +1315,19 @@ public Builder addAllAllowedDomains(
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowedDomains() { - allowedDomains_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1174,12 +1336,14 @@ public Builder clearAllowedDomains() {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the allowedDomains to add. * @return This builder for chaining. */ - public Builder addAllowedDomainsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAllowedDomainsIsMutable(); allowedDomains_.add(value); @@ -1188,14 +1352,17 @@ public Builder addAllowedDomainsBytes( return this; } - private boolean allowAmpTraffic_ ; + private boolean allowAmpTraffic_; /** + * + * *
      * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
      * Pages) websites. This is supported only for the SCORE integration type.
      * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAmpTraffic. */ @java.lang.Override @@ -1203,12 +1370,15 @@ public boolean getAllowAmpTraffic() { return allowAmpTraffic_; } /** + * + * *
      * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
      * Pages) websites. This is supported only for the SCORE integration type.
      * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowAmpTraffic to set. * @return This builder for chaining. */ @@ -1220,12 +1390,15 @@ public Builder setAllowAmpTraffic(boolean value) { return this; } /** + * + * *
      * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
      * Pages) websites. This is supported only for the SCORE integration type.
      * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowAmpTraffic() { @@ -1237,22 +1410,33 @@ public Builder clearAllowAmpTraffic() { private int integrationType_ = 0; /** + * + * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for integrationType. */ - @java.lang.Override public int getIntegrationTypeValue() { + @java.lang.Override + public int getIntegrationTypeValue() { return integrationType_; } /** + * + * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for integrationType to set. * @return This builder for chaining. */ @@ -1263,28 +1447,43 @@ public Builder setIntegrationTypeValue(int value) { return this; } /** + * + * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The integrationType. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType getIntegrationType() { - com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType result = com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.forNumber(integrationType_); - return result == null ? com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.UNRECOGNIZED : result; + com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType result = + com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.forNumber( + integrationType_); + return result == null + ? com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The integrationType to set. * @return This builder for chaining. */ - public Builder setIntegrationType(com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType value) { + public Builder setIntegrationType( + com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType value) { if (value == null) { throw new NullPointerException(); } @@ -1294,11 +1493,16 @@ public Builder setIntegrationType(com.google.recaptchaenterprise.v1.WebKeySettin return this; } /** + * + * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearIntegrationType() { @@ -1310,26 +1514,37 @@ public Builder clearIntegrationType() { private int challengeSecurityPreference_ = 0; /** + * + * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for challengeSecurityPreference. */ - @java.lang.Override public int getChallengeSecurityPreferenceValue() { + @java.lang.Override + public int getChallengeSecurityPreferenceValue() { return challengeSecurityPreference_; } /** + * + * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for challengeSecurityPreference to set. * @return This builder for chaining. */ @@ -1340,32 +1555,49 @@ public Builder setChallengeSecurityPreferenceValue(int value) { return this; } /** + * + * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The challengeSecurityPreference. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference() { - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference result = com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.forNumber(challengeSecurityPreference_); - return result == null ? com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.UNRECOGNIZED : result; + public com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference + getChallengeSecurityPreference() { + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference result = + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.forNumber( + challengeSecurityPreference_); + return result == null + ? com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference + .UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The challengeSecurityPreference to set. * @return This builder for chaining. */ - public Builder setChallengeSecurityPreference(com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference value) { + public Builder setChallengeSecurityPreference( + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference value) { if (value == null) { throw new NullPointerException(); } @@ -1375,13 +1607,18 @@ public Builder setChallengeSecurityPreference(com.google.recaptchaenterprise.v1. return this; } /** + * + * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearChallengeSecurityPreference() { @@ -1390,9 +1627,9 @@ public Builder clearChallengeSecurityPreference() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1402,12 +1639,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.WebKeySettings) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.WebKeySettings) private static final com.google.recaptchaenterprise.v1.WebKeySettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.WebKeySettings(); } @@ -1416,27 +1653,27 @@ public static com.google.recaptchaenterprise.v1.WebKeySettings getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebKeySettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebKeySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1451,6 +1688,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.WebKeySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java similarity index 71% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java index f617d91caf0a..681abafb5204 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java @@ -1,23 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface WebKeySettingsOrBuilder extends +public interface WebKeySettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.WebKeySettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. If set to true, it means allowed_domains will not be enforced.
    * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAllDomains. */ boolean getAllowAllDomains(); /** + * + * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -26,11 +47,13 @@ public interface WebKeySettingsOrBuilder extends
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedDomains. */ - java.util.List - getAllowedDomainsList(); + java.util.List getAllowedDomainsList(); /** + * + * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -39,10 +62,13 @@ public interface WebKeySettingsOrBuilder extends
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedDomains. */ int getAllowedDomainsCount(); /** + * + * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -51,11 +77,14 @@ public interface WebKeySettingsOrBuilder extends
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedDomains at the given index. */ java.lang.String getAllowedDomains(int index); /** + * + * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -64,62 +93,86 @@ public interface WebKeySettingsOrBuilder extends
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedDomains at the given index. */ - com.google.protobuf.ByteString - getAllowedDomainsBytes(int index); + com.google.protobuf.ByteString getAllowedDomainsBytes(int index); /** + * + * *
    * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
    * Pages) websites. This is supported only for the SCORE integration type.
    * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowAmpTraffic. */ boolean getAllowAmpTraffic(); /** + * + * *
    * Required. Describes how this key is integrated with the website.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for integrationType. */ int getIntegrationTypeValue(); /** + * + * *
    * Required. Describes how this key is integrated with the website.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The integrationType. */ com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType getIntegrationType(); /** + * + * *
    * Optional. Settings for the frequency and difficulty at which this key
    * triggers captcha challenges. This should only be specified for
    * IntegrationTypes CHECKBOX and INVISIBLE.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for challengeSecurityPreference. */ int getChallengeSecurityPreferenceValue(); /** + * + * *
    * Optional. Settings for the frequency and difficulty at which this key
    * triggers captcha challenges. This should only be specified for
    * IntegrationTypes CHECKBOX and INVISIBLE.
    * 
* - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The challengeSecurityPreference. */ - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference(); + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference + getChallengeSecurityPreference(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java similarity index 60% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java index c3c69ae462c5..8bf02dee7e4a 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * Account defender risk assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment} */ -public final class AccountDefenderAssessment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccountDefenderAssessment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) AccountDefenderAssessmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccountDefenderAssessment.newBuilder() to construct. private AccountDefenderAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccountDefenderAssessment() { labels_ = 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 AccountDefenderAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.class, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.class, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder.class); } /** + * + * *
    * Labels returned by account defender for this request.
    * 
* - * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel} + * Protobuf enum {@code + * google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel} */ - public enum AccountDefenderLabel - implements com.google.protobuf.ProtocolMessageEnum { + public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified type.
      * 
@@ -61,6 +84,8 @@ public enum AccountDefenderLabel */ ACCOUNT_DEFENDER_LABEL_UNSPECIFIED(0), /** + * + * *
      * The request matches a known good profile for the user.
      * 
@@ -69,6 +94,8 @@ public enum AccountDefenderLabel */ PROFILE_MATCH(1), /** + * + * *
      * The request is potentially a suspicious login event and should be further
      * verified either via multi-factor authentication or another system.
@@ -78,6 +105,8 @@ public enum AccountDefenderLabel
      */
     SUSPICIOUS_LOGIN_ACTIVITY(2),
     /**
+     *
+     *
      * 
      * The request matched a profile that previously had suspicious account
      * creation behavior. This could mean this is a fake account.
@@ -87,6 +116,8 @@ public enum AccountDefenderLabel
      */
     SUSPICIOUS_ACCOUNT_CREATION(3),
     /**
+     *
+     *
      * 
      * The account in the request has a high number of related accounts. It does
      * not necessarily imply that the account is bad but could require
@@ -100,6 +131,8 @@ public enum AccountDefenderLabel
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified type.
      * 
@@ -108,6 +141,8 @@ public enum AccountDefenderLabel */ public static final int ACCOUNT_DEFENDER_LABEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The request matches a known good profile for the user.
      * 
@@ -116,6 +151,8 @@ public enum AccountDefenderLabel */ public static final int PROFILE_MATCH_VALUE = 1; /** + * + * *
      * The request is potentially a suspicious login event and should be further
      * verified either via multi-factor authentication or another system.
@@ -125,6 +162,8 @@ public enum AccountDefenderLabel
      */
     public static final int SUSPICIOUS_LOGIN_ACTIVITY_VALUE = 2;
     /**
+     *
+     *
      * 
      * The request matched a profile that previously had suspicious account
      * creation behavior. This could mean this is a fake account.
@@ -134,6 +173,8 @@ public enum AccountDefenderLabel
      */
     public static final int SUSPICIOUS_ACCOUNT_CREATION_VALUE = 3;
     /**
+     *
+     *
      * 
      * The account in the request has a high number of related accounts. It does
      * not necessarily imply that the account is bad but could require
@@ -144,7 +185,6 @@ public enum AccountDefenderLabel
      */
     public static final int RELATED_ACCOUNTS_NUMBER_HIGH_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -169,12 +209,18 @@ public static AccountDefenderLabel valueOf(int value) {
      */
     public static AccountDefenderLabel forNumber(int value) {
       switch (value) {
-        case 0: return ACCOUNT_DEFENDER_LABEL_UNSPECIFIED;
-        case 1: return PROFILE_MATCH;
-        case 2: return SUSPICIOUS_LOGIN_ACTIVITY;
-        case 3: return SUSPICIOUS_ACCOUNT_CREATION;
-        case 4: return RELATED_ACCOUNTS_NUMBER_HIGH;
-        default: return null;
+        case 0:
+          return ACCOUNT_DEFENDER_LABEL_UNSPECIFIED;
+        case 1:
+          return PROFILE_MATCH;
+        case 2:
+          return SUSPICIOUS_LOGIN_ACTIVITY;
+        case 3:
+          return SUSPICIOUS_ACCOUNT_CREATION;
+        case 4:
+          return RELATED_ACCOUNTS_NUMBER_HIGH;
+        default:
+          return null;
       }
     }
 
@@ -182,29 +228,31 @@ public static AccountDefenderLabel forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AccountDefenderLabel> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AccountDefenderLabel findValueByNumber(int number) {
-              return AccountDefenderLabel.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public AccountDefenderLabel findValueByNumber(int number) {
+                return AccountDefenderLabel.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.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final AccountDefenderLabel[] VALUES = values();
@@ -212,8 +260,7 @@ public AccountDefenderLabel findValueByNumber(int number) {
     public static AccountDefenderLabel 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;
@@ -231,36 +278,64 @@ private AccountDefenderLabel(int value) {
   }
 
   public static final int LABELS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List labels_;
+
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-      java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel> labels_converter_ =
+          java.lang.Integer,
+          com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>
+      labels_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
-              java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>() {
-            public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel convert(java.lang.Integer from) {
-              com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel result = com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel.forNumber(from);
-              return result == null ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel.UNRECOGNIZED : result;
+              java.lang.Integer,
+              com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment
+                  .AccountDefenderLabel>() {
+            public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment
+                    .AccountDefenderLabel
+                convert(java.lang.Integer from) {
+              com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel
+                  result =
+                      com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment
+                          .AccountDefenderLabel.forNumber(from);
+              return result == null
+                  ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment
+                      .AccountDefenderLabel.UNRECOGNIZED
+                  : result;
             }
           };
   /**
+   *
+   *
    * 
    * Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @return A list containing the labels. */ @java.lang.Override - public java.util.List getLabelsList() { + public java.util.List< + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel> + getLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>(labels_, labels_converter_); + java.lang.Integer, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>( + labels_, labels_converter_); } /** + * + * *
    * Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @return The count of labels. */ @java.lang.Override @@ -268,37 +343,52 @@ public int getLabelsCount() { return labels_.size(); } /** + * + * *
    * Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param index The index of the element to return. * @return The labels at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index) { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel + getLabels(int index) { return labels_converter_.convert(labels_.get(index)); } /** + * + * *
    * Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @return A list containing the enum numeric values on the wire for labels. */ @java.lang.Override - public java.util.List - getLabelsValueList() { + public java.util.List getLabelsValueList() { return labels_; } /** + * + * *
    * Labels for this request.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of labels at the given index. */ @@ -306,9 +396,11 @@ public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountD public int getLabelsValue(int index) { return labels_.get(index); } + private int labelsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,8 +412,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getLabelsList().size() > 0) { output.writeUInt32NoTag(10); @@ -342,14 +433,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < labels_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(labels_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(labels_.get(i)); } size += dataSize; - if (!getLabelsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }labelsMemoizedSerializedSize = dataSize; + if (!getLabelsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + labelsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,12 +450,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment other = (com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment) obj; + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment other = + (com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment) obj; if (!labels_.equals(other.labels_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -388,131 +480,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Account defender risk assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.class, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.class, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -523,13 +620,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance(); } @@ -544,14 +642,18 @@ public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment build() @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment buildPartial() { - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result = new com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment(this); + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result = + new com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result) { if (((bitField0_ & 0x00000001) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); bitField0_ = (bitField0_ & ~0x00000001); @@ -559,7 +661,8 @@ private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.A result.labels_ = labels_; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result) { int from_bitField0_ = bitField0_; } @@ -567,46 +670,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.AccountDefende public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment other) { - if (other == com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment other) { + if (other + == com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance()) + return this; if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; @@ -643,29 +750,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - int tmpRaw = input.readEnum(); - ensureLabelsIsMutable(); - labels_.add(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 8: + { int tmpRaw = input.readEnum(); ensureLabelsIsMutable(); labels_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureLabelsIsMutable(); + labels_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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) { @@ -675,10 +785,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List labels_ = - java.util.Collections.emptyList(); + private java.util.List labels_ = java.util.Collections.emptyList(); + private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { labels_ = new java.util.ArrayList(labels_); @@ -686,52 +797,79 @@ private void ensureLabelsIsMutable() { } } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @return A list containing the labels. */ - public java.util.List getLabelsList() { + public java.util.List< + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel> + getLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>(labels_, labels_converter_); + java.lang.Integer, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>( + labels_, labels_converter_); } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @return The count of labels. */ public int getLabelsCount() { return labels_.size(); } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param index The index of the element to return. * @return The labels at the given index. */ - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index) { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel + getLabels(int index) { return labels_converter_.convert(labels_.get(index)); } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param index The index to set the value at. * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( - int index, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel value) { + int index, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel + value) { if (value == null) { throw new NullPointerException(); } @@ -741,15 +879,22 @@ public Builder setLabels( return this; } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param value The labels to add. * @return This builder for chaining. */ - public Builder addLabels(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel value) { + public Builder addLabels( + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel + value) { if (value == null) { throw new NullPointerException(); } @@ -759,29 +904,44 @@ public Builder addLabels(com.google.recaptchaenterprise.v1beta1.AccountDefenderA return this; } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param values The labels to add. * @return This builder for chaining. */ public Builder addAllLabels( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + .AccountDefenderLabel> + values) { ensureLabelsIsMutable(); - for (com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel value : values) { + for (com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel + value : values) { labels_.add(value.getNumber()); } onChanged(); return this; } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @return This builder for chaining. */ public Builder clearLabels() { @@ -791,23 +951,32 @@ public Builder clearLabels() { return this; } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @return A list containing the enum numeric values on the wire for labels. */ - public java.util.List - getLabelsValueList() { + public java.util.List getLabelsValueList() { return java.util.Collections.unmodifiableList(labels_); } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of labels at the given index. */ @@ -815,28 +984,37 @@ public int getLabelsValue(int index) { return labels_.get(index); } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for labels to set. * @return This builder for chaining. */ - public Builder setLabelsValue( - int index, int value) { + public Builder setLabelsValue(int index, int value) { ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); return this; } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param value The enum numeric value on the wire for labels to add. * @return This builder for chaining. */ @@ -847,16 +1025,20 @@ public Builder addLabelsValue(int value) { return this; } /** + * + * *
      * Labels for this request.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * * @param values The enum numeric values on the wire for labels to add. * @return This builder for chaining. */ - public Builder addAllLabelsValue( - java.lang.Iterable values) { + public Builder addAllLabelsValue(java.lang.Iterable values) { ensureLabelsIsMutable(); for (int value : values) { labels_.add(value); @@ -864,9 +1046,9 @@ public Builder addAllLabelsValue( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,41 +1058,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) - private static final com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment(); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountDefenderAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountDefenderAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -922,9 +1106,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java new file mode 100644 index 000000000000..3620d0b56983 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface AccountDefenderAssessmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * + * @return A list containing the labels. + */ + java.util.List< + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel> + getLabelsList(); + /** + * + * + *
+   * Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * + * @return The count of labels. + */ + int getLabelsCount(); + /** + * + * + *
+   * Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * + * @param index The index of the element to return. + * @return The labels at the given index. + */ + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel getLabels( + int index); + /** + * + * + *
+   * Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * + * @return A list containing the enum numeric values on the wire for labels. + */ + java.util.List getLabelsValueList(); + /** + * + * + *
+   * Labels for this request.
+   * 
+ * + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of labels at the given index. + */ + int getLabelsValue(int index); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java similarity index 65% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java index 0601369047c1..f65893a891f2 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * The request message to annotate an Assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest} */ -public final class AnnotateAssessmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) AnnotateAssessmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateAssessmentRequest.newBuilder() to construct. private AnnotateAssessmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateAssessmentRequest() { name_ = ""; annotation_ = 0; @@ -28,34 +46,39 @@ private AnnotateAssessmentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateAssessmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Builder.class); } /** + * + * *
    * Enum that represents the types of annotations.
    * 
* - * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation} + * Protobuf enum {@code + * google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation} */ - public enum Annotation - implements com.google.protobuf.ProtocolMessageEnum { + public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified type.
      * 
@@ -64,6 +87,8 @@ public enum Annotation */ ANNOTATION_UNSPECIFIED(0), /** + * + * *
      * Provides information that the event turned out to be legitimate.
      * 
@@ -72,6 +97,8 @@ public enum Annotation */ LEGITIMATE(1), /** + * + * *
      * Provides information that the event turned out to be fraudulent.
      * 
@@ -80,6 +107,8 @@ public enum Annotation */ FRAUDULENT(2), /** + * + * *
      * Provides information that the event was related to a login event in which
      * the user typed the correct password. Deprecated, prefer indicating
@@ -91,6 +120,8 @@ public enum Annotation
     @java.lang.Deprecated
     PASSWORD_CORRECT(3),
     /**
+     *
+     *
      * 
      * Provides information that the event was related to a login event in which
      * the user typed the incorrect password. Deprecated, prefer indicating
@@ -105,6 +136,8 @@ public enum Annotation
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified type.
      * 
@@ -113,6 +146,8 @@ public enum Annotation */ public static final int ANNOTATION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Provides information that the event turned out to be legitimate.
      * 
@@ -121,6 +156,8 @@ public enum Annotation */ public static final int LEGITIMATE_VALUE = 1; /** + * + * *
      * Provides information that the event turned out to be fraudulent.
      * 
@@ -129,6 +166,8 @@ public enum Annotation */ public static final int FRAUDULENT_VALUE = 2; /** + * + * *
      * Provides information that the event was related to a login event in which
      * the user typed the correct password. Deprecated, prefer indicating
@@ -139,6 +178,8 @@ public enum Annotation
      */
     @java.lang.Deprecated public static final int PASSWORD_CORRECT_VALUE = 3;
     /**
+     *
+     *
      * 
      * Provides information that the event was related to a login event in which
      * the user typed the incorrect password. Deprecated, prefer indicating
@@ -149,7 +190,6 @@ public enum Annotation
      */
     @java.lang.Deprecated public static final int PASSWORD_INCORRECT_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -174,51 +214,55 @@ public static Annotation valueOf(int value) {
      */
     public static Annotation forNumber(int value) {
       switch (value) {
-        case 0: return ANNOTATION_UNSPECIFIED;
-        case 1: return LEGITIMATE;
-        case 2: return FRAUDULENT;
-        case 3: return PASSWORD_CORRECT;
-        case 4: return PASSWORD_INCORRECT;
-        default: return null;
+        case 0:
+          return ANNOTATION_UNSPECIFIED;
+        case 1:
+          return LEGITIMATE;
+        case 2:
+          return FRAUDULENT;
+        case 3:
+          return PASSWORD_CORRECT;
+        case 4:
+          return PASSWORD_INCORRECT;
+        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<
-        Annotation> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Annotation findValueByNumber(int number) {
-              return Annotation.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Annotation findValueByNumber(int number) {
+            return Annotation.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.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Annotation[] VALUES = values();
 
-    public static Annotation valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Annotation 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;
@@ -236,15 +280,18 @@ private Annotation(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Enum that represents potential reasons for annotating an assessment.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason} */ - public enum Reason - implements com.google.protobuf.ProtocolMessageEnum { + public enum Reason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified reason.
      * 
@@ -253,6 +300,8 @@ public enum Reason */ REASON_UNSPECIFIED(0), /** + * + * *
      * Indicates that the transaction had a chargeback issued with no other
      * details. When possible, specify the type by using CHARGEBACK_FRAUD or
@@ -263,6 +312,8 @@ public enum Reason
      */
     CHARGEBACK(1),
     /**
+     *
+     *
      * 
      * Indicates that the transaction had a chargeback issued related to an
      * alleged unauthorized transaction from the cardholder's perspective (for
@@ -273,6 +324,8 @@ public enum Reason
      */
     CHARGEBACK_FRAUD(8),
     /**
+     *
+     *
      * 
      * Indicates that the transaction had a chargeback issued related to the
      * cardholder having provided their card details but allegedly not being
@@ -284,6 +337,8 @@ public enum Reason
      */
     CHARGEBACK_DISPUTE(9),
     /**
+     *
+     *
      * 
      * Indicates that the completed payment transaction was refunded by the
      * seller.
@@ -293,6 +348,8 @@ public enum Reason
      */
     REFUND(10),
     /**
+     *
+     *
      * 
      * Indicates that the completed payment transaction was determined to be
      * fraudulent by the seller, and was cancelled and refunded as a result.
@@ -302,6 +359,8 @@ public enum Reason
      */
     REFUND_FRAUD(11),
     /**
+     *
+     *
      * 
      * Indicates that the payment transaction was accepted, and the user was
      * charged.
@@ -311,6 +370,8 @@ public enum Reason
      */
     TRANSACTION_ACCEPTED(12),
     /**
+     *
+     *
      * 
      * Indicates that the payment transaction was declined, for example due to
      * invalid card details.
@@ -320,6 +381,8 @@ public enum Reason
      */
     TRANSACTION_DECLINED(13),
     /**
+     *
+     *
      * 
      * Indicates the transaction associated with the assessment is suspected of
      * being fraudulent based on the payment method, billing details, shipping
@@ -330,6 +393,8 @@ public enum Reason
      */
     PAYMENT_HEURISTICS(2),
     /**
+     *
+     *
      * 
      * Indicates that the user was served a 2FA challenge. An old assessment
      * with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
@@ -341,6 +406,8 @@ public enum Reason
      */
     INITIATED_TWO_FACTOR(7),
     /**
+     *
+     *
      * 
      * Indicates that the user passed a 2FA challenge.
      * 
@@ -349,6 +416,8 @@ public enum Reason */ PASSED_TWO_FACTOR(3), /** + * + * *
      * Indicates that the user failed a 2FA challenge.
      * 
@@ -357,6 +426,8 @@ public enum Reason */ FAILED_TWO_FACTOR(4), /** + * + * *
      * Indicates the user provided the correct password.
      * 
@@ -365,6 +436,8 @@ public enum Reason */ CORRECT_PASSWORD(5), /** + * + * *
      * Indicates the user provided an incorrect password.
      * 
@@ -373,6 +446,8 @@ public enum Reason */ INCORRECT_PASSWORD(6), /** + * + * *
      * Indicates that the user sent unwanted and abusive messages to other users
      * of the platform, such as spam, scams, phishing, or social engineering.
@@ -385,6 +460,8 @@ public enum Reason
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified reason.
      * 
@@ -393,6 +470,8 @@ public enum Reason */ public static final int REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the transaction had a chargeback issued with no other
      * details. When possible, specify the type by using CHARGEBACK_FRAUD or
@@ -403,6 +482,8 @@ public enum Reason
      */
     public static final int CHARGEBACK_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates that the transaction had a chargeback issued related to an
      * alleged unauthorized transaction from the cardholder's perspective (for
@@ -413,6 +494,8 @@ public enum Reason
      */
     public static final int CHARGEBACK_FRAUD_VALUE = 8;
     /**
+     *
+     *
      * 
      * Indicates that the transaction had a chargeback issued related to the
      * cardholder having provided their card details but allegedly not being
@@ -424,6 +507,8 @@ public enum Reason
      */
     public static final int CHARGEBACK_DISPUTE_VALUE = 9;
     /**
+     *
+     *
      * 
      * Indicates that the completed payment transaction was refunded by the
      * seller.
@@ -433,6 +518,8 @@ public enum Reason
      */
     public static final int REFUND_VALUE = 10;
     /**
+     *
+     *
      * 
      * Indicates that the completed payment transaction was determined to be
      * fraudulent by the seller, and was cancelled and refunded as a result.
@@ -442,6 +529,8 @@ public enum Reason
      */
     public static final int REFUND_FRAUD_VALUE = 11;
     /**
+     *
+     *
      * 
      * Indicates that the payment transaction was accepted, and the user was
      * charged.
@@ -451,6 +540,8 @@ public enum Reason
      */
     public static final int TRANSACTION_ACCEPTED_VALUE = 12;
     /**
+     *
+     *
      * 
      * Indicates that the payment transaction was declined, for example due to
      * invalid card details.
@@ -460,6 +551,8 @@ public enum Reason
      */
     public static final int TRANSACTION_DECLINED_VALUE = 13;
     /**
+     *
+     *
      * 
      * Indicates the transaction associated with the assessment is suspected of
      * being fraudulent based on the payment method, billing details, shipping
@@ -470,6 +563,8 @@ public enum Reason
      */
     public static final int PAYMENT_HEURISTICS_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates that the user was served a 2FA challenge. An old assessment
      * with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
@@ -481,6 +576,8 @@ public enum Reason
      */
     public static final int INITIATED_TWO_FACTOR_VALUE = 7;
     /**
+     *
+     *
      * 
      * Indicates that the user passed a 2FA challenge.
      * 
@@ -489,6 +586,8 @@ public enum Reason */ public static final int PASSED_TWO_FACTOR_VALUE = 3; /** + * + * *
      * Indicates that the user failed a 2FA challenge.
      * 
@@ -497,6 +596,8 @@ public enum Reason */ public static final int FAILED_TWO_FACTOR_VALUE = 4; /** + * + * *
      * Indicates the user provided the correct password.
      * 
@@ -505,6 +606,8 @@ public enum Reason */ public static final int CORRECT_PASSWORD_VALUE = 5; /** + * + * *
      * Indicates the user provided an incorrect password.
      * 
@@ -513,6 +616,8 @@ public enum Reason */ public static final int INCORRECT_PASSWORD_VALUE = 6; /** + * + * *
      * Indicates that the user sent unwanted and abusive messages to other users
      * of the platform, such as spam, scams, phishing, or social engineering.
@@ -522,7 +627,6 @@ public enum Reason
      */
     public static final int SOCIAL_SPAM_VALUE = 14;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -547,61 +651,75 @@ public static Reason valueOf(int value) {
      */
     public static Reason forNumber(int value) {
       switch (value) {
-        case 0: return REASON_UNSPECIFIED;
-        case 1: return CHARGEBACK;
-        case 8: return CHARGEBACK_FRAUD;
-        case 9: return CHARGEBACK_DISPUTE;
-        case 10: return REFUND;
-        case 11: return REFUND_FRAUD;
-        case 12: return TRANSACTION_ACCEPTED;
-        case 13: return TRANSACTION_DECLINED;
-        case 2: return PAYMENT_HEURISTICS;
-        case 7: return INITIATED_TWO_FACTOR;
-        case 3: return PASSED_TWO_FACTOR;
-        case 4: return FAILED_TWO_FACTOR;
-        case 5: return CORRECT_PASSWORD;
-        case 6: return INCORRECT_PASSWORD;
-        case 14: return SOCIAL_SPAM;
-        default: return null;
+        case 0:
+          return REASON_UNSPECIFIED;
+        case 1:
+          return CHARGEBACK;
+        case 8:
+          return CHARGEBACK_FRAUD;
+        case 9:
+          return CHARGEBACK_DISPUTE;
+        case 10:
+          return REFUND;
+        case 11:
+          return REFUND_FRAUD;
+        case 12:
+          return TRANSACTION_ACCEPTED;
+        case 13:
+          return TRANSACTION_DECLINED;
+        case 2:
+          return PAYMENT_HEURISTICS;
+        case 7:
+          return INITIATED_TWO_FACTOR;
+        case 3:
+          return PASSED_TWO_FACTOR;
+        case 4:
+          return FAILED_TWO_FACTOR;
+        case 5:
+          return CORRECT_PASSWORD;
+        case 6:
+          return INCORRECT_PASSWORD;
+        case 14:
+          return SOCIAL_SPAM;
+        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);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    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() {
       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.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     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.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -619,15 +737,21 @@ private Reason(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The resource name of the Assessment, in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -636,30 +760,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -670,64 +796,104 @@ public java.lang.String getName() { public static final int ANNOTATION_FIELD_NUMBER = 2; private int annotation_ = 0; /** + * + * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for annotation. */ - @java.lang.Override public int getAnnotationValue() { + @java.lang.Override + public int getAnnotationValue() { return annotation_; } /** + * + * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotation. */ - @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation() { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation result = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.forNumber(annotation_); - return result == null ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation + getAnnotation() { + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation result = + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.forNumber( + annotation_); + return result == null + ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED + : result; } public static final int REASONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List reasons_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason> reasons_converter_ = + java.lang.Integer, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason> + reasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>() { - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason convert(java.lang.Integer from) { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason result = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason.forNumber(from); - return result == null ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason.UNRECOGNIZED : result; + java.lang.Integer, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason convert( + java.lang.Integer from) { + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason result = + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason.forNumber( + from); + return result == null + ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason + .UNRECOGNIZED + : result; } }; /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the reasons. */ @java.lang.Override - public java.util.List getReasonsList() { + public java.util.List + getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>(reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>( + reasons_, reasons_converter_); } /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of reasons. */ @java.lang.Override @@ -735,37 +901,52 @@ public int getReasonsCount() { return reasons_.size(); } /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons(int index) { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons( + int index) { return reasons_converter_.convert(reasons_.get(index)); } /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ @java.lang.Override - public java.util.List - getReasonsValueList() { + public java.util.List getReasonsValueList() { return reasons_; } /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -773,11 +954,14 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason g public int getReasonsValue(int index) { return reasons_.get(index); } + private int reasonsMemoizedSerializedSize; public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Optional. Unique stable hashed user identifier to apply to the assessment.
    * This is an alternative to setting the `hashed_account_id` in
@@ -787,6 +971,7 @@ public int getReasonsValue(int index) {
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ @java.lang.Override @@ -797,12 +982,17 @@ public com.google.protobuf.ByteString getHashedAccountId() { public static final int TRANSACTION_EVENT_FIELD_NUMBER = 5; private com.google.recaptchaenterprise.v1beta1.TransactionEvent transactionEvent_; /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionEvent field is set. */ @java.lang.Override @@ -810,32 +1000,47 @@ public boolean hasTransactionEvent() { return transactionEvent_ != null; } /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionEvent. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionEvent getTransactionEvent() { - return transactionEvent_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() : transactionEvent_; + return transactionEvent_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() + : transactionEvent_; } /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder getTransactionEventOrBuilder() { - return transactionEvent_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() : transactionEvent_; + public com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder + getTransactionEventOrBuilder() { + return transactionEvent_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() + : transactionEvent_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -847,13 +1052,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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (annotation_ != com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.ANNOTATION_UNSPECIFIED.getNumber()) { + if (annotation_ + != com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation + .ANNOTATION_UNSPECIFIED + .getNumber()) { output.writeEnum(2, annotation_); } if (getReasonsList().size() > 0) { @@ -881,29 +1088,29 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (annotation_ != com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.ANNOTATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, annotation_); + if (annotation_ + != com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation + .ANNOTATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, annotation_); } { int dataSize = 0; for (int i = 0; i < reasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(reasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); } size += dataSize; - if (!getReasonsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }reasonsMemoizedSerializedSize = dataSize; + if (!getReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + reasonsMemoizedSerializedSize = dataSize; } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, hashedAccountId_); } if (transactionEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTransactionEvent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTransactionEvent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -913,23 +1120,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest other = (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) obj; + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest other = + (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (annotation_ != other.annotation_) return false; if (!reasons_.equals(other.reasons_)) return false; - if (!getHashedAccountId() - .equals(other.getHashedAccountId())) return false; + if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; if (hasTransactionEvent() != other.hasTransactionEvent()) return false; if (hasTransactionEvent()) { - if (!getTransactionEvent() - .equals(other.getTransactionEvent())) return false; + if (!getTransactionEvent().equals(other.getTransactionEvent())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -962,131 +1167,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message to annotate an Assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1105,13 +1315,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDefaultInstance(); } @@ -1126,14 +1337,18 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest build() @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest buildPartial() { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result = new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest(this); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result = + new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result) { if (((bitField0_ & 0x00000004) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); bitField0_ = (bitField0_ & ~0x00000004); @@ -1141,7 +1356,8 @@ private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.A result.reasons_ = reasons_; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -1153,9 +1369,8 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.AnnotateAssess result.hashedAccountId_ = hashedAccountId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.transactionEvent_ = transactionEventBuilder_ == null - ? transactionEvent_ - : transactionEventBuilder_.build(); + result.transactionEvent_ = + transactionEventBuilder_ == null ? transactionEvent_ : transactionEventBuilder_.build(); } } @@ -1163,46 +1378,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.AnnotateAssess public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest other) { - if (other == com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest other) { + if (other + == com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1253,51 +1472,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - annotation_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - int tmpRaw = input.readEnum(); - ensureReasonsIsMutable(); - reasons_.add(tmpRaw); - break; - } // case 24 - case 26: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + annotation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { int tmpRaw = input.readEnum(); ensureReasonsIsMutable(); reasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getTransactionEventFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: + { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getTransactionEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + 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) { @@ -1307,23 +1532,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1332,21 +1562,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1354,30 +1587,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -1387,18 +1631,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1408,26 +1658,37 @@ public Builder setNameBytes( private int annotation_ = 0; /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for annotation. */ - @java.lang.Override public int getAnnotationValue() { + @java.lang.Override + public int getAnnotationValue() { return annotation_; } /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for annotation to set. * @return This builder for chaining. */ @@ -1438,32 +1699,48 @@ public Builder setAnnotationValue(int value) { return this; } /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotation. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation() { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation result = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.forNumber(annotation_); - return result == null ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED : result; + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation + getAnnotation() { + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation result = + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.forNumber( + annotation_); + return result == null + ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The annotation to set. * @return This builder for chaining. */ - public Builder setAnnotation(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation value) { + public Builder setAnnotation( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation value) { if (value == null) { throw new NullPointerException(); } @@ -1473,13 +1750,18 @@ public Builder setAnnotation(com.google.recaptchaenterprise.v1beta1.AnnotateAsse return this; } /** + * + * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAnnotation() { @@ -1489,8 +1771,8 @@ public Builder clearAnnotation() { return this; } - private java.util.List reasons_ = - java.util.Collections.emptyList(); + private java.util.List reasons_ = java.util.Collections.emptyList(); + private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { reasons_ = new java.util.ArrayList(reasons_); @@ -1498,46 +1780,70 @@ private void ensureReasonsIsMutable() { } } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the reasons. */ - public java.util.List getReasonsList() { + public java.util.List + getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>(reasons_, reasons_converter_); + java.lang.Integer, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>( + reasons_, reasons_converter_); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of reasons. */ public int getReasonsCount() { return reasons_.size(); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons(int index) { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons( + int index) { return reasons_converter_.convert(reasons_.get(index)); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The reasons to set. * @return This builder for chaining. @@ -1553,15 +1859,21 @@ public Builder setReasons( return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The reasons to add. * @return This builder for chaining. */ - public Builder addReasons(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason value) { + public Builder addReasons( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason value) { if (value == null) { throw new NullPointerException(); } @@ -1571,16 +1883,23 @@ public Builder addReasons(com.google.recaptchaenterprise.v1beta1.AnnotateAssessm return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The reasons to add. * @return This builder for chaining. */ public Builder addAllReasons( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason> + values) { ensureReasonsIsMutable(); for (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason value : values) { reasons_.add(value.getNumber()); @@ -1589,11 +1908,16 @@ public Builder addAllReasons( return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearReasons() { @@ -1603,23 +1927,32 @@ public Builder clearReasons() { return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ - public java.util.List - getReasonsValueList() { + public java.util.List getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -1627,28 +1960,37 @@ public int getReasonsValue(int index) { return reasons_.get(index); } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for reasons to set. * @return This builder for chaining. */ - public Builder setReasonsValue( - int index, int value) { + public Builder setReasonsValue(int index, int value) { ensureReasonsIsMutable(); reasons_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for reasons to add. * @return This builder for chaining. */ @@ -1659,16 +2001,20 @@ public Builder addReasonsValue(int value) { return this; } /** + * + * *
      * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The enum numeric values on the wire for reasons to add. * @return This builder for chaining. */ - public Builder addAllReasonsValue( - java.lang.Iterable values) { + public Builder addAllReasonsValue(java.lang.Iterable values) { ensureReasonsIsMutable(); for (int value : values) { reasons_.add(value); @@ -1679,6 +2025,8 @@ public Builder addAllReasonsValue( private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. Unique stable hashed user identifier to apply to the assessment.
      * This is an alternative to setting the `hashed_account_id` in
@@ -1688,6 +2036,7 @@ public Builder addAllReasonsValue(
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ @java.lang.Override @@ -1695,6 +2044,8 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** + * + * *
      * Optional. Unique stable hashed user identifier to apply to the assessment.
      * This is an alternative to setting the `hashed_account_id` in
@@ -1704,17 +2055,22 @@ public com.google.protobuf.ByteString getHashedAccountId() {
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } hashedAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Unique stable hashed user identifier to apply to the assessment.
      * This is an alternative to setting the `hashed_account_id` in
@@ -1724,6 +2080,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) {
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -1735,44 +2092,64 @@ public Builder clearHashedAccountId() { private com.google.recaptchaenterprise.v1beta1.TransactionEvent transactionEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionEvent, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder> transactionEventBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionEvent, + com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder> + transactionEventBuilder_; /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionEvent field is set. */ public boolean hasTransactionEvent() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionEvent. */ public com.google.recaptchaenterprise.v1beta1.TransactionEvent getTransactionEvent() { if (transactionEventBuilder_ == null) { - return transactionEvent_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() : transactionEvent_; + return transactionEvent_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() + : transactionEvent_; } else { return transactionEventBuilder_.getMessage(); } } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTransactionEvent(com.google.recaptchaenterprise.v1beta1.TransactionEvent value) { + public Builder setTransactionEvent( + com.google.recaptchaenterprise.v1beta1.TransactionEvent value) { if (transactionEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1786,12 +2163,16 @@ public Builder setTransactionEvent(com.google.recaptchaenterprise.v1beta1.Transa return this; } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransactionEvent( com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder builderForValue) { @@ -1805,18 +2186,24 @@ public Builder setTransactionEvent( return this; } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1beta1.TransactionEvent value) { + public Builder mergeTransactionEvent( + com.google.recaptchaenterprise.v1beta1.TransactionEvent value) { if (transactionEventBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - transactionEvent_ != null && - transactionEvent_ != com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && transactionEvent_ != null + && transactionEvent_ + != com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance()) { getTransactionEventBuilder().mergeFrom(value); } else { transactionEvent_ = value; @@ -1829,12 +2216,16 @@ public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1beta1.Tran return this; } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTransactionEvent() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1847,58 +2238,76 @@ public Builder clearTransactionEvent() { return this; } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder getTransactionEventBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder + getTransactionEventBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTransactionEventFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder getTransactionEventOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder + getTransactionEventOrBuilder() { if (transactionEventBuilder_ != null) { return transactionEventBuilder_.getMessageOrBuilder(); } else { - return transactionEvent_ == null ? - com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() : transactionEvent_; + return transactionEvent_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() + : transactionEvent_; } } /** + * + * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionEvent, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionEvent, + com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder> getTransactionEventFieldBuilder() { if (transactionEventBuilder_ == null) { - transactionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionEvent, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder>( - getTransactionEvent(), - getParentForChildren(), - isClean()); + transactionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionEvent, + com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder>( + getTransactionEvent(), getParentForChildren(), isClean()); transactionEvent_ = null; } return transactionEventBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1908,41 +2317,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) - private static final com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest(); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateAssessmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateAssessmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1954,9 +2365,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java index 97f435f5f897..6832b6d5ff86 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java @@ -1,107 +1,169 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface AnnotateAssessmentRequestOrBuilder extends +public interface AnnotateAssessmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for annotation. */ int getAnnotationValue(); /** + * + * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotation. */ com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation(); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the reasons. */ - java.util.List getReasonsList(); + java.util.List + getReasonsList(); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of reasons. */ int getReasonsCount(); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons(int index); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ - java.util.List - getReasonsValueList(); + java.util.List getReasonsValueList(); /** + * + * *
    * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ int getReasonsValue(int index); /** + * + * *
    * Optional. Unique stable hashed user identifier to apply to the assessment.
    * This is an alternative to setting the `hashed_account_id` in
@@ -111,37 +173,52 @@ public interface AnnotateAssessmentRequestOrBuilder extends
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ com.google.protobuf.ByteString getHashedAccountId(); /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionEvent field is set. */ boolean hasTransactionEvent(); /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionEvent. */ com.google.recaptchaenterprise.v1beta1.TransactionEvent getTransactionEvent(); /** + * + * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder getTransactionEventOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java similarity index 59% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java index 8bede4233c17..0203d7d5dedc 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * Empty response for AnnotateAssessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse} */ -public final class AnnotateAssessmentResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateAssessmentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) AnnotateAssessmentResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateAssessmentResponse.newBuilder() to construct. private AnnotateAssessmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateAssessmentResponse() { - } + + private AnnotateAssessmentResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateAssessmentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.Builder.class); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse other = (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) obj; + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse other = + (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,138 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Empty response for AnnotateAssessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.Builder.class); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.Builder.class); } - // Construct using com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,13 +255,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.getDefaultInstance(); } @@ -250,7 +277,8 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse build() @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse buildPartial() { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse result = new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse(this); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse result = + new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse(this); onBuilt(); return result; } @@ -259,46 +287,50 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse 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.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse other) { - if (other == com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse other) { + if (other + == com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -340,9 +373,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -352,41 +385,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) - private static final com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse(); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateAssessmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateAssessmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -398,9 +433,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java new file mode 100644 index 000000000000..8e894c61a934 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface AnnotateAssessmentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java similarity index 62% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java index 904ac6dc410c..e930d2456985 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * A reCAPTCHA Enterprise assessment resource.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Assessment} */ -public final class Assessment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Assessment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.Assessment) AssessmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Assessment.newBuilder() to construct. private Assessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Assessment() { name_ = ""; reasons_ = java.util.Collections.emptyList(); @@ -26,34 +44,38 @@ private Assessment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Assessment(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.Assessment.class, com.google.recaptchaenterprise.v1beta1.Assessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.Assessment.class, + com.google.recaptchaenterprise.v1beta1.Assessment.Builder.class); } /** + * + * *
    * Reasons contributing to the risk analysis verdict.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason} */ - public enum ClassificationReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum ClassificationReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified type.
      * 
@@ -62,6 +84,8 @@ public enum ClassificationReason */ CLASSIFICATION_REASON_UNSPECIFIED(0), /** + * + * *
      * Interactions matched the behavior of an automated agent.
      * 
@@ -70,6 +94,8 @@ public enum ClassificationReason */ AUTOMATION(1), /** + * + * *
      * The event originated from an illegitimate environment.
      * 
@@ -78,6 +104,8 @@ public enum ClassificationReason */ UNEXPECTED_ENVIRONMENT(2), /** + * + * *
      * Traffic volume from the event source is higher than normal.
      * 
@@ -86,6 +114,8 @@ public enum ClassificationReason */ TOO_MUCH_TRAFFIC(3), /** + * + * *
      * Interactions with the site were significantly different than expected
      * patterns.
@@ -95,6 +125,8 @@ public enum ClassificationReason
      */
     UNEXPECTED_USAGE_PATTERNS(4),
     /**
+     *
+     *
      * 
      * Too little traffic has been received from this site thus far to generate
      * quality risk analysis.
@@ -104,6 +136,8 @@ public enum ClassificationReason
      */
     LOW_CONFIDENCE_SCORE(5),
     /**
+     *
+     *
      * 
      * The request matches behavioral characteristics of a carding attack.
      * 
@@ -112,6 +146,8 @@ public enum ClassificationReason */ SUSPECTED_CARDING(6), /** + * + * *
      * The request matches behavioral characteristics of chargebacks for fraud.
      * 
@@ -123,6 +159,8 @@ public enum ClassificationReason ; /** + * + * *
      * Default unspecified type.
      * 
@@ -131,6 +169,8 @@ public enum ClassificationReason */ public static final int CLASSIFICATION_REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Interactions matched the behavior of an automated agent.
      * 
@@ -139,6 +179,8 @@ public enum ClassificationReason */ public static final int AUTOMATION_VALUE = 1; /** + * + * *
      * The event originated from an illegitimate environment.
      * 
@@ -147,6 +189,8 @@ public enum ClassificationReason */ public static final int UNEXPECTED_ENVIRONMENT_VALUE = 2; /** + * + * *
      * Traffic volume from the event source is higher than normal.
      * 
@@ -155,6 +199,8 @@ public enum ClassificationReason */ public static final int TOO_MUCH_TRAFFIC_VALUE = 3; /** + * + * *
      * Interactions with the site were significantly different than expected
      * patterns.
@@ -164,6 +210,8 @@ public enum ClassificationReason
      */
     public static final int UNEXPECTED_USAGE_PATTERNS_VALUE = 4;
     /**
+     *
+     *
      * 
      * Too little traffic has been received from this site thus far to generate
      * quality risk analysis.
@@ -173,6 +221,8 @@ public enum ClassificationReason
      */
     public static final int LOW_CONFIDENCE_SCORE_VALUE = 5;
     /**
+     *
+     *
      * 
      * The request matches behavioral characteristics of a carding attack.
      * 
@@ -181,6 +231,8 @@ public enum ClassificationReason */ public static final int SUSPECTED_CARDING_VALUE = 6; /** + * + * *
      * The request matches behavioral characteristics of chargebacks for fraud.
      * 
@@ -189,7 +241,6 @@ public enum ClassificationReason */ public static final int SUSPECTED_CHARGEBACK_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -214,15 +265,24 @@ public static ClassificationReason valueOf(int value) { */ public static ClassificationReason forNumber(int value) { switch (value) { - case 0: return CLASSIFICATION_REASON_UNSPECIFIED; - case 1: return AUTOMATION; - case 2: return UNEXPECTED_ENVIRONMENT; - case 3: return TOO_MUCH_TRAFFIC; - case 4: return UNEXPECTED_USAGE_PATTERNS; - case 5: return LOW_CONFIDENCE_SCORE; - case 6: return SUSPECTED_CARDING; - case 7: return SUSPECTED_CHARGEBACK; - default: return null; + case 0: + return CLASSIFICATION_REASON_UNSPECIFIED; + case 1: + return AUTOMATION; + case 2: + return UNEXPECTED_ENVIRONMENT; + case 3: + return TOO_MUCH_TRAFFIC; + case 4: + return UNEXPECTED_USAGE_PATTERNS; + case 5: + return LOW_CONFIDENCE_SCORE; + case 6: + return SUSPECTED_CARDING; + case 7: + return SUSPECTED_CHARGEBACK; + default: + return null; } } @@ -230,29 +290,31 @@ public static ClassificationReason forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ClassificationReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClassificationReason findValueByNumber(int number) { - return ClassificationReason.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClassificationReason findValueByNumber(int number) { + return ClassificationReason.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.recaptchaenterprise.v1beta1.Assessment.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.Assessment.getDescriptor() + .getEnumTypes() + .get(0); } private static final ClassificationReason[] VALUES = values(); @@ -260,8 +322,7 @@ public ClassificationReason findValueByNumber(int number) { public static ClassificationReason 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; @@ -279,15 +340,19 @@ private ClassificationReason(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -296,30 +361,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -330,11 +395,14 @@ public java.lang.String getName() { public static final int EVENT_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1beta1.Event event_; /** + * + * *
    * The event being assessed.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * * @return Whether the event field is set. */ @java.lang.Override @@ -342,18 +410,25 @@ public boolean hasEvent() { return event_ != null; } /** + * + * *
    * The event being assessed.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * * @return The event. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.Event getEvent() { - return event_ == null ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() : event_; + return event_ == null + ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() + : event_; } /** + * + * *
    * The event being assessed.
    * 
@@ -362,12 +437,16 @@ public com.google.recaptchaenterprise.v1beta1.Event getEvent() { */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder() { - return event_ == null ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() : event_; + return event_ == null + ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() + : event_; } public static final int SCORE_FIELD_NUMBER = 3; private float score_ = 0F; /** + * + * *
    * Output only. Legitimate event score from 0.0 to 1.0.
    * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -375,6 +454,7 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder()
    * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The score. */ @java.lang.Override @@ -385,11 +465,16 @@ public float getScore() { public static final int TOKEN_PROPERTIES_FIELD_NUMBER = 4; private com.google.recaptchaenterprise.v1beta1.TokenProperties tokenProperties_; /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tokenProperties field is set. */ @java.lang.Override @@ -397,60 +482,96 @@ public boolean hasTokenProperties() { return tokenProperties_ != null; } /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tokenProperties. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties() { - return tokenProperties_ == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() : tokenProperties_; + return tokenProperties_ == null + ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() + : tokenProperties_; } /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder() { - return tokenProperties_ == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() : tokenProperties_; + public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder + getTokenPropertiesOrBuilder() { + return tokenProperties_ == null + ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() + : tokenProperties_; } public static final int REASONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List reasons_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason> reasons_converter_ = + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason> + reasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>() { - public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason convert(java.lang.Integer from) { - com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason result = com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason.forNumber(from); - return result == null ? com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason.UNRECOGNIZED : result; + java.lang.Integer, + com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>() { + public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason convert( + java.lang.Integer from) { + com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason result = + com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason.forNumber( + from); + return result == null + ? com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason + .UNRECOGNIZED + : result; } }; /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the reasons. */ @java.lang.Override - public java.util.List getReasonsList() { + public java.util.List + getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>(reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>( + reasons_, reasons_converter_); } /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of reasons. */ @java.lang.Override @@ -458,37 +579,52 @@ public int getReasonsCount() { return reasons_.size(); } /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(int index) { + public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons( + int index) { return reasons_converter_.convert(reasons_.get(index)); } /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ @java.lang.Override - public java.util.List - getReasonsValueList() { + public java.util.List getReasonsValueList() { return reasons_; } /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -496,11 +632,14 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason ge public int getReasonsValue(int index) { return reasons_.get(index); } + private int reasonsMemoizedSerializedSize; public static final int PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER = 7; private com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification passwordLeakVerification_; /** + * + * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -508,7 +647,10 @@ public int getReasonsValue(int index) {
    * environment.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * * @return Whether the passwordLeakVerification field is set. */ @java.lang.Override @@ -516,6 +658,8 @@ public boolean hasPasswordLeakVerification() { return passwordLeakVerification_ != null; } /** + * + * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -523,14 +667,22 @@ public boolean hasPasswordLeakVerification() {
    * environment.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * * @return The passwordLeakVerification. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getPasswordLeakVerification() { - return passwordLeakVerification_ == null ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() : passwordLeakVerification_; + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification + getPasswordLeakVerification() { + return passwordLeakVerification_ == null + ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() + : passwordLeakVerification_; } /** + * + * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -538,22 +690,33 @@ public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getPasswo
    * environment.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder getPasswordLeakVerificationOrBuilder() { - return passwordLeakVerification_ == null ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() : passwordLeakVerification_; + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder + getPasswordLeakVerificationOrBuilder() { + return passwordLeakVerification_ == null + ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() + : passwordLeakVerification_; } public static final int ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER = 8; - private com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment accountDefenderAssessment_; + private com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + accountDefenderAssessment_; /** + * + * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * * @return Whether the accountDefenderAssessment field is set. */ @java.lang.Override @@ -561,39 +724,60 @@ public boolean hasAccountDefenderAssessment() { return accountDefenderAssessment_ != null; } /** + * + * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * * @return The accountDefenderAssessment. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getAccountDefenderAssessment() { - return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + getAccountDefenderAssessment() { + return accountDefenderAssessment_ == null + ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() + : accountDefenderAssessment_; } /** + * + * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder() { - return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder + getAccountDefenderAssessmentOrBuilder() { + return accountDefenderAssessment_ == null + ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() + : accountDefenderAssessment_; } public static final int FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER = 11; - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraudPreventionAssessment_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + fraudPreventionAssessment_; /** + * + * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * * @return Whether the fraudPreventionAssessment field is set. */ @java.lang.Override @@ -601,30 +785,46 @@ public boolean hasFraudPreventionAssessment() { return fraudPreventionAssessment_ != null; } /** + * + * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * * @return The fraudPreventionAssessment. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getFraudPreventionAssessment() { - return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + getFraudPreventionAssessment() { + return fraudPreventionAssessment_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() + : fraudPreventionAssessment_; } /** + * + * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder() { - return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder + getFraudPreventionAssessmentOrBuilder() { + return fraudPreventionAssessment_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() + : fraudPreventionAssessment_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,8 +836,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -680,40 +879,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvent()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, score_); } if (tokenProperties_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTokenProperties()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTokenProperties()); } { int dataSize = 0; for (int i = 0; i < reasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(reasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); } size += dataSize; - if (!getReasonsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }reasonsMemoizedSerializedSize = dataSize; + if (!getReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + reasonsMemoizedSerializedSize = dataSize; } if (passwordLeakVerification_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getPasswordLeakVerification()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getPasswordLeakVerification()); } if (accountDefenderAssessment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAccountDefenderAssessment()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getAccountDefenderAssessment()); } if (fraudPreventionAssessment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getFraudPreventionAssessment()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getFraudPreventionAssessment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -723,43 +922,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.Assessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.Assessment other = (com.google.recaptchaenterprise.v1beta1.Assessment) obj; + com.google.recaptchaenterprise.v1beta1.Assessment other = + (com.google.recaptchaenterprise.v1beta1.Assessment) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasEvent() != other.hasEvent()) return false; if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) return false; + if (!getEvent().equals(other.getEvent())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (hasTokenProperties() != other.hasTokenProperties()) return false; if (hasTokenProperties()) { - if (!getTokenProperties() - .equals(other.getTokenProperties())) return false; + if (!getTokenProperties().equals(other.getTokenProperties())) return false; } if (!reasons_.equals(other.reasons_)) return false; if (hasPasswordLeakVerification() != other.hasPasswordLeakVerification()) return false; if (hasPasswordLeakVerification()) { - if (!getPasswordLeakVerification() - .equals(other.getPasswordLeakVerification())) return false; + if (!getPasswordLeakVerification().equals(other.getPasswordLeakVerification())) return false; } if (hasAccountDefenderAssessment() != other.hasAccountDefenderAssessment()) return false; if (hasAccountDefenderAssessment()) { - if (!getAccountDefenderAssessment() - .equals(other.getAccountDefenderAssessment())) return false; + if (!getAccountDefenderAssessment().equals(other.getAccountDefenderAssessment())) + return false; } if (hasFraudPreventionAssessment() != other.hasFraudPreventionAssessment()) return false; if (hasFraudPreventionAssessment()) { - if (!getFraudPreventionAssessment() - .equals(other.getFraudPreventionAssessment())) return false; + if (!getFraudPreventionAssessment().equals(other.getFraudPreventionAssessment())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -779,8 +974,7 @@ public int hashCode() { hash = (53 * hash) + getEvent().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); if (hasTokenProperties()) { hash = (37 * hash) + TOKEN_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getTokenProperties().hashCode(); @@ -807,131 +1001,135 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.Assessment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.Assessment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.Assessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reCAPTCHA Enterprise assessment resource.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Assessment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.Assessment) com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.Assessment.class, com.google.recaptchaenterprise.v1beta1.Assessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.Assessment.class, + com.google.recaptchaenterprise.v1beta1.Assessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.Assessment.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -969,9 +1167,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; } @java.lang.Override @@ -990,14 +1188,18 @@ public com.google.recaptchaenterprise.v1beta1.Assessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.Assessment buildPartial() { - com.google.recaptchaenterprise.v1beta1.Assessment result = new com.google.recaptchaenterprise.v1beta1.Assessment(this); + com.google.recaptchaenterprise.v1beta1.Assessment result = + new com.google.recaptchaenterprise.v1beta1.Assessment(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.Assessment result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1beta1.Assessment result) { if (((bitField0_ & 0x00000010) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); bitField0_ = (bitField0_ & ~0x00000010); @@ -1011,32 +1213,32 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.Assessment res result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.event_ = eventBuilder_ == null - ? event_ - : eventBuilder_.build(); + result.event_ = eventBuilder_ == null ? event_ : eventBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.score_ = score_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.tokenProperties_ = tokenPropertiesBuilder_ == null - ? tokenProperties_ - : tokenPropertiesBuilder_.build(); + result.tokenProperties_ = + tokenPropertiesBuilder_ == null ? tokenProperties_ : tokenPropertiesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.passwordLeakVerification_ = passwordLeakVerificationBuilder_ == null - ? passwordLeakVerification_ - : passwordLeakVerificationBuilder_.build(); + result.passwordLeakVerification_ = + passwordLeakVerificationBuilder_ == null + ? passwordLeakVerification_ + : passwordLeakVerificationBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.accountDefenderAssessment_ = accountDefenderAssessmentBuilder_ == null - ? accountDefenderAssessment_ - : accountDefenderAssessmentBuilder_.build(); + result.accountDefenderAssessment_ = + accountDefenderAssessmentBuilder_ == null + ? accountDefenderAssessment_ + : accountDefenderAssessmentBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.fraudPreventionAssessment_ = fraudPreventionAssessmentBuilder_ == null - ? fraudPreventionAssessment_ - : fraudPreventionAssessmentBuilder_.build(); + result.fraudPreventionAssessment_ = + fraudPreventionAssessmentBuilder_ == null + ? fraudPreventionAssessment_ + : fraudPreventionAssessmentBuilder_.build(); } } @@ -1044,38 +1246,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.Assessment res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.Assessment) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.Assessment)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.Assessment) other); } else { super.mergeFrom(other); return this; @@ -1083,7 +1286,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.Assessment other) { - if (other == com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1143,74 +1347,77 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEventFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 29: { - score_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 29 - case 34: { - input.readMessage( - getTokenPropertiesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - int tmpRaw = input.readEnum(); - ensureReasonsIsMutable(); - reasons_.add(tmpRaw); - break; - } // case 40 - case 42: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + case 34: + { + input.readMessage(getTokenPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { int tmpRaw = input.readEnum(); ensureReasonsIsMutable(); reasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 42 - case 58: { - input.readMessage( - getPasswordLeakVerificationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getAccountDefenderAssessmentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 90: { - input.readMessage( - getFraudPreventionAssessmentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 90 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 42 + case 58: + { + input.readMessage( + getPasswordLeakVerificationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + getAccountDefenderAssessmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 90: + { + input.readMessage( + getFraudPreventionAssessmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 90 + 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) { @@ -1220,23 +1427,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1245,21 +1455,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1267,30 +1478,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1300,18 +1518,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1321,34 +1543,47 @@ public Builder setNameBytes( private com.google.recaptchaenterprise.v1beta1.Event event_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Event, com.google.recaptchaenterprise.v1beta1.Event.Builder, com.google.recaptchaenterprise.v1beta1.EventOrBuilder> eventBuilder_; + com.google.recaptchaenterprise.v1beta1.Event, + com.google.recaptchaenterprise.v1beta1.Event.Builder, + com.google.recaptchaenterprise.v1beta1.EventOrBuilder> + eventBuilder_; /** + * + * *
      * The event being assessed.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * * @return Whether the event field is set. */ public boolean hasEvent() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The event being assessed.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * * @return The event. */ public com.google.recaptchaenterprise.v1beta1.Event getEvent() { if (eventBuilder_ == null) { - return event_ == null ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() : event_; + return event_ == null + ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() + : event_; } else { return eventBuilder_.getMessage(); } } /** + * + * *
      * The event being assessed.
      * 
@@ -1369,14 +1604,15 @@ public Builder setEvent(com.google.recaptchaenterprise.v1beta1.Event value) { return this; } /** + * + * *
      * The event being assessed.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; */ - public Builder setEvent( - com.google.recaptchaenterprise.v1beta1.Event.Builder builderForValue) { + public Builder setEvent(com.google.recaptchaenterprise.v1beta1.Event.Builder builderForValue) { if (eventBuilder_ == null) { event_ = builderForValue.build(); } else { @@ -1387,6 +1623,8 @@ public Builder setEvent( return this; } /** + * + * *
      * The event being assessed.
      * 
@@ -1395,9 +1633,9 @@ public Builder setEvent( */ public Builder mergeEvent(com.google.recaptchaenterprise.v1beta1.Event value) { if (eventBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - event_ != null && - event_ != com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && event_ != null + && event_ != com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance()) { getEventBuilder().mergeFrom(value); } else { event_ = value; @@ -1410,6 +1648,8 @@ public Builder mergeEvent(com.google.recaptchaenterprise.v1beta1.Event value) { return this; } /** + * + * *
      * The event being assessed.
      * 
@@ -1427,6 +1667,8 @@ public Builder clearEvent() { return this; } /** + * + * *
      * The event being assessed.
      * 
@@ -1439,6 +1681,8 @@ public com.google.recaptchaenterprise.v1beta1.Event.Builder getEventBuilder() { return getEventFieldBuilder().getBuilder(); } /** + * + * *
      * The event being assessed.
      * 
@@ -1449,11 +1693,14 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder() if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilder(); } else { - return event_ == null ? - com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() : event_; + return event_ == null + ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() + : event_; } } /** + * + * *
      * The event being assessed.
      * 
@@ -1461,21 +1708,26 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder() * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Event, com.google.recaptchaenterprise.v1beta1.Event.Builder, com.google.recaptchaenterprise.v1beta1.EventOrBuilder> + com.google.recaptchaenterprise.v1beta1.Event, + com.google.recaptchaenterprise.v1beta1.Event.Builder, + com.google.recaptchaenterprise.v1beta1.EventOrBuilder> getEventFieldBuilder() { if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Event, com.google.recaptchaenterprise.v1beta1.Event.Builder, com.google.recaptchaenterprise.v1beta1.EventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); + eventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.Event, + com.google.recaptchaenterprise.v1beta1.Event.Builder, + com.google.recaptchaenterprise.v1beta1.EventOrBuilder>( + getEvent(), getParentForChildren(), isClean()); event_ = null; } return eventBuilder_; } - private float score_ ; + private float score_; /** + * + * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1483,6 +1735,7 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder()
      * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The score. */ @java.lang.Override @@ -1490,6 +1743,8 @@ public float getScore() { return score_; } /** + * + * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1497,6 +1752,7 @@ public float getScore() {
      * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The score to set. * @return This builder for chaining. */ @@ -1508,6 +1764,8 @@ public Builder setScore(float value) { return this; } /** + * + * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1515,6 +1773,7 @@ public Builder setScore(float value) {
      * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearScore() { @@ -1526,41 +1785,61 @@ public Builder clearScore() { private com.google.recaptchaenterprise.v1beta1.TokenProperties tokenProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TokenProperties, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder> tokenPropertiesBuilder_; + com.google.recaptchaenterprise.v1beta1.TokenProperties, + com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, + com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder> + tokenPropertiesBuilder_; /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tokenProperties field is set. */ public boolean hasTokenProperties() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tokenProperties. */ public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties() { if (tokenPropertiesBuilder_ == null) { - return tokenProperties_ == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() : tokenProperties_; + return tokenProperties_ == null + ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() + : tokenProperties_; } else { return tokenPropertiesBuilder_.getMessage(); } } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setTokenProperties(com.google.recaptchaenterprise.v1beta1.TokenProperties value) { + public Builder setTokenProperties( + com.google.recaptchaenterprise.v1beta1.TokenProperties value) { if (tokenPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1574,11 +1853,15 @@ public Builder setTokenProperties(com.google.recaptchaenterprise.v1beta1.TokenPr return this; } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTokenProperties( com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder builderForValue) { @@ -1592,17 +1875,23 @@ public Builder setTokenProperties( return this; } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeTokenProperties(com.google.recaptchaenterprise.v1beta1.TokenProperties value) { + public Builder mergeTokenProperties( + com.google.recaptchaenterprise.v1beta1.TokenProperties value) { if (tokenPropertiesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - tokenProperties_ != null && - tokenProperties_ != com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && tokenProperties_ != null + && tokenProperties_ + != com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance()) { getTokenPropertiesBuilder().mergeFrom(value); } else { tokenProperties_ = value; @@ -1615,11 +1904,15 @@ public Builder mergeTokenProperties(com.google.recaptchaenterprise.v1beta1.Token return this; } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTokenProperties() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1632,55 +1925,73 @@ public Builder clearTokenProperties() { return this; } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder getTokenPropertiesBuilder() { + public com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder + getTokenPropertiesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTokenPropertiesFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder + getTokenPropertiesOrBuilder() { if (tokenPropertiesBuilder_ != null) { return tokenPropertiesBuilder_.getMessageOrBuilder(); } else { - return tokenProperties_ == null ? - com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() : tokenProperties_; + return tokenProperties_ == null + ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() + : tokenProperties_; } } /** + * + * *
      * Output only. Properties of the provided event token.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TokenProperties, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder> + com.google.recaptchaenterprise.v1beta1.TokenProperties, + com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, + com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder> getTokenPropertiesFieldBuilder() { if (tokenPropertiesBuilder_ == null) { - tokenPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TokenProperties, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder>( - getTokenProperties(), - getParentForChildren(), - isClean()); + tokenPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TokenProperties, + com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, + com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder>( + getTokenProperties(), getParentForChildren(), isClean()); tokenProperties_ = null; } return tokenPropertiesBuilder_; } - private java.util.List reasons_ = - java.util.Collections.emptyList(); + private java.util.List reasons_ = java.util.Collections.emptyList(); + private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { reasons_ = new java.util.ArrayList(reasons_); @@ -1688,46 +1999,70 @@ private void ensureReasonsIsMutable() { } } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the reasons. */ - public java.util.List getReasonsList() { + public java.util.List + getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>(reasons_, reasons_converter_); + java.lang.Integer, + com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>( + reasons_, reasons_converter_); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of reasons. */ public int getReasonsCount() { return reasons_.size(); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ - public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(int index) { + public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons( + int index) { return reasons_converter_.convert(reasons_.get(index)); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The reasons to set. * @return This builder for chaining. @@ -1743,15 +2078,21 @@ public Builder setReasons( return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The reasons to add. * @return This builder for chaining. */ - public Builder addReasons(com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason value) { + public Builder addReasons( + com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason value) { if (value == null) { throw new NullPointerException(); } @@ -1761,16 +2102,23 @@ public Builder addReasons(com.google.recaptchaenterprise.v1beta1.Assessment.Clas return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The reasons to add. * @return This builder for chaining. */ public Builder addAllReasons( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason> + values) { ensureReasonsIsMutable(); for (com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason value : values) { reasons_.add(value.getNumber()); @@ -1779,11 +2127,16 @@ public Builder addAllReasons( return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearReasons() { @@ -1793,23 +2146,32 @@ public Builder clearReasons() { return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ - public java.util.List - getReasonsValueList() { + public java.util.List getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -1817,28 +2179,37 @@ public int getReasonsValue(int index) { return reasons_.get(index); } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for reasons to set. * @return This builder for chaining. */ - public Builder setReasonsValue( - int index, int value) { + public Builder setReasonsValue(int index, int value) { ensureReasonsIsMutable(); reasons_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for reasons to add. * @return This builder for chaining. */ @@ -1849,16 +2220,20 @@ public Builder addReasonsValue(int value) { return this; } /** + * + * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The enum numeric values on the wire for reasons to add. * @return This builder for chaining. */ - public Builder addAllReasonsValue( - java.lang.Iterable values) { + public Builder addAllReasonsValue(java.lang.Iterable values) { ensureReasonsIsMutable(); for (int value : values) { reasons_.add(value); @@ -1867,10 +2242,16 @@ public Builder addAllReasonsValue( return this; } - private com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification passwordLeakVerification_; + private com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification + passwordLeakVerification_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder> passwordLeakVerificationBuilder_; + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder> + passwordLeakVerificationBuilder_; /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -1878,13 +2259,18 @@ public Builder addAllReasonsValue(
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * * @return Whether the passwordLeakVerification field is set. */ public boolean hasPasswordLeakVerification() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -1892,17 +2278,25 @@ public boolean hasPasswordLeakVerification() {
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * * @return The passwordLeakVerification. */ - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getPasswordLeakVerification() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification + getPasswordLeakVerification() { if (passwordLeakVerificationBuilder_ == null) { - return passwordLeakVerification_ == null ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() : passwordLeakVerification_; + return passwordLeakVerification_ == null + ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() + : passwordLeakVerification_; } else { return passwordLeakVerificationBuilder_.getMessage(); } } /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -1910,9 +2304,12 @@ public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getPasswo
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ - public Builder setPasswordLeakVerification(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification value) { + public Builder setPasswordLeakVerification( + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification value) { if (passwordLeakVerificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1926,6 +2323,8 @@ public Builder setPasswordLeakVerification(com.google.recaptchaenterprise.v1beta return this; } /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -1933,7 +2332,9 @@ public Builder setPasswordLeakVerification(com.google.recaptchaenterprise.v1beta
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ public Builder setPasswordLeakVerification( com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder builderForValue) { @@ -1947,6 +2348,8 @@ public Builder setPasswordLeakVerification( return this; } /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -1954,13 +2357,18 @@ public Builder setPasswordLeakVerification(
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ - public Builder mergePasswordLeakVerification(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification value) { + public Builder mergePasswordLeakVerification( + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification value) { if (passwordLeakVerificationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - passwordLeakVerification_ != null && - passwordLeakVerification_ != com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && passwordLeakVerification_ != null + && passwordLeakVerification_ + != com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification + .getDefaultInstance()) { getPasswordLeakVerificationBuilder().mergeFrom(value); } else { passwordLeakVerification_ = value; @@ -1973,6 +2381,8 @@ public Builder mergePasswordLeakVerification(com.google.recaptchaenterprise.v1be return this; } /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -1980,7 +2390,9 @@ public Builder mergePasswordLeakVerification(com.google.recaptchaenterprise.v1be
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ public Builder clearPasswordLeakVerification() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1993,6 +2405,8 @@ public Builder clearPasswordLeakVerification() { return this; } /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2000,14 +2414,19 @@ public Builder clearPasswordLeakVerification() {
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder getPasswordLeakVerificationBuilder() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder + getPasswordLeakVerificationBuilder() { bitField0_ |= 0x00000020; onChanged(); return getPasswordLeakVerificationFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2015,17 +2434,23 @@ public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder g
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder getPasswordLeakVerificationOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder + getPasswordLeakVerificationOrBuilder() { if (passwordLeakVerificationBuilder_ != null) { return passwordLeakVerificationBuilder_.getMessageOrBuilder(); } else { - return passwordLeakVerification_ == null ? - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() : passwordLeakVerification_; + return passwordLeakVerification_ == null + ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() + : passwordLeakVerification_; } } /** + * + * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2033,62 +2458,89 @@ public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder
      * environment.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder> + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder> getPasswordLeakVerificationFieldBuilder() { if (passwordLeakVerificationBuilder_ == null) { - passwordLeakVerificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder>( - getPasswordLeakVerification(), - getParentForChildren(), - isClean()); + passwordLeakVerificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder>( + getPasswordLeakVerification(), getParentForChildren(), isClean()); passwordLeakVerification_ = null; } return passwordLeakVerificationBuilder_; } - private com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment accountDefenderAssessment_; + private com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + accountDefenderAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder> accountDefenderAssessmentBuilder_; + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder> + accountDefenderAssessmentBuilder_; /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * * @return Whether the accountDefenderAssessment field is set. */ public boolean hasAccountDefenderAssessment() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * * @return The accountDefenderAssessment. */ - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getAccountDefenderAssessment() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + getAccountDefenderAssessment() { if (accountDefenderAssessmentBuilder_ == null) { - return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; + return accountDefenderAssessment_ == null + ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() + : accountDefenderAssessment_; } else { return accountDefenderAssessmentBuilder_.getMessage(); } } /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ - public Builder setAccountDefenderAssessment(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment value) { + public Builder setAccountDefenderAssessment( + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment value) { if (accountDefenderAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2102,12 +2554,16 @@ public Builder setAccountDefenderAssessment(com.google.recaptchaenterprise.v1bet return this; } /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ public Builder setAccountDefenderAssessment( com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder builderForValue) { @@ -2121,18 +2577,25 @@ public Builder setAccountDefenderAssessment( return this; } /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ - public Builder mergeAccountDefenderAssessment(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment value) { + public Builder mergeAccountDefenderAssessment( + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment value) { if (accountDefenderAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - accountDefenderAssessment_ != null && - accountDefenderAssessment_ != com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && accountDefenderAssessment_ != null + && accountDefenderAssessment_ + != com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment + .getDefaultInstance()) { getAccountDefenderAssessmentBuilder().mergeFrom(value); } else { accountDefenderAssessment_ = value; @@ -2145,12 +2608,16 @@ public Builder mergeAccountDefenderAssessment(com.google.recaptchaenterprise.v1b return this; } /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ public Builder clearAccountDefenderAssessment() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2163,93 +2630,133 @@ public Builder clearAccountDefenderAssessment() { return this; } /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder getAccountDefenderAssessmentBuilder() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder + getAccountDefenderAssessmentBuilder() { bitField0_ |= 0x00000040; onChanged(); return getAccountDefenderAssessmentFieldBuilder().getBuilder(); } /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder + getAccountDefenderAssessmentOrBuilder() { if (accountDefenderAssessmentBuilder_ != null) { return accountDefenderAssessmentBuilder_.getMessageOrBuilder(); } else { - return accountDefenderAssessment_ == null ? - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; + return accountDefenderAssessment_ == null + ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() + : accountDefenderAssessment_; } } /** + * + * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder> + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder> getAccountDefenderAssessmentFieldBuilder() { if (accountDefenderAssessmentBuilder_ == null) { - accountDefenderAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder>( - getAccountDefenderAssessment(), - getParentForChildren(), - isClean()); + accountDefenderAssessmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder>( + getAccountDefenderAssessment(), getParentForChildren(), isClean()); accountDefenderAssessment_ = null; } return accountDefenderAssessmentBuilder_; } - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraudPreventionAssessment_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + fraudPreventionAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder> fraudPreventionAssessmentBuilder_; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder> + fraudPreventionAssessmentBuilder_; /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * * @return Whether the fraudPreventionAssessment field is set. */ public boolean hasFraudPreventionAssessment() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * * @return The fraudPreventionAssessment. */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getFraudPreventionAssessment() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + getFraudPreventionAssessment() { if (fraudPreventionAssessmentBuilder_ == null) { - return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; + return fraudPreventionAssessment_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() + : fraudPreventionAssessment_; } else { return fraudPreventionAssessmentBuilder_.getMessage(); } } /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ - public Builder setFraudPreventionAssessment(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment value) { + public Builder setFraudPreventionAssessment( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment value) { if (fraudPreventionAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2263,11 +2770,15 @@ public Builder setFraudPreventionAssessment(com.google.recaptchaenterprise.v1bet return this; } /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ public Builder setFraudPreventionAssessment( com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder builderForValue) { @@ -2281,17 +2792,24 @@ public Builder setFraudPreventionAssessment( return this; } /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ - public Builder mergeFraudPreventionAssessment(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment value) { + public Builder mergeFraudPreventionAssessment( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment value) { if (fraudPreventionAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - fraudPreventionAssessment_ != null && - fraudPreventionAssessment_ != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && fraudPreventionAssessment_ != null + && fraudPreventionAssessment_ + != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .getDefaultInstance()) { getFraudPreventionAssessmentBuilder().mergeFrom(value); } else { fraudPreventionAssessment_ = value; @@ -2304,11 +2822,15 @@ public Builder mergeFraudPreventionAssessment(com.google.recaptchaenterprise.v1b return this; } /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ public Builder clearFraudPreventionAssessment() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2321,55 +2843,73 @@ public Builder clearFraudPreventionAssessment() { return this; } /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder getFraudPreventionAssessmentBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder + getFraudPreventionAssessmentBuilder() { bitField0_ |= 0x00000080; onChanged(); return getFraudPreventionAssessmentFieldBuilder().getBuilder(); } /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder + getFraudPreventionAssessmentOrBuilder() { if (fraudPreventionAssessmentBuilder_ != null) { return fraudPreventionAssessmentBuilder_.getMessageOrBuilder(); } else { - return fraudPreventionAssessment_ == null ? - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; + return fraudPreventionAssessment_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() + : fraudPreventionAssessment_; } } /** + * + * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder> + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder> getFraudPreventionAssessmentFieldBuilder() { if (fraudPreventionAssessmentBuilder_ == null) { - fraudPreventionAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder>( - getFraudPreventionAssessment(), - getParentForChildren(), - isClean()); + fraudPreventionAssessmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder>( + getFraudPreventionAssessment(), getParentForChildren(), isClean()); fraudPreventionAssessment_ = null; } return fraudPreventionAssessmentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2379,12 +2919,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.Assessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.Assessment) private static final com.google.recaptchaenterprise.v1beta1.Assessment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.Assessment(); } @@ -2393,27 +2933,27 @@ public static com.google.recaptchaenterprise.v1beta1.Assessment getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Assessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Assessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2428,6 +2968,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.Assessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java similarity index 62% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java index 05e306622d29..29992a373521 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface AssessmentOrBuilder extends +public interface AssessmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.Assessment) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The event being assessed.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * * @return Whether the event field is set. */ boolean hasEvent(); /** + * + * *
    * The event being assessed.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * * @return The event. */ com.google.recaptchaenterprise.v1beta1.Event getEvent(); /** + * + * *
    * The event being assessed.
    * 
@@ -57,6 +86,8 @@ public interface AssessmentOrBuilder extends com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder(); /** + * + * *
    * Output only. Legitimate event score from 0.0 to 1.0.
    * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -64,87 +95,129 @@ public interface AssessmentOrBuilder extends
    * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The score. */ float getScore(); /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tokenProperties field is set. */ boolean hasTokenProperties(); /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tokenProperties. */ com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties(); /** + * + * *
    * Output only. Properties of the provided event token.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder(); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the reasons. */ - java.util.List getReasonsList(); + java.util.List + getReasonsList(); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of reasons. */ int getReasonsCount(); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The reasons at the given index. */ com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(int index); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for reasons. */ - java.util.List - getReasonsValueList(); + java.util.List getReasonsValueList(); /** + * + * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ int getReasonsValue(int index); /** + * + * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -152,11 +225,16 @@ public interface AssessmentOrBuilder extends
    * environment.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * * @return Whether the passwordLeakVerification field is set. */ boolean hasPasswordLeakVerification(); /** + * + * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -164,11 +242,16 @@ public interface AssessmentOrBuilder extends
    * environment.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * * @return The passwordLeakVerification. */ com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getPasswordLeakVerification(); /** + * + * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -176,64 +259,97 @@ public interface AssessmentOrBuilder extends
    * environment.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; + * */ - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder getPasswordLeakVerificationOrBuilder(); + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder + getPasswordLeakVerificationOrBuilder(); /** + * + * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * * @return Whether the accountDefenderAssessment field is set. */ boolean hasAccountDefenderAssessment(); /** + * + * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * * @return The accountDefenderAssessment. */ com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getAccountDefenderAssessment(); /** + * + * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; + * */ - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder + getAccountDefenderAssessmentOrBuilder(); /** + * + * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * * @return Whether the fraudPreventionAssessment field is set. */ boolean hasFraudPreventionAssessment(); /** + * + * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * * @return The fraudPreventionAssessment. */ com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getFraudPreventionAssessment(); /** + * + * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; + * */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder + getFraudPreventionAssessmentOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java similarity index 60% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java index 7eeeb4ed2181..98b0c32679bd 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * The create assessment request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest} */ -public final class CreateAssessmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) CreateAssessmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateAssessmentRequest.newBuilder() to construct. private CreateAssessmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateAssessmentRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateAssessmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project in which the assessment will be created,
    * in the format `projects/{project_number}`.
    * 
* - * string parent = 1 [(.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 @@ -61,30 +86,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which the assessment will be created,
    * in the format `projects/{project_number}`.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int ASSESSMENT_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1beta1.Assessment assessment_; /** + * + * *
    * Required. The assessment details.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the assessment field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasAssessment() { return assessment_ != null; } /** + * + * *
    * Required. The assessment details.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The assessment. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() { - return assessment_ == null ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() : assessment_; + return assessment_ == null + ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() + : assessment_; } /** + * + * *
    * Required. The assessment details.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder() { - return assessment_ == null ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() : assessment_; + return assessment_ == null + ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() + : assessment_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (assessment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAssessment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAssessment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.recaptchaenterprise.v1beta1.CreateAssessmentRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest other = (com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) obj; + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest other = + (com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasAssessment() != other.hasAssessment()) return false; if (hasAssessment()) { - if (!getAssessment() - .equals(other.getAssessment())) return false; + if (!getAssessment().equals(other.getAssessment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The create assessment request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,13 +398,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.getDefaultInstance(); } @@ -371,21 +420,23 @@ public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest buildPartial() { - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest result = new com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest result = + new com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.assessment_ = assessmentBuilder_ == null - ? assessment_ - : assessmentBuilder_.build(); + result.assessment_ = assessmentBuilder_ == null ? assessment_ : assessmentBuilder_.build(); } } @@ -393,38 +444,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.CreateAssessme public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +484,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest other) { - if (other == com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAssessmentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAssessmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -494,23 +549,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * string parent = 1 [(.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; @@ -519,21 +579,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -541,30 +604,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * string 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() { @@ -574,18 +648,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +675,58 @@ public Builder setParentBytes( private com.google.recaptchaenterprise.v1beta1.Assessment assessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Assessment, com.google.recaptchaenterprise.v1beta1.Assessment.Builder, com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder> assessmentBuilder_; + com.google.recaptchaenterprise.v1beta1.Assessment, + com.google.recaptchaenterprise.v1beta1.Assessment.Builder, + com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder> + assessmentBuilder_; /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the assessment field is set. */ public boolean hasAssessment() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The assessment. */ public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() { if (assessmentBuilder_ == null) { - return assessment_ == null ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() : assessment_; + return assessment_ == null + ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() + : assessment_; } else { return assessmentBuilder_.getMessage(); } } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAssessment(com.google.recaptchaenterprise.v1beta1.Assessment value) { if (assessmentBuilder_ == null) { @@ -643,11 +742,15 @@ public Builder setAssessment(com.google.recaptchaenterprise.v1beta1.Assessment v return this; } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAssessment( com.google.recaptchaenterprise.v1beta1.Assessment.Builder builderForValue) { @@ -661,17 +764,22 @@ public Builder setAssessment( return this; } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAssessment(com.google.recaptchaenterprise.v1beta1.Assessment value) { if (assessmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - assessment_ != null && - assessment_ != com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && assessment_ != null + && assessment_ + != com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance()) { getAssessmentBuilder().mergeFrom(value); } else { assessment_ = value; @@ -684,11 +792,15 @@ public Builder mergeAssessment(com.google.recaptchaenterprise.v1beta1.Assessment return this; } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAssessment() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +813,15 @@ public Builder clearAssessment() { return this; } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1beta1.Assessment.Builder getAssessmentBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +829,55 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.Builder getAssessmentBu return getAssessmentFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder() { if (assessmentBuilder_ != null) { return assessmentBuilder_.getMessageOrBuilder(); } else { - return assessment_ == null ? - com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() : assessment_; + return assessment_ == null + ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() + : assessment_; } } /** + * + * *
      * Required. The assessment details.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Assessment, com.google.recaptchaenterprise.v1beta1.Assessment.Builder, com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder> + com.google.recaptchaenterprise.v1beta1.Assessment, + com.google.recaptchaenterprise.v1beta1.Assessment.Builder, + com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder> getAssessmentFieldBuilder() { if (assessmentBuilder_ == null) { - assessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Assessment, com.google.recaptchaenterprise.v1beta1.Assessment.Builder, com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder>( - getAssessment(), - getParentForChildren(), - isClean()); + assessmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.Assessment, + com.google.recaptchaenterprise.v1beta1.Assessment.Builder, + com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder>( + getAssessment(), getParentForChildren(), isClean()); assessment_ = null; } return assessmentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,41 +887,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) - private static final com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest(); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAssessmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAssessmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -805,9 +935,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java new file mode 100644 index 000000000000..d6f34142307d --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface CreateAssessmentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the project in which the assessment will be created,
+   * in the format `projects/{project_number}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the project in which the assessment will be created,
+   * in the format `projects/{project_number}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The assessment details.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assessment field is set. + */ + boolean hasAssessment(); + /** + * + * + *
+   * Required. The assessment details.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assessment. + */ + com.google.recaptchaenterprise.v1beta1.Assessment getAssessment(); + /** + * + * + *
+   * Required. The assessment details.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java similarity index 71% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java index 242cb94af9e4..6d16a43f8eab 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java @@ -1,20 +1,34 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -/** - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Event} - */ -public final class Event extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Event} */ +public final class Event extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.Event) EventOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Event() { token_ = ""; siteKey_ = ""; @@ -26,34 +40,39 @@ private Event() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Event(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.Event.class, com.google.recaptchaenterprise.v1beta1.Event.Builder.class); + com.google.recaptchaenterprise.v1beta1.Event.class, + com.google.recaptchaenterprise.v1beta1.Event.Builder.class); } public static final int TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object token_ = ""; /** + * + * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The token. */ @java.lang.Override @@ -62,30 +81,30 @@ public java.lang.String getToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } } /** + * + * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for token. */ @java.lang.Override - public com.google.protobuf.ByteString - getTokenBytes() { + public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); token_ = b; return b; } else { @@ -94,15 +113,19 @@ public java.lang.String getToken() { } public static final int SITE_KEY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object siteKey_ = ""; /** + * + * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The siteKey. */ @java.lang.Override @@ -111,30 +134,30 @@ public java.lang.String getSiteKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteKey_ = s; return s; } } /** + * + * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for siteKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getSiteKeyBytes() { + public com.google.protobuf.ByteString getSiteKeyBytes() { java.lang.Object ref = siteKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); siteKey_ = b; return b; } else { @@ -143,15 +166,19 @@ public java.lang.String getSiteKey() { } public static final int USER_AGENT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object userAgent_ = ""; /** + * + * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ @java.lang.Override @@ -160,30 +187,30 @@ public java.lang.String getUserAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** + * + * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -192,15 +219,19 @@ public java.lang.String getUserAgent() { } public static final int USER_IP_ADDRESS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object userIpAddress_ = ""; /** + * + * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userIpAddress. */ @java.lang.Override @@ -209,30 +240,30 @@ public java.lang.String getUserIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userIpAddress_ = s; return s; } } /** + * + * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userIpAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserIpAddressBytes() { + public com.google.protobuf.ByteString getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userIpAddress_ = b; return b; } else { @@ -241,9 +272,12 @@ public java.lang.String getUserIpAddress() { } public static final int EXPECTED_ACTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object expectedAction_ = ""; /** + * + * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -251,6 +285,7 @@ public java.lang.String getUserIpAddress() {
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expectedAction. */ @java.lang.Override @@ -259,14 +294,15 @@ public java.lang.String getExpectedAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expectedAction_ = s; return s; } } /** + * + * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -274,16 +310,15 @@ public java.lang.String getExpectedAction() {
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for expectedAction. */ @java.lang.Override - public com.google.protobuf.ByteString - getExpectedActionBytes() { + public com.google.protobuf.ByteString getExpectedActionBytes() { java.lang.Object ref = expectedAction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); expectedAction_ = b; return b; } else { @@ -294,12 +329,15 @@ public java.lang.String getExpectedAction() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Optional. Unique stable hashed user identifier for the request. The
    * identifier must be hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ @java.lang.Override @@ -310,13 +348,18 @@ public com.google.protobuf.ByteString getHashedAccountId() { public static final int TRANSACTION_DATA_FIELD_NUMBER = 13; private com.google.recaptchaenterprise.v1beta1.TransactionData transactionData_; /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionData field is set. */ @java.lang.Override @@ -324,34 +367,49 @@ public boolean hasTransactionData() { return transactionData_ != null; } /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionData. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData getTransactionData() { - return transactionData_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() : transactionData_; + return transactionData_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() + : transactionData_; } /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder getTransactionDataOrBuilder() { - return transactionData_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() : transactionData_; + public com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder + getTransactionDataOrBuilder() { + return transactionData_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() + : transactionData_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,8 +421,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); } @@ -411,12 +468,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, expectedAction_); } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, hashedAccountId_); } if (transactionData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getTransactionData()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTransactionData()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -426,29 +481,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.recaptchaenterprise.v1beta1.Event)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.Event other = (com.google.recaptchaenterprise.v1beta1.Event) obj; - - if (!getToken() - .equals(other.getToken())) return false; - if (!getSiteKey() - .equals(other.getSiteKey())) return false; - if (!getUserAgent() - .equals(other.getUserAgent())) return false; - if (!getUserIpAddress() - .equals(other.getUserIpAddress())) return false; - if (!getExpectedAction() - .equals(other.getExpectedAction())) return false; - if (!getHashedAccountId() - .equals(other.getHashedAccountId())) return false; + com.google.recaptchaenterprise.v1beta1.Event other = + (com.google.recaptchaenterprise.v1beta1.Event) obj; + + if (!getToken().equals(other.getToken())) return false; + if (!getSiteKey().equals(other.getSiteKey())) return false; + if (!getUserAgent().equals(other.getUserAgent())) return false; + if (!getUserIpAddress().equals(other.getUserIpAddress())) return false; + if (!getExpectedAction().equals(other.getExpectedAction())) return false; + if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; if (hasTransactionData() != other.hasTransactionData()) return false; if (hasTransactionData()) { - if (!getTransactionData() - .equals(other.getTransactionData())) return false; + if (!getTransactionData().equals(other.getTransactionData())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -482,128 +531,128 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Event parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.Event parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.Event parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Event} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Event} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.Event) com.google.recaptchaenterprise.v1beta1.EventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.Event.class, com.google.recaptchaenterprise.v1beta1.Event.Builder.class); + com.google.recaptchaenterprise.v1beta1.Event.class, + com.google.recaptchaenterprise.v1beta1.Event.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.Event.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -623,9 +672,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; } @java.lang.Override @@ -644,8 +693,11 @@ public com.google.recaptchaenterprise.v1beta1.Event build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.Event buildPartial() { - com.google.recaptchaenterprise.v1beta1.Event result = new com.google.recaptchaenterprise.v1beta1.Event(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.Event result = + new com.google.recaptchaenterprise.v1beta1.Event(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -671,9 +723,8 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.Event result) result.hashedAccountId_ = hashedAccountId_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.transactionData_ = transactionDataBuilder_ == null - ? transactionData_ - : transactionDataBuilder_.build(); + result.transactionData_ = + transactionDataBuilder_ == null ? transactionData_ : transactionDataBuilder_.build(); } } @@ -681,38 +732,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.Event result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.Event) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.Event)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.Event) other); } else { super.mergeFrom(other); return this; @@ -778,49 +830,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - token_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - siteKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - userAgent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - userIpAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - expectedAction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 106: { - input.readMessage( - getTransactionDataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + siteKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + userAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + userIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + expectedAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 106: + { + input.readMessage(getTransactionDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -830,23 +888,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object token_ = ""; /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; @@ -855,21 +916,22 @@ public java.lang.String getToken() { } } /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for token. */ - public com.google.protobuf.ByteString - getTokenBytes() { + public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); token_ = b; return b; } else { @@ -877,30 +939,37 @@ public java.lang.String getToken() { } } /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The token to set. * @return This builder for chaining. */ - public Builder setToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } token_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearToken() { @@ -910,18 +979,22 @@ public Builder clearToken() { return this; } /** + * + * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for token to set. * @return This builder for chaining. */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); token_ = value; bitField0_ |= 0x00000001; @@ -931,19 +1004,21 @@ public Builder setTokenBytes( private java.lang.Object siteKey_ = ""; /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The siteKey. */ public java.lang.String getSiteKey() { java.lang.Object ref = siteKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteKey_ = s; return s; @@ -952,21 +1027,22 @@ public java.lang.String getSiteKey() { } } /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for siteKey. */ - public com.google.protobuf.ByteString - getSiteKeyBytes() { + public com.google.protobuf.ByteString getSiteKeyBytes() { java.lang.Object ref = siteKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); siteKey_ = b; return b; } else { @@ -974,30 +1050,37 @@ public java.lang.String getSiteKey() { } } /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The siteKey to set. * @return This builder for chaining. */ - public Builder setSiteKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSiteKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } siteKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSiteKey() { @@ -1007,18 +1090,22 @@ public Builder clearSiteKey() { return this; } /** + * + * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for siteKey to set. * @return This builder for chaining. */ - public Builder setSiteKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSiteKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); siteKey_ = value; bitField0_ |= 0x00000002; @@ -1028,19 +1115,21 @@ public Builder setSiteKeyBytes( private java.lang.Object userAgent_ = ""; /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; @@ -1049,21 +1138,22 @@ public java.lang.String getUserAgent() { } } /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1071,30 +1161,37 @@ public java.lang.String getUserAgent() { } } /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } userAgent_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -1104,18 +1201,22 @@ public Builder clearUserAgent() { return this; } /** + * + * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); userAgent_ = value; bitField0_ |= 0x00000004; @@ -1125,19 +1226,21 @@ public Builder setUserAgentBytes( private java.lang.Object userIpAddress_ = ""; /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userIpAddress. */ public java.lang.String getUserIpAddress() { java.lang.Object ref = userIpAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userIpAddress_ = s; return s; @@ -1146,21 +1249,22 @@ public java.lang.String getUserIpAddress() { } } /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userIpAddress. */ - public com.google.protobuf.ByteString - getUserIpAddressBytes() { + public com.google.protobuf.ByteString getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userIpAddress_ = b; return b; } else { @@ -1168,30 +1272,37 @@ public java.lang.String getUserIpAddress() { } } /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The userIpAddress to set. * @return This builder for chaining. */ - public Builder setUserIpAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } userIpAddress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUserIpAddress() { @@ -1201,18 +1312,22 @@ public Builder clearUserIpAddress() { return this; } /** + * + * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for userIpAddress to set. * @return This builder for chaining. */ - public Builder setUserIpAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); userIpAddress_ = value; bitField0_ |= 0x00000008; @@ -1222,6 +1337,8 @@ public Builder setUserIpAddressBytes( private java.lang.Object expectedAction_ = ""; /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1229,13 +1346,13 @@ public Builder setUserIpAddressBytes(
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expectedAction. */ public java.lang.String getExpectedAction() { java.lang.Object ref = expectedAction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expectedAction_ = s; return s; @@ -1244,6 +1361,8 @@ public java.lang.String getExpectedAction() { } } /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1251,15 +1370,14 @@ public java.lang.String getExpectedAction() {
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for expectedAction. */ - public com.google.protobuf.ByteString - getExpectedActionBytes() { + public com.google.protobuf.ByteString getExpectedActionBytes() { java.lang.Object ref = expectedAction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); expectedAction_ = b; return b; } else { @@ -1267,6 +1385,8 @@ public java.lang.String getExpectedAction() { } } /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1274,18 +1394,22 @@ public java.lang.String getExpectedAction() {
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The expectedAction to set. * @return This builder for chaining. */ - public Builder setExpectedAction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExpectedAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } expectedAction_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1293,6 +1417,7 @@ public Builder setExpectedAction(
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExpectedAction() { @@ -1302,6 +1427,8 @@ public Builder clearExpectedAction() { return this; } /** + * + * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1309,12 +1436,14 @@ public Builder clearExpectedAction() {
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for expectedAction to set. * @return This builder for chaining. */ - public Builder setExpectedActionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); expectedAction_ = value; bitField0_ |= 0x00000010; @@ -1324,12 +1453,15 @@ public Builder setExpectedActionBytes( private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ @java.lang.Override @@ -1337,29 +1469,37 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** + * + * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } hashedAccountId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -1371,47 +1511,67 @@ public Builder clearHashedAccountId() { private com.google.recaptchaenterprise.v1beta1.TransactionData transactionData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder> transactionDataBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData, + com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder> + transactionDataBuilder_; /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionData field is set. */ public boolean hasTransactionData() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionData. */ public com.google.recaptchaenterprise.v1beta1.TransactionData getTransactionData() { if (transactionDataBuilder_ == null) { - return transactionData_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() : transactionData_; + return transactionData_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() + : transactionData_; } else { return transactionDataBuilder_.getMessage(); } } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTransactionData(com.google.recaptchaenterprise.v1beta1.TransactionData value) { + public Builder setTransactionData( + com.google.recaptchaenterprise.v1beta1.TransactionData value) { if (transactionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1425,13 +1585,17 @@ public Builder setTransactionData(com.google.recaptchaenterprise.v1beta1.Transac return this; } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransactionData( com.google.recaptchaenterprise.v1beta1.TransactionData.Builder builderForValue) { @@ -1445,19 +1609,25 @@ public Builder setTransactionData( return this; } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeTransactionData(com.google.recaptchaenterprise.v1beta1.TransactionData value) { + public Builder mergeTransactionData( + com.google.recaptchaenterprise.v1beta1.TransactionData value) { if (transactionDataBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - transactionData_ != null && - transactionData_ != com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && transactionData_ != null + && transactionData_ + != com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance()) { getTransactionDataBuilder().mergeFrom(value); } else { transactionData_ = value; @@ -1470,13 +1640,17 @@ public Builder mergeTransactionData(com.google.recaptchaenterprise.v1beta1.Trans return this; } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTransactionData() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1489,61 +1663,79 @@ public Builder clearTransactionData() { return this; } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.Builder getTransactionDataBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Builder + getTransactionDataBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTransactionDataFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder getTransactionDataOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder + getTransactionDataOrBuilder() { if (transactionDataBuilder_ != null) { return transactionDataBuilder_.getMessageOrBuilder(); } else { - return transactionData_ == null ? - com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() : transactionData_; + return transactionData_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() + : transactionData_; } } /** + * + * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData, + com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder> getTransactionDataFieldBuilder() { if (transactionDataBuilder_ == null) { - transactionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder>( - getTransactionData(), - getParentForChildren(), - isClean()); + transactionDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData, + com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder>( + getTransactionData(), getParentForChildren(), isClean()); transactionData_ = null; } return transactionDataBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1553,12 +1745,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.Event) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.Event) private static final com.google.recaptchaenterprise.v1beta1.Event DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.Event(); } @@ -1567,27 +1759,27 @@ public static com.google.recaptchaenterprise.v1beta1.Event getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Event parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1602,6 +1794,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java similarity index 75% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java index 8d0f4e4854cc..88fcfd7ceffd 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java @@ -1,101 +1,139 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface EventOrBuilder extends +public interface EventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.Event) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The token. */ java.lang.String getToken(); /** + * + * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for token. */ - com.google.protobuf.ByteString - getTokenBytes(); + com.google.protobuf.ByteString getTokenBytes(); /** + * + * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The siteKey. */ java.lang.String getSiteKey(); /** + * + * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for siteKey. */ - com.google.protobuf.ByteString - getSiteKeyBytes(); + com.google.protobuf.ByteString getSiteKeyBytes(); /** + * + * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ java.lang.String getUserAgent(); /** + * + * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString - getUserAgentBytes(); + com.google.protobuf.ByteString getUserAgentBytes(); /** + * + * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userIpAddress. */ java.lang.String getUserIpAddress(); /** + * + * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userIpAddress. */ - com.google.protobuf.ByteString - getUserIpAddressBytes(); + com.google.protobuf.ByteString getUserIpAddressBytes(); /** + * + * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -103,10 +141,13 @@ public interface EventOrBuilder extends
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expectedAction. */ java.lang.String getExpectedAction(); /** + * + * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -114,52 +155,69 @@ public interface EventOrBuilder extends
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for expectedAction. */ - com.google.protobuf.ByteString - getExpectedActionBytes(); + com.google.protobuf.ByteString getExpectedActionBytes(); /** + * + * *
    * Optional. Unique stable hashed user identifier for the request. The
    * identifier must be hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedAccountId. */ com.google.protobuf.ByteString getHashedAccountId(); /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transactionData field is set. */ boolean hasTransactionData(); /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transactionData. */ com.google.recaptchaenterprise.v1beta1.TransactionData getTransactionData(); /** + * + * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder getTransactionDataOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java similarity index 54% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java index c3c3558b103f..98d372dc0e7d 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java @@ -1,111 +1,142 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * Assessment for Fraud Prevention.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment} */ -public final class FraudPreventionAssessment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FraudPreventionAssessment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) FraudPreventionAssessmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FraudPreventionAssessment.newBuilder() to construct. private FraudPreventionAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FraudPreventionAssessment() { - } + + private FraudPreventionAssessment() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FraudPreventionAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class); } - public interface StolenInstrumentVerdictOrBuilder extends + public interface StolenInstrumentVerdictOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Probability (0-1) of this transaction being executed with a stolen
      * instrument.
      * 
* * float risk = 1; + * * @return The risk. */ float getRisk(); } /** + * + * *
    * Information about stolen instrument fraud, where the user is not the
    * legitimate owner of the instrument being used for the purchase.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict} */ - public static final class StolenInstrumentVerdict extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StolenInstrumentVerdict extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) StolenInstrumentVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StolenInstrumentVerdict.newBuilder() to construct. private StolenInstrumentVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StolenInstrumentVerdict() { - } + + private StolenInstrumentVerdict() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StolenInstrumentVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.class, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.Builder.class); } public static final int RISK_FIELD_NUMBER = 1; private float risk_ = 0F; /** + * + * *
      * Probability (0-1) of this transaction being executed with a stolen
      * instrument.
      * 
* * float risk = 1; + * * @return The risk. */ @java.lang.Override @@ -114,6 +145,7 @@ public float getRisk() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +157,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(risk_) != 0) { output.writeFloat(1, risk_); } @@ -140,8 +171,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(risk_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, risk_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,16 +181,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)) { + if (!(obj + instanceof + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict other = (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) obj; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + other = + (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict) + obj; if (java.lang.Float.floatToIntBits(getRisk()) - != java.lang.Float.floatToIntBits( - other.getRisk())) return false; + != java.lang.Float.floatToIntBits(other.getRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,97 +209,120 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -273,40 +332,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about stolen instrument fraud, where the user is not the
      * legitimate owner of the instrument being used for the purchase.
      * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.class, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.Builder.class); } - // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -316,19 +382,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict build() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict result = buildPartial(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + build() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -336,14 +408,23 @@ public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenIn } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict buildPartial() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict result = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + buildPartial() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + result = + new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.risk_ = risk_; @@ -354,46 +435,59 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)other); + if (other + instanceof + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict) { + return mergeFrom( + (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict other) { - if (other == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + other) { + if (other + == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.getDefaultInstance()) return this; if (other.getRisk() != 0F) { setRisk(other.getRisk()); } @@ -423,17 +517,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - risk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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) { @@ -443,16 +539,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float risk_ ; + private float risk_; /** + * + * *
        * Probability (0-1) of this transaction being executed with a stolen
        * instrument.
        * 
* * float risk = 1; + * * @return The risk. */ @java.lang.Override @@ -460,12 +560,15 @@ public float getRisk() { return risk_; } /** + * + * *
        * Probability (0-1) of this transaction being executed with a stolen
        * instrument.
        * 
* * float risk = 1; + * * @param value The risk to set. * @return This builder for chaining. */ @@ -477,12 +580,15 @@ public Builder setRisk(float value) { return this; } /** + * + * *
        * Probability (0-1) of this transaction being executed with a stolen
        * instrument.
        * 
* * float risk = 1; + * * @return This builder for chaining. */ public Builder clearRisk() { @@ -491,6 +597,7 @@ public Builder clearRisk() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -503,41 +610,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) - private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict(); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StolenInstrumentVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StolenInstrumentVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -549,76 +663,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CardTestingVerdictOrBuilder extends + public interface CardTestingVerdictOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Probability (0-1) of this transaction attempt being part of a card
      * testing attack.
      * 
* * float risk = 1; + * * @return The risk. */ float getRisk(); } /** + * + * *
    * Information about card testing fraud, where an adversary is testing
    * fraudulently obtained cards or brute forcing their details.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict} */ - public static final class CardTestingVerdict extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CardTestingVerdict extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) CardTestingVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CardTestingVerdict.newBuilder() to construct. private CardTestingVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CardTestingVerdict() { - } + + private CardTestingVerdict() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CardTestingVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .class, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .Builder.class); } public static final int RISK_FIELD_NUMBER = 1; private float risk_ = 0F; /** + * + * *
      * Probability (0-1) of this transaction attempt being part of a card
      * testing attack.
      * 
* * float risk = 1; + * * @return The risk. */ @java.lang.Override @@ -627,6 +754,7 @@ public float getRisk() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -638,8 +766,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(risk_) != 0) { output.writeFloat(1, risk_); } @@ -653,8 +780,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(risk_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, risk_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -664,16 +790,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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)) { + if (!(obj + instanceof + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict other = (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) obj; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict other = + (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) obj; if (java.lang.Float.floatToIntBits(getRisk()) - != java.lang.Float.floatToIntBits( - other.getRisk())) return false; + != java.lang.Float.floatToIntBits(other.getRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -686,97 +814,120 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -786,40 +937,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about card testing fraud, where an adversary is testing
      * fraudulently obtained cards or brute forcing their details.
      * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .class, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .Builder.class); } - // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -829,19 +987,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict build() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result = buildPartial(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + build() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -849,14 +1011,21 @@ public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTest } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict buildPartial() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + buildPartial() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result = + new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.risk_ = risk_; @@ -867,46 +1036,57 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)other); + if (other + instanceof + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) { + return mergeFrom( + (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict other) { - if (other == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + other) { + if (other + == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance()) return this; if (other.getRisk() != 0F) { setRisk(other.getRisk()); } @@ -936,17 +1116,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - risk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -956,16 +1138,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float risk_ ; + private float risk_; /** + * + * *
        * Probability (0-1) of this transaction attempt being part of a card
        * testing attack.
        * 
* * float risk = 1; + * * @return The risk. */ @java.lang.Override @@ -973,12 +1159,15 @@ public float getRisk() { return risk_; } /** + * + * *
        * Probability (0-1) of this transaction attempt being part of a card
        * testing attack.
        * 
* * float risk = 1; + * * @param value The risk to set. * @return This builder for chaining. */ @@ -990,12 +1179,15 @@ public Builder setRisk(float value) { return this; } /** + * + * *
        * Probability (0-1) of this transaction attempt being part of a card
        * testing attack.
        * 
* * float risk = 1; + * * @return This builder for chaining. */ public Builder clearRisk() { @@ -1004,6 +1196,7 @@ public Builder clearRisk() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1016,41 +1209,47 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) - private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict(); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CardTestingVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardTestingVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1062,75 +1261,88 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BehavioralTrustVerdictOrBuilder extends + public interface BehavioralTrustVerdictOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Probability (0-1) of this transaction attempt being executed in a
      * behaviorally trustworthy way.
      * 
* * float trust = 1; + * * @return The trust. */ float getTrust(); } /** + * + * *
    * Information about behavioral trust of the transaction.
    * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict} */ - public static final class BehavioralTrustVerdict extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BehavioralTrustVerdict extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) BehavioralTrustVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BehavioralTrustVerdict.newBuilder() to construct. private BehavioralTrustVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BehavioralTrustVerdict() { - } + + private BehavioralTrustVerdict() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BehavioralTrustVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.class, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.Builder.class); } public static final int TRUST_FIELD_NUMBER = 1; private float trust_ = 0F; /** + * + * *
      * Probability (0-1) of this transaction attempt being executed in a
      * behaviorally trustworthy way.
      * 
* * float trust = 1; + * * @return The trust. */ @java.lang.Override @@ -1139,6 +1351,7 @@ public float getTrust() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1150,8 +1363,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(trust_) != 0) { output.writeFloat(1, trust_); } @@ -1165,8 +1377,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(trust_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, trust_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, trust_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1176,16 +1387,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict)) { + if (!(obj + instanceof + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict other = (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) obj; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + other = + (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict) + obj; if (java.lang.Float.floatToIntBits(getTrust()) - != java.lang.Float.floatToIntBits( - other.getTrust())) return false; + != java.lang.Float.floatToIntBits(other.getTrust())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1198,97 +1415,120 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRUST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTrust()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTrust()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + 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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1298,39 +1538,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about behavioral trust of the transaction.
      * 
* - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict} + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.class, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.Builder.class); } - // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.newBuilder() - private Builder() { - - } + // Construct using + // com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1340,19 +1587,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict build() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict result = buildPartial(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + build() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1360,14 +1611,22 @@ public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Behavior } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict buildPartial() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict result = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + buildPartial() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + result = + new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.trust_ = trust_; @@ -1378,46 +1637,59 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict)other); + if (other + instanceof + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict) { + return mergeFrom( + (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict other) { - if (other == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + other) { + if (other + == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.getDefaultInstance()) return this; if (other.getTrust() != 0F) { setTrust(other.getTrust()); } @@ -1447,17 +1719,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - trust_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + trust_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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) { @@ -1467,16 +1741,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float trust_ ; + private float trust_; /** + * + * *
        * Probability (0-1) of this transaction attempt being executed in a
        * behaviorally trustworthy way.
        * 
* * float trust = 1; + * * @return The trust. */ @java.lang.Override @@ -1484,12 +1762,15 @@ public float getTrust() { return trust_; } /** + * + * *
        * Probability (0-1) of this transaction attempt being executed in a
        * behaviorally trustworthy way.
        * 
* * float trust = 1; + * * @param value The trust to set. * @return This builder for chaining. */ @@ -1501,12 +1782,15 @@ public Builder setTrust(float value) { return this; } /** + * + * *
        * Probability (0-1) of this transaction attempt being executed in a
        * behaviorally trustworthy way.
        * 
* * float trust = 1; + * * @return This builder for chaining. */ public Builder clearTrust() { @@ -1515,6 +1799,7 @@ public Builder clearTrust() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1527,41 +1812,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) - private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict(); + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict(); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BehavioralTrustVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BehavioralTrustVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1573,21 +1865,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int TRANSACTION_RISK_FIELD_NUMBER = 1; private float transactionRisk_ = 0F; /** + * + * *
    * Probability (0-1) of this transaction being fraudulent. Summarizes the
    * combined risk of attack vectors below.
    * 
* * float transaction_risk = 1; + * * @return The transactionRisk. */ @java.lang.Override @@ -1596,13 +1891,19 @@ public float getTransactionRisk() { } public static final int STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER = 2; - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolenInstrumentVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + stolenInstrumentVerdict_; /** + * + * *
    * Assessment of this transaction for risk of a stolen instrument.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * * @return Whether the stolenInstrumentVerdict field is set. */ @java.lang.Override @@ -1610,38 +1911,62 @@ public boolean hasStolenInstrumentVerdict() { return stolenInstrumentVerdict_ != null; } /** + * + * *
    * Assessment of this transaction for risk of a stolen instrument.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * * @return The stolenInstrumentVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict() { - return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + getStolenInstrumentVerdict() { + return stolenInstrumentVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + .getDefaultInstance() + : stolenInstrumentVerdict_; } /** + * + * *
    * Assessment of this transaction for risk of a stolen instrument.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder() { - return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder + getStolenInstrumentVerdictOrBuilder() { + return stolenInstrumentVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + .getDefaultInstance() + : stolenInstrumentVerdict_; } public static final int CARD_TESTING_VERDICT_FIELD_NUMBER = 3; - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict cardTestingVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + cardTestingVerdict_; /** + * + * *
    * Assessment of this transaction for risk of being part of a card testing
    * attack.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * * @return Whether the cardTestingVerdict field is set. */ @java.lang.Override @@ -1649,39 +1974,63 @@ public boolean hasCardTestingVerdict() { return cardTestingVerdict_ != null; } /** + * + * *
    * Assessment of this transaction for risk of being part of a card testing
    * attack.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * * @return The cardTestingVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict() { - return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + getCardTestingVerdict() { + return cardTestingVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance() + : cardTestingVerdict_; } /** + * + * *
    * Assessment of this transaction for risk of being part of a card testing
    * attack.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder() { - return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdictOrBuilder + getCardTestingVerdictOrBuilder() { + return cardTestingVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance() + : cardTestingVerdict_; } public static final int BEHAVIORAL_TRUST_VERDICT_FIELD_NUMBER = 4; - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioralTrustVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + behavioralTrustVerdict_; /** + * + * *
    * Assessment of this transaction for behavioral trust.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * * @return Whether the behavioralTrustVerdict field is set. */ @java.lang.Override @@ -1689,30 +2038,49 @@ public boolean hasBehavioralTrustVerdict() { return behavioralTrustVerdict_ != null; } /** + * + * *
    * Assessment of this transaction for behavioral trust.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * * @return The behavioralTrustVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict() { - return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + getBehavioralTrustVerdict() { + return behavioralTrustVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + .getDefaultInstance() + : behavioralTrustVerdict_; } /** + * + * *
    * Assessment of this transaction for behavioral trust.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder() { - return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder + getBehavioralTrustVerdictOrBuilder() { + return behavioralTrustVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + .getDefaultInstance() + : behavioralTrustVerdict_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1724,8 +2092,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) { output.writeFloat(1, transactionRisk_); } @@ -1748,20 +2115,18 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, transactionRisk_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, transactionRisk_); } if (stolenInstrumentVerdict_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStolenInstrumentVerdict()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStolenInstrumentVerdict()); } if (cardTestingVerdict_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCardTestingVerdict()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCardTestingVerdict()); } if (behavioralTrustVerdict_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getBehavioralTrustVerdict()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBehavioralTrustVerdict()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1771,30 +2136,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other = (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) obj; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other = + (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) obj; if (java.lang.Float.floatToIntBits(getTransactionRisk()) - != java.lang.Float.floatToIntBits( - other.getTransactionRisk())) return false; + != java.lang.Float.floatToIntBits(other.getTransactionRisk())) return false; if (hasStolenInstrumentVerdict() != other.hasStolenInstrumentVerdict()) return false; if (hasStolenInstrumentVerdict()) { - if (!getStolenInstrumentVerdict() - .equals(other.getStolenInstrumentVerdict())) return false; + if (!getStolenInstrumentVerdict().equals(other.getStolenInstrumentVerdict())) return false; } if (hasCardTestingVerdict() != other.hasCardTestingVerdict()) return false; if (hasCardTestingVerdict()) { - if (!getCardTestingVerdict() - .equals(other.getCardTestingVerdict())) return false; + if (!getCardTestingVerdict().equals(other.getCardTestingVerdict())) return false; } if (hasBehavioralTrustVerdict() != other.hasBehavioralTrustVerdict()) return false; if (hasBehavioralTrustVerdict()) { - if (!getBehavioralTrustVerdict() - .equals(other.getBehavioralTrustVerdict())) return false; + if (!getBehavioralTrustVerdict().equals(other.getBehavioralTrustVerdict())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1808,8 +2170,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRANSACTION_RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTransactionRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTransactionRisk()); if (hasStolenInstrumentVerdict()) { hash = (37 * hash) + STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER; hash = (53 * hash) + getStolenInstrumentVerdict().hashCode(); @@ -1828,131 +2189,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Assessment for Fraud Prevention.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1977,13 +2343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance(); } @@ -1998,31 +2365,38 @@ public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment build() @java.lang.Override public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment buildPartial() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result = + new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transactionRisk_ = transactionRisk_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.stolenInstrumentVerdict_ = stolenInstrumentVerdictBuilder_ == null - ? stolenInstrumentVerdict_ - : stolenInstrumentVerdictBuilder_.build(); + result.stolenInstrumentVerdict_ = + stolenInstrumentVerdictBuilder_ == null + ? stolenInstrumentVerdict_ + : stolenInstrumentVerdictBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cardTestingVerdict_ = cardTestingVerdictBuilder_ == null - ? cardTestingVerdict_ - : cardTestingVerdictBuilder_.build(); + result.cardTestingVerdict_ = + cardTestingVerdictBuilder_ == null + ? cardTestingVerdict_ + : cardTestingVerdictBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.behavioralTrustVerdict_ = behavioralTrustVerdictBuilder_ == null - ? behavioralTrustVerdict_ - : behavioralTrustVerdictBuilder_.build(); + result.behavioralTrustVerdict_ = + behavioralTrustVerdictBuilder_ == null + ? behavioralTrustVerdict_ + : behavioralTrustVerdictBuilder_.build(); } } @@ -2030,46 +2404,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other) { - if (other == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other) { + if (other + == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance()) + return this; if (other.getTransactionRisk() != 0F) { setTransactionRisk(other.getTransactionRisk()); } @@ -2108,38 +2486,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - transactionRisk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 18: { - input.readMessage( - getStolenInstrumentVerdictFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCardTestingVerdictFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getBehavioralTrustVerdictFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + transactionRisk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: + { + input.readMessage( + getStolenInstrumentVerdictFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCardTestingVerdictFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getBehavioralTrustVerdictFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -2149,16 +2529,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float transactionRisk_ ; + private float transactionRisk_; /** + * + * *
      * Probability (0-1) of this transaction being fraudulent. Summarizes the
      * combined risk of attack vectors below.
      * 
* * float transaction_risk = 1; + * * @return The transactionRisk. */ @java.lang.Override @@ -2166,12 +2550,15 @@ public float getTransactionRisk() { return transactionRisk_; } /** + * + * *
      * Probability (0-1) of this transaction being fraudulent. Summarizes the
      * combined risk of attack vectors below.
      * 
* * float transaction_risk = 1; + * * @param value The transactionRisk to set. * @return This builder for chaining. */ @@ -2183,12 +2570,15 @@ public Builder setTransactionRisk(float value) { return this; } /** + * + * *
      * Probability (0-1) of this transaction being fraudulent. Summarizes the
      * combined risk of attack vectors below.
      * 
* * float transaction_risk = 1; + * * @return This builder for chaining. */ public Builder clearTransactionRisk() { @@ -2198,43 +2588,70 @@ public Builder clearTransactionRisk() { return this; } - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolenInstrumentVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + stolenInstrumentVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder> stolenInstrumentVerdictBuilder_; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder> + stolenInstrumentVerdictBuilder_; /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * * @return Whether the stolenInstrumentVerdict field is set. */ public boolean hasStolenInstrumentVerdict() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * * @return The stolenInstrumentVerdict. */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + getStolenInstrumentVerdict() { if (stolenInstrumentVerdictBuilder_ == null) { - return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; + return stolenInstrumentVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.getDefaultInstance() + : stolenInstrumentVerdict_; } else { return stolenInstrumentVerdictBuilder_.getMessage(); } } /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * */ - public Builder setStolenInstrumentVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict value) { + public Builder setStolenInstrumentVerdict( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + value) { if (stolenInstrumentVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2248,14 +2665,20 @@ public Builder setStolenInstrumentVerdict(com.google.recaptchaenterprise.v1beta1 return this; } /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * */ public Builder setStolenInstrumentVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder builderForValue) { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder + builderForValue) { if (stolenInstrumentVerdictBuilder_ == null) { stolenInstrumentVerdict_ = builderForValue.build(); } else { @@ -2266,17 +2689,25 @@ public Builder setStolenInstrumentVerdict( return this; } /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * */ - public Builder mergeStolenInstrumentVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict value) { + public Builder mergeStolenInstrumentVerdict( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + value) { if (stolenInstrumentVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - stolenInstrumentVerdict_ != null && - stolenInstrumentVerdict_ != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && stolenInstrumentVerdict_ != null + && stolenInstrumentVerdict_ + != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.getDefaultInstance()) { getStolenInstrumentVerdictBuilder().mergeFrom(value); } else { stolenInstrumentVerdict_ = value; @@ -2289,11 +2720,15 @@ public Builder mergeStolenInstrumentVerdict(com.google.recaptchaenterprise.v1bet return this; } /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * */ public Builder clearStolenInstrumentVerdict() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2306,93 +2741,145 @@ public Builder clearStolenInstrumentVerdict() { return this; } /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder getStolenInstrumentVerdictBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder + getStolenInstrumentVerdictBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStolenInstrumentVerdictFieldBuilder().getBuilder(); } /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder + getStolenInstrumentVerdictOrBuilder() { if (stolenInstrumentVerdictBuilder_ != null) { return stolenInstrumentVerdictBuilder_.getMessageOrBuilder(); } else { - return stolenInstrumentVerdict_ == null ? - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; + return stolenInstrumentVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.getDefaultInstance() + : stolenInstrumentVerdict_; } } /** + * + * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder> + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + .Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder> getStolenInstrumentVerdictFieldBuilder() { if (stolenInstrumentVerdictBuilder_ == null) { - stolenInstrumentVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder>( - getStolenInstrumentVerdict(), - getParentForChildren(), - isClean()); + stolenInstrumentVerdictBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdict.Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .StolenInstrumentVerdictOrBuilder>( + getStolenInstrumentVerdict(), getParentForChildren(), isClean()); stolenInstrumentVerdict_ = null; } return stolenInstrumentVerdictBuilder_; } - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict cardTestingVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + cardTestingVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> cardTestingVerdictBuilder_; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdictOrBuilder> + cardTestingVerdictBuilder_; /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * * @return Whether the cardTestingVerdict field is set. */ public boolean hasCardTestingVerdict() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * * @return The cardTestingVerdict. */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + getCardTestingVerdict() { if (cardTestingVerdictBuilder_ == null) { - return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; + return cardTestingVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance() + : cardTestingVerdict_; } else { return cardTestingVerdictBuilder_.getMessage(); } } /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * */ - public Builder setCardTestingVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) { + public Builder setCardTestingVerdict( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) { if (cardTestingVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2406,15 +2893,20 @@ public Builder setCardTestingVerdict(com.google.recaptchaenterprise.v1beta1.Frau return this; } /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * */ public Builder setCardTestingVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder builderForValue) { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder + builderForValue) { if (cardTestingVerdictBuilder_ == null) { cardTestingVerdict_ = builderForValue.build(); } else { @@ -2425,18 +2917,25 @@ public Builder setCardTestingVerdict( return this; } /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * */ - public Builder mergeCardTestingVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) { + public Builder mergeCardTestingVerdict( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) { if (cardTestingVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - cardTestingVerdict_ != null && - cardTestingVerdict_ != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && cardTestingVerdict_ != null + && cardTestingVerdict_ + != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdict.getDefaultInstance()) { getCardTestingVerdictBuilder().mergeFrom(value); } else { cardTestingVerdict_ = value; @@ -2449,12 +2948,16 @@ public Builder mergeCardTestingVerdict(com.google.recaptchaenterprise.v1beta1.Fr return this; } /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * */ public Builder clearCardTestingVerdict() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2467,93 +2970,144 @@ public Builder clearCardTestingVerdict() { return this; } /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder getCardTestingVerdictBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .Builder + getCardTestingVerdictBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCardTestingVerdictFieldBuilder().getBuilder(); } /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdictOrBuilder + getCardTestingVerdictOrBuilder() { if (cardTestingVerdictBuilder_ != null) { return cardTestingVerdictBuilder_.getMessageOrBuilder(); } else { - return cardTestingVerdict_ == null ? - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; + return cardTestingVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .getDefaultInstance() + : cardTestingVerdict_; } } /** + * + * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdictOrBuilder> getCardTestingVerdictFieldBuilder() { if (cardTestingVerdictBuilder_ == null) { - cardTestingVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder>( - getCardTestingVerdict(), - getParentForChildren(), - isClean()); + cardTestingVerdictBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + .Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .CardTestingVerdictOrBuilder>( + getCardTestingVerdict(), getParentForChildren(), isClean()); cardTestingVerdict_ = null; } return cardTestingVerdictBuilder_; } - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioralTrustVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + behavioralTrustVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder> behavioralTrustVerdictBuilder_; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder> + behavioralTrustVerdictBuilder_; /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * * @return Whether the behavioralTrustVerdict field is set. */ public boolean hasBehavioralTrustVerdict() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * * @return The behavioralTrustVerdict. */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + getBehavioralTrustVerdict() { if (behavioralTrustVerdictBuilder_ == null) { - return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; + return behavioralTrustVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.getDefaultInstance() + : behavioralTrustVerdict_; } else { return behavioralTrustVerdictBuilder_.getMessage(); } } /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * */ - public Builder setBehavioralTrustVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict value) { + public Builder setBehavioralTrustVerdict( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + value) { if (behavioralTrustVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2567,14 +3121,20 @@ public Builder setBehavioralTrustVerdict(com.google.recaptchaenterprise.v1beta1. return this; } /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * */ public Builder setBehavioralTrustVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder builderForValue) { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder + builderForValue) { if (behavioralTrustVerdictBuilder_ == null) { behavioralTrustVerdict_ = builderForValue.build(); } else { @@ -2585,17 +3145,25 @@ public Builder setBehavioralTrustVerdict( return this; } /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * */ - public Builder mergeBehavioralTrustVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict value) { + public Builder mergeBehavioralTrustVerdict( + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + value) { if (behavioralTrustVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - behavioralTrustVerdict_ != null && - behavioralTrustVerdict_ != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && behavioralTrustVerdict_ != null + && behavioralTrustVerdict_ + != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.getDefaultInstance()) { getBehavioralTrustVerdictBuilder().mergeFrom(value); } else { behavioralTrustVerdict_ = value; @@ -2608,11 +3176,15 @@ public Builder mergeBehavioralTrustVerdict(com.google.recaptchaenterprise.v1beta return this; } /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * */ public Builder clearBehavioralTrustVerdict() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2625,55 +3197,81 @@ public Builder clearBehavioralTrustVerdict() { return this; } /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder getBehavioralTrustVerdictBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder + getBehavioralTrustVerdictBuilder() { bitField0_ |= 0x00000008; onChanged(); return getBehavioralTrustVerdictFieldBuilder().getBuilder(); } /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder + getBehavioralTrustVerdictOrBuilder() { if (behavioralTrustVerdictBuilder_ != null) { return behavioralTrustVerdictBuilder_.getMessageOrBuilder(); } else { - return behavioralTrustVerdict_ == null ? - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; + return behavioralTrustVerdict_ == null + ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.getDefaultInstance() + : behavioralTrustVerdict_; } } /** + * + * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder> + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + .Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder> getBehavioralTrustVerdictFieldBuilder() { if (behavioralTrustVerdictBuilder_ == null) { - behavioralTrustVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder>( - getBehavioralTrustVerdict(), - getParentForChildren(), - isClean()); + behavioralTrustVerdictBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdict.Builder, + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + .BehavioralTrustVerdictOrBuilder>( + getBehavioralTrustVerdict(), getParentForChildren(), isClean()); behavioralTrustVerdict_ = null; } return behavioralTrustVerdictBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2683,41 +3281,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) - private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment(); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FraudPreventionAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FraudPreventionAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2729,9 +3329,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java new file mode 100644 index 000000000000..2a2b0ecde477 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java @@ -0,0 +1,171 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface FraudPreventionAssessmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Probability (0-1) of this transaction being fraudulent. Summarizes the
+   * combined risk of attack vectors below.
+   * 
+ * + * float transaction_risk = 1; + * + * @return The transactionRisk. + */ + float getTransactionRisk(); + + /** + * + * + *
+   * Assessment of this transaction for risk of a stolen instrument.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * + * @return Whether the stolenInstrumentVerdict field is set. + */ + boolean hasStolenInstrumentVerdict(); + /** + * + * + *
+   * Assessment of this transaction for risk of a stolen instrument.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + * + * @return The stolenInstrumentVerdict. + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict + getStolenInstrumentVerdict(); + /** + * + * + *
+   * Assessment of this transaction for risk of a stolen instrument.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder + getStolenInstrumentVerdictOrBuilder(); + + /** + * + * + *
+   * Assessment of this transaction for risk of being part of a card testing
+   * attack.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * + * @return Whether the cardTestingVerdict field is set. + */ + boolean hasCardTestingVerdict(); + /** + * + * + *
+   * Assessment of this transaction for risk of being part of a card testing
+   * attack.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + * + * @return The cardTestingVerdict. + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict + getCardTestingVerdict(); + /** + * + * + *
+   * Assessment of this transaction for risk of being part of a card testing
+   * attack.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder + getCardTestingVerdictOrBuilder(); + + /** + * + * + *
+   * Assessment of this transaction for behavioral trust.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * + * @return Whether the behavioralTrustVerdict field is set. + */ + boolean hasBehavioralTrustVerdict(); + /** + * + * + *
+   * Assessment of this transaction for behavioral trust.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + * + * @return The behavioralTrustVerdict. + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict + getBehavioralTrustVerdict(); + /** + * + * + *
+   * Assessment of this transaction for behavioral trust.
+   * 
+ * + * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder + getBehavioralTrustVerdictOrBuilder(); +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java similarity index 70% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java index a5f55adc3413..6244f0736c82 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * Password leak verification info.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification} */ -public final class PasswordLeakVerification extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PasswordLeakVerification extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) PasswordLeakVerificationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PasswordLeakVerification.newBuilder() to construct. private PasswordLeakVerification(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PasswordLeakVerification() { hashedUserCredentials_ = com.google.protobuf.ByteString.EMPTY; canonicalizedUsername_ = ""; @@ -26,33 +44,38 @@ private PasswordLeakVerification() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PasswordLeakVerification(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.class, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder.class); + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.class, + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder.class); } public static final int HASHED_USER_CREDENTIALS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hashedUserCredentials_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString hashedUserCredentials_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Optional. Scrypt hash of the username+password that the customer wants to
    * verify against a known password leak.
    * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedUserCredentials. */ @java.lang.Override @@ -63,12 +86,15 @@ public com.google.protobuf.ByteString getHashedUserCredentials() { public static final int CREDENTIALS_LEAKED_FIELD_NUMBER = 2; private boolean credentialsLeaked_ = false; /** + * + * *
    * Output only. Whether or not the user's credentials are present in a known
    * leak.
    * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The credentialsLeaked. */ @java.lang.Override @@ -77,9 +103,12 @@ public boolean getCredentialsLeaked() { } public static final int CANONICALIZED_USERNAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object canonicalizedUsername_ = ""; /** + * + * *
    * Optional. The username part of the user credentials for which we want to
    * trigger a leak check in canonicalized form. This is the same data used to
@@ -87,6 +116,7 @@ public boolean getCredentialsLeaked() {
    * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canonicalizedUsername. */ @java.lang.Override @@ -95,14 +125,15 @@ public java.lang.String getCanonicalizedUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalizedUsername_ = s; return s; } } /** + * + * *
    * Optional. The username part of the user credentials for which we want to
    * trigger a leak check in canonicalized form. This is the same data used to
@@ -110,16 +141,15 @@ public java.lang.String getCanonicalizedUsername() {
    * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for canonicalizedUsername. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalizedUsernameBytes() { + public com.google.protobuf.ByteString getCanonicalizedUsernameBytes() { java.lang.Object ref = canonicalizedUsername_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalizedUsername_ = b; return b; } else { @@ -128,6 +158,7 @@ public java.lang.String getCanonicalizedUsername() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +170,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!hashedUserCredentials_.isEmpty()) { output.writeBytes(1, hashedUserCredentials_); } @@ -160,12 +190,10 @@ public int getSerializedSize() { size = 0; if (!hashedUserCredentials_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hashedUserCredentials_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, hashedUserCredentials_); } if (credentialsLeaked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, credentialsLeaked_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, credentialsLeaked_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalizedUsername_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalizedUsername_); @@ -178,19 +206,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.recaptchaenterprise.v1beta1.PasswordLeakVerification)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification other = (com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification) obj; + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification other = + (com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification) obj; - if (!getHashedUserCredentials() - .equals(other.getHashedUserCredentials())) return false; - if (getCredentialsLeaked() - != other.getCredentialsLeaked()) return false; - if (!getCanonicalizedUsername() - .equals(other.getCanonicalizedUsername())) return false; + if (!getHashedUserCredentials().equals(other.getHashedUserCredentials())) return false; + if (getCredentialsLeaked() != other.getCredentialsLeaked()) return false; + if (!getCanonicalizedUsername().equals(other.getCanonicalizedUsername())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,8 +231,7 @@ public int hashCode() { hash = (37 * hash) + HASHED_USER_CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getHashedUserCredentials().hashCode(); hash = (37 * hash) + CREDENTIALS_LEAKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCredentialsLeaked()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCredentialsLeaked()); hash = (37 * hash) + CANONICALIZED_USERNAME_FIELD_NUMBER; hash = (53 * hash) + getCanonicalizedUsername().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -215,131 +240,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Password leak verification info.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.class, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder.class); + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.class, + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance(); } @@ -372,13 +403,17 @@ public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification buildPartial() { - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification result = new com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification result = + new com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.hashedUserCredentials_ = hashedUserCredentials_; @@ -395,46 +430,50 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.PasswordLeakVe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification other) { - if (other == com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification other) { + if (other + == com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance()) + return this; if (other.getHashedUserCredentials() != com.google.protobuf.ByteString.EMPTY) { setHashedUserCredentials(other.getHashedUserCredentials()); } @@ -472,27 +511,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hashedUserCredentials_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - credentialsLeaked_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - canonicalizedUsername_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + hashedUserCredentials_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + credentialsLeaked_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + canonicalizedUsername_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -502,16 +545,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.ByteString hashedUserCredentials_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString hashedUserCredentials_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. Scrypt hash of the username+password that the customer wants to
      * verify against a known password leak.
      * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedUserCredentials. */ @java.lang.Override @@ -519,29 +567,37 @@ public com.google.protobuf.ByteString getHashedUserCredentials() { return hashedUserCredentials_; } /** + * + * *
      * Optional. Scrypt hash of the username+password that the customer wants to
      * verify against a known password leak.
      * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The hashedUserCredentials to set. * @return This builder for chaining. */ public Builder setHashedUserCredentials(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } hashedUserCredentials_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Scrypt hash of the username+password that the customer wants to
      * verify against a known password leak.
      * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHashedUserCredentials() { @@ -551,14 +607,17 @@ public Builder clearHashedUserCredentials() { return this; } - private boolean credentialsLeaked_ ; + private boolean credentialsLeaked_; /** + * + * *
      * Output only. Whether or not the user's credentials are present in a known
      * leak.
      * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The credentialsLeaked. */ @java.lang.Override @@ -566,12 +625,15 @@ public boolean getCredentialsLeaked() { return credentialsLeaked_; } /** + * + * *
      * Output only. Whether or not the user's credentials are present in a known
      * leak.
      * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The credentialsLeaked to set. * @return This builder for chaining. */ @@ -583,12 +645,15 @@ public Builder setCredentialsLeaked(boolean value) { return this; } /** + * + * *
      * Output only. Whether or not the user's credentials are present in a known
      * leak.
      * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCredentialsLeaked() { @@ -600,6 +665,8 @@ public Builder clearCredentialsLeaked() { private java.lang.Object canonicalizedUsername_ = ""; /** + * + * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -607,13 +674,13 @@ public Builder clearCredentialsLeaked() {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canonicalizedUsername. */ public java.lang.String getCanonicalizedUsername() { java.lang.Object ref = canonicalizedUsername_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalizedUsername_ = s; return s; @@ -622,6 +689,8 @@ public java.lang.String getCanonicalizedUsername() { } } /** + * + * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -629,15 +698,14 @@ public java.lang.String getCanonicalizedUsername() {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for canonicalizedUsername. */ - public com.google.protobuf.ByteString - getCanonicalizedUsernameBytes() { + public com.google.protobuf.ByteString getCanonicalizedUsernameBytes() { java.lang.Object ref = canonicalizedUsername_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalizedUsername_ = b; return b; } else { @@ -645,6 +713,8 @@ public java.lang.String getCanonicalizedUsername() { } } /** + * + * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -652,18 +722,22 @@ public java.lang.String getCanonicalizedUsername() {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The canonicalizedUsername to set. * @return This builder for chaining. */ - public Builder setCanonicalizedUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCanonicalizedUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } canonicalizedUsername_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -671,6 +745,7 @@ public Builder setCanonicalizedUsername(
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCanonicalizedUsername() { @@ -680,6 +755,8 @@ public Builder clearCanonicalizedUsername() { return this; } /** + * + * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -687,21 +764,23 @@ public Builder clearCanonicalizedUsername() {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for canonicalizedUsername to set. * @return This builder for chaining. */ - public Builder setCanonicalizedUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCanonicalizedUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); canonicalizedUsername_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -711,41 +790,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) - private static final com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification(); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PasswordLeakVerification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PasswordLeakVerification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -757,9 +838,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java similarity index 70% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java index 525e8a30a279..09cef6490eed 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java @@ -1,35 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface PasswordLeakVerificationOrBuilder extends +public interface PasswordLeakVerificationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Scrypt hash of the username+password that the customer wants to
    * verify against a known password leak.
    * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hashedUserCredentials. */ com.google.protobuf.ByteString getHashedUserCredentials(); /** + * + * *
    * Output only. Whether or not the user's credentials are present in a known
    * leak.
    * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The credentialsLeaked. */ boolean getCredentialsLeaked(); /** + * + * *
    * Optional. The username part of the user credentials for which we want to
    * trigger a leak check in canonicalized form. This is the same data used to
@@ -37,10 +61,13 @@ public interface PasswordLeakVerificationOrBuilder extends
    * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canonicalizedUsername. */ java.lang.String getCanonicalizedUsername(); /** + * + * *
    * Optional. The username part of the user credentials for which we want to
    * trigger a leak check in canonicalized form. This is the same data used to
@@ -48,8 +75,8 @@ public interface PasswordLeakVerificationOrBuilder extends
    * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for canonicalizedUsername. */ - com.google.protobuf.ByteString - getCanonicalizedUsernameBytes(); + com.google.protobuf.ByteString getCanonicalizedUsernameBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java new file mode 100644 index 000000000000..d686bdf7493b --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java @@ -0,0 +1,495 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public final class RecaptchaEnterpriseProto { + private RecaptchaEnterpriseProto() {} + + 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_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/recaptchaenterprise/v1bet" + + "a1/recaptchaenterprise.proto\022(google.clo" + + "ud.recaptchaenterprise.v1beta1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032\037google/protob" + + "uf/timestamp.proto\"\257\001\n\027CreateAssessmentR" + + "equest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudre" + + "sourcemanager.googleapis.com/Project\022N\n\n" + + "assessment\030\002 \001(\01324.google.cloud.recaptch" + + "aenterprise.v1beta1.AssessmentB\004\342A\001\002\"\233\005\n" + + "\020TransactionEvent\022i\n\nevent_type\030\001 \001(\0162O." + + "google.cloud.recaptchaenterprise.v1beta1" + + ".TransactionEvent.TransactionEventTypeB\004" + + "\342A\001\001\022\024\n\006reason\030\002 \001(\tB\004\342A\001\001\022\023\n\005value\030\003 \001(" + + "\001B\004\342A\001\001\0224\n\nevent_time\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\001\"\272\003\n\024TransactionEve" + + "ntType\022&\n\"TRANSACTION_EVENT_TYPE_UNSPECI" + + "FIED\020\000\022\024\n\020MERCHANT_APPROVE\020\001\022\021\n\rMERCHANT" + + "_DENY\020\002\022\021\n\rMANUAL_REVIEW\020\003\022\021\n\rAUTHORIZAT" + + "ION\020\004\022\031\n\025AUTHORIZATION_DECLINE\020\005\022\023\n\017PAYM" + + "ENT_CAPTURE\020\006\022\033\n\027PAYMENT_CAPTURE_DECLINE" + + "\020\007\022\n\n\006CANCEL\020\010\022\026\n\022CHARGEBACK_INQUIRY\020\t\022\024" + + "\n\020CHARGEBACK_ALERT\020\n\022\026\n\022FRAUD_NOTIFICATI" + + "ON\020\013\022\016\n\nCHARGEBACK\020\014\022\034\n\030CHARGEBACK_REPRE" + + "SENTMENT\020\r\022\026\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016RE" + + "FUND_REQUEST\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006RE" + + "FUND\020\021\022\022\n\016REFUND_REVERSE\020\022\"\376\006\n\031AnnotateA" + + "ssessmentRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n" + + "-recaptchaenterprise.googleapis.com/Asse" + + "ssment\022h\n\nannotation\030\002 \001(\0162N.google.clou" + + "d.recaptchaenterprise.v1beta1.AnnotateAs" + + "sessmentRequest.AnnotationB\004\342A\001\001\022a\n\007reas" + + "ons\030\003 \003(\0162J.google.cloud.recaptchaenterp" + + "rise.v1beta1.AnnotateAssessmentRequest.R" + + "easonB\004\342A\001\001\022\037\n\021hashed_account_id\030\004 \001(\014B\004" + + "\342A\001\001\022[\n\021transaction_event\030\005 \001(\0132:.google" + + ".cloud.recaptchaenterprise.v1beta1.Trans" + + "actionEventB\004\342A\001\001\"~\n\nAnnotation\022\032\n\026ANNOT" + + "ATION_UNSPECIFIED\020\000\022\016\n\nLEGITIMATE\020\001\022\016\n\nF" + + "RAUDULENT\020\002\022\030\n\020PASSWORD_CORRECT\020\003\032\002\010\001\022\032\n" + + "\022PASSWORD_INCORRECT\020\004\032\002\010\001\"\317\002\n\006Reason\022\026\n\022" + + "REASON_UNSPECIFIED\020\000\022\016\n\nCHARGEBACK\020\001\022\024\n\020" + + "CHARGEBACK_FRAUD\020\010\022\026\n\022CHARGEBACK_DISPUTE" + + "\020\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FRAUD\020\013\022\030\n\024TRAN" + + "SACTION_ACCEPTED\020\014\022\030\n\024TRANSACTION_DECLIN" + + "ED\020\r\022\026\n\022PAYMENT_HEURISTICS\020\002\022\030\n\024INITIATE" + + "D_TWO_FACTOR\020\007\022\025\n\021PASSED_TWO_FACTOR\020\003\022\025\n" + + "\021FAILED_TWO_FACTOR\020\004\022\024\n\020CORRECT_PASSWORD" + + "\020\005\022\026\n\022INCORRECT_PASSWORD\020\006\022\017\n\013SOCIAL_SPA" + + "M\020\016\"\034\n\032AnnotateAssessmentResponse\"\211\001\n\030Pa" + + "sswordLeakVerification\022%\n\027hashed_user_cr" + + "edentials\030\001 \001(\014B\004\342A\001\001\022 \n\022credentials_lea" + + "ked\030\002 \001(\010B\004\342A\001\003\022$\n\026canonicalized_usernam" + + "e\030\003 \001(\tB\004\342A\001\001\"\273\007\n\nAssessment\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\003\022>\n\005event\030\002 \001(\0132/.google.cloud.r" + + "ecaptchaenterprise.v1beta1.Event\022\023\n\005scor" + + "e\030\003 \001(\002B\004\342A\001\003\022Y\n\020token_properties\030\004 \001(\0132" + + "9.google.cloud.recaptchaenterprise.v1bet" + + "a1.TokenPropertiesB\004\342A\001\003\022`\n\007reasons\030\005 \003(" + + "\0162I.google.cloud.recaptchaenterprise.v1b" + + "eta1.Assessment.ClassificationReasonB\004\342A" + + "\001\003\022f\n\032password_leak_verification\030\007 \001(\0132B" + + ".google.cloud.recaptchaenterprise.v1beta" + + "1.PasswordLeakVerification\022h\n\033account_de" + + "fender_assessment\030\010 \001(\0132C.google.cloud.r" + + "ecaptchaenterprise.v1beta1.AccountDefend" + + "erAssessment\022h\n\033fraud_prevention_assessm" + + "ent\030\013 \001(\0132C.google.cloud.recaptchaenterp" + + "rise.v1beta1.FraudPreventionAssessment\"\351" + + "\001\n\024ClassificationReason\022%\n!CLASSIFICATIO" + + "N_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032" + + "\n\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_T" + + "RAFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PATTERNS\020\004\022" + + "\030\n\024LOW_CONFIDENCE_SCORE\020\005\022\025\n\021SUSPECTED_C" + + "ARDING\020\006\022\030\n\024SUSPECTED_CHARGEBACK\020\007:_\352A\\\n" + + "-recaptchaenterprise.googleapis.com/Asse" + + "ssment\022+projects/{project}/assessments/{" + + "assessment}\"\210\002\n\005Event\022\023\n\005token\030\001 \001(\tB\004\342A" + + "\001\001\022\026\n\010site_key\030\002 \001(\tB\004\342A\001\001\022\030\n\nuser_agent" + + "\030\003 \001(\tB\004\342A\001\001\022\035\n\017user_ip_address\030\004 \001(\tB\004\342" + + "A\001\001\022\035\n\017expected_action\030\005 \001(\tB\004\342A\001\001\022\037\n\021ha" + + "shed_account_id\030\006 \001(\014B\004\342A\001\001\022Y\n\020transacti" + + "on_data\030\r \001(\01329.google.cloud.recaptchaen" + + "terprise.v1beta1.TransactionDataB\004\342A\001\001\"\235" + + "\t\n\017TransactionData\022\033\n\016transaction_id\030\013 \001" + + "(\tH\000\210\001\001\022\026\n\016payment_method\030\001 \001(\t\022\020\n\010card_" + + "bin\030\002 \001(\t\022\026\n\016card_last_four\030\003 \001(\t\022\025\n\rcur" + + "rency_code\030\004 \001(\t\022\r\n\005value\030\005 \001(\001\022\026\n\016shipp" + + "ing_value\030\014 \001(\001\022[\n\020shipping_address\030\006 \001(" + + "\0132A.google.cloud.recaptchaenterprise.v1b" + + "eta1.TransactionData.Address\022Z\n\017billing_" + + "address\030\007 \001(\0132A.google.cloud.recaptchaen" + + "terprise.v1beta1.TransactionData.Address" + + "\022L\n\004user\030\010 \001(\0132>.google.cloud.recaptchae" + + "nterprise.v1beta1.TransactionData.User\022Q" + + "\n\tmerchants\030\r \003(\0132>.google.cloud.recaptc" + + "haenterprise.v1beta1.TransactionData.Use" + + "r\022M\n\005items\030\016 \003(\0132>.google.cloud.recaptch" + + "aenterprise.v1beta1.TransactionData.Item" + + "\022[\n\014gateway_info\030\n \001(\0132E.google.cloud.re" + + "captchaenterprise.v1beta1.TransactionDat" + + "a.GatewayInfo\032\206\001\n\007Address\022\021\n\trecipient\030\001" + + " \001(\t\022\017\n\007address\030\002 \003(\t\022\020\n\010locality\030\003 \001(\t\022" + + "\033\n\023administrative_area\030\004 \001(\t\022\023\n\013region_c" + + "ode\030\005 \001(\t\022\023\n\013postal_code\030\006 \001(\t\032\204\001\n\004User\022" + + "\022\n\naccount_id\030\006 \001(\t\022\023\n\013creation_ms\030\001 \001(\003" + + "\022\r\n\005email\030\002 \001(\t\022\026\n\016email_verified\030\003 \001(\010\022" + + "\024\n\014phone_number\030\004 \001(\t\022\026\n\016phone_verified\030" + + "\005 \001(\010\032R\n\004Item\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\001\022\020\n\010quantity\030\003 \001(\003\022\033\n\023merchant_account" + + "_id\030\004 \001(\t\032p\n\013GatewayInfo\022\014\n\004name\030\001 \001(\t\022\035" + + "\n\025gateway_response_code\030\002 \001(\t\022\031\n\021avs_res" + + "ponse_code\030\003 \001(\t\022\031\n\021cvv_response_code\030\004 " + + "\001(\tB\021\n\017_transaction_id\"\377\002\n\017TokenProperti" + + "es\022\r\n\005valid\030\001 \001(\010\022_\n\016invalid_reason\030\002 \001(" + + "\0162G.google.cloud.recaptchaenterprise.v1b" + + "eta1.TokenProperties.InvalidReason\022/\n\013cr" + + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "amp\022\020\n\010hostname\030\004 \001(\t\022\016\n\006action\030\005 \001(\t\"\250\001" + + "\n\rInvalidReason\022\036\n\032INVALID_REASON_UNSPEC" + + "IFIED\020\000\022\032\n\026UNKNOWN_INVALID_REASON\020\001\022\r\n\tM" + + "ALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE\020\004\022\025\n\rSIT" + + "E_MISMATCH\020\005\032\002\010\001\022\013\n\007MISSING\020\006\022\021\n\rBROWSER" + + "_ERROR\020\007\"\237\004\n\031FraudPreventionAssessment\022\030" + + "\n\020transaction_risk\030\001 \001(\002\022~\n\031stolen_instr" + + "ument_verdict\030\002 \001(\0132[.google.cloud.recap" + + "tchaenterprise.v1beta1.FraudPreventionAs" + + "sessment.StolenInstrumentVerdict\022t\n\024card" + + "_testing_verdict\030\003 \001(\0132V.google.cloud.re" + + "captchaenterprise.v1beta1.FraudPreventio" + + "nAssessment.CardTestingVerdict\022|\n\030behavi" + + "oral_trust_verdict\030\004 \001(\0132Z.google.cloud." + + "recaptchaenterprise.v1beta1.FraudPrevent" + + "ionAssessment.BehavioralTrustVerdict\032\'\n\027" + + "StolenInstrumentVerdict\022\014\n\004risk\030\001 \001(\002\032\"\n" + + "\022CardTestingVerdict\022\014\n\004risk\030\001 \001(\002\032\'\n\026Beh" + + "avioralTrustVerdict\022\r\n\005trust\030\001 \001(\002\"\273\002\n\031A" + + "ccountDefenderAssessment\022h\n\006labels\030\001 \003(\016" + + "2X.google.cloud.recaptchaenterprise.v1be" + + "ta1.AccountDefenderAssessment.AccountDef" + + "enderLabel\"\263\001\n\024AccountDefenderLabel\022&\n\"A" + + "CCOUNT_DEFENDER_LABEL_UNSPECIFIED\020\000\022\021\n\rP" + + "ROFILE_MATCH\020\001\022\035\n\031SUSPICIOUS_LOGIN_ACTIV" + + "ITY\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_CREATION\020\003\022 " + + "\n\034RELATED_ACCOUNTS_NUMBER_HIGH\020\0042\315\004\n!Rec" + + "aptchaEnterpriseServiceV1Beta1\022\335\001\n\020Creat" + + "eAssessment\022A.google.cloud.recaptchaente" + + "rprise.v1beta1.CreateAssessmentRequest\0324" + + ".google.cloud.recaptchaenterprise.v1beta" + + "1.Assessment\"P\332A\021parent,assessment\202\323\344\223\0026" + + "\"(/v1beta1/{parent=projects/*}/assessmen" + + "ts:\nassessment\022\357\001\n\022AnnotateAssessment\022C." + + "google.cloud.recaptchaenterprise.v1beta1" + + ".AnnotateAssessmentRequest\032D.google.clou" + + "d.recaptchaenterprise.v1beta1.AnnotateAs" + + "sessmentResponse\"N\332A\017name,annotation\202\323\344\223" + + "\0026\"1/v1beta1/{name=projects/*/assessment" + + "s/*}:annotate:\001*\032V\312A\"recaptchaenterprise" + + ".googleapis.com\322A.https://www.googleapis" + + ".com/auth/cloud-platformB\262\002\n&com.google." + + "recaptchaenterprise.v1beta1B\030RecaptchaEn" + + "terpriseProtoP\001Zacloud.google.com/go/rec" + + "aptchaenterprise/v2/apiv1beta1/recaptcha" + + "enterprisepb;recaptchaenterprisepb\242\002\004GCR" + + "E\252\002(Google.Cloud.RecaptchaEnterprise.V1B" + + "eta1\312\002(Google\\Cloud\\RecaptchaEnterprise\\" + + "V1beta1\352\002+Google::Cloud::RecaptchaEnterp" + + "rise::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor, + new java.lang.String[] { + "Parent", "Assessment", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor, + new java.lang.String[] { + "EventType", "Reason", "Value", "EventTime", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor, + new java.lang.String[] { + "Name", "Annotation", "Reasons", "HashedAccountId", "TransactionEvent", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor, + new java.lang.String[] { + "HashedUserCredentials", "CredentialsLeaked", "CanonicalizedUsername", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor, + new java.lang.String[] { + "Name", + "Event", + "Score", + "TokenProperties", + "Reasons", + "PasswordLeakVerification", + "AccountDefenderAssessment", + "FraudPreventionAssessment", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor, + new java.lang.String[] { + "Token", + "SiteKey", + "UserAgent", + "UserIpAddress", + "ExpectedAction", + "HashedAccountId", + "TransactionData", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor, + new java.lang.String[] { + "TransactionId", + "PaymentMethod", + "CardBin", + "CardLastFour", + "CurrencyCode", + "Value", + "ShippingValue", + "ShippingAddress", + "BillingAddress", + "User", + "Merchants", + "Items", + "GatewayInfo", + "TransactionId", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor, + new java.lang.String[] { + "Recipient", "Address", "Locality", "AdministrativeArea", "RegionCode", "PostalCode", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor, + new java.lang.String[] { + "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor, + new java.lang.String[] { + "Name", "Value", "Quantity", "MerchantAccountId", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor, + new java.lang.String[] { + "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor, + new java.lang.String[] { + "Valid", "InvalidReason", "CreateTime", "Hostname", "Action", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor, + new java.lang.String[] { + "TransactionRisk", + "StolenInstrumentVerdict", + "CardTestingVerdict", + "BehavioralTrustVerdict", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor, + new java.lang.String[] { + "Risk", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor, + new java.lang.String[] { + "Risk", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor, + new java.lang.String[] { + "Trust", + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor, + new java.lang.String[] { + "Labels", + }); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java similarity index 70% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java index d2ef5cd61c2c..980d71e8af1b 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java @@ -1,20 +1,34 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -/** - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties} - */ -public final class TokenProperties extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties} */ +public final class TokenProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) TokenPropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TokenProperties.newBuilder() to construct. private TokenProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TokenProperties() { invalidReason_ = 0; hostname_ = ""; @@ -23,34 +37,38 @@ private TokenProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TokenProperties(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TokenProperties.class, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder.class); + com.google.recaptchaenterprise.v1beta1.TokenProperties.class, + com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder.class); } /** + * + * *
    * Enum that represents the types of invalid token reasons.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason} */ - public enum InvalidReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default unspecified type.
      * 
@@ -59,6 +77,8 @@ public enum InvalidReason */ INVALID_REASON_UNSPECIFIED(0), /** + * + * *
      * If the failure reason was not accounted for.
      * 
@@ -67,6 +87,8 @@ public enum InvalidReason */ UNKNOWN_INVALID_REASON(1), /** + * + * *
      * The provided user verification token was malformed.
      * 
@@ -75,6 +97,8 @@ public enum InvalidReason */ MALFORMED(2), /** + * + * *
      * The user verification token had expired.
      * 
@@ -83,6 +107,8 @@ public enum InvalidReason */ EXPIRED(3), /** + * + * *
      * The user verification had already been seen.
      * 
@@ -91,6 +117,8 @@ public enum InvalidReason */ DUPE(4), /** + * + * *
      * The user verification token did not match the provided site key.
      * This may be a configuration error (for example, development keys used in
@@ -103,6 +131,8 @@ public enum InvalidReason
     @java.lang.Deprecated
     SITE_MISMATCH(5),
     /**
+     *
+     *
      * 
      * The user verification token was not present.  It is a required input.
      * 
@@ -111,6 +141,8 @@ public enum InvalidReason */ MISSING(6), /** + * + * *
      * A retriable error (such as network failure) occurred on the browser.
      * Could easily be simulated by an attacker.
@@ -123,6 +155,8 @@ public enum InvalidReason
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified type.
      * 
@@ -131,6 +165,8 @@ public enum InvalidReason */ public static final int INVALID_REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
      * If the failure reason was not accounted for.
      * 
@@ -139,6 +175,8 @@ public enum InvalidReason */ public static final int UNKNOWN_INVALID_REASON_VALUE = 1; /** + * + * *
      * The provided user verification token was malformed.
      * 
@@ -147,6 +185,8 @@ public enum InvalidReason */ public static final int MALFORMED_VALUE = 2; /** + * + * *
      * The user verification token had expired.
      * 
@@ -155,6 +195,8 @@ public enum InvalidReason */ public static final int EXPIRED_VALUE = 3; /** + * + * *
      * The user verification had already been seen.
      * 
@@ -163,6 +205,8 @@ public enum InvalidReason */ public static final int DUPE_VALUE = 4; /** + * + * *
      * The user verification token did not match the provided site key.
      * This may be a configuration error (for example, development keys used in
@@ -174,6 +218,8 @@ public enum InvalidReason
      */
     @java.lang.Deprecated public static final int SITE_MISMATCH_VALUE = 5;
     /**
+     *
+     *
      * 
      * The user verification token was not present.  It is a required input.
      * 
@@ -182,6 +228,8 @@ public enum InvalidReason */ public static final int MISSING_VALUE = 6; /** + * + * *
      * A retriable error (such as network failure) occurred on the browser.
      * Could easily be simulated by an attacker.
@@ -191,7 +239,6 @@ public enum InvalidReason
      */
     public static final int BROWSER_ERROR_VALUE = 7;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -216,54 +263,61 @@ public static InvalidReason valueOf(int value) {
      */
     public static InvalidReason forNumber(int value) {
       switch (value) {
-        case 0: return INVALID_REASON_UNSPECIFIED;
-        case 1: return UNKNOWN_INVALID_REASON;
-        case 2: return MALFORMED;
-        case 3: return EXPIRED;
-        case 4: return DUPE;
-        case 5: return SITE_MISMATCH;
-        case 6: return MISSING;
-        case 7: return BROWSER_ERROR;
-        default: return null;
+        case 0:
+          return INVALID_REASON_UNSPECIFIED;
+        case 1:
+          return UNKNOWN_INVALID_REASON;
+        case 2:
+          return MALFORMED;
+        case 3:
+          return EXPIRED;
+        case 4:
+          return DUPE;
+        case 5:
+          return SITE_MISMATCH;
+        case 6:
+          return MISSING;
+        case 7:
+          return BROWSER_ERROR;
+        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<
-        InvalidReason> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public InvalidReason findValueByNumber(int number) {
-              return InvalidReason.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public InvalidReason findValueByNumber(int number) {
+            return InvalidReason.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.recaptchaenterprise.v1beta1.TokenProperties.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.TokenProperties.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final InvalidReason[] VALUES = values();
 
-    public static InvalidReason valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static InvalidReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -283,6 +337,8 @@ private InvalidReason(int value) {
   public static final int VALID_FIELD_NUMBER = 1;
   private boolean valid_ = false;
   /**
+   *
+   *
    * 
    * Whether the provided user response token is valid. When valid = false, the
    * reason could be specified in invalid_reason or it could also be due to
@@ -292,6 +348,7 @@ private InvalidReason(int value) {
    * 
* * bool valid = 1; + * * @return The valid. */ @java.lang.Override @@ -302,37 +359,56 @@ public boolean getValid() { public static final int INVALID_REASON_FIELD_NUMBER = 2; private int invalidReason_ = 0; /** + * + * *
    * Reason associated with the response when valid = false.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @return The enum numeric value on the wire for invalidReason. */ - @java.lang.Override public int getInvalidReasonValue() { + @java.lang.Override + public int getInvalidReasonValue() { return invalidReason_; } /** + * + * *
    * Reason associated with the response when valid = false.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @return The invalidReason. */ - @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason() { - com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason result = com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.forNumber(invalidReason_); - return result == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason() { + com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason result = + com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.forNumber( + invalidReason_); + return result == null + ? com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The timestamp corresponding to the generation of the token.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -340,11 +416,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The timestamp corresponding to the generation of the token.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -352,6 +431,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The timestamp corresponding to the generation of the token.
    * 
@@ -364,14 +445,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int HOSTNAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * The hostname of the page on which the token was generated.
    * 
* * string hostname = 4; + * * @return The hostname. */ @java.lang.Override @@ -380,29 +465,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * The hostname of the page on which the token was generated.
    * 
* * string hostname = 4; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -411,14 +496,18 @@ public java.lang.String getHostname() { } public static final int ACTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object action_ = ""; /** + * + * *
    * Action name provided at token generation.
    * 
* * string action = 5; + * * @return The action. */ @java.lang.Override @@ -427,29 +516,29 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** + * + * *
    * Action name provided at token generation.
    * 
* * string action = 5; + * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString - getActionBytes() { + public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { @@ -458,6 +547,7 @@ public java.lang.String getAction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -469,12 +559,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valid_ != false) { output.writeBool(1, valid_); } - if (invalidReason_ != com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.INVALID_REASON_UNSPECIFIED.getNumber()) { + if (invalidReason_ + != com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason + .INVALID_REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(2, invalidReason_); } if (createTime_ != null) { @@ -496,16 +588,16 @@ public int getSerializedSize() { size = 0; if (valid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, valid_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, valid_); } - if (invalidReason_ != com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.INVALID_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, invalidReason_); + if (invalidReason_ + != com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason + .INVALID_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, invalidReason_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hostname_); @@ -521,25 +613,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TokenProperties)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TokenProperties other = (com.google.recaptchaenterprise.v1beta1.TokenProperties) obj; + com.google.recaptchaenterprise.v1beta1.TokenProperties other = + (com.google.recaptchaenterprise.v1beta1.TokenProperties) obj; - if (getValid() - != other.getValid()) return false; + if (getValid() != other.getValid()) return false; if (invalidReason_ != other.invalidReason_) 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 (!getHostname() - .equals(other.getHostname())) return false; - if (!getAction() - .equals(other.getAction())) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (!getAction().equals(other.getAction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -552,8 +641,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValid()); hash = (37 * hash) + INVALID_REASON_FIELD_NUMBER; hash = (53 * hash) + invalidReason_; if (hasCreateTime()) { @@ -570,127 +658,128 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TokenProperties prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.TokenProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TokenProperties.class, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder.class); + com.google.recaptchaenterprise.v1beta1.TokenProperties.class, + com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TokenProperties.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -708,9 +797,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; } @java.lang.Override @@ -729,8 +818,11 @@ public com.google.recaptchaenterprise.v1beta1.TokenProperties build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TokenProperties buildPartial() { - com.google.recaptchaenterprise.v1beta1.TokenProperties result = new com.google.recaptchaenterprise.v1beta1.TokenProperties(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.TokenProperties result = + new com.google.recaptchaenterprise.v1beta1.TokenProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -744,9 +836,7 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TokenPropertie result.invalidReason_ = invalidReason_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.hostname_ = hostname_; @@ -760,38 +850,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TokenPropertie public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TokenProperties) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TokenProperties)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TokenProperties) other); } else { super.mergeFrom(other); return this; @@ -799,7 +890,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TokenProperties other) { - if (other == com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance()) + return this; if (other.getValid() != false) { setValid(other.getValid()); } @@ -845,39 +937,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - valid_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - invalidReason_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + valid_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + invalidReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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) { @@ -887,10 +983,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean valid_ ; + private boolean valid_; /** + * + * *
      * Whether the provided user response token is valid. When valid = false, the
      * reason could be specified in invalid_reason or it could also be due to
@@ -900,6 +999,7 @@ public Builder mergeFrom(
      * 
* * bool valid = 1; + * * @return The valid. */ @java.lang.Override @@ -907,6 +1007,8 @@ public boolean getValid() { return valid_; } /** + * + * *
      * Whether the provided user response token is valid. When valid = false, the
      * reason could be specified in invalid_reason or it could also be due to
@@ -916,6 +1018,7 @@ public boolean getValid() {
      * 
* * bool valid = 1; + * * @param value The valid to set. * @return This builder for chaining. */ @@ -927,6 +1030,8 @@ public Builder setValid(boolean value) { return this; } /** + * + * *
      * Whether the provided user response token is valid. When valid = false, the
      * reason could be specified in invalid_reason or it could also be due to
@@ -936,6 +1041,7 @@ public Builder setValid(boolean value) {
      * 
* * bool valid = 1; + * * @return This builder for chaining. */ public Builder clearValid() { @@ -947,22 +1053,33 @@ public Builder clearValid() { private int invalidReason_ = 0; /** + * + * *
      * Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @return The enum numeric value on the wire for invalidReason. */ - @java.lang.Override public int getInvalidReasonValue() { + @java.lang.Override + public int getInvalidReasonValue() { return invalidReason_; } /** + * + * *
      * Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @param value The enum numeric value on the wire for invalidReason to set. * @return This builder for chaining. */ @@ -973,28 +1090,43 @@ public Builder setInvalidReasonValue(int value) { return this; } /** + * + * *
      * Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @return The invalidReason. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason() { - com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason result = com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.forNumber(invalidReason_); - return result == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.UNRECOGNIZED : result; + com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason result = + com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.forNumber( + invalidReason_); + return result == null + ? com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.UNRECOGNIZED + : result; } /** + * + * *
      * Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @param value The invalidReason to set. * @return This builder for chaining. */ - public Builder setInvalidReason(com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason value) { + public Builder setInvalidReason( + com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason value) { if (value == null) { throw new NullPointerException(); } @@ -1004,11 +1136,16 @@ public Builder setInvalidReason(com.google.recaptchaenterprise.v1beta1.TokenProp return this; } /** + * + * *
      * Reason associated with the response when valid = false.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @return This builder for chaining. */ public Builder clearInvalidReason() { @@ -1020,34 +1157,47 @@ public Builder clearInvalidReason() { 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 timestamp corresponding to the generation of the token.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The timestamp corresponding to the generation of the token.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @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 timestamp corresponding to the generation of the token.
      * 
@@ -1068,14 +1218,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp corresponding to the generation of the token.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1086,6 +1237,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1094,9 +1247,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1109,6 +1262,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1126,6 +1281,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1138,6 +1295,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1148,11 +1307,14 @@ 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 timestamp corresponding to the generation of the token.
      * 
@@ -1160,14 +1322,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ 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_; @@ -1175,18 +1340,20 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object hostname_ = ""; /** + * + * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -1195,20 +1362,21 @@ public java.lang.String getHostname() { } } /** + * + * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -1216,28 +1384,35 @@ public java.lang.String getHostname() { } } /** + * + * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -1247,17 +1422,21 @@ public Builder clearHostname() { return this; } /** + * + * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000008; @@ -1267,18 +1446,20 @@ public Builder setHostnameBytes( private java.lang.Object action_ = ""; /** + * + * *
      * Action name provided at token generation.
      * 
* * string action = 5; + * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -1287,20 +1468,21 @@ public java.lang.String getAction() { } } /** + * + * *
      * Action name provided at token generation.
      * 
* * string action = 5; + * * @return The bytes for action. */ - public com.google.protobuf.ByteString - getActionBytes() { + public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { @@ -1308,28 +1490,35 @@ public java.lang.String getAction() { } } /** + * + * *
      * Action name provided at token generation.
      * 
* * string action = 5; + * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } action_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Action name provided at token generation.
      * 
* * string action = 5; + * * @return This builder for chaining. */ public Builder clearAction() { @@ -1339,26 +1528,30 @@ public Builder clearAction() { return this; } /** + * + * *
      * Action name provided at token generation.
      * 
* * string action = 5; + * * @param value The bytes for action to set. * @return This builder for chaining. */ - public Builder setActionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); action_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1368,12 +1561,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) private static final com.google.recaptchaenterprise.v1beta1.TokenProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TokenProperties(); } @@ -1382,27 +1575,27 @@ public static com.google.recaptchaenterprise.v1beta1.TokenProperties getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1417,6 +1610,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TokenProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java similarity index 70% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java index a41a61759f7a..f5ad339051d4 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface TokenPropertiesOrBuilder extends +public interface TokenPropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether the provided user response token is valid. When valid = false, the
    * reason could be specified in invalid_reason or it could also be due to
@@ -17,48 +35,67 @@ public interface TokenPropertiesOrBuilder extends
    * 
* * bool valid = 1; + * * @return The valid. */ boolean getValid(); /** + * + * *
    * Reason associated with the response when valid = false.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @return The enum numeric value on the wire for invalidReason. */ int getInvalidReasonValue(); /** + * + * *
    * Reason associated with the response when valid = false.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; + * + * * @return The invalidReason. */ com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason(); /** + * + * *
    * The timestamp corresponding to the generation of the token.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The timestamp corresponding to the generation of the token.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The timestamp corresponding to the generation of the token.
    * 
@@ -68,42 +105,52 @@ public interface TokenPropertiesOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The hostname of the page on which the token was generated.
    * 
* * string hostname = 4; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * The hostname of the page on which the token was generated.
    * 
* * string hostname = 4; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Action name provided at token generation.
    * 
* * string action = 5; + * * @return The action. */ java.lang.String getAction(); /** + * + * *
    * Action name provided at token generation.
    * 
* * string action = 5; + * * @return The bytes for action. */ - com.google.protobuf.ByteString - getActionBytes(); + com.google.protobuf.ByteString getActionBytes(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java similarity index 72% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java index 7fd202e5c46c..1da42d292849 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData} */ -public final class TransactionData extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransactionData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData) TransactionDataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransactionData.newBuilder() to construct. private TransactionData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransactionData() { transactionId_ = ""; paymentMethod_ = ""; @@ -31,49 +49,58 @@ private TransactionData() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransactionData(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.Builder.class); } - public interface AddressOrBuilder extends + public interface AddressOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The recipient name, potentially including information such as "care of".
      * 
* * string recipient = 1; + * * @return The recipient. */ java.lang.String getRecipient(); /** + * + * *
      * The recipient name, potentially including information such as "care of".
      * 
* * string recipient = 1; + * * @return The bytes for recipient. */ - com.google.protobuf.ByteString - getRecipientBytes(); + com.google.protobuf.ByteString getRecipientBytes(); /** + * + * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -81,11 +108,13 @@ public interface AddressOrBuilder extends
      * 
* * repeated string address = 2; + * * @return A list containing the address. */ - java.util.List - getAddressList(); + java.util.List getAddressList(); /** + * + * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -93,10 +122,13 @@ public interface AddressOrBuilder extends
      * 
* * repeated string address = 2; + * * @return The count of address. */ int getAddressCount(); /** + * + * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -104,11 +136,14 @@ public interface AddressOrBuilder extends
      * 
* * repeated string address = 2; + * * @param index The index of the element to return. * @return The address at the given index. */ java.lang.String getAddress(int index); /** + * + * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -116,112 +151,134 @@ public interface AddressOrBuilder extends
      * 
* * repeated string address = 2; + * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - com.google.protobuf.ByteString - getAddressBytes(int index); + com.google.protobuf.ByteString getAddressBytes(int index); /** + * + * *
      * The town/city of the address.
      * 
* * string locality = 3; + * * @return The locality. */ java.lang.String getLocality(); /** + * + * *
      * The town/city of the address.
      * 
* * string locality = 3; + * * @return The bytes for locality. */ - com.google.protobuf.ByteString - getLocalityBytes(); + com.google.protobuf.ByteString getLocalityBytes(); /** + * + * *
      * The state, province, or otherwise administrative area of the address.
      * 
* * string administrative_area = 4; + * * @return The administrativeArea. */ java.lang.String getAdministrativeArea(); /** + * + * *
      * The state, province, or otherwise administrative area of the address.
      * 
* * string administrative_area = 4; + * * @return The bytes for administrativeArea. */ - com.google.protobuf.ByteString - getAdministrativeAreaBytes(); + com.google.protobuf.ByteString getAdministrativeAreaBytes(); /** + * + * *
      * The CLDR country/region of the address.
      * 
* * string region_code = 5; + * * @return The regionCode. */ java.lang.String getRegionCode(); /** + * + * *
      * The CLDR country/region of the address.
      * 
* * string region_code = 5; + * * @return The bytes for regionCode. */ - com.google.protobuf.ByteString - getRegionCodeBytes(); + com.google.protobuf.ByteString getRegionCodeBytes(); /** + * + * *
      * The postal or ZIP code of the address.
      * 
* * string postal_code = 6; + * * @return The postalCode. */ java.lang.String getPostalCode(); /** + * + * *
      * The postal or ZIP code of the address.
      * 
* * string postal_code = 6; + * * @return The bytes for postalCode. */ - com.google.protobuf.ByteString - getPostalCodeBytes(); + com.google.protobuf.ByteString getPostalCodeBytes(); } /** + * + * *
    * Structured address format for billing and shipping addresses.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address} */ - public static final class Address extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Address extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) AddressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Address() { recipient_ = ""; - address_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + address_ = com.google.protobuf.LazyStringArrayList.emptyList(); locality_ = ""; administrativeArea_ = ""; regionCode_ = ""; @@ -230,33 +287,38 @@ private Address() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Address(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder.class); } public static final int RECIPIENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object recipient_ = ""; /** + * + * *
      * The recipient name, potentially including information such as "care of".
      * 
* * string recipient = 1; + * * @return The recipient. */ @java.lang.Override @@ -265,29 +327,29 @@ public java.lang.String getRecipient() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recipient_ = s; return s; } } /** + * + * *
      * The recipient name, potentially including information such as "care of".
      * 
* * string recipient = 1; + * * @return The bytes for recipient. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecipientBytes() { + public com.google.protobuf.ByteString getRecipientBytes() { java.lang.Object ref = recipient_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recipient_ = b; return b; } else { @@ -296,10 +358,13 @@ public java.lang.String getRecipient() { } public static final int ADDRESS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList address_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -307,13 +372,15 @@ public java.lang.String getRecipient() {
      * 
* * repeated string address = 2; + * * @return A list containing the address. */ - public com.google.protobuf.ProtocolStringList - getAddressList() { + public com.google.protobuf.ProtocolStringList getAddressList() { return address_; } /** + * + * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -321,12 +388,15 @@ public java.lang.String getRecipient() {
      * 
* * repeated string address = 2; + * * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** + * + * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -334,6 +404,7 @@ public int getAddressCount() {
      * 
* * repeated string address = 2; + * * @param index The index of the element to return. * @return The address at the given index. */ @@ -341,6 +412,8 @@ public java.lang.String getAddress(int index) { return address_.get(index); } /** + * + * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -348,23 +421,27 @@ public java.lang.String getAddress(int index) {
      * 
* * repeated string address = 2; + * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - public com.google.protobuf.ByteString - getAddressBytes(int index) { + public com.google.protobuf.ByteString getAddressBytes(int index) { return address_.getByteString(index); } public static final int LOCALITY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object locality_ = ""; /** + * + * *
      * The town/city of the address.
      * 
* * string locality = 3; + * * @return The locality. */ @java.lang.Override @@ -373,29 +450,29 @@ public java.lang.String getLocality() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** + * + * *
      * The town/city of the address.
      * 
* * string locality = 3; + * * @return The bytes for locality. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocalityBytes() { + public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -404,14 +481,18 @@ public java.lang.String getLocality() { } public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object administrativeArea_ = ""; /** + * + * *
      * The state, province, or otherwise administrative area of the address.
      * 
* * string administrative_area = 4; + * * @return The administrativeArea. */ @java.lang.Override @@ -420,29 +501,29 @@ public java.lang.String getAdministrativeArea() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; } } /** + * + * *
      * The state, province, or otherwise administrative area of the address.
      * 
* * string administrative_area = 4; + * * @return The bytes for administrativeArea. */ @java.lang.Override - public com.google.protobuf.ByteString - getAdministrativeAreaBytes() { + public com.google.protobuf.ByteString getAdministrativeAreaBytes() { java.lang.Object ref = administrativeArea_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -451,14 +532,18 @@ public java.lang.String getAdministrativeArea() { } public static final int REGION_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** + * + * *
      * The CLDR country/region of the address.
      * 
* * string region_code = 5; + * * @return The regionCode. */ @java.lang.Override @@ -467,29 +552,29 @@ public java.lang.String getRegionCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } } /** + * + * *
      * The CLDR country/region of the address.
      * 
* * string region_code = 5; + * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { @@ -498,14 +583,18 @@ public java.lang.String getRegionCode() { } public static final int POSTAL_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object postalCode_ = ""; /** + * + * *
      * The postal or ZIP code of the address.
      * 
* * string postal_code = 6; + * * @return The postalCode. */ @java.lang.Override @@ -514,29 +603,29 @@ public java.lang.String getPostalCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** + * + * *
      * The postal or ZIP code of the address.
      * 
* * string postal_code = 6; + * * @return The bytes for postalCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostalCodeBytes() { + public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -545,6 +634,7 @@ public java.lang.String getPostalCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -556,8 +646,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recipient_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipient_); } @@ -616,25 +705,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.recaptchaenterprise.v1beta1.TransactionData.Address)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData.Address other = (com.google.recaptchaenterprise.v1beta1.TransactionData.Address) obj; - - if (!getRecipient() - .equals(other.getRecipient())) return false; - if (!getAddressList() - .equals(other.getAddressList())) return false; - if (!getLocality() - .equals(other.getLocality())) return false; - if (!getAdministrativeArea() - .equals(other.getAdministrativeArea())) return false; - if (!getRegionCode() - .equals(other.getRegionCode())) return false; - if (!getPostalCode() - .equals(other.getPostalCode())) return false; + com.google.recaptchaenterprise.v1beta1.TransactionData.Address other = + (com.google.recaptchaenterprise.v1beta1.TransactionData.Address) obj; + + if (!getRecipient().equals(other.getRecipient())) return false; + if (!getAddressList().equals(other.getAddressList())) return false; + if (!getLocality().equals(other.getLocality())) return false; + if (!getAdministrativeArea().equals(other.getAdministrativeArea())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getPostalCode().equals(other.getPostalCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -666,89 +750,94 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData.Address prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData.Address prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -758,46 +847,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Structured address format for billing and shipping addresses.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.Address.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recipient_ = ""; - address_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + address_ = com.google.protobuf.LazyStringArrayList.emptyList(); locality_ = ""; administrativeArea_ = ""; regionCode_ = ""; @@ -806,13 +896,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Address + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance(); } @@ -827,13 +918,17 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.Address build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Address buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData.Address result = new com.google.recaptchaenterprise.v1beta1.TransactionData.Address(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.TransactionData.Address result = + new com.google.recaptchaenterprise.v1beta1.TransactionData.Address(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionData.Address result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.TransactionData.Address result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recipient_ = recipient_; @@ -860,46 +955,52 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionDat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1beta1.TransactionData.Address) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.Address)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.Address) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData.Address other) { - if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.TransactionData.Address other) { + if (other + == com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance()) + return this; if (!other.getRecipient().isEmpty()) { recipient_ = other.recipient_; bitField0_ |= 0x00000001; @@ -961,43 +1062,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - recipient_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAddressIsMutable(); - address_.add(s); - break; - } // case 18 - case 26: { - locality_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - administrativeArea_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - postalCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + recipient_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAddressIsMutable(); + address_.add(s); + break; + } // case 18 + case 26: + { + locality_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + administrativeArea_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + postalCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + 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) { @@ -1007,22 +1115,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object recipient_ = ""; /** + * + * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; + * * @return The recipient. */ public java.lang.String getRecipient() { java.lang.Object ref = recipient_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recipient_ = s; return s; @@ -1031,20 +1142,21 @@ public java.lang.String getRecipient() { } } /** + * + * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; + * * @return The bytes for recipient. */ - public com.google.protobuf.ByteString - getRecipientBytes() { + public com.google.protobuf.ByteString getRecipientBytes() { java.lang.Object ref = recipient_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recipient_ = b; return b; } else { @@ -1052,28 +1164,35 @@ public java.lang.String getRecipient() { } } /** + * + * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; + * * @param value The recipient to set. * @return This builder for chaining. */ - public Builder setRecipient( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecipient(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recipient_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; + * * @return This builder for chaining. */ public Builder clearRecipient() { @@ -1083,17 +1202,21 @@ public Builder clearRecipient() { return this; } /** + * + * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; + * * @param value The bytes for recipient to set. * @return This builder for chaining. */ - public Builder setRecipientBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecipientBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recipient_ = value; bitField0_ |= 0x00000001; @@ -1103,6 +1226,7 @@ public Builder setRecipientBytes( private com.google.protobuf.LazyStringArrayList address_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAddressIsMutable() { if (!address_.isModifiable()) { address_ = new com.google.protobuf.LazyStringArrayList(address_); @@ -1110,6 +1234,8 @@ private void ensureAddressIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1117,14 +1243,16 @@ private void ensureAddressIsMutable() {
        * 
* * repeated string address = 2; + * * @return A list containing the address. */ - public com.google.protobuf.ProtocolStringList - getAddressList() { + public com.google.protobuf.ProtocolStringList getAddressList() { address_.makeImmutable(); return address_; } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1132,12 +1260,15 @@ private void ensureAddressIsMutable() {
        * 
* * repeated string address = 2; + * * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1145,6 +1276,7 @@ public int getAddressCount() {
        * 
* * repeated string address = 2; + * * @param index The index of the element to return. * @return The address at the given index. */ @@ -1152,6 +1284,8 @@ public java.lang.String getAddress(int index) { return address_.get(index); } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1159,14 +1293,16 @@ public java.lang.String getAddress(int index) {
        * 
* * repeated string address = 2; + * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - public com.google.protobuf.ByteString - getAddressBytes(int index) { + public com.google.protobuf.ByteString getAddressBytes(int index) { return address_.getByteString(index); } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1174,13 +1310,15 @@ public java.lang.String getAddress(int index) {
        * 
* * repeated string address = 2; + * * @param index The index to set the value at. * @param value The address to set. * @return This builder for chaining. */ - public Builder setAddress( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAddress(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAddressIsMutable(); address_.set(index, value); bitField0_ |= 0x00000002; @@ -1188,6 +1326,8 @@ public Builder setAddress( return this; } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1195,12 +1335,14 @@ public Builder setAddress(
        * 
* * repeated string address = 2; + * * @param value The address to add. * @return This builder for chaining. */ - public Builder addAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAddressIsMutable(); address_.add(value); bitField0_ |= 0x00000002; @@ -1208,6 +1350,8 @@ public Builder addAddress( return this; } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1215,19 +1359,20 @@ public Builder addAddress(
        * 
* * repeated string address = 2; + * * @param values The address to add. * @return This builder for chaining. */ - public Builder addAllAddress( - java.lang.Iterable values) { + public Builder addAllAddress(java.lang.Iterable values) { ensureAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, address_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, address_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1235,16 +1380,19 @@ public Builder addAllAddress(
        * 
* * repeated string address = 2; + * * @return This builder for chaining. */ public Builder clearAddress() { - address_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + address_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1252,12 +1400,14 @@ public Builder clearAddress() {
        * 
* * repeated string address = 2; + * * @param value The bytes of the address to add. * @return This builder for chaining. */ - public Builder addAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAddressIsMutable(); address_.add(value); @@ -1268,18 +1418,20 @@ public Builder addAddressBytes( private java.lang.Object locality_ = ""; /** + * + * *
        * The town/city of the address.
        * 
* * string locality = 3; + * * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; @@ -1288,20 +1440,21 @@ public java.lang.String getLocality() { } } /** + * + * *
        * The town/city of the address.
        * 
* * string locality = 3; + * * @return The bytes for locality. */ - public com.google.protobuf.ByteString - getLocalityBytes() { + public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -1309,28 +1462,35 @@ public java.lang.String getLocality() { } } /** + * + * *
        * The town/city of the address.
        * 
* * string locality = 3; + * * @param value The locality to set. * @return This builder for chaining. */ - public Builder setLocality( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocality(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } locality_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * The town/city of the address.
        * 
* * string locality = 3; + * * @return This builder for chaining. */ public Builder clearLocality() { @@ -1340,17 +1500,21 @@ public Builder clearLocality() { return this; } /** + * + * *
        * The town/city of the address.
        * 
* * string locality = 3; + * * @param value The bytes for locality to set. * @return This builder for chaining. */ - public Builder setLocalityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocalityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); locality_ = value; bitField0_ |= 0x00000004; @@ -1360,18 +1524,20 @@ public Builder setLocalityBytes( private java.lang.Object administrativeArea_ = ""; /** + * + * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; + * * @return The administrativeArea. */ public java.lang.String getAdministrativeArea() { java.lang.Object ref = administrativeArea_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; @@ -1380,20 +1546,21 @@ public java.lang.String getAdministrativeArea() { } } /** + * + * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; + * * @return The bytes for administrativeArea. */ - public com.google.protobuf.ByteString - getAdministrativeAreaBytes() { + public com.google.protobuf.ByteString getAdministrativeAreaBytes() { java.lang.Object ref = administrativeArea_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -1401,28 +1568,35 @@ public java.lang.String getAdministrativeArea() { } } /** + * + * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; + * * @param value The administrativeArea to set. * @return This builder for chaining. */ - public Builder setAdministrativeArea( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAdministrativeArea(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } administrativeArea_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; + * * @return This builder for chaining. */ public Builder clearAdministrativeArea() { @@ -1432,17 +1606,21 @@ public Builder clearAdministrativeArea() { return this; } /** + * + * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; + * * @param value The bytes for administrativeArea to set. * @return This builder for chaining. */ - public Builder setAdministrativeAreaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); administrativeArea_ = value; bitField0_ |= 0x00000008; @@ -1452,18 +1630,20 @@ public Builder setAdministrativeAreaBytes( private java.lang.Object regionCode_ = ""; /** + * + * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; + * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; @@ -1472,20 +1652,21 @@ public java.lang.String getRegionCode() { } } /** + * + * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; + * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { @@ -1493,28 +1674,35 @@ public java.lang.String getRegionCode() { } } /** + * + * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; + * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } regionCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; + * * @return This builder for chaining. */ public Builder clearRegionCode() { @@ -1524,17 +1712,21 @@ public Builder clearRegionCode() { return this; } /** + * + * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; + * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); regionCode_ = value; bitField0_ |= 0x00000010; @@ -1544,18 +1736,20 @@ public Builder setRegionCodeBytes( private java.lang.Object postalCode_ = ""; /** + * + * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; + * * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; @@ -1564,20 +1758,21 @@ public java.lang.String getPostalCode() { } } /** + * + * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; + * * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString - getPostalCodeBytes() { + public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1585,28 +1780,35 @@ public java.lang.String getPostalCode() { } } /** + * + * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; + * * @param value The postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPostalCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; + * * @return This builder for chaining. */ public Builder clearPostalCode() { @@ -1616,23 +1818,28 @@ public Builder clearPostalCode() { return this; } /** + * + * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; + * * @param value The bytes for postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1645,41 +1852,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) - private static final com.google.recaptchaenterprise.v1beta1.TransactionData.Address DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.TransactionData.Address + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData.Address(); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Address parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1691,17 +1901,20 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Address + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UserOrBuilder extends + public interface UserOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Unique account identifier for this user. If using account defender,
      * this should match the hashed_account_id field. Otherwise, a unique and
@@ -1709,10 +1922,13 @@ public interface UserOrBuilder extends
      * 
* * string account_id = 6; + * * @return The accountId. */ java.lang.String getAccountId(); /** + * + * *
      * Unique account identifier for this user. If using account defender,
      * this should match the hashed_account_id field. Otherwise, a unique and
@@ -1720,99 +1936,121 @@ public interface UserOrBuilder extends
      * 
* * string account_id = 6; + * * @return The bytes for accountId. */ - com.google.protobuf.ByteString - getAccountIdBytes(); + com.google.protobuf.ByteString getAccountIdBytes(); /** + * + * *
      * The epoch milliseconds of the user's account creation.
      * 
* * int64 creation_ms = 1; + * * @return The creationMs. */ long getCreationMs(); /** + * + * *
      * The email address of the user.
      * 
* * string email = 2; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
      * The email address of the user.
      * 
* * string email = 2; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); /** + * + * *
      * Whether the email has been verified to be accessible by the user (OTP or
      * similar).
      * 
* * bool email_verified = 3; + * * @return The emailVerified. */ boolean getEmailVerified(); /** + * + * *
      * The phone number of the user, with country code.
      * 
* * string phone_number = 4; + * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** + * + * *
      * The phone number of the user, with country code.
      * 
* * string phone_number = 4; + * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString - getPhoneNumberBytes(); + com.google.protobuf.ByteString getPhoneNumberBytes(); /** + * + * *
      * Whether the phone number has been verified to be accessible by the user
      * (OTP or similar).
      * 
* * bool phone_verified = 5; + * * @return The phoneVerified. */ boolean getPhoneVerified(); } /** + * + * *
    * Details about a user's account involved in the transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.User} */ - public static final class User extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class User extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) UserOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private User() { accountId_ = ""; email_ = ""; @@ -1821,28 +2059,32 @@ private User() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new User(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.User.class, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.User.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** + * + * *
      * Unique account identifier for this user. If using account defender,
      * this should match the hashed_account_id field. Otherwise, a unique and
@@ -1850,6 +2092,7 @@ protected java.lang.Object newInstance(
      * 
* * string account_id = 6; + * * @return The accountId. */ @java.lang.Override @@ -1858,14 +2101,15 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** + * + * *
      * Unique account identifier for this user. If using account defender,
      * this should match the hashed_account_id field. Otherwise, a unique and
@@ -1873,16 +2117,15 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 6; + * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -1893,11 +2136,14 @@ public java.lang.String getAccountId() { public static final int CREATION_MS_FIELD_NUMBER = 1; private long creationMs_ = 0L; /** + * + * *
      * The epoch milliseconds of the user's account creation.
      * 
* * int64 creation_ms = 1; + * * @return The creationMs. */ @java.lang.Override @@ -1906,14 +2152,18 @@ public long getCreationMs() { } public static final int EMAIL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** + * + * *
      * The email address of the user.
      * 
* * string email = 2; + * * @return The email. */ @java.lang.Override @@ -1922,29 +2172,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
      * The email address of the user.
      * 
* * string email = 2; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -1955,12 +2205,15 @@ public java.lang.String getEmail() { public static final int EMAIL_VERIFIED_FIELD_NUMBER = 3; private boolean emailVerified_ = false; /** + * + * *
      * Whether the email has been verified to be accessible by the user (OTP or
      * similar).
      * 
* * bool email_verified = 3; + * * @return The emailVerified. */ @java.lang.Override @@ -1969,14 +2222,18 @@ public boolean getEmailVerified() { } public static final int PHONE_NUMBER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object phoneNumber_ = ""; /** + * + * *
      * The phone number of the user, with country code.
      * 
* * string phone_number = 4; + * * @return The phoneNumber. */ @java.lang.Override @@ -1985,29 +2242,29 @@ public java.lang.String getPhoneNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } } /** + * + * *
      * The phone number of the user, with country code.
      * 
* * string phone_number = 4; + * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -2018,12 +2275,15 @@ public java.lang.String getPhoneNumber() { public static final int PHONE_VERIFIED_FIELD_NUMBER = 5; private boolean phoneVerified_ = false; /** + * + * *
      * Whether the phone number has been verified to be accessible by the user
      * (OTP or similar).
      * 
* * bool phone_verified = 5; + * * @return The phoneVerified. */ @java.lang.Override @@ -2032,6 +2292,7 @@ public boolean getPhoneVerified() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2043,8 +2304,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (creationMs_ != 0L) { output.writeInt64(1, creationMs_); } @@ -2073,22 +2333,19 @@ public int getSerializedSize() { size = 0; if (creationMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, creationMs_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, creationMs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); } if (emailVerified_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, emailVerified_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, emailVerified_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phoneNumber_); } if (phoneVerified_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, phoneVerified_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, phoneVerified_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, accountId_); @@ -2101,25 +2358,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.recaptchaenterprise.v1beta1.TransactionData.User)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData.User other = (com.google.recaptchaenterprise.v1beta1.TransactionData.User) obj; - - if (!getAccountId() - .equals(other.getAccountId())) return false; - if (getCreationMs() - != other.getCreationMs()) return false; - if (!getEmail() - .equals(other.getEmail())) return false; - if (getEmailVerified() - != other.getEmailVerified()) return false; - if (!getPhoneNumber() - .equals(other.getPhoneNumber())) return false; - if (getPhoneVerified() - != other.getPhoneVerified()) return false; + com.google.recaptchaenterprise.v1beta1.TransactionData.User other = + (com.google.recaptchaenterprise.v1beta1.TransactionData.User) obj; + + if (!getAccountId().equals(other.getAccountId())) return false; + if (getCreationMs() != other.getCreationMs()) return false; + if (!getEmail().equals(other.getEmail())) return false; + if (getEmailVerified() != other.getEmailVerified()) return false; + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (getPhoneVerified() != other.getPhoneVerified()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2134,107 +2386,109 @@ public int hashCode() { hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); hash = (37 * hash) + CREATION_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreationMs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreationMs()); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + EMAIL_VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEmailVerified()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailVerified()); hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); hash = (37 * hash) + PHONE_VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPhoneVerified()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPhoneVerified()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData.User prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2244,39 +2498,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about a user's account involved in the transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.User} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.User.class, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.User.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.User.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2291,13 +2547,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.User getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.User + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance(); } @@ -2312,13 +2569,17 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.User buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData.User result = new com.google.recaptchaenterprise.v1beta1.TransactionData.User(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.TransactionData.User result = + new com.google.recaptchaenterprise.v1beta1.TransactionData.User(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionData.User result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.TransactionData.User result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountId_; @@ -2344,38 +2605,41 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionDat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1beta1.TransactionData.User) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.User)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.User) other); } else { super.mergeFrom(other); return this; @@ -2383,7 +2647,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData.User other) { - if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()) + return this; if (!other.getAccountId().isEmpty()) { accountId_ = other.accountId_; bitField0_ |= 0x00000001; @@ -2434,42 +2700,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - creationMs_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 18: { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: { - emailVerified_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: { - phoneNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: { - phoneVerified_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: { - accountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + creationMs_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + emailVerified_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + phoneVerified_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -2479,10 +2752,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object accountId_ = ""; /** + * + * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2490,13 +2766,13 @@ public Builder mergeFrom(
        * 
* * string account_id = 6; + * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -2505,6 +2781,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2512,15 +2790,14 @@ public java.lang.String getAccountId() {
        * 
* * string account_id = 6; + * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString - getAccountIdBytes() { + public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountId_ = b; return b; } else { @@ -2528,6 +2805,8 @@ public java.lang.String getAccountId() { } } /** + * + * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2535,18 +2814,22 @@ public java.lang.String getAccountId() {
        * 
* * string account_id = 6; + * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2554,6 +2837,7 @@ public Builder setAccountId(
        * 
* * string account_id = 6; + * * @return This builder for chaining. */ public Builder clearAccountId() { @@ -2563,6 +2847,8 @@ public Builder clearAccountId() { return this; } /** + * + * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2570,12 +2856,14 @@ public Builder clearAccountId() {
        * 
* * string account_id = 6; + * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000001; @@ -2583,13 +2871,16 @@ public Builder setAccountIdBytes( return this; } - private long creationMs_ ; + private long creationMs_; /** + * + * *
        * The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1; + * * @return The creationMs. */ @java.lang.Override @@ -2597,11 +2888,14 @@ public long getCreationMs() { return creationMs_; } /** + * + * *
        * The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1; + * * @param value The creationMs to set. * @return This builder for chaining. */ @@ -2613,11 +2907,14 @@ public Builder setCreationMs(long value) { return this; } /** + * + * *
        * The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1; + * * @return This builder for chaining. */ public Builder clearCreationMs() { @@ -2629,18 +2926,20 @@ public Builder clearCreationMs() { private java.lang.Object email_ = ""; /** + * + * *
        * The email address of the user.
        * 
* * string email = 2; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -2649,20 +2948,21 @@ public java.lang.String getEmail() { } } /** + * + * *
        * The email address of the user.
        * 
* * string email = 2; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -2670,28 +2970,35 @@ public java.lang.String getEmail() { } } /** + * + * *
        * The email address of the user.
        * 
* * string email = 2; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } email_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * The email address of the user.
        * 
* * string email = 2; + * * @return This builder for chaining. */ public Builder clearEmail() { @@ -2701,17 +3008,21 @@ public Builder clearEmail() { return this; } /** + * + * *
        * The email address of the user.
        * 
* * string email = 2; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000004; @@ -2719,14 +3030,17 @@ public Builder setEmailBytes( return this; } - private boolean emailVerified_ ; + private boolean emailVerified_; /** + * + * *
        * Whether the email has been verified to be accessible by the user (OTP or
        * similar).
        * 
* * bool email_verified = 3; + * * @return The emailVerified. */ @java.lang.Override @@ -2734,12 +3048,15 @@ public boolean getEmailVerified() { return emailVerified_; } /** + * + * *
        * Whether the email has been verified to be accessible by the user (OTP or
        * similar).
        * 
* * bool email_verified = 3; + * * @param value The emailVerified to set. * @return This builder for chaining. */ @@ -2751,12 +3068,15 @@ public Builder setEmailVerified(boolean value) { return this; } /** + * + * *
        * Whether the email has been verified to be accessible by the user (OTP or
        * similar).
        * 
* * bool email_verified = 3; + * * @return This builder for chaining. */ public Builder clearEmailVerified() { @@ -2768,18 +3088,20 @@ public Builder clearEmailVerified() { private java.lang.Object phoneNumber_ = ""; /** + * + * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; + * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; @@ -2788,20 +3110,21 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; + * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -2809,28 +3132,35 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; + * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phoneNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; + * * @return This builder for chaining. */ public Builder clearPhoneNumber() { @@ -2840,17 +3170,21 @@ public Builder clearPhoneNumber() { return this; } /** + * + * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; + * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phoneNumber_ = value; bitField0_ |= 0x00000010; @@ -2858,14 +3192,17 @@ public Builder setPhoneNumberBytes( return this; } - private boolean phoneVerified_ ; + private boolean phoneVerified_; /** + * + * *
        * Whether the phone number has been verified to be accessible by the user
        * (OTP or similar).
        * 
* * bool phone_verified = 5; + * * @return The phoneVerified. */ @java.lang.Override @@ -2873,12 +3210,15 @@ public boolean getPhoneVerified() { return phoneVerified_; } /** + * + * *
        * Whether the phone number has been verified to be accessible by the user
        * (OTP or similar).
        * 
* * bool phone_verified = 5; + * * @param value The phoneVerified to set. * @return This builder for chaining. */ @@ -2890,12 +3230,15 @@ public Builder setPhoneVerified(boolean value) { return this; } /** + * + * *
        * Whether the phone number has been verified to be accessible by the user
        * (OTP or similar).
        * 
* * bool phone_verified = 5; + * * @return This builder for chaining. */ public Builder clearPhoneVerified() { @@ -2904,6 +3247,7 @@ public Builder clearPhoneVerified() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2916,12 +3260,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) - private static final com.google.recaptchaenterprise.v1beta1.TransactionData.User DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.TransactionData.User + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData.User(); } @@ -2930,27 +3275,28 @@ public static com.google.recaptchaenterprise.v1beta1.TransactionData.User getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2965,92 +3311,111 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TransactionData.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ItemOrBuilder extends + public interface ItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The full name of the item.
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * The full name of the item.
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * The value per item that the user is paying, in the transaction currency,
      * after discounts.
      * 
* * double value = 2; + * * @return The value. */ double getValue(); /** + * + * *
      * The quantity of this item that is being purchased.
      * 
* * int64 quantity = 3; + * * @return The quantity. */ long getQuantity(); /** + * + * *
      * When a merchant is specified, its corresponding account_id. Necessary to
      * populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4; + * * @return The merchantAccountId. */ java.lang.String getMerchantAccountId(); /** + * + * *
      * When a merchant is specified, its corresponding account_id. Necessary to
      * populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4; + * * @return The bytes for merchantAccountId. */ - com.google.protobuf.ByteString - getMerchantAccountIdBytes(); + com.google.protobuf.ByteString getMerchantAccountIdBytes(); } /** + * + * *
    * Line items being purchased in this transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item} */ - public static final class Item extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Item extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) ItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Item.newBuilder() to construct. private Item(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Item() { name_ = ""; merchantAccountId_ = ""; @@ -3058,33 +3423,38 @@ private Item() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Item(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * The full name of the item.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -3093,29 +3463,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * The full name of the item.
      * 
* * 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 { @@ -3126,12 +3496,15 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private double value_ = 0D; /** + * + * *
      * The value per item that the user is paying, in the transaction currency,
      * after discounts.
      * 
* * double value = 2; + * * @return The value. */ @java.lang.Override @@ -3142,11 +3515,14 @@ public double getValue() { public static final int QUANTITY_FIELD_NUMBER = 3; private long quantity_ = 0L; /** + * + * *
      * The quantity of this item that is being purchased.
      * 
* * int64 quantity = 3; + * * @return The quantity. */ @java.lang.Override @@ -3155,15 +3531,19 @@ public long getQuantity() { } public static final int MERCHANT_ACCOUNT_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object merchantAccountId_ = ""; /** + * + * *
      * When a merchant is specified, its corresponding account_id. Necessary to
      * populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4; + * * @return The merchantAccountId. */ @java.lang.Override @@ -3172,30 +3552,30 @@ public java.lang.String getMerchantAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); merchantAccountId_ = s; return s; } } /** + * + * *
      * When a merchant is specified, its corresponding account_id. Necessary to
      * populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4; + * * @return The bytes for merchantAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMerchantAccountIdBytes() { + public com.google.protobuf.ByteString getMerchantAccountIdBytes() { java.lang.Object ref = merchantAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); merchantAccountId_ = b; return b; } else { @@ -3204,6 +3584,7 @@ public java.lang.String getMerchantAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3215,8 +3596,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -3242,12 +3622,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, value_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_); } if (quantity_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, quantity_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, quantity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(merchantAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, merchantAccountId_); @@ -3260,22 +3638,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.Item)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData.Item other = (com.google.recaptchaenterprise.v1beta1.TransactionData.Item) obj; + com.google.recaptchaenterprise.v1beta1.TransactionData.Item other = + (com.google.recaptchaenterprise.v1beta1.TransactionData.Item) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; - if (getQuantity() - != other.getQuantity()) return false; - if (!getMerchantAccountId() - .equals(other.getMerchantAccountId())) return false; + != java.lang.Double.doubleToLongBits(other.getValue())) return false; + if (getQuantity() != other.getQuantity()) return false; + if (!getMerchantAccountId().equals(other.getMerchantAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3290,11 +3665,12 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getQuantity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getQuantity()); hash = (37 * hash) + MERCHANT_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getMerchantAccountId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -3303,89 +3679,94 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData.Item prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData.Item prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3395,39 +3776,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Line items being purchased in this transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.Item.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3440,13 +3823,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Item + getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance(); } @@ -3461,13 +3845,17 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Item buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData.Item result = new com.google.recaptchaenterprise.v1beta1.TransactionData.Item(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.TransactionData.Item result = + new com.google.recaptchaenterprise.v1beta1.TransactionData.Item(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionData.Item result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.TransactionData.Item result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -3487,38 +3875,41 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionDat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1beta1.TransactionData.Item) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.Item)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.Item) other); } else { super.mergeFrom(other); return this; @@ -3526,7 +3917,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData.Item other) { - if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()) return this; + if (other + == com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -3569,32 +3962,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: { - value_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 24: { - quantity_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - merchantAccountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 24: + { + quantity_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + merchantAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -3604,22 +4002,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
        * The full name of the item.
        * 
* * 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; @@ -3628,20 +4029,21 @@ public java.lang.String getName() { } } /** + * + * *
        * The full name of the item.
        * 
* * 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 { @@ -3649,28 +4051,35 @@ public java.lang.String getName() { } } /** + * + * *
        * The full name of the item.
        * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The full name of the item.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3680,17 +4089,21 @@ public Builder clearName() { return this; } /** + * + * *
        * The full name of the item.
        * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3698,14 +4111,17 @@ public Builder setNameBytes( return this; } - private double value_ ; + private double value_; /** + * + * *
        * The value per item that the user is paying, in the transaction currency,
        * after discounts.
        * 
* * double value = 2; + * * @return The value. */ @java.lang.Override @@ -3713,12 +4129,15 @@ public double getValue() { return value_; } /** + * + * *
        * The value per item that the user is paying, in the transaction currency,
        * after discounts.
        * 
* * double value = 2; + * * @param value The value to set. * @return This builder for chaining. */ @@ -3730,12 +4149,15 @@ public Builder setValue(double value) { return this; } /** + * + * *
        * The value per item that the user is paying, in the transaction currency,
        * after discounts.
        * 
* * double value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -3745,13 +4167,16 @@ public Builder clearValue() { return this; } - private long quantity_ ; + private long quantity_; /** + * + * *
        * The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3; + * * @return The quantity. */ @java.lang.Override @@ -3759,11 +4184,14 @@ public long getQuantity() { return quantity_; } /** + * + * *
        * The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3; + * * @param value The quantity to set. * @return This builder for chaining. */ @@ -3775,11 +4203,14 @@ public Builder setQuantity(long value) { return this; } /** + * + * *
        * The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3; + * * @return This builder for chaining. */ public Builder clearQuantity() { @@ -3791,19 +4222,21 @@ public Builder clearQuantity() { private java.lang.Object merchantAccountId_ = ""; /** + * + * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; + * * @return The merchantAccountId. */ public java.lang.String getMerchantAccountId() { java.lang.Object ref = merchantAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); merchantAccountId_ = s; return s; @@ -3812,21 +4245,22 @@ public java.lang.String getMerchantAccountId() { } } /** + * + * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; + * * @return The bytes for merchantAccountId. */ - public com.google.protobuf.ByteString - getMerchantAccountIdBytes() { + public com.google.protobuf.ByteString getMerchantAccountIdBytes() { java.lang.Object ref = merchantAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); merchantAccountId_ = b; return b; } else { @@ -3834,30 +4268,37 @@ public java.lang.String getMerchantAccountId() { } } /** + * + * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; + * * @param value The merchantAccountId to set. * @return This builder for chaining. */ - public Builder setMerchantAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMerchantAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } merchantAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; + * * @return This builder for chaining. */ public Builder clearMerchantAccountId() { @@ -3867,24 +4308,29 @@ public Builder clearMerchantAccountId() { return this; } /** + * + * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; + * * @param value The bytes for merchantAccountId to set. * @return This builder for chaining. */ - public Builder setMerchantAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMerchantAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); merchantAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3897,12 +4343,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) - private static final com.google.recaptchaenterprise.v1beta1.TransactionData.Item DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.TransactionData.Item + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData.Item(); } @@ -3911,27 +4358,28 @@ public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Item parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Item parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -3946,113 +4394,136 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GatewayInfoOrBuilder extends + public interface GatewayInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Name of the gateway service (for example, stripe, square, paypal).
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Name of the gateway service (for example, stripe, square, paypal).
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2; + * * @return The gatewayResponseCode. */ java.lang.String getGatewayResponseCode(); /** + * + * *
      * Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2; + * * @return The bytes for gatewayResponseCode. */ - com.google.protobuf.ByteString - getGatewayResponseCodeBytes(); + com.google.protobuf.ByteString getGatewayResponseCodeBytes(); /** + * + * *
      * AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3; + * * @return The avsResponseCode. */ java.lang.String getAvsResponseCode(); /** + * + * *
      * AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3; + * * @return The bytes for avsResponseCode. */ - com.google.protobuf.ByteString - getAvsResponseCodeBytes(); + com.google.protobuf.ByteString getAvsResponseCodeBytes(); /** + * + * *
      * CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4; + * * @return The cvvResponseCode. */ java.lang.String getCvvResponseCode(); /** + * + * *
      * CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4; + * * @return The bytes for cvvResponseCode. */ - com.google.protobuf.ByteString - getCvvResponseCodeBytes(); + com.google.protobuf.ByteString getCvvResponseCodeBytes(); } /** + * + * *
    * Details about the transaction from the gateway.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo} */ - public static final class GatewayInfo extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GatewayInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) GatewayInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatewayInfo.newBuilder() to construct. private GatewayInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GatewayInfo() { name_ = ""; gatewayResponseCode_ = ""; @@ -4062,33 +4533,38 @@ private GatewayInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GatewayInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.class, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Name of the gateway service (for example, stripe, square, paypal).
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -4097,29 +4573,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Name of the gateway service (for example, stripe, square, paypal).
      * 
* * 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 { @@ -4128,14 +4604,18 @@ public java.lang.String getName() { } public static final int GATEWAY_RESPONSE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object gatewayResponseCode_ = ""; /** + * + * *
      * Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2; + * * @return The gatewayResponseCode. */ @java.lang.Override @@ -4144,29 +4624,29 @@ public java.lang.String getGatewayResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayResponseCode_ = s; return s; } } /** + * + * *
      * Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2; + * * @return The bytes for gatewayResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getGatewayResponseCodeBytes() { + public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { java.lang.Object ref = gatewayResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gatewayResponseCode_ = b; return b; } else { @@ -4175,15 +4655,19 @@ public java.lang.String getGatewayResponseCode() { } public static final int AVS_RESPONSE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object avsResponseCode_ = ""; /** + * + * *
      * AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3; + * * @return The avsResponseCode. */ @java.lang.Override @@ -4192,30 +4676,30 @@ public java.lang.String getAvsResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avsResponseCode_ = s; return s; } } /** + * + * *
      * AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3; + * * @return The bytes for avsResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getAvsResponseCodeBytes() { + public com.google.protobuf.ByteString getAvsResponseCodeBytes() { java.lang.Object ref = avsResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); avsResponseCode_ = b; return b; } else { @@ -4224,15 +4708,19 @@ public java.lang.String getAvsResponseCode() { } public static final int CVV_RESPONSE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object cvvResponseCode_ = ""; /** + * + * *
      * CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4; + * * @return The cvvResponseCode. */ @java.lang.Override @@ -4241,30 +4729,30 @@ public java.lang.String getCvvResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cvvResponseCode_ = s; return s; } } /** + * + * *
      * CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4; + * * @return The bytes for cvvResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCvvResponseCodeBytes() { + public com.google.protobuf.ByteString getCvvResponseCodeBytes() { java.lang.Object ref = cvvResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cvvResponseCode_ = b; return b; } else { @@ -4273,6 +4761,7 @@ public java.lang.String getCvvResponseCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4284,8 +4773,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -4327,21 +4815,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.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo other = (com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) obj; + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo other = + (com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getGatewayResponseCode() - .equals(other.getGatewayResponseCode())) return false; - if (!getAvsResponseCode() - .equals(other.getAvsResponseCode())) return false; - if (!getCvvResponseCode() - .equals(other.getCvvResponseCode())) return false; + if (!getName().equals(other.getName())) return false; + if (!getGatewayResponseCode().equals(other.getGatewayResponseCode())) return false; + if (!getAvsResponseCode().equals(other.getAvsResponseCode())) return false; + if (!getCvvResponseCode().equals(other.getCvvResponseCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4367,89 +4852,95 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4459,39 +4950,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about the transaction from the gateway.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.class, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder.class); } - // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.newBuilder() - private Builder() { + // Construct using + // com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4504,14 +4998,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance(); + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + .getDefaultInstance(); } @java.lang.Override @@ -4525,13 +5021,17 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo build( @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo result = new com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo result = + new com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo result) { + private void buildPartial0( + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -4551,46 +5051,53 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionDat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo)other); + return mergeFrom( + (com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo other) { - if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo other) { + if (other + == com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -4637,32 +5144,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - gatewayResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - avsResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - cvvResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gatewayResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + avsResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + cvvResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -4672,22 +5184,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * 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; @@ -4696,20 +5211,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * 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 { @@ -4717,28 +5233,35 @@ public java.lang.String getName() { } } /** + * + * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -4748,17 +5271,21 @@ public Builder clearName() { return this; } /** + * + * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4768,18 +5295,20 @@ public Builder setNameBytes( private java.lang.Object gatewayResponseCode_ = ""; /** + * + * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; + * * @return The gatewayResponseCode. */ public java.lang.String getGatewayResponseCode() { java.lang.Object ref = gatewayResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayResponseCode_ = s; return s; @@ -4788,20 +5317,21 @@ public java.lang.String getGatewayResponseCode() { } } /** + * + * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; + * * @return The bytes for gatewayResponseCode. */ - public com.google.protobuf.ByteString - getGatewayResponseCodeBytes() { + public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { java.lang.Object ref = gatewayResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gatewayResponseCode_ = b; return b; } else { @@ -4809,28 +5339,35 @@ public java.lang.String getGatewayResponseCode() { } } /** + * + * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; + * * @param value The gatewayResponseCode to set. * @return This builder for chaining. */ - public Builder setGatewayResponseCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGatewayResponseCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } gatewayResponseCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; + * * @return This builder for chaining. */ public Builder clearGatewayResponseCode() { @@ -4840,17 +5377,21 @@ public Builder clearGatewayResponseCode() { return this; } /** + * + * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; + * * @param value The bytes for gatewayResponseCode to set. * @return This builder for chaining. */ - public Builder setGatewayResponseCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGatewayResponseCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); gatewayResponseCode_ = value; bitField0_ |= 0x00000002; @@ -4860,19 +5401,21 @@ public Builder setGatewayResponseCodeBytes( private java.lang.Object avsResponseCode_ = ""; /** + * + * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; + * * @return The avsResponseCode. */ public java.lang.String getAvsResponseCode() { java.lang.Object ref = avsResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avsResponseCode_ = s; return s; @@ -4881,21 +5424,22 @@ public java.lang.String getAvsResponseCode() { } } /** + * + * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; + * * @return The bytes for avsResponseCode. */ - public com.google.protobuf.ByteString - getAvsResponseCodeBytes() { + public com.google.protobuf.ByteString getAvsResponseCodeBytes() { java.lang.Object ref = avsResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); avsResponseCode_ = b; return b; } else { @@ -4903,30 +5447,37 @@ public java.lang.String getAvsResponseCode() { } } /** + * + * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; + * * @param value The avsResponseCode to set. * @return This builder for chaining. */ - public Builder setAvsResponseCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAvsResponseCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } avsResponseCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; + * * @return This builder for chaining. */ public Builder clearAvsResponseCode() { @@ -4936,18 +5487,22 @@ public Builder clearAvsResponseCode() { return this; } /** + * + * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; + * * @param value The bytes for avsResponseCode to set. * @return This builder for chaining. */ - public Builder setAvsResponseCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAvsResponseCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); avsResponseCode_ = value; bitField0_ |= 0x00000004; @@ -4957,19 +5512,21 @@ public Builder setAvsResponseCodeBytes( private java.lang.Object cvvResponseCode_ = ""; /** + * + * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; + * * @return The cvvResponseCode. */ public java.lang.String getCvvResponseCode() { java.lang.Object ref = cvvResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cvvResponseCode_ = s; return s; @@ -4978,21 +5535,22 @@ public java.lang.String getCvvResponseCode() { } } /** + * + * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; + * * @return The bytes for cvvResponseCode. */ - public com.google.protobuf.ByteString - getCvvResponseCodeBytes() { + public com.google.protobuf.ByteString getCvvResponseCodeBytes() { java.lang.Object ref = cvvResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cvvResponseCode_ = b; return b; } else { @@ -5000,30 +5558,37 @@ public java.lang.String getCvvResponseCode() { } } /** + * + * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; + * * @param value The cvvResponseCode to set. * @return This builder for chaining. */ - public Builder setCvvResponseCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCvvResponseCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cvvResponseCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; + * * @return This builder for chaining. */ public Builder clearCvvResponseCode() { @@ -5033,24 +5598,29 @@ public Builder clearCvvResponseCode() { return this; } /** + * + * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; + * * @param value The bytes for cvvResponseCode to set. * @return This builder for chaining. */ - public Builder setCvvResponseCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCvvResponseCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cvvResponseCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5063,41 +5633,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) - private static final com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo DEFAULT_INSTANCE; + private static final com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo(); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatewayInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -5109,17 +5682,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int TRANSACTION_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object transactionId_ = ""; /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5128,6 +5704,7 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getDef
    * 
* * optional string transaction_id = 11; + * * @return Whether the transactionId field is set. */ @java.lang.Override @@ -5135,6 +5712,8 @@ public boolean hasTransactionId() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5143,6 +5722,7 @@ public boolean hasTransactionId() {
    * 
* * optional string transaction_id = 11; + * * @return The transactionId. */ @java.lang.Override @@ -5151,14 +5731,15 @@ public java.lang.String getTransactionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; } } /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5167,16 +5748,15 @@ public java.lang.String getTransactionId() {
    * 
* * optional string transaction_id = 11; + * * @return The bytes for transactionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTransactionIdBytes() { + public com.google.protobuf.ByteString getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); transactionId_ = b; return b; } else { @@ -5185,9 +5765,12 @@ public java.lang.String getTransactionId() { } public static final int PAYMENT_METHOD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object paymentMethod_ = ""; /** + * + * *
    * The payment method for the transaction. The allowed values are:
    *
@@ -5201,6 +5784,7 @@ public java.lang.String getTransactionId() {
    * 
* * string payment_method = 1; + * * @return The paymentMethod. */ @java.lang.Override @@ -5209,14 +5793,15 @@ public java.lang.String getPaymentMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentMethod_ = s; return s; } } /** + * + * *
    * The payment method for the transaction. The allowed values are:
    *
@@ -5230,16 +5815,15 @@ public java.lang.String getPaymentMethod() {
    * 
* * string payment_method = 1; + * * @return The bytes for paymentMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPaymentMethodBytes() { + public com.google.protobuf.ByteString getPaymentMethodBytes() { java.lang.Object ref = paymentMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); paymentMethod_ = b; return b; } else { @@ -5248,15 +5832,19 @@ public java.lang.String getPaymentMethod() { } public static final int CARD_BIN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object cardBin_ = ""; /** + * + * *
    * The Bank Identification Number - generally the first 6 or 8 digits of the
    * card.
    * 
* * string card_bin = 2; + * * @return The cardBin. */ @java.lang.Override @@ -5265,30 +5853,30 @@ public java.lang.String getCardBin() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardBin_ = s; return s; } } /** + * + * *
    * The Bank Identification Number - generally the first 6 or 8 digits of the
    * card.
    * 
* * string card_bin = 2; + * * @return The bytes for cardBin. */ @java.lang.Override - public com.google.protobuf.ByteString - getCardBinBytes() { + public com.google.protobuf.ByteString getCardBinBytes() { java.lang.Object ref = cardBin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cardBin_ = b; return b; } else { @@ -5297,14 +5885,18 @@ public java.lang.String getCardBin() { } public static final int CARD_LAST_FOUR_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object cardLastFour_ = ""; /** + * + * *
    * The last four digits of the card.
    * 
* * string card_last_four = 3; + * * @return The cardLastFour. */ @java.lang.Override @@ -5313,29 +5905,29 @@ public java.lang.String getCardLastFour() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardLastFour_ = s; return s; } } /** + * + * *
    * The last four digits of the card.
    * 
* * string card_last_four = 3; + * * @return The bytes for cardLastFour. */ @java.lang.Override - public com.google.protobuf.ByteString - getCardLastFourBytes() { + public com.google.protobuf.ByteString getCardLastFourBytes() { java.lang.Object ref = cardLastFour_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cardLastFour_ = b; return b; } else { @@ -5344,14 +5936,18 @@ public java.lang.String getCardLastFour() { } public static final int CURRENCY_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object currencyCode_ = ""; /** + * + * *
    * The currency code in ISO-4217 format.
    * 
* * string currency_code = 4; + * * @return The currencyCode. */ @java.lang.Override @@ -5360,29 +5956,29 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** + * + * *
    * The currency code in ISO-4217 format.
    * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -5393,11 +5989,14 @@ public java.lang.String getCurrencyCode() { public static final int VALUE_FIELD_NUMBER = 5; private double value_ = 0D; /** + * + * *
    * The decimal value of the transaction in the specified currency.
    * 
* * double value = 5; + * * @return The value. */ @java.lang.Override @@ -5408,11 +6007,14 @@ public double getValue() { public static final int SHIPPING_VALUE_FIELD_NUMBER = 12; private double shippingValue_ = 0D; /** + * + * *
    * The value of shipping in the specified currency. 0 for free or no shipping.
    * 
* * double shipping_value = 12; + * * @return The shippingValue. */ @java.lang.Override @@ -5423,11 +6025,15 @@ public double getShippingValue() { public static final int SHIPPING_ADDRESS_FIELD_NUMBER = 6; private com.google.recaptchaenterprise.v1beta1.TransactionData.Address shippingAddress_; /** + * + * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * + * * @return Whether the shippingAddress field is set. */ @java.lang.Override @@ -5435,37 +6041,53 @@ public boolean hasShippingAddress() { return shippingAddress_ != null; } /** + * + * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * + * * @return The shippingAddress. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getShippingAddress() { - return shippingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : shippingAddress_; + return shippingAddress_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() + : shippingAddress_; } /** + * + * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder() { - return shippingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : shippingAddress_; + public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder + getShippingAddressOrBuilder() { + return shippingAddress_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() + : shippingAddress_; } public static final int BILLING_ADDRESS_FIELD_NUMBER = 7; private com.google.recaptchaenterprise.v1beta1.TransactionData.Address billingAddress_; /** + * + * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * + * * @return Whether the billingAddress field is set. */ @java.lang.Override @@ -5473,37 +6095,52 @@ public boolean hasBillingAddress() { return billingAddress_ != null; } /** + * + * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * + * * @return The billingAddress. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getBillingAddress() { - return billingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : billingAddress_; + return billingAddress_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() + : billingAddress_; } /** + * + * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder() { - return billingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : billingAddress_; + public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder + getBillingAddressOrBuilder() { + return billingAddress_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() + : billingAddress_; } public static final int USER_FIELD_NUMBER = 8; private com.google.recaptchaenterprise.v1beta1.TransactionData.User user_; /** + * + * *
    * Information about the user paying/initiating the transaction.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; + * * @return Whether the user field is set. */ @java.lang.Override @@ -5511,18 +6148,25 @@ public boolean hasUser() { return user_ != null; } /** + * + * *
    * Information about the user paying/initiating the transaction.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; + * * @return The user. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.User getUser() { - return user_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() : user_; + return user_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() + : user_; } /** + * + * *
    * Information about the user paying/initiating the transaction.
    * 
@@ -5531,63 +6175,83 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User getUser() { */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getUserOrBuilder() { - return user_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() : user_; + return user_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() + : user_; } public static final int MERCHANTS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private java.util.List merchants_; /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ @java.lang.Override - public java.util.List getMerchantsList() { + public java.util.List + getMerchantsList() { return merchants_; } /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> getMerchantsOrBuilderList() { return merchants_; } /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ @java.lang.Override public int getMerchantsCount() { return merchants_.size(); } /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.User getMerchants(int index) { return merchants_.get(index); } /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getMerchantsOrBuilder( @@ -5596,59 +6260,77 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getM } public static final int ITEMS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List items_; /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ @java.lang.Override - public java.util.List getItemsList() { + public java.util.List + getItemsList() { return items_; } /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> getItemsOrBuilderList() { return items_; } /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ @java.lang.Override public int getItemsCount() { return items_.size(); } /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getItems(int index) { return items_.get(index); } /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getItemsOrBuilder( @@ -5659,11 +6341,15 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getI public static final int GATEWAY_INFO_FIELD_NUMBER = 10; private com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gatewayInfo_; /** + * + * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * * @return Whether the gatewayInfo field is set. */ @java.lang.Override @@ -5671,30 +6357,43 @@ public boolean hasGatewayInfo() { return gatewayInfo_ != null; } /** + * + * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * * @return The gatewayInfo. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getGatewayInfo() { - return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; + return gatewayInfo_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() + : gatewayInfo_; } /** + * + * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder() { - return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder + getGatewayInfoOrBuilder() { + return gatewayInfo_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() + : gatewayInfo_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5706,8 +6405,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paymentMethod_); } @@ -5769,39 +6467,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, value_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, value_); } if (shippingAddress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getShippingAddress()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getShippingAddress()); } if (billingAddress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getBillingAddress()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBillingAddress()); } if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUser()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUser()); } if (gatewayInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getGatewayInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getGatewayInfo()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, transactionId_); } if (java.lang.Double.doubleToRawLongBits(shippingValue_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(12, shippingValue_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, shippingValue_); } for (int i = 0; i < merchants_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, merchants_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, merchants_.get(i)); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, items_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5811,55 +6501,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionData)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData other = (com.google.recaptchaenterprise.v1beta1.TransactionData) obj; + com.google.recaptchaenterprise.v1beta1.TransactionData other = + (com.google.recaptchaenterprise.v1beta1.TransactionData) obj; if (hasTransactionId() != other.hasTransactionId()) return false; if (hasTransactionId()) { - if (!getTransactionId() - .equals(other.getTransactionId())) return false; - } - if (!getPaymentMethod() - .equals(other.getPaymentMethod())) return false; - if (!getCardBin() - .equals(other.getCardBin())) return false; - if (!getCardLastFour() - .equals(other.getCardLastFour())) return false; - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; + if (!getTransactionId().equals(other.getTransactionId())) return false; + } + if (!getPaymentMethod().equals(other.getPaymentMethod())) return false; + if (!getCardBin().equals(other.getCardBin())) return false; + if (!getCardLastFour().equals(other.getCardLastFour())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; + != java.lang.Double.doubleToLongBits(other.getValue())) return false; if (java.lang.Double.doubleToLongBits(getShippingValue()) - != java.lang.Double.doubleToLongBits( - other.getShippingValue())) return false; + != java.lang.Double.doubleToLongBits(other.getShippingValue())) return false; if (hasShippingAddress() != other.hasShippingAddress()) return false; if (hasShippingAddress()) { - if (!getShippingAddress() - .equals(other.getShippingAddress())) return false; + if (!getShippingAddress().equals(other.getShippingAddress())) return false; } if (hasBillingAddress() != other.hasBillingAddress()) return false; if (hasBillingAddress()) { - if (!getBillingAddress() - .equals(other.getBillingAddress())) return false; + if (!getBillingAddress().equals(other.getBillingAddress())) return false; } if (hasUser() != other.hasUser()) return false; if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; + if (!getUser().equals(other.getUser())) return false; } - if (!getMerchantsList() - .equals(other.getMerchantsList())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getMerchantsList().equals(other.getMerchantsList())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (hasGatewayInfo() != other.hasGatewayInfo()) return false; if (hasGatewayInfo()) { - if (!getGatewayInfo() - .equals(other.getGatewayInfo())) return false; + if (!getGatewayInfo().equals(other.getGatewayInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5885,11 +6563,14 @@ public int hashCode() { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + SHIPPING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getShippingValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getShippingValue())); if (hasShippingAddress()) { hash = (37 * hash) + SHIPPING_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShippingAddress().hashCode(); @@ -5920,131 +6601,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData) com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.class, + com.google.recaptchaenterprise.v1beta1.TransactionData.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6094,9 +6780,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; } @java.lang.Override @@ -6115,14 +6801,18 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData result = new com.google.recaptchaenterprise.v1beta1.TransactionData(this); + com.google.recaptchaenterprise.v1beta1.TransactionData result = + new com.google.recaptchaenterprise.v1beta1.TransactionData(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.TransactionData result) { + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1beta1.TransactionData result) { if (merchantsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { merchants_ = java.util.Collections.unmodifiableList(merchants_); @@ -6169,24 +6859,19 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionDat result.shippingValue_ = shippingValue_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.shippingAddress_ = shippingAddressBuilder_ == null - ? shippingAddress_ - : shippingAddressBuilder_.build(); + result.shippingAddress_ = + shippingAddressBuilder_ == null ? shippingAddress_ : shippingAddressBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.billingAddress_ = billingAddressBuilder_ == null - ? billingAddress_ - : billingAddressBuilder_.build(); + result.billingAddress_ = + billingAddressBuilder_ == null ? billingAddress_ : billingAddressBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); + result.user_ = userBuilder_ == null ? user_ : userBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { - result.gatewayInfo_ = gatewayInfoBuilder_ == null - ? gatewayInfo_ - : gatewayInfoBuilder_.build(); + result.gatewayInfo_ = + gatewayInfoBuilder_ == null ? gatewayInfo_ : gatewayInfoBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -6195,38 +6880,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionDat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TransactionData) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData) other); } else { super.mergeFrom(other); return this; @@ -6234,7 +6920,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData other) { - if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance()) + return this; if (other.hasTransactionId()) { transactionId_ = other.transactionId_; bitField0_ |= 0x00000001; @@ -6293,9 +6980,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData merchantsBuilder_ = null; merchants_ = other.merchants_; bitField0_ = (bitField0_ & ~0x00000400); - merchantsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMerchantsFieldBuilder() : null; + merchantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMerchantsFieldBuilder() + : null; } else { merchantsBuilder_.addAllMessages(other.merchants_); } @@ -6319,9 +7007,10 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000800); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() + : null; } else { itemsBuilder_.addAllMessages(other.items_); } @@ -6356,101 +7045,107 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - paymentMethod_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - cardBin_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - cardLastFour_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 41: { - value_ = input.readDouble(); - bitField0_ |= 0x00000020; - break; - } // case 41 - case 50: { - input.readMessage( - getShippingAddressFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: { - input.readMessage( - getBillingAddressFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 82: { - input.readMessage( - getGatewayInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 82 - case 90: { - transactionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 90 - case 97: { - shippingValue_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 97 - case 106: { - com.google.recaptchaenterprise.v1beta1.TransactionData.User m = - input.readMessage( - com.google.recaptchaenterprise.v1beta1.TransactionData.User.parser(), - extensionRegistry); - if (merchantsBuilder_ == null) { - ensureMerchantsIsMutable(); - merchants_.add(m); - } else { - merchantsBuilder_.addMessage(m); - } - break; - } // case 106 - case 114: { - com.google.recaptchaenterprise.v1beta1.TransactionData.Item m = - input.readMessage( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.parser(), - extensionRegistry); - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(m); - } else { - itemsBuilder_.addMessage(m); - } - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + paymentMethod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + cardBin_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + cardLastFour_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 41: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 41 + case 50: + { + input.readMessage(getShippingAddressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + input.readMessage(getBillingAddressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: + { + input.readMessage(getUserFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 82: + { + input.readMessage(getGatewayInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 82 + case 90: + { + transactionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 90 + case 97: + { + shippingValue_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 97 + case 106: + { + com.google.recaptchaenterprise.v1beta1.TransactionData.User m = + input.readMessage( + com.google.recaptchaenterprise.v1beta1.TransactionData.User.parser(), + extensionRegistry); + if (merchantsBuilder_ == null) { + ensureMerchantsIsMutable(); + merchants_.add(m); + } else { + merchantsBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: + { + com.google.recaptchaenterprise.v1beta1.TransactionData.Item m = + input.readMessage( + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 114 + 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) { @@ -6460,10 +7155,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object transactionId_ = ""; /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6472,12 +7170,15 @@ public Builder mergeFrom(
      * 
* * optional string transaction_id = 11; + * * @return Whether the transactionId field is set. */ public boolean hasTransactionId() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6486,13 +7187,13 @@ public boolean hasTransactionId() {
      * 
* * optional string transaction_id = 11; + * * @return The transactionId. */ public java.lang.String getTransactionId() { java.lang.Object ref = transactionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; @@ -6501,6 +7202,8 @@ public java.lang.String getTransactionId() { } } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6509,15 +7212,14 @@ public java.lang.String getTransactionId() {
      * 
* * optional string transaction_id = 11; + * * @return The bytes for transactionId. */ - public com.google.protobuf.ByteString - getTransactionIdBytes() { + public com.google.protobuf.ByteString getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); transactionId_ = b; return b; } else { @@ -6525,6 +7227,8 @@ public java.lang.String getTransactionId() { } } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6533,18 +7237,22 @@ public java.lang.String getTransactionId() {
      * 
* * optional string transaction_id = 11; + * * @param value The transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTransactionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } transactionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6553,6 +7261,7 @@ public Builder setTransactionId(
      * 
* * optional string transaction_id = 11; + * * @return This builder for chaining. */ public Builder clearTransactionId() { @@ -6562,6 +7271,8 @@ public Builder clearTransactionId() { return this; } /** + * + * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -6570,12 +7281,14 @@ public Builder clearTransactionId() {
      * 
* * optional string transaction_id = 11; + * * @param value The bytes for transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); transactionId_ = value; bitField0_ |= 0x00000001; @@ -6585,6 +7298,8 @@ public Builder setTransactionIdBytes( private java.lang.Object paymentMethod_ = ""; /** + * + * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -6598,13 +7313,13 @@ public Builder setTransactionIdBytes(
      * 
* * string payment_method = 1; + * * @return The paymentMethod. */ public java.lang.String getPaymentMethod() { java.lang.Object ref = paymentMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentMethod_ = s; return s; @@ -6613,6 +7328,8 @@ public java.lang.String getPaymentMethod() { } } /** + * + * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -6626,15 +7343,14 @@ public java.lang.String getPaymentMethod() {
      * 
* * string payment_method = 1; + * * @return The bytes for paymentMethod. */ - public com.google.protobuf.ByteString - getPaymentMethodBytes() { + public com.google.protobuf.ByteString getPaymentMethodBytes() { java.lang.Object ref = paymentMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); paymentMethod_ = b; return b; } else { @@ -6642,6 +7358,8 @@ public java.lang.String getPaymentMethod() { } } /** + * + * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -6655,18 +7373,22 @@ public java.lang.String getPaymentMethod() {
      * 
* * string payment_method = 1; + * * @param value The paymentMethod to set. * @return This builder for chaining. */ - public Builder setPaymentMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPaymentMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } paymentMethod_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -6680,6 +7402,7 @@ public Builder setPaymentMethod(
      * 
* * string payment_method = 1; + * * @return This builder for chaining. */ public Builder clearPaymentMethod() { @@ -6689,6 +7412,8 @@ public Builder clearPaymentMethod() { return this; } /** + * + * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -6702,12 +7427,14 @@ public Builder clearPaymentMethod() {
      * 
* * string payment_method = 1; + * * @param value The bytes for paymentMethod to set. * @return This builder for chaining. */ - public Builder setPaymentMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPaymentMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); paymentMethod_ = value; bitField0_ |= 0x00000002; @@ -6717,19 +7444,21 @@ public Builder setPaymentMethodBytes( private java.lang.Object cardBin_ = ""; /** + * + * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; + * * @return The cardBin. */ public java.lang.String getCardBin() { java.lang.Object ref = cardBin_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardBin_ = s; return s; @@ -6738,21 +7467,22 @@ public java.lang.String getCardBin() { } } /** + * + * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; + * * @return The bytes for cardBin. */ - public com.google.protobuf.ByteString - getCardBinBytes() { + public com.google.protobuf.ByteString getCardBinBytes() { java.lang.Object ref = cardBin_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cardBin_ = b; return b; } else { @@ -6760,30 +7490,37 @@ public java.lang.String getCardBin() { } } /** + * + * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; + * * @param value The cardBin to set. * @return This builder for chaining. */ - public Builder setCardBin( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCardBin(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cardBin_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; + * * @return This builder for chaining. */ public Builder clearCardBin() { @@ -6793,18 +7530,22 @@ public Builder clearCardBin() { return this; } /** + * + * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; + * * @param value The bytes for cardBin to set. * @return This builder for chaining. */ - public Builder setCardBinBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCardBinBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cardBin_ = value; bitField0_ |= 0x00000004; @@ -6814,18 +7555,20 @@ public Builder setCardBinBytes( private java.lang.Object cardLastFour_ = ""; /** + * + * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; + * * @return The cardLastFour. */ public java.lang.String getCardLastFour() { java.lang.Object ref = cardLastFour_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardLastFour_ = s; return s; @@ -6834,20 +7577,21 @@ public java.lang.String getCardLastFour() { } } /** + * + * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; + * * @return The bytes for cardLastFour. */ - public com.google.protobuf.ByteString - getCardLastFourBytes() { + public com.google.protobuf.ByteString getCardLastFourBytes() { java.lang.Object ref = cardLastFour_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cardLastFour_ = b; return b; } else { @@ -6855,28 +7599,35 @@ public java.lang.String getCardLastFour() { } } /** + * + * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; + * * @param value The cardLastFour to set. * @return This builder for chaining. */ - public Builder setCardLastFour( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCardLastFour(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cardLastFour_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; + * * @return This builder for chaining. */ public Builder clearCardLastFour() { @@ -6886,17 +7637,21 @@ public Builder clearCardLastFour() { return this; } /** + * + * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; + * * @param value The bytes for cardLastFour to set. * @return This builder for chaining. */ - public Builder setCardLastFourBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCardLastFourBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cardLastFour_ = value; bitField0_ |= 0x00000008; @@ -6906,18 +7661,20 @@ public Builder setCardLastFourBytes( private java.lang.Object currencyCode_ = ""; /** + * + * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; + * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -6926,20 +7683,21 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -6947,28 +7705,35 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; + * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } currencyCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; + * * @return This builder for chaining. */ public Builder clearCurrencyCode() { @@ -6978,17 +7743,21 @@ public Builder clearCurrencyCode() { return this; } /** + * + * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; + * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000010; @@ -6996,13 +7765,16 @@ public Builder setCurrencyCodeBytes( return this; } - private double value_ ; + private double value_; /** + * + * *
      * The decimal value of the transaction in the specified currency.
      * 
* * double value = 5; + * * @return The value. */ @java.lang.Override @@ -7010,11 +7782,14 @@ public double getValue() { return value_; } /** + * + * *
      * The decimal value of the transaction in the specified currency.
      * 
* * double value = 5; + * * @param value The value to set. * @return This builder for chaining. */ @@ -7026,11 +7801,14 @@ public Builder setValue(double value) { return this; } /** + * + * *
      * The decimal value of the transaction in the specified currency.
      * 
* * double value = 5; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -7040,13 +7818,16 @@ public Builder clearValue() { return this; } - private double shippingValue_ ; + private double shippingValue_; /** + * + * *
      * The value of shipping in the specified currency. 0 for free or no shipping.
      * 
* * double shipping_value = 12; + * * @return The shippingValue. */ @java.lang.Override @@ -7054,11 +7835,14 @@ public double getShippingValue() { return shippingValue_; } /** + * + * *
      * The value of shipping in the specified currency. 0 for free or no shipping.
      * 
* * double shipping_value = 12; + * * @param value The shippingValue to set. * @return This builder for chaining. */ @@ -7070,11 +7854,14 @@ public Builder setShippingValue(double value) { return this; } /** + * + * *
      * The value of shipping in the specified currency. 0 for free or no shipping.
      * 
* * double shipping_value = 12; + * * @return This builder for chaining. */ public Builder clearShippingValue() { @@ -7086,41 +7873,58 @@ public Builder clearShippingValue() { private com.google.recaptchaenterprise.v1beta1.TransactionData.Address shippingAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> shippingAddressBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> + shippingAddressBuilder_; /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * + * * @return Whether the shippingAddress field is set. */ public boolean hasShippingAddress() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * + * * @return The shippingAddress. */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getShippingAddress() { if (shippingAddressBuilder_ == null) { - return shippingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : shippingAddress_; + return shippingAddress_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() + : shippingAddress_; } else { return shippingAddressBuilder_.getMessage(); } } /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ - public Builder setShippingAddress(com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { + public Builder setShippingAddress( + com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { if (shippingAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7134,11 +7938,14 @@ public Builder setShippingAddress(com.google.recaptchaenterprise.v1beta1.Transac return this; } /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ public Builder setShippingAddress( com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder builderForValue) { @@ -7152,17 +7959,23 @@ public Builder setShippingAddress( return this; } /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ - public Builder mergeShippingAddress(com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { + public Builder mergeShippingAddress( + com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { if (shippingAddressBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - shippingAddress_ != null && - shippingAddress_ != com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && shippingAddress_ != null + && shippingAddress_ + != com.google.recaptchaenterprise.v1beta1.TransactionData.Address + .getDefaultInstance()) { getShippingAddressBuilder().mergeFrom(value); } else { shippingAddress_ = value; @@ -7175,11 +7988,14 @@ public Builder mergeShippingAddress(com.google.recaptchaenterprise.v1beta1.Trans return this; } /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ public Builder clearShippingAddress() { bitField0_ = (bitField0_ & ~0x00000080); @@ -7192,48 +8008,63 @@ public Builder clearShippingAddress() { return this; } /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder getShippingAddressBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder + getShippingAddressBuilder() { bitField0_ |= 0x00000080; onChanged(); return getShippingAddressFieldBuilder().getBuilder(); } /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder + getShippingAddressOrBuilder() { if (shippingAddressBuilder_ != null) { return shippingAddressBuilder_.getMessageOrBuilder(); } else { - return shippingAddress_ == null ? - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : shippingAddress_; + return shippingAddress_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() + : shippingAddress_; } } /** + * + * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> getShippingAddressFieldBuilder() { if (shippingAddressBuilder_ == null) { - shippingAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder>( - getShippingAddress(), - getParentForChildren(), - isClean()); + shippingAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder>( + getShippingAddress(), getParentForChildren(), isClean()); shippingAddress_ = null; } return shippingAddressBuilder_; @@ -7241,41 +8072,58 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder g private com.google.recaptchaenterprise.v1beta1.TransactionData.Address billingAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> billingAddressBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> + billingAddressBuilder_; /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * + * * @return Whether the billingAddress field is set. */ public boolean hasBillingAddress() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * + * * @return The billingAddress. */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getBillingAddress() { if (billingAddressBuilder_ == null) { - return billingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : billingAddress_; + return billingAddress_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() + : billingAddress_; } else { return billingAddressBuilder_.getMessage(); } } /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ - public Builder setBillingAddress(com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { + public Builder setBillingAddress( + com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { if (billingAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7289,11 +8137,14 @@ public Builder setBillingAddress(com.google.recaptchaenterprise.v1beta1.Transact return this; } /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ public Builder setBillingAddress( com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder builderForValue) { @@ -7307,17 +8158,23 @@ public Builder setBillingAddress( return this; } /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ - public Builder mergeBillingAddress(com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { + public Builder mergeBillingAddress( + com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { if (billingAddressBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - billingAddress_ != null && - billingAddress_ != com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && billingAddress_ != null + && billingAddress_ + != com.google.recaptchaenterprise.v1beta1.TransactionData.Address + .getDefaultInstance()) { getBillingAddressBuilder().mergeFrom(value); } else { billingAddress_ = value; @@ -7330,11 +8187,14 @@ public Builder mergeBillingAddress(com.google.recaptchaenterprise.v1beta1.Transa return this; } /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ public Builder clearBillingAddress() { bitField0_ = (bitField0_ & ~0x00000100); @@ -7347,48 +8207,63 @@ public Builder clearBillingAddress() { return this; } /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder getBillingAddressBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder + getBillingAddressBuilder() { bitField0_ |= 0x00000100; onChanged(); return getBillingAddressFieldBuilder().getBuilder(); } /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder + getBillingAddressOrBuilder() { if (billingAddressBuilder_ != null) { return billingAddressBuilder_.getMessageOrBuilder(); } else { - return billingAddress_ == null ? - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : billingAddress_; + return billingAddress_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() + : billingAddress_; } } /** + * + * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> getBillingAddressFieldBuilder() { if (billingAddressBuilder_ == null) { - billingAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder>( - getBillingAddress(), - getParentForChildren(), - isClean()); + billingAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder>( + getBillingAddress(), getParentForChildren(), isClean()); billingAddress_ = null; } return billingAddressBuilder_; @@ -7396,34 +8271,47 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder g private com.google.recaptchaenterprise.v1beta1.TransactionData.User user_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> userBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.User, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> + userBuilder_; /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; + * * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; + * * @return The user. */ public com.google.recaptchaenterprise.v1beta1.TransactionData.User getUser() { if (userBuilder_ == null) { - return user_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() : user_; + return user_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() + : user_; } else { return userBuilder_.getMessage(); } } /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -7444,6 +8332,8 @@ public Builder setUser(com.google.recaptchaenterprise.v1beta1.TransactionData.Us return this; } /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -7462,6 +8352,8 @@ public Builder setUser( return this; } /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -7470,9 +8362,11 @@ public Builder setUser( */ public Builder mergeUser(com.google.recaptchaenterprise.v1beta1.TransactionData.User value) { if (userBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - user_ != null && - user_ != com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && user_ != null + && user_ + != com.google.recaptchaenterprise.v1beta1.TransactionData.User + .getDefaultInstance()) { getUserBuilder().mergeFrom(value); } else { user_ = value; @@ -7485,6 +8379,8 @@ public Builder mergeUser(com.google.recaptchaenterprise.v1beta1.TransactionData. return this; } /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -7502,6 +8398,8 @@ public Builder clearUser() { return this; } /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -7514,6 +8412,8 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder getUs return getUserFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -7524,11 +8424,14 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getU if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { - return user_ == null ? - com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() : user_; + return user_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() + : user_; } } /** + * + * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -7536,39 +8439,52 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getU * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.User, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); + userBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.User, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder>( + getUser(), getParentForChildren(), isClean()); user_ = null; } return userBuilder_; } private java.util.List merchants_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMerchantsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - merchants_ = new java.util.ArrayList(merchants_); + merchants_ = + new java.util.ArrayList( + merchants_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> merchantsBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.User, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> + merchantsBuilder_; /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ - public java.util.List getMerchantsList() { + public java.util.List + getMerchantsList() { if (merchantsBuilder_ == null) { return java.util.Collections.unmodifiableList(merchants_); } else { @@ -7576,11 +8492,14 @@ public java.util.List * Information about the user or users fulfilling the transaction. *
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public int getMerchantsCount() { if (merchantsBuilder_ == null) { @@ -7590,11 +8509,14 @@ public int getMerchantsCount() { } } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public com.google.recaptchaenterprise.v1beta1.TransactionData.User getMerchants(int index) { if (merchantsBuilder_ == null) { @@ -7604,11 +8526,14 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User getMerchants( } } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder setMerchants( int index, com.google.recaptchaenterprise.v1beta1.TransactionData.User value) { @@ -7625,14 +8550,18 @@ public Builder setMerchants( return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder setMerchants( - int index, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { if (merchantsBuilder_ == null) { ensureMerchantsIsMutable(); merchants_.set(index, builderForValue.build()); @@ -7643,11 +8572,14 @@ public Builder setMerchants( return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder addMerchants(com.google.recaptchaenterprise.v1beta1.TransactionData.User value) { if (merchantsBuilder_ == null) { @@ -7663,11 +8595,14 @@ public Builder addMerchants(com.google.recaptchaenterprise.v1beta1.TransactionDa return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder addMerchants( int index, com.google.recaptchaenterprise.v1beta1.TransactionData.User value) { @@ -7684,11 +8619,14 @@ public Builder addMerchants( return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder addMerchants( com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { @@ -7702,14 +8640,18 @@ public Builder addMerchants( return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder addMerchants( - int index, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { if (merchantsBuilder_ == null) { ensureMerchantsIsMutable(); merchants_.add(index, builderForValue.build()); @@ -7720,18 +8662,21 @@ public Builder addMerchants( return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder addAllMerchants( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (merchantsBuilder_ == null) { ensureMerchantsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, merchants_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, merchants_); onChanged(); } else { merchantsBuilder_.addAllMessages(values); @@ -7739,11 +8684,14 @@ public Builder addAllMerchants( return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder clearMerchants() { if (merchantsBuilder_ == null) { @@ -7756,11 +8704,14 @@ public Builder clearMerchants() { return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public Builder removeMerchants(int index) { if (merchantsBuilder_ == null) { @@ -7773,39 +8724,50 @@ public Builder removeMerchants(int index) { return this; } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder getMerchantsBuilder( int index) { return getMerchantsFieldBuilder().getBuilder(index); } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getMerchantsOrBuilder( - int index) { + public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder + getMerchantsOrBuilder(int index) { if (merchantsBuilder_ == null) { - return merchants_.get(index); } else { + return merchants_.get(index); + } else { return merchantsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ - public java.util.List - getMerchantsOrBuilderList() { + public java.util.List< + ? extends com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> + getMerchantsOrBuilderList() { if (merchantsBuilder_ != null) { return merchantsBuilder_.getMessageOrBuilderList(); } else { @@ -7813,74 +8775,100 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getM } } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder addMerchantsBuilder() { - return getMerchantsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()); + public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder + addMerchantsBuilder() { + return getMerchantsFieldBuilder() + .addBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()); } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder addMerchantsBuilder( int index) { - return getMerchantsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()); + return getMerchantsFieldBuilder() + .addBuilder( + index, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()); } /** + * + * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ - public java.util.List - getMerchantsBuilderList() { + public java.util.List + getMerchantsBuilderList() { return getMerchantsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.User, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> getMerchantsFieldBuilder() { if (merchantsBuilder_ == null) { - merchantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder>( - merchants_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); + merchantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.User, + com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder>( + merchants_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); merchants_ = null; } return merchantsBuilder_; } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - items_ = new java.util.ArrayList(items_); + items_ = + new java.util.ArrayList( + items_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Item, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> itemsBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.Item, + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> + itemsBuilder_; /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ - public java.util.List getItemsList() { + public java.util.List + getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { @@ -7888,11 +8876,14 @@ public java.util.List * Items purchased in this transaction. *
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public int getItemsCount() { if (itemsBuilder_ == null) { @@ -7902,11 +8893,14 @@ public int getItemsCount() { } } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getItems(int index) { if (itemsBuilder_ == null) { @@ -7916,11 +8910,14 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getItems(int } } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder setItems( int index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item value) { @@ -7937,14 +8934,18 @@ public Builder setItems( return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder setItems( - int index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); @@ -7955,11 +8956,14 @@ public Builder setItems( return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder addItems(com.google.recaptchaenterprise.v1beta1.TransactionData.Item value) { if (itemsBuilder_ == null) { @@ -7975,11 +8979,14 @@ public Builder addItems(com.google.recaptchaenterprise.v1beta1.TransactionData.I return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder addItems( int index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item value) { @@ -7996,11 +9003,14 @@ public Builder addItems( return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder addItems( com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { @@ -8014,14 +9024,18 @@ public Builder addItems( return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder addItems( - int index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { + int index, + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); @@ -8032,18 +9046,21 @@ public Builder addItems( return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder addAllItems( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -8051,11 +9068,14 @@ public Builder addAllItems( return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder clearItems() { if (itemsBuilder_ == null) { @@ -8068,11 +9088,14 @@ public Builder clearItems() { return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { @@ -8085,39 +9108,50 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { - return items_.get(index); } else { + return items_.get(index); + } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List< + ? extends com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -8125,49 +9159,64 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getI } } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()); } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder( + index, + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()); } /** + * + * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Item, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.Item, + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Item, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder>( - items_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.Item, + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder>( + items_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; @@ -8175,41 +9224,62 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder addIt private com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gatewayInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder> gatewayInfoBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder> + gatewayInfoBuilder_; /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * * @return Whether the gatewayInfo field is set. */ public boolean hasGatewayInfo() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * * @return The gatewayInfo. */ public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getGatewayInfo() { if (gatewayInfoBuilder_ == null) { - return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; + return gatewayInfo_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + .getDefaultInstance() + : gatewayInfo_; } else { return gatewayInfoBuilder_.getMessage(); } } /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ - public Builder setGatewayInfo(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo value) { + public Builder setGatewayInfo( + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo value) { if (gatewayInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8223,14 +9293,19 @@ public Builder setGatewayInfo(com.google.recaptchaenterprise.v1beta1.Transaction return this; } /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ public Builder setGatewayInfo( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder builderForValue) { + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder + builderForValue) { if (gatewayInfoBuilder_ == null) { gatewayInfo_ = builderForValue.build(); } else { @@ -8241,17 +9316,24 @@ public Builder setGatewayInfo( return this; } /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ - public Builder mergeGatewayInfo(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo value) { + public Builder mergeGatewayInfo( + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo value) { if (gatewayInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - gatewayInfo_ != null && - gatewayInfo_ != com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && gatewayInfo_ != null + && gatewayInfo_ + != com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + .getDefaultInstance()) { getGatewayInfoBuilder().mergeFrom(value); } else { gatewayInfo_ = value; @@ -8264,11 +9346,15 @@ public Builder mergeGatewayInfo(com.google.recaptchaenterprise.v1beta1.Transacti return this; } /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ public Builder clearGatewayInfo() { bitField0_ = (bitField0_ & ~0x00001000); @@ -8281,55 +9367,74 @@ public Builder clearGatewayInfo() { return this; } /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder getGatewayInfoBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder + getGatewayInfoBuilder() { bitField0_ |= 0x00001000; onChanged(); return getGatewayInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder + getGatewayInfoOrBuilder() { if (gatewayInfoBuilder_ != null) { return gatewayInfoBuilder_.getMessageOrBuilder(); } else { - return gatewayInfo_ == null ? - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; + return gatewayInfo_ == null + ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo + .getDefaultInstance() + : gatewayInfo_; } } /** + * + * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder> getGatewayInfoFieldBuilder() { if (gatewayInfoBuilder_ == null) { - gatewayInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder>( - getGatewayInfo(), - getParentForChildren(), - isClean()); + gatewayInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder>( + getGatewayInfo(), getParentForChildren(), isClean()); gatewayInfo_ = null; } return gatewayInfoBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8339,12 +9444,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData) private static final com.google.recaptchaenterprise.v1beta1.TransactionData DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData(); } @@ -8353,27 +9458,27 @@ public static com.google.recaptchaenterprise.v1beta1.TransactionData getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -8388,6 +9493,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TransactionData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java similarity index 78% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java index 100fb347d486..9a76771073a7 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface TransactionDataOrBuilder extends +public interface TransactionDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -16,10 +34,13 @@ public interface TransactionDataOrBuilder extends
    * 
* * optional string transaction_id = 11; + * * @return Whether the transactionId field is set. */ boolean hasTransactionId(); /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -28,10 +49,13 @@ public interface TransactionDataOrBuilder extends
    * 
* * optional string transaction_id = 11; + * * @return The transactionId. */ java.lang.String getTransactionId(); /** + * + * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -40,12 +64,14 @@ public interface TransactionDataOrBuilder extends
    * 
* * optional string transaction_id = 11; + * * @return The bytes for transactionId. */ - com.google.protobuf.ByteString - getTransactionIdBytes(); + com.google.protobuf.ByteString getTransactionIdBytes(); /** + * + * *
    * The payment method for the transaction. The allowed values are:
    *
@@ -59,10 +85,13 @@ public interface TransactionDataOrBuilder extends
    * 
* * string payment_method = 1; + * * @return The paymentMethod. */ java.lang.String getPaymentMethod(); /** + * + * *
    * The payment method for the transaction. The allowed values are:
    *
@@ -76,166 +105,219 @@ public interface TransactionDataOrBuilder extends
    * 
* * string payment_method = 1; + * * @return The bytes for paymentMethod. */ - com.google.protobuf.ByteString - getPaymentMethodBytes(); + com.google.protobuf.ByteString getPaymentMethodBytes(); /** + * + * *
    * The Bank Identification Number - generally the first 6 or 8 digits of the
    * card.
    * 
* * string card_bin = 2; + * * @return The cardBin. */ java.lang.String getCardBin(); /** + * + * *
    * The Bank Identification Number - generally the first 6 or 8 digits of the
    * card.
    * 
* * string card_bin = 2; + * * @return The bytes for cardBin. */ - com.google.protobuf.ByteString - getCardBinBytes(); + com.google.protobuf.ByteString getCardBinBytes(); /** + * + * *
    * The last four digits of the card.
    * 
* * string card_last_four = 3; + * * @return The cardLastFour. */ java.lang.String getCardLastFour(); /** + * + * *
    * The last four digits of the card.
    * 
* * string card_last_four = 3; + * * @return The bytes for cardLastFour. */ - com.google.protobuf.ByteString - getCardLastFourBytes(); + com.google.protobuf.ByteString getCardLastFourBytes(); /** + * + * *
    * The currency code in ISO-4217 format.
    * 
* * string currency_code = 4; + * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** + * + * *
    * The currency code in ISO-4217 format.
    * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); + com.google.protobuf.ByteString getCurrencyCodeBytes(); /** + * + * *
    * The decimal value of the transaction in the specified currency.
    * 
* * double value = 5; + * * @return The value. */ double getValue(); /** + * + * *
    * The value of shipping in the specified currency. 0 for free or no shipping.
    * 
* * double shipping_value = 12; + * * @return The shippingValue. */ double getShippingValue(); /** + * + * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * + * * @return Whether the shippingAddress field is set. */ boolean hasShippingAddress(); /** + * + * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * + * * @return The shippingAddress. */ com.google.recaptchaenterprise.v1beta1.TransactionData.Address getShippingAddress(); /** + * + * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; + * */ - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder(); + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder + getShippingAddressOrBuilder(); /** + * + * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * + * * @return Whether the billingAddress field is set. */ boolean hasBillingAddress(); /** + * + * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * + * * @return The billingAddress. */ com.google.recaptchaenterprise.v1beta1.TransactionData.Address getBillingAddress(); /** + * + * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; + * */ - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder(); + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder + getBillingAddressOrBuilder(); /** + * + * *
    * Information about the user paying/initiating the transaction.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; + * * @return Whether the user field is set. */ boolean hasUser(); /** + * + * *
    * Information about the user paying/initiating the transaction.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; + * * @return The user. */ com.google.recaptchaenterprise.v1beta1.TransactionData.User getUser(); /** + * + * *
    * Information about the user paying/initiating the transaction.
    * 
@@ -245,117 +327,156 @@ public interface TransactionDataOrBuilder extends com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getUserOrBuilder(); /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ - java.util.List - getMerchantsList(); + java.util.List getMerchantsList(); /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ com.google.recaptchaenterprise.v1beta1.TransactionData.User getMerchants(int index); /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ int getMerchantsCount(); /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ - java.util.List + java.util.List getMerchantsOrBuilderList(); /** + * + * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; + * */ com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getMerchantsOrBuilder( int index); /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ com.google.recaptchaenterprise.v1beta1.TransactionData.Item getItems(int index); /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ int getItemsCount(); /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; + * */ - com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getItemsOrBuilder( - int index); + com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getItemsOrBuilder(int index); /** + * + * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * * @return Whether the gatewayInfo field is set. */ boolean hasGatewayInfo(); /** + * + * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * + * * @return The gatewayInfo. */ com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getGatewayInfo(); /** + * + * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; + * */ - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder(); + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder + getGatewayInfoOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java similarity index 73% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java index 40f5bef23334..c0295eb0362f 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** + * + * *
  * Describes an event in the lifecycle of a payment transaction.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionEvent} */ -public final class TransactionEvent extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransactionEvent extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) TransactionEventOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransactionEvent.newBuilder() to construct. private TransactionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransactionEvent() { eventType_ = 0; reason_ = ""; @@ -26,34 +44,39 @@ private TransactionEvent() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransactionEvent(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionEvent.class, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionEvent.class, + com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder.class); } /** + * + * *
    * Enum that represents an event in the payment transaction lifecycle.
    * 
* - * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType} + * Protobuf enum {@code + * google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType} */ - public enum TransactionEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum TransactionEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default, unspecified event type.
      * 
@@ -62,6 +85,8 @@ public enum TransactionEventType */ TRANSACTION_EVENT_TYPE_UNSPECIFIED(0), /** + * + * *
      * Indicates that the transaction is approved by the merchant. The
      * accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
@@ -72,6 +97,8 @@ public enum TransactionEventType
      */
     MERCHANT_APPROVE(1),
     /**
+     *
+     *
      * 
      * Indicates that the transaction is denied and concluded due to risks
      * detected by the merchant. The accompanying reasons can include terms such
@@ -82,6 +109,8 @@ public enum TransactionEventType
      */
     MERCHANT_DENY(2),
     /**
+     *
+     *
      * 
      * Indicates that the transaction is being evaluated by a human, due to
      * suspicion or risk.
@@ -91,6 +120,8 @@ public enum TransactionEventType
      */
     MANUAL_REVIEW(3),
     /**
+     *
+     *
      * 
      * Indicates that the authorization attempt with the card issuer succeeded.
      * 
@@ -99,6 +130,8 @@ public enum TransactionEventType */ AUTHORIZATION(4), /** + * + * *
      * Indicates that the authorization attempt with the card issuer failed.
      * The accompanying reasons can include Visa's '54' indicating that the card
@@ -109,6 +142,8 @@ public enum TransactionEventType
      */
     AUTHORIZATION_DECLINE(5),
     /**
+     *
+     *
      * 
      * Indicates that the transaction is completed because the funds were
      * settled.
@@ -118,6 +153,8 @@ public enum TransactionEventType
      */
     PAYMENT_CAPTURE(6),
     /**
+     *
+     *
      * 
      * Indicates that the transaction could not be completed because the funds
      * were not settled.
@@ -127,6 +164,8 @@ public enum TransactionEventType
      */
     PAYMENT_CAPTURE_DECLINE(7),
     /**
+     *
+     *
      * 
      * Indicates that the transaction has been canceled. Specify the reason
      * for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
@@ -136,6 +175,8 @@ public enum TransactionEventType
      */
     CANCEL(8),
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a chargeback inquiry due to
      * fraud for the transaction, requesting additional information before a
@@ -147,6 +188,8 @@ public enum TransactionEventType
      */
     CHARGEBACK_INQUIRY(9),
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a chargeback alert due to fraud
      * for the transaction. The process of resolving the dispute without
@@ -157,6 +200,8 @@ public enum TransactionEventType
      */
     CHARGEBACK_ALERT(10),
     /**
+     *
+     *
      * 
      * Indicates that a fraud notification is issued for the transaction, sent
      * by the payment instrument's issuing bank because the transaction appears
@@ -169,6 +214,8 @@ public enum TransactionEventType
      */
     FRAUD_NOTIFICATION(11),
     /**
+     *
+     *
      * 
      * Indicates that the merchant is informed by the payment network that the
      * transaction has entered the chargeback process due to fraud. Reason code
@@ -180,6 +227,8 @@ public enum TransactionEventType
      */
     CHARGEBACK(12),
     /**
+     *
+     *
      * 
      * Indicates that the transaction has entered the chargeback process due to
      * fraud, and that the merchant has chosen to enter representment. Reason
@@ -191,6 +240,8 @@ public enum TransactionEventType
      */
     CHARGEBACK_REPRESENTMENT(13),
     /**
+     *
+     *
      * 
      * Indicates that the transaction has had a fraud chargeback which was
      * illegitimate and was reversed as a result. For partial chargebacks, we
@@ -201,6 +252,8 @@ public enum TransactionEventType
      */
     CHARGEBACK_REVERSE(14),
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a refund for a completed
      * transaction. For partial refunds, we recommend that you include an amount
@@ -212,6 +265,8 @@ public enum TransactionEventType
      */
     REFUND_REQUEST(15),
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a refund request for this
      * transaction, but that they have declined it. For partial refunds, we
@@ -223,6 +278,8 @@ public enum TransactionEventType
      */
     REFUND_DECLINE(16),
     /**
+     *
+     *
      * 
      * Indicates that the completed transaction was refunded by the merchant.
      * For partial refunds, we recommend that you include an amount in the
@@ -234,6 +291,8 @@ public enum TransactionEventType
      */
     REFUND(17),
     /**
+     *
+     *
      * 
      * Indicates that the completed transaction was refunded by the merchant,
      * and that this refund was reversed. For partial refunds, we recommend that
@@ -247,6 +306,8 @@ public enum TransactionEventType
     ;
 
     /**
+     *
+     *
      * 
      * Default, unspecified event type.
      * 
@@ -255,6 +316,8 @@ public enum TransactionEventType */ public static final int TRANSACTION_EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the transaction is approved by the merchant. The
      * accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
@@ -265,6 +328,8 @@ public enum TransactionEventType
      */
     public static final int MERCHANT_APPROVE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates that the transaction is denied and concluded due to risks
      * detected by the merchant. The accompanying reasons can include terms such
@@ -275,6 +340,8 @@ public enum TransactionEventType
      */
     public static final int MERCHANT_DENY_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates that the transaction is being evaluated by a human, due to
      * suspicion or risk.
@@ -284,6 +351,8 @@ public enum TransactionEventType
      */
     public static final int MANUAL_REVIEW_VALUE = 3;
     /**
+     *
+     *
      * 
      * Indicates that the authorization attempt with the card issuer succeeded.
      * 
@@ -292,6 +361,8 @@ public enum TransactionEventType */ public static final int AUTHORIZATION_VALUE = 4; /** + * + * *
      * Indicates that the authorization attempt with the card issuer failed.
      * The accompanying reasons can include Visa's '54' indicating that the card
@@ -302,6 +373,8 @@ public enum TransactionEventType
      */
     public static final int AUTHORIZATION_DECLINE_VALUE = 5;
     /**
+     *
+     *
      * 
      * Indicates that the transaction is completed because the funds were
      * settled.
@@ -311,6 +384,8 @@ public enum TransactionEventType
      */
     public static final int PAYMENT_CAPTURE_VALUE = 6;
     /**
+     *
+     *
      * 
      * Indicates that the transaction could not be completed because the funds
      * were not settled.
@@ -320,6 +395,8 @@ public enum TransactionEventType
      */
     public static final int PAYMENT_CAPTURE_DECLINE_VALUE = 7;
     /**
+     *
+     *
      * 
      * Indicates that the transaction has been canceled. Specify the reason
      * for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
@@ -329,6 +406,8 @@ public enum TransactionEventType
      */
     public static final int CANCEL_VALUE = 8;
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a chargeback inquiry due to
      * fraud for the transaction, requesting additional information before a
@@ -340,6 +419,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_INQUIRY_VALUE = 9;
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a chargeback alert due to fraud
      * for the transaction. The process of resolving the dispute without
@@ -350,6 +431,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_ALERT_VALUE = 10;
     /**
+     *
+     *
      * 
      * Indicates that a fraud notification is issued for the transaction, sent
      * by the payment instrument's issuing bank because the transaction appears
@@ -362,6 +445,8 @@ public enum TransactionEventType
      */
     public static final int FRAUD_NOTIFICATION_VALUE = 11;
     /**
+     *
+     *
      * 
      * Indicates that the merchant is informed by the payment network that the
      * transaction has entered the chargeback process due to fraud. Reason code
@@ -373,6 +458,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_VALUE = 12;
     /**
+     *
+     *
      * 
      * Indicates that the transaction has entered the chargeback process due to
      * fraud, and that the merchant has chosen to enter representment. Reason
@@ -384,6 +471,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_REPRESENTMENT_VALUE = 13;
     /**
+     *
+     *
      * 
      * Indicates that the transaction has had a fraud chargeback which was
      * illegitimate and was reversed as a result. For partial chargebacks, we
@@ -394,6 +483,8 @@ public enum TransactionEventType
      */
     public static final int CHARGEBACK_REVERSE_VALUE = 14;
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a refund for a completed
      * transaction. For partial refunds, we recommend that you include an amount
@@ -405,6 +496,8 @@ public enum TransactionEventType
      */
     public static final int REFUND_REQUEST_VALUE = 15;
     /**
+     *
+     *
      * 
      * Indicates that the merchant has received a refund request for this
      * transaction, but that they have declined it. For partial refunds, we
@@ -416,6 +509,8 @@ public enum TransactionEventType
      */
     public static final int REFUND_DECLINE_VALUE = 16;
     /**
+     *
+     *
      * 
      * Indicates that the completed transaction was refunded by the merchant.
      * For partial refunds, we recommend that you include an amount in the
@@ -427,6 +522,8 @@ public enum TransactionEventType
      */
     public static final int REFUND_VALUE = 17;
     /**
+     *
+     *
      * 
      * Indicates that the completed transaction was refunded by the merchant,
      * and that this refund was reversed. For partial refunds, we recommend that
@@ -437,7 +534,6 @@ public enum TransactionEventType
      */
     public static final int REFUND_REVERSE_VALUE = 18;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -462,26 +558,46 @@ public static TransactionEventType valueOf(int value) {
      */
     public static TransactionEventType forNumber(int value) {
       switch (value) {
-        case 0: return TRANSACTION_EVENT_TYPE_UNSPECIFIED;
-        case 1: return MERCHANT_APPROVE;
-        case 2: return MERCHANT_DENY;
-        case 3: return MANUAL_REVIEW;
-        case 4: return AUTHORIZATION;
-        case 5: return AUTHORIZATION_DECLINE;
-        case 6: return PAYMENT_CAPTURE;
-        case 7: return PAYMENT_CAPTURE_DECLINE;
-        case 8: return CANCEL;
-        case 9: return CHARGEBACK_INQUIRY;
-        case 10: return CHARGEBACK_ALERT;
-        case 11: return FRAUD_NOTIFICATION;
-        case 12: return CHARGEBACK;
-        case 13: return CHARGEBACK_REPRESENTMENT;
-        case 14: return CHARGEBACK_REVERSE;
-        case 15: return REFUND_REQUEST;
-        case 16: return REFUND_DECLINE;
-        case 17: return REFUND;
-        case 18: return REFUND_REVERSE;
-        default: return null;
+        case 0:
+          return TRANSACTION_EVENT_TYPE_UNSPECIFIED;
+        case 1:
+          return MERCHANT_APPROVE;
+        case 2:
+          return MERCHANT_DENY;
+        case 3:
+          return MANUAL_REVIEW;
+        case 4:
+          return AUTHORIZATION;
+        case 5:
+          return AUTHORIZATION_DECLINE;
+        case 6:
+          return PAYMENT_CAPTURE;
+        case 7:
+          return PAYMENT_CAPTURE_DECLINE;
+        case 8:
+          return CANCEL;
+        case 9:
+          return CHARGEBACK_INQUIRY;
+        case 10:
+          return CHARGEBACK_ALERT;
+        case 11:
+          return FRAUD_NOTIFICATION;
+        case 12:
+          return CHARGEBACK;
+        case 13:
+          return CHARGEBACK_REPRESENTMENT;
+        case 14:
+          return CHARGEBACK_REVERSE;
+        case 15:
+          return REFUND_REQUEST;
+        case 16:
+          return REFUND_DECLINE;
+        case 17:
+          return REFUND;
+        case 18:
+          return REFUND_REVERSE;
+        default:
+          return null;
       }
     }
 
@@ -489,29 +605,31 @@ public static TransactionEventType forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        TransactionEventType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public TransactionEventType findValueByNumber(int number) {
-              return TransactionEventType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public TransactionEventType findValueByNumber(int number) {
+                return TransactionEventType.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.recaptchaenterprise.v1beta1.TransactionEvent.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final TransactionEventType[] VALUES = values();
@@ -519,8 +637,7 @@ public TransactionEventType findValueByNumber(int number) {
     public static TransactionEventType 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;
@@ -540,33 +657,53 @@ private TransactionEventType(int value) {
   public static final int EVENT_TYPE_FIELD_NUMBER = 1;
   private int eventType_ = 0;
   /**
+   *
+   *
    * 
    * Optional. The type of this transaction event.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override public int getEventTypeValue() { + @java.lang.Override + public int getEventTypeValue() { return eventType_; } /** + * + * *
    * Optional. The type of this transaction event.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventType. */ - @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType getEventType() { - com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType result = com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.forNumber(eventType_); - return result == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType + getEventType() { + com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType result = + com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.forNumber( + eventType_); + return result == null + ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.UNRECOGNIZED + : result; } public static final int REASON_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** + * + * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -574,6 +711,7 @@ private TransactionEventType(int value) {
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reason. */ @java.lang.Override @@ -582,14 +720,15 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** + * + * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -597,16 +736,15 @@ public java.lang.String getReason() {
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString - getReasonBytes() { + public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { @@ -617,6 +755,8 @@ public java.lang.String getReason() { public static final int VALUE_FIELD_NUMBER = 3; private double value_ = 0D; /** + * + * *
    * Optional. The value that corresponds with this transaction event, if one
    * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -624,6 +764,7 @@ public java.lang.String getReason() {
    * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -634,12 +775,16 @@ public double getValue() { public static final int EVENT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp eventTime_; /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -647,12 +792,16 @@ public boolean hasEventTime() { return eventTime_ != null; } /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ @java.lang.Override @@ -660,12 +809,15 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { @@ -673,6 +825,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -684,9 +837,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (eventType_ != com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.TRANSACTION_EVENT_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (eventType_ + != com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType + .TRANSACTION_EVENT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { @@ -707,20 +862,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (eventType_ != com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.TRANSACTION_EVENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, eventType_); + if (eventType_ + != com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType + .TRANSACTION_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, value_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, value_); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -730,23 +885,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionEvent)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionEvent other = (com.google.recaptchaenterprise.v1beta1.TransactionEvent) obj; + com.google.recaptchaenterprise.v1beta1.TransactionEvent other = + (com.google.recaptchaenterprise.v1beta1.TransactionEvent) obj; if (eventType_ != other.eventType_) return false; - if (!getReason() - .equals(other.getReason())) return false; + if (!getReason().equals(other.getReason())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; + != java.lang.Double.doubleToLongBits(other.getValue())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime() - .equals(other.getEventTime())) return false; + if (!getEventTime().equals(other.getEventTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -764,8 +917,9 @@ public int hashCode() { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); @@ -776,131 +930,136 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionEvent prototype) { + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes an event in the lifecycle of a payment transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionEvent} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionEvent.class, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionEvent.class, + com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionEvent.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -917,9 +1076,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; } @java.lang.Override @@ -938,8 +1097,11 @@ public com.google.recaptchaenterprise.v1beta1.TransactionEvent build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionEvent buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionEvent result = new com.google.recaptchaenterprise.v1beta1.TransactionEvent(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.recaptchaenterprise.v1beta1.TransactionEvent result = + new com.google.recaptchaenterprise.v1beta1.TransactionEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -956,9 +1118,7 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionEve result.value_ = value_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.eventTime_ = eventTimeBuilder_ == null - ? eventTime_ - : eventTimeBuilder_.build(); + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); } } @@ -966,38 +1126,39 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionEve public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TransactionEvent) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionEvent)other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionEvent) other); } else { super.mergeFrom(other); return this; @@ -1005,7 +1166,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionEvent other) { - if (other == com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance()) return this; + if (other == com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance()) + return this; if (other.eventType_ != 0) { setEventTypeValue(other.getEventTypeValue()); } @@ -1046,34 +1208,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - eventType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 25: { - value_ = input.readDouble(); - bitField0_ |= 0x00000004; - break; - } // case 25 - case 34: { - input.readMessage( - getEventTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + eventType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 25: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: + { + input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -1083,26 +1248,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int eventType_ = 0; /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override public int getEventTypeValue() { + @java.lang.Override + public int getEventTypeValue() { return eventType_; } /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for eventType to set. * @return This builder for chaining. */ @@ -1113,28 +1290,45 @@ public Builder setEventTypeValue(int value) { return this; } /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventType. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType getEventType() { - com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType result = com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.forNumber(eventType_); - return result == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.UNRECOGNIZED : result; + public com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType + getEventType() { + com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType result = + com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.forNumber( + eventType_); + return result == null + ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType + .UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType(com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType value) { + public Builder setEventType( + com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType value) { if (value == null) { throw new NullPointerException(); } @@ -1144,11 +1338,16 @@ public Builder setEventType(com.google.recaptchaenterprise.v1beta1.TransactionEv return this; } /** + * + * *
      * Optional. The type of this transaction event.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEventType() { @@ -1160,6 +1359,8 @@ public Builder clearEventType() { private java.lang.Object reason_ = ""; /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1167,13 +1368,13 @@ public Builder clearEventType() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -1182,6 +1383,8 @@ public java.lang.String getReason() { } } /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1189,15 +1392,14 @@ public java.lang.String getReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reason. */ - public com.google.protobuf.ByteString - getReasonBytes() { + public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { @@ -1205,6 +1407,8 @@ public java.lang.String getReason() { } } /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1212,18 +1416,22 @@ public java.lang.String getReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } reason_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1231,6 +1439,7 @@ public Builder setReason(
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReason() { @@ -1240,6 +1449,8 @@ public Builder clearReason() { return this; } /** + * + * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1247,12 +1458,14 @@ public Builder clearReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000002; @@ -1260,8 +1473,10 @@ public Builder setReasonBytes( return this; } - private double value_ ; + private double value_; /** + * + * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1269,6 +1484,7 @@ public Builder setReasonBytes(
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ @java.lang.Override @@ -1276,6 +1492,8 @@ public double getValue() { return value_; } /** + * + * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1283,6 +1501,7 @@ public double getValue() {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The value to set. * @return This builder for chaining. */ @@ -1294,6 +1513,8 @@ public Builder setValue(double value) { return this; } /** + * + * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1301,6 +1522,7 @@ public Builder setValue(double value) {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -1312,26 +1534,37 @@ public Builder clearValue() { private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -1342,12 +1575,15 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { @@ -1363,15 +1599,17 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEventTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); } else { @@ -1382,18 +1620,21 @@ public Builder setEventTime( return this; } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - eventTime_ != null && - eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; @@ -1406,12 +1647,15 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEventTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1424,12 +1668,15 @@ public Builder clearEventTime() { return this; } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { bitField0_ |= 0x00000008; @@ -1437,45 +1684,53 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** + * + * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEventTime(), - getParentForChildren(), - isClean()); + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); eventTime_ = null; } return eventTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1485,12 +1740,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) private static final com.google.recaptchaenterprise.v1beta1.TransactionEvent DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionEvent(); } @@ -1499,27 +1754,27 @@ public static com.google.recaptchaenterprise.v1beta1.TransactionEvent getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1534,6 +1789,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TransactionEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java similarity index 67% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java index 3c3d27297805..e4f24b2a994c 100644 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java @@ -1,32 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface TransactionEventOrBuilder extends +public interface TransactionEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The type of this transaction event.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventType. */ int getEventTypeValue(); /** + * + * *
    * Optional. The type of this transaction event.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventType. */ com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType getEventType(); /** + * + * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -34,10 +62,13 @@ public interface TransactionEventOrBuilder extends
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reason. */ java.lang.String getReason(); /** + * + * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -45,12 +76,14 @@ public interface TransactionEventOrBuilder extends
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reason. */ - com.google.protobuf.ByteString - getReasonBytes(); + com.google.protobuf.ByteString getReasonBytes(); /** + * + * *
    * Optional. The value that corresponds with this transaction event, if one
    * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -58,37 +91,49 @@ public interface TransactionEventOrBuilder extends
    * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The value. */ double getValue(); /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); } diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto rename to java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java similarity index 100% rename from owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java rename to java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java b/owl-bot-staging/java-recaptchaenterprise/v1/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java deleted file mode 100644 index 8b910135b6cc..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java +++ /dev/null @@ -1,1829 +0,0 @@ -package com.google.recaptchaenterprise.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service to determine the likelihood an event is legitimate.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class RecaptchaEnterpriseServiceGrpc { - - private RecaptchaEnterpriseServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateAssessmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAssessment", - requestType = com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, - responseType = com.google.recaptchaenterprise.v1.Assessment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAssessmentMethod() { - io.grpc.MethodDescriptor getCreateAssessmentMethod; - if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod = getCreateAssessmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssessment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("CreateAssessment")) - .build(); - } - } - } - return getCreateAssessmentMethod; - } - - private static volatile io.grpc.MethodDescriptor getAnnotateAssessmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnnotateAssessment", - requestType = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, - responseType = com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAnnotateAssessmentMethod() { - io.grpc.MethodDescriptor getAnnotateAssessmentMethod; - if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod = getAnnotateAssessmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnnotateAssessment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("AnnotateAssessment")) - .build(); - } - } - } - return getAnnotateAssessmentMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateKey", - requestType = com.google.recaptchaenterprise.v1.CreateKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.Key.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateKeyMethod() { - io.grpc.MethodDescriptor getCreateKeyMethod; - if ((getCreateKeyMethod = RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getCreateKeyMethod = RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod = getCreateKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.CreateKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("CreateKey")) - .build(); - } - } - } - return getCreateKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getListKeysMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListKeys", - requestType = com.google.recaptchaenterprise.v1.ListKeysRequest.class, - responseType = com.google.recaptchaenterprise.v1.ListKeysResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListKeysMethod() { - io.grpc.MethodDescriptor getListKeysMethod; - if ((getListKeysMethod = RecaptchaEnterpriseServiceGrpc.getListKeysMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getListKeysMethod = RecaptchaEnterpriseServiceGrpc.getListKeysMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getListKeysMethod = getListKeysMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKeys")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListKeysRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListKeysResponse.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListKeys")) - .build(); - } - } - } - return getListKeysMethod; - } - - private static volatile io.grpc.MethodDescriptor getRetrieveLegacySecretKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveLegacySecretKey", - requestType = com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRetrieveLegacySecretKeyMethod() { - io.grpc.MethodDescriptor getRetrieveLegacySecretKeyMethod; - if ((getRetrieveLegacySecretKeyMethod = RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getRetrieveLegacySecretKeyMethod = RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod = getRetrieveLegacySecretKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveLegacySecretKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("RetrieveLegacySecretKey")) - .build(); - } - } - } - return getRetrieveLegacySecretKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetKey", - requestType = com.google.recaptchaenterprise.v1.GetKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.Key.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetKeyMethod() { - io.grpc.MethodDescriptor getGetKeyMethod; - if ((getGetKeyMethod = RecaptchaEnterpriseServiceGrpc.getGetKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getGetKeyMethod = RecaptchaEnterpriseServiceGrpc.getGetKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getGetKeyMethod = getGetKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.GetKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetKey")) - .build(); - } - } - } - return getGetKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateKey", - requestType = com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.Key.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateKeyMethod() { - io.grpc.MethodDescriptor getUpdateKeyMethod; - if ((getUpdateKeyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getUpdateKeyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod = getUpdateKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.UpdateKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("UpdateKey")) - .build(); - } - } - } - return getUpdateKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteKey", - requestType = com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteKeyMethod() { - io.grpc.MethodDescriptor getDeleteKeyMethod; - if ((getDeleteKeyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getDeleteKeyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod = getDeleteKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.DeleteKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("DeleteKey")) - .build(); - } - } - } - return getDeleteKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getMigrateKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MigrateKey", - requestType = com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.Key.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMigrateKeyMethod() { - io.grpc.MethodDescriptor getMigrateKeyMethod; - if ((getMigrateKeyMethod = RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getMigrateKeyMethod = RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod = getMigrateKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MigrateKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.MigrateKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("MigrateKey")) - .build(); - } - } - } - return getMigrateKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMetricsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMetrics", - requestType = com.google.recaptchaenterprise.v1.GetMetricsRequest.class, - responseType = com.google.recaptchaenterprise.v1.Metrics.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMetricsMethod() { - io.grpc.MethodDescriptor getGetMetricsMethod; - if ((getGetMetricsMethod = RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getGetMetricsMethod = RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod = getGetMetricsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetrics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.GetMetricsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Metrics.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetMetrics")) - .build(); - } - } - } - return getGetMetricsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFirewallPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFirewallPolicy", - requestType = com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, - responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFirewallPolicyMethod() { - io.grpc.MethodDescriptor getCreateFirewallPolicyMethod; - if ((getCreateFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getCreateFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod = getCreateFirewallPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFirewallPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("CreateFirewallPolicy")) - .build(); - } - } - } - return getCreateFirewallPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFirewallPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFirewallPolicies", - requestType = com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, - responseType = com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFirewallPoliciesMethod() { - io.grpc.MethodDescriptor getListFirewallPoliciesMethod; - if ((getListFirewallPoliciesMethod = RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getListFirewallPoliciesMethod = RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod = getListFirewallPoliciesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFirewallPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListFirewallPolicies")) - .build(); - } - } - } - return getListFirewallPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFirewallPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFirewallPolicy", - requestType = com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, - responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFirewallPolicyMethod() { - io.grpc.MethodDescriptor getGetFirewallPolicyMethod; - if ((getGetFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getGetFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod = getGetFirewallPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFirewallPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetFirewallPolicy")) - .build(); - } - } - } - return getGetFirewallPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFirewallPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFirewallPolicy", - requestType = com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, - responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFirewallPolicyMethod() { - io.grpc.MethodDescriptor getUpdateFirewallPolicyMethod; - if ((getUpdateFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getUpdateFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod = getUpdateFirewallPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFirewallPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("UpdateFirewallPolicy")) - .build(); - } - } - } - return getUpdateFirewallPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFirewallPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFirewallPolicy", - requestType = com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFirewallPolicyMethod() { - io.grpc.MethodDescriptor getDeleteFirewallPolicyMethod; - if ((getDeleteFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getDeleteFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod = getDeleteFirewallPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFirewallPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("DeleteFirewallPolicy")) - .build(); - } - } - } - return getDeleteFirewallPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRelatedAccountGroupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRelatedAccountGroups", - requestType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, - responseType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRelatedAccountGroupsMethod() { - io.grpc.MethodDescriptor getListRelatedAccountGroupsMethod; - if ((getListRelatedAccountGroupsMethod = RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getListRelatedAccountGroupsMethod = RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod = getListRelatedAccountGroupsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRelatedAccountGroups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListRelatedAccountGroups")) - .build(); - } - } - } - return getListRelatedAccountGroupsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRelatedAccountGroupMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRelatedAccountGroupMemberships", - requestType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, - responseType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRelatedAccountGroupMembershipsMethod() { - io.grpc.MethodDescriptor getListRelatedAccountGroupMembershipsMethod; - if ((getListRelatedAccountGroupMembershipsMethod = RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getListRelatedAccountGroupMembershipsMethod = RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod = getListRelatedAccountGroupMembershipsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRelatedAccountGroupMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListRelatedAccountGroupMemberships")) - .build(); - } - } - } - return getListRelatedAccountGroupMembershipsMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchRelatedAccountGroupMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchRelatedAccountGroupMemberships", - requestType = com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, - responseType = com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchRelatedAccountGroupMembershipsMethod() { - io.grpc.MethodDescriptor getSearchRelatedAccountGroupMembershipsMethod; - if ((getSearchRelatedAccountGroupMembershipsMethod = RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getSearchRelatedAccountGroupMembershipsMethod = RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod = getSearchRelatedAccountGroupMembershipsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchRelatedAccountGroupMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.getDefaultInstance())) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("SearchRelatedAccountGroupMemberships")) - .build(); - } - } - } - return getSearchRelatedAccountGroupMembershipsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static RecaptchaEnterpriseServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceStub(channel, callOptions); - } - }; - return RecaptchaEnterpriseServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static RecaptchaEnterpriseServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceBlockingStub(channel, callOptions); - } - }; - return RecaptchaEnterpriseServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static RecaptchaEnterpriseServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceFutureStub(channel, callOptions); - } - }; - return RecaptchaEnterpriseServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates an Assessment of the likelihood an event is legitimate.
-     * 
- */ - default void createAssessment(com.google.recaptchaenterprise.v1.CreateAssessmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAssessmentMethod(), responseObserver); - } - - /** - *
-     * Annotates a previously created Assessment to provide additional information
-     * on whether the event turned out to be authentic or fraudulent.
-     * 
- */ - default void annotateAssessment(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnnotateAssessmentMethod(), responseObserver); - } - - /** - *
-     * Creates a new reCAPTCHA Enterprise key.
-     * 
- */ - default void createKey(com.google.recaptchaenterprise.v1.CreateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateKeyMethod(), responseObserver); - } - - /** - *
-     * Returns the list of all keys that belong to a project.
-     * 
- */ - default void listKeys(com.google.recaptchaenterprise.v1.ListKeysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListKeysMethod(), responseObserver); - } - - /** - *
-     * Returns the secret key related to the specified public key.
-     * You must use the legacy secret key only in a 3rd party integration with
-     * legacy reCAPTCHA.
-     * 
- */ - default void retrieveLegacySecretKey(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveLegacySecretKeyMethod(), responseObserver); - } - - /** - *
-     * Returns the specified key.
-     * 
- */ - default void getKey(com.google.recaptchaenterprise.v1.GetKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetKeyMethod(), responseObserver); - } - - /** - *
-     * Updates the specified key.
-     * 
- */ - default void updateKey(com.google.recaptchaenterprise.v1.UpdateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateKeyMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified key.
-     * 
- */ - default void deleteKey(com.google.recaptchaenterprise.v1.DeleteKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteKeyMethod(), responseObserver); - } - - /** - *
-     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
-     * Once a key is migrated, it can be used from either product. SiteVerify
-     * requests are billed as CreateAssessment calls. You must be
-     * authenticated as one of the current owners of the reCAPTCHA Key, and
-     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
-     * destination project.
-     * 
- */ - default void migrateKey(com.google.recaptchaenterprise.v1.MigrateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMigrateKeyMethod(), responseObserver); - } - - /** - *
-     * Get some aggregated metrics for a Key. This data can be used to build
-     * dashboards.
-     * 
- */ - default void getMetrics(com.google.recaptchaenterprise.v1.GetMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetricsMethod(), responseObserver); - } - - /** - *
-     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
-     * Enterprise actions can be executed.
-     * A project may have a maximum of 1000 policies.
-     * 
- */ - default void createFirewallPolicy(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFirewallPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns the list of all firewall policies that belong to a project.
-     * 
- */ - default void listFirewallPolicies(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFirewallPoliciesMethod(), responseObserver); - } - - /** - *
-     * Returns the specified firewall policy.
-     * 
- */ - default void getFirewallPolicy(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFirewallPolicyMethod(), responseObserver); - } - - /** - *
-     * Updates the specified firewall policy.
-     * 
- */ - default void updateFirewallPolicy(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFirewallPolicyMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified firewall policy.
-     * 
- */ - default void deleteFirewallPolicy(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFirewallPolicyMethod(), responseObserver); - } - - /** - *
-     * List groups of related accounts.
-     * 
- */ - default void listRelatedAccountGroups(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRelatedAccountGroupsMethod(), responseObserver); - } - - /** - *
-     * Get memberships in a group of related accounts.
-     * 
- */ - default void listRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRelatedAccountGroupMembershipsMethod(), responseObserver); - } - - /** - *
-     * Search group memberships related to a given account.
-     * 
- */ - default void searchRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchRelatedAccountGroupMembershipsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service RecaptchaEnterpriseService. - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public static abstract class RecaptchaEnterpriseServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return RecaptchaEnterpriseServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service RecaptchaEnterpriseService. - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public static final class RecaptchaEnterpriseServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private RecaptchaEnterpriseServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RecaptchaEnterpriseServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceStub(channel, callOptions); - } - - /** - *
-     * Creates an Assessment of the likelihood an event is legitimate.
-     * 
- */ - public void createAssessment(com.google.recaptchaenterprise.v1.CreateAssessmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Annotates a previously created Assessment to provide additional information
-     * on whether the event turned out to be authentic or fraudulent.
-     * 
- */ - public void annotateAssessment(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new reCAPTCHA Enterprise key.
-     * 
- */ - public void createKey(com.google.recaptchaenterprise.v1.CreateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the list of all keys that belong to a project.
-     * 
- */ - public void listKeys(com.google.recaptchaenterprise.v1.ListKeysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListKeysMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the secret key related to the specified public key.
-     * You must use the legacy secret key only in a 3rd party integration with
-     * legacy reCAPTCHA.
-     * 
- */ - public void retrieveLegacySecretKey(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveLegacySecretKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the specified key.
-     * 
- */ - public void getKey(com.google.recaptchaenterprise.v1.GetKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the specified key.
-     * 
- */ - public void updateKey(com.google.recaptchaenterprise.v1.UpdateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified key.
-     * 
- */ - public void deleteKey(com.google.recaptchaenterprise.v1.DeleteKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
-     * Once a key is migrated, it can be used from either product. SiteVerify
-     * requests are billed as CreateAssessment calls. You must be
-     * authenticated as one of the current owners of the reCAPTCHA Key, and
-     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
-     * destination project.
-     * 
- */ - public void migrateKey(com.google.recaptchaenterprise.v1.MigrateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMigrateKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get some aggregated metrics for a Key. This data can be used to build
-     * dashboards.
-     * 
- */ - public void getMetrics(com.google.recaptchaenterprise.v1.GetMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMetricsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
-     * Enterprise actions can be executed.
-     * A project may have a maximum of 1000 policies.
-     * 
- */ - public void createFirewallPolicy(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFirewallPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the list of all firewall policies that belong to a project.
-     * 
- */ - public void listFirewallPolicies(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFirewallPoliciesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the specified firewall policy.
-     * 
- */ - public void getFirewallPolicy(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFirewallPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the specified firewall policy.
-     * 
- */ - public void updateFirewallPolicy(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFirewallPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified firewall policy.
-     * 
- */ - public void deleteFirewallPolicy(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFirewallPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List groups of related accounts.
-     * 
- */ - public void listRelatedAccountGroups(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRelatedAccountGroupsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get memberships in a group of related accounts.
-     * 
- */ - public void listRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRelatedAccountGroupMembershipsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Search group memberships related to a given account.
-     * 
- */ - public void searchRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service RecaptchaEnterpriseService. - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public static final class RecaptchaEnterpriseServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private RecaptchaEnterpriseServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RecaptchaEnterpriseServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates an Assessment of the likelihood an event is legitimate.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Assessment createAssessment(com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAssessmentMethod(), getCallOptions(), request); - } - - /** - *
-     * Annotates a previously created Assessment to provide additional information
-     * on whether the event turned out to be authentic or fraudulent.
-     * 
- */ - public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse annotateAssessment(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnnotateAssessmentMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new reCAPTCHA Enterprise key.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Key createKey(com.google.recaptchaenterprise.v1.CreateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateKeyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the list of all keys that belong to a project.
-     * 
- */ - public com.google.recaptchaenterprise.v1.ListKeysResponse listKeys(com.google.recaptchaenterprise.v1.ListKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListKeysMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the secret key related to the specified public key.
-     * You must use the legacy secret key only in a 3rd party integration with
-     * legacy reCAPTCHA.
-     * 
- */ - public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse retrieveLegacySecretKey(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveLegacySecretKeyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the specified key.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Key getKey(com.google.recaptchaenterprise.v1.GetKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetKeyMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the specified key.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Key updateKey(com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateKeyMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified key.
-     * 
- */ - public com.google.protobuf.Empty deleteKey(com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteKeyMethod(), getCallOptions(), request); - } - - /** - *
-     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
-     * Once a key is migrated, it can be used from either product. SiteVerify
-     * requests are billed as CreateAssessment calls. You must be
-     * authenticated as one of the current owners of the reCAPTCHA Key, and
-     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
-     * destination project.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Key migrateKey(com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMigrateKeyMethod(), getCallOptions(), request); - } - - /** - *
-     * Get some aggregated metrics for a Key. This data can be used to build
-     * dashboards.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Metrics getMetrics(com.google.recaptchaenterprise.v1.GetMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMetricsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
-     * Enterprise actions can be executed.
-     * A project may have a maximum of 1000 policies.
-     * 
- */ - public com.google.recaptchaenterprise.v1.FirewallPolicy createFirewallPolicy(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFirewallPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the list of all firewall policies that belong to a project.
-     * 
- */ - public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse listFirewallPolicies(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFirewallPoliciesMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the specified firewall policy.
-     * 
- */ - public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFirewallPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the specified firewall policy.
-     * 
- */ - public com.google.recaptchaenterprise.v1.FirewallPolicy updateFirewallPolicy(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFirewallPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified firewall policy.
-     * 
- */ - public com.google.protobuf.Empty deleteFirewallPolicy(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFirewallPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * List groups of related accounts.
-     * 
- */ - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse listRelatedAccountGroups(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRelatedAccountGroupsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get memberships in a group of related accounts.
-     * 
- */ - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse listRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); - } - - /** - *
-     * Search group memberships related to a given account.
-     * 
- */ - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse searchRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service RecaptchaEnterpriseService. - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public static final class RecaptchaEnterpriseServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private RecaptchaEnterpriseServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RecaptchaEnterpriseServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates an Assessment of the likelihood an event is legitimate.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createAssessment( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request); - } - - /** - *
-     * Annotates a previously created Assessment to provide additional information
-     * on whether the event turned out to be authentic or fraudulent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture annotateAssessment( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new reCAPTCHA Enterprise key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createKey( - com.google.recaptchaenterprise.v1.CreateKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateKeyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the list of all keys that belong to a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listKeys( - com.google.recaptchaenterprise.v1.ListKeysRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListKeysMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the secret key related to the specified public key.
-     * You must use the legacy secret key only in a 3rd party integration with
-     * legacy reCAPTCHA.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture retrieveLegacySecretKey( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveLegacySecretKeyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the specified key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getKey( - com.google.recaptchaenterprise.v1.GetKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetKeyMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the specified key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateKey( - com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateKeyMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteKey( - com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteKeyMethod(), getCallOptions()), request); - } - - /** - *
-     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
-     * Once a key is migrated, it can be used from either product. SiteVerify
-     * requests are billed as CreateAssessment calls. You must be
-     * authenticated as one of the current owners of the reCAPTCHA Key, and
-     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
-     * destination project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture migrateKey( - com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMigrateKeyMethod(), getCallOptions()), request); - } - - /** - *
-     * Get some aggregated metrics for a Key. This data can be used to build
-     * dashboards.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMetrics( - com.google.recaptchaenterprise.v1.GetMetricsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMetricsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
-     * Enterprise actions can be executed.
-     * A project may have a maximum of 1000 policies.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFirewallPolicy( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFirewallPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the list of all firewall policies that belong to a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFirewallPolicies( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFirewallPoliciesMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the specified firewall policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFirewallPolicy( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFirewallPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the specified firewall policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateFirewallPolicy( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFirewallPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified firewall policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteFirewallPolicy( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFirewallPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * List groups of related accounts.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRelatedAccountGroups( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRelatedAccountGroupsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get memberships in a group of related accounts.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRelatedAccountGroupMembershipsMethod(), getCallOptions()), request); - } - - /** - *
-     * Search group memberships related to a given account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_ASSESSMENT = 0; - private static final int METHODID_ANNOTATE_ASSESSMENT = 1; - private static final int METHODID_CREATE_KEY = 2; - private static final int METHODID_LIST_KEYS = 3; - private static final int METHODID_RETRIEVE_LEGACY_SECRET_KEY = 4; - private static final int METHODID_GET_KEY = 5; - private static final int METHODID_UPDATE_KEY = 6; - private static final int METHODID_DELETE_KEY = 7; - private static final int METHODID_MIGRATE_KEY = 8; - private static final int METHODID_GET_METRICS = 9; - private static final int METHODID_CREATE_FIREWALL_POLICY = 10; - private static final int METHODID_LIST_FIREWALL_POLICIES = 11; - private static final int METHODID_GET_FIREWALL_POLICY = 12; - private static final int METHODID_UPDATE_FIREWALL_POLICY = 13; - private static final int METHODID_DELETE_FIREWALL_POLICY = 14; - private static final int METHODID_LIST_RELATED_ACCOUNT_GROUPS = 15; - private static final int METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS = 16; - private static final int METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS = 17; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_ASSESSMENT: - serviceImpl.createAssessment((com.google.recaptchaenterprise.v1.CreateAssessmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ANNOTATE_ASSESSMENT: - serviceImpl.annotateAssessment((com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_KEY: - serviceImpl.createKey((com.google.recaptchaenterprise.v1.CreateKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_KEYS: - serviceImpl.listKeys((com.google.recaptchaenterprise.v1.ListKeysRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RETRIEVE_LEGACY_SECRET_KEY: - serviceImpl.retrieveLegacySecretKey((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_KEY: - serviceImpl.getKey((com.google.recaptchaenterprise.v1.GetKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_KEY: - serviceImpl.updateKey((com.google.recaptchaenterprise.v1.UpdateKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_KEY: - serviceImpl.deleteKey((com.google.recaptchaenterprise.v1.DeleteKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MIGRATE_KEY: - serviceImpl.migrateKey((com.google.recaptchaenterprise.v1.MigrateKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_METRICS: - serviceImpl.getMetrics((com.google.recaptchaenterprise.v1.GetMetricsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FIREWALL_POLICY: - serviceImpl.createFirewallPolicy((com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FIREWALL_POLICIES: - serviceImpl.listFirewallPolicies((com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FIREWALL_POLICY: - serviceImpl.getFirewallPolicy((com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FIREWALL_POLICY: - serviceImpl.updateFirewallPolicy((com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FIREWALL_POLICY: - serviceImpl.deleteFirewallPolicy((com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RELATED_ACCOUNT_GROUPS: - serviceImpl.listRelatedAccountGroups((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS: - serviceImpl.listRelatedAccountGroupMemberships((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS: - serviceImpl.searchRelatedAccountGroupMemberships((com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateAssessmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1.Assessment>( - service, METHODID_CREATE_ASSESSMENT))) - .addMethod( - getAnnotateAssessmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse>( - service, METHODID_ANNOTATE_ASSESSMENT))) - .addMethod( - getCreateKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.CreateKeyRequest, - com.google.recaptchaenterprise.v1.Key>( - service, METHODID_CREATE_KEY))) - .addMethod( - getListKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.ListKeysRequest, - com.google.recaptchaenterprise.v1.ListKeysResponse>( - service, METHODID_LIST_KEYS))) - .addMethod( - getRetrieveLegacySecretKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse>( - service, METHODID_RETRIEVE_LEGACY_SECRET_KEY))) - .addMethod( - getGetKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.GetKeyRequest, - com.google.recaptchaenterprise.v1.Key>( - service, METHODID_GET_KEY))) - .addMethod( - getUpdateKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.UpdateKeyRequest, - com.google.recaptchaenterprise.v1.Key>( - service, METHODID_UPDATE_KEY))) - .addMethod( - getDeleteKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.DeleteKeyRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_KEY))) - .addMethod( - getMigrateKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.MigrateKeyRequest, - com.google.recaptchaenterprise.v1.Key>( - service, METHODID_MIGRATE_KEY))) - .addMethod( - getGetMetricsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.GetMetricsRequest, - com.google.recaptchaenterprise.v1.Metrics>( - service, METHODID_GET_METRICS))) - .addMethod( - getCreateFirewallPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy>( - service, METHODID_CREATE_FIREWALL_POLICY))) - .addMethod( - getListFirewallPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse>( - service, METHODID_LIST_FIREWALL_POLICIES))) - .addMethod( - getGetFirewallPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy>( - service, METHODID_GET_FIREWALL_POLICY))) - .addMethod( - getUpdateFirewallPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy>( - service, METHODID_UPDATE_FIREWALL_POLICY))) - .addMethod( - getDeleteFirewallPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_FIREWALL_POLICY))) - .addMethod( - getListRelatedAccountGroupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse>( - service, METHODID_LIST_RELATED_ACCOUNT_GROUPS))) - .addMethod( - getListRelatedAccountGroupMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse>( - service, METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS))) - .addMethod( - getSearchRelatedAccountGroupMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse>( - service, METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS))) - .build(); - } - - private static abstract class RecaptchaEnterpriseServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - RecaptchaEnterpriseServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("RecaptchaEnterpriseService"); - } - } - - private static final class RecaptchaEnterpriseServiceFileDescriptorSupplier - extends RecaptchaEnterpriseServiceBaseDescriptorSupplier { - RecaptchaEnterpriseServiceFileDescriptorSupplier() {} - } - - private static final class RecaptchaEnterpriseServiceMethodDescriptorSupplier - extends RecaptchaEnterpriseServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - RecaptchaEnterpriseServiceMethodDescriptorSupplier(java.lang.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 (RecaptchaEnterpriseServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceFileDescriptorSupplier()) - .addMethod(getCreateAssessmentMethod()) - .addMethod(getAnnotateAssessmentMethod()) - .addMethod(getCreateKeyMethod()) - .addMethod(getListKeysMethod()) - .addMethod(getRetrieveLegacySecretKeyMethod()) - .addMethod(getGetKeyMethod()) - .addMethod(getUpdateKeyMethod()) - .addMethod(getDeleteKeyMethod()) - .addMethod(getMigrateKeyMethod()) - .addMethod(getGetMetricsMethod()) - .addMethod(getCreateFirewallPolicyMethod()) - .addMethod(getListFirewallPoliciesMethod()) - .addMethod(getGetFirewallPolicyMethod()) - .addMethod(getUpdateFirewallPolicyMethod()) - .addMethod(getDeleteFirewallPolicyMethod()) - .addMethod(getListRelatedAccountGroupsMethod()) - .addMethod(getListRelatedAccountGroupMembershipsMethod()) - .addMethod(getSearchRelatedAccountGroupMembershipsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java deleted file mode 100644 index 40a335486f96..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface AccountDefenderAssessmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return A list containing the labels. - */ - java.util.List getLabelsList(); - /** - *
-   * Output only. Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The count of labels. - */ - int getLabelsCount(); - /** - *
-   * Output only. Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param index The index of the element to return. - * @return The labels at the given index. - */ - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index); - /** - *
-   * Output only. Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return A list containing the enum numeric values on the wire for labels. - */ - java.util.List - getLabelsValueList(); - /** - *
-   * Output only. Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of labels at the given index. - */ - int getLabelsValue(int index); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java deleted file mode 100644 index 194e7abaa4c5..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface AnnotateAssessmentResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java deleted file mode 100644 index 5cc6262ea020..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface CreateAssessmentRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the project in which the assessment will be created,
-   * in the format `projects/{project}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the project in which the assessment will be created,
-   * in the format `projects/{project}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The assessment details.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the assessment field is set. - */ - boolean hasAssessment(); - /** - *
-   * Required. The assessment details.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The assessment. - */ - com.google.recaptchaenterprise.v1.Assessment getAssessment(); - /** - *
-   * Required. The assessment details.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.recaptchaenterprise.v1.AssessmentOrBuilder getAssessmentOrBuilder(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java deleted file mode 100644 index 724e60815eec..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface CreateFirewallPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the project this policy will apply to, in the format
-   * `projects/{project}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the project this policy will apply to, in the format
-   * `projects/{project}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Information to create the policy.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the firewallPolicy field is set. - */ - boolean hasFirewallPolicy(); - /** - *
-   * Required. Information to create the policy.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The firewallPolicy. - */ - com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(); - /** - *
-   * Required. Information to create the policy.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java deleted file mode 100644 index d0b8248e37c3..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface CreateKeyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the project in which the key will be created, in the
-   * format `projects/{project}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the project in which the key will be created, in the
-   * format `projects/{project}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Information to create a reCAPTCHA Enterprise key.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the key field is set. - */ - boolean hasKey(); - /** - *
-   * Required. Information to create a reCAPTCHA Enterprise key.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The key. - */ - com.google.recaptchaenterprise.v1.Key getKey(); - /** - *
-   * Required. Information to create a reCAPTCHA Enterprise key.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java deleted file mode 100644 index fab5537ca7a7..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface DeleteFirewallPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the policy to be deleted, in the format
-   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the policy to be deleted, in the format
-   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
-   * 
- * - * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java deleted file mode 100644 index 574cd7d41bee..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface DeleteKeyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the key to be deleted, in the format
-   * `projects/{project}/keys/{key}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the key to be deleted, in the format
-   * `projects/{project}/keys/{key}`.
-   * 
- * - * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java deleted file mode 100644 index cca734fe1318..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface FraudPreventionAssessmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Probability of this transaction being fraudulent. Summarizes
-   * the combined risk of attack vectors below. Values are from 0.0 (lowest)
-   * to 1.0 (highest).
-   * 
- * - * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The transactionRisk. - */ - float getTransactionRisk(); - - /** - *
-   * Output only. Assessment of this transaction for risk of a stolen
-   * instrument.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the stolenInstrumentVerdict field is set. - */ - boolean hasStolenInstrumentVerdict(); - /** - *
-   * Output only. Assessment of this transaction for risk of a stolen
-   * instrument.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The stolenInstrumentVerdict. - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict(); - /** - *
-   * Output only. Assessment of this transaction for risk of a stolen
-   * instrument.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder(); - - /** - *
-   * Output only. Assessment of this transaction for risk of being part of a
-   * card testing attack.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the cardTestingVerdict field is set. - */ - boolean hasCardTestingVerdict(); - /** - *
-   * Output only. Assessment of this transaction for risk of being part of a
-   * card testing attack.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The cardTestingVerdict. - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict(); - /** - *
-   * Output only. Assessment of this transaction for risk of being part of a
-   * card testing attack.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder(); - - /** - *
-   * Output only. Assessment of this transaction for behavioral trust.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the behavioralTrustVerdict field is set. - */ - boolean hasBehavioralTrustVerdict(); - /** - *
-   * Output only. Assessment of this transaction for behavioral trust.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The behavioralTrustVerdict. - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict(); - /** - *
-   * Output only. Assessment of this transaction for behavioral trust.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java deleted file mode 100644 index a8caeb3c9635..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface FraudSignalsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudSignals) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Signals describing the end user in this transaction.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the userSignals field is set. - */ - boolean hasUserSignals(); - /** - *
-   * Output only. Signals describing the end user in this transaction.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The userSignals. - */ - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getUserSignals(); - /** - *
-   * Output only. Signals describing the end user in this transaction.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUserSignalsOrBuilder(); - - /** - *
-   * Output only. Signals describing the payment card or cards used in this
-   * transaction.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the cardSignals field is set. - */ - boolean hasCardSignals(); - /** - *
-   * Output only. Signals describing the payment card or cards used in this
-   * transaction.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The cardSignals. - */ - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getCardSignals(); - /** - *
-   * Output only. Signals describing the payment card or cards used in this
-   * transaction.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder getCardSignalsOrBuilder(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java deleted file mode 100644 index 61fb82078c4e..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface GetFirewallPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the requested policy, in the format
-   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the requested policy, in the format
-   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
-   * 
- * - * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java deleted file mode 100644 index 7aaddfb4590d..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface GetKeyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the requested key, in the format
-   * `projects/{project}/keys/{key}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the requested key, in the format
-   * `projects/{project}/keys/{key}`.
-   * 
- * - * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java deleted file mode 100644 index db7e14ae14c3..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface GetMetricsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the requested metrics, in the format
-   * `projects/{project}/keys/{key}/metrics`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the requested metrics, in the format
-   * `projects/{project}/keys/{key}/metrics`.
-   * 
- * - * 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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java deleted file mode 100644 index fca33c1b0066..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java +++ /dev/null @@ -1,1366 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public final class RecaptchaEnterpriseProto { - private RecaptchaEnterpriseProto() {} - 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_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_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/recaptchaenterprise/v1/re" + - "captchaenterprise.proto\022#google.cloud.re" + - "captchaenterprise.v1\032\034google/api/annotat" + - "ions.proto\032\027google/api/client.proto\032\037goo" + - "gle/api/field_behavior.proto\032\031google/api" + - "/resource.proto\032\033google/protobuf/empty.p" + - "roto\032 google/protobuf/field_mask.proto\032\037" + - "google/protobuf/timestamp.proto\032\027google/" + - "rpc/status.proto\"\252\001\n\027CreateAssessmentReq" + - "uest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudreso" + - "urcemanager.googleapis.com/Project\022I\n\nas" + - "sessment\030\002 \001(\0132/.google.cloud.recaptchae" + - "nterprise.v1.AssessmentB\004\342A\001\002\"\226\005\n\020Transa" + - "ctionEvent\022d\n\nevent_type\030\001 \001(\0162J.google." + - "cloud.recaptchaenterprise.v1.Transaction" + - "Event.TransactionEventTypeB\004\342A\001\001\022\024\n\006reas" + - "on\030\002 \001(\tB\004\342A\001\001\022\023\n\005value\030\003 \001(\001B\004\342A\001\001\0224\n\ne" + - "vent_time\030\004 \001(\0132\032.google.protobuf.Timest" + - "ampB\004\342A\001\001\"\272\003\n\024TransactionEventType\022&\n\"TR" + - "ANSACTION_EVENT_TYPE_UNSPECIFIED\020\000\022\024\n\020ME" + - "RCHANT_APPROVE\020\001\022\021\n\rMERCHANT_DENY\020\002\022\021\n\rM" + - "ANUAL_REVIEW\020\003\022\021\n\rAUTHORIZATION\020\004\022\031\n\025AUT" + - "HORIZATION_DECLINE\020\005\022\023\n\017PAYMENT_CAPTURE\020" + - "\006\022\033\n\027PAYMENT_CAPTURE_DECLINE\020\007\022\n\n\006CANCEL" + - "\020\010\022\026\n\022CHARGEBACK_INQUIRY\020\t\022\024\n\020CHARGEBACK" + - "_ALERT\020\n\022\026\n\022FRAUD_NOTIFICATION\020\013\022\016\n\nCHAR" + - "GEBACK\020\014\022\034\n\030CHARGEBACK_REPRESENTMENT\020\r\022\026" + - "\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016REFUND_REQUEST" + - "\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006REFUND\020\021\022\022\n\016RE" + - "FUND_REVERSE\020\022\"\211\007\n\031AnnotateAssessmentReq" + - "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-recaptchaen" + - "terprise.googleapis.com/Assessment\022c\n\nan" + - "notation\030\002 \001(\0162I.google.cloud.recaptchae" + - "nterprise.v1.AnnotateAssessmentRequest.A" + - "nnotationB\004\342A\001\001\022\\\n\007reasons\030\003 \003(\0162E.googl" + - "e.cloud.recaptchaenterprise.v1.AnnotateA" + - "ssessmentRequest.ReasonB\004\342A\001\001\022\030\n\naccount" + - "_id\030\007 \001(\tB\004\342A\001\001\022\037\n\021hashed_account_id\030\004 \001" + - "(\014B\004\342A\001\001\022V\n\021transaction_event\030\005 \001(\01325.go" + - "ogle.cloud.recaptchaenterprise.v1.Transa" + - "ctionEventB\004\342A\001\001\"~\n\nAnnotation\022\032\n\026ANNOTA" + - "TION_UNSPECIFIED\020\000\022\016\n\nLEGITIMATE\020\001\022\016\n\nFR" + - "AUDULENT\020\002\022\030\n\020PASSWORD_CORRECT\020\003\032\002\010\001\022\032\n\022" + - "PASSWORD_INCORRECT\020\004\032\002\010\001\"\317\002\n\006Reason\022\026\n\022R" + - "EASON_UNSPECIFIED\020\000\022\016\n\nCHARGEBACK\020\001\022\024\n\020C" + - "HARGEBACK_FRAUD\020\010\022\026\n\022CHARGEBACK_DISPUTE\020" + - "\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FRAUD\020\013\022\030\n\024TRANS" + - "ACTION_ACCEPTED\020\014\022\030\n\024TRANSACTION_DECLINE" + - "D\020\r\022\026\n\022PAYMENT_HEURISTICS\020\002\022\030\n\024INITIATED" + - "_TWO_FACTOR\020\007\022\025\n\021PASSED_TWO_FACTOR\020\003\022\025\n\021" + - "FAILED_TWO_FACTOR\020\004\022\024\n\020CORRECT_PASSWORD\020" + - "\005\022\026\n\022INCORRECT_PASSWORD\020\006\022\017\n\013SOCIAL_SPAM" + - "\020\016\"\034\n\032AnnotateAssessmentResponse\"\266\001\n\030End" + - "pointVerificationInfo\022\027\n\remail_address\030\001" + - " \001(\tH\000\022\026\n\014phone_number\030\002 \001(\tH\000\022\033\n\rreques" + - "t_token\030\003 \001(\tB\004\342A\001\003\022@\n\026last_verification" + - "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + - "\004\342A\001\003B\n\n\010endpoint\"\336\004\n\027AccountVerificatio" + - "nInfo\022V\n\tendpoints\030\001 \003(\0132=.google.cloud." + - "recaptchaenterprise.v1.EndpointVerificat" + - "ionInfoB\004\342A\001\001\022\033\n\rlanguage_code\030\003 \001(\tB\004\342A" + - "\001\001\022m\n\032latest_verification_result\030\007 \001(\0162C" + - ".google.cloud.recaptchaenterprise.v1.Acc" + - "ountVerificationInfo.ResultB\004\342A\001\003\022\024\n\010use" + - "rname\030\002 \001(\tB\002\030\001\"\310\002\n\006Result\022\026\n\022RESULT_UNS" + - "PECIFIED\020\000\022\031\n\025SUCCESS_USER_VERIFIED\020\001\022\033\n" + - "\027ERROR_USER_NOT_VERIFIED\020\002\022$\n ERROR_SITE" + - "_ONBOARDING_INCOMPLETE\020\003\022\037\n\033ERROR_RECIPI" + - "ENT_NOT_ALLOWED\020\004\022)\n%ERROR_RECIPIENT_ABU" + - "SE_LIMIT_EXHAUSTED\020\005\022\033\n\027ERROR_CRITICAL_I" + - "NTERNAL\020\006\022\"\n\036ERROR_CUSTOMER_QUOTA_EXHAUS" + - "TED\020\007\022\037\n\033ERROR_VERIFICATION_BYPASSED\020\010\022\032" + - "\n\026ERROR_VERDICT_MISMATCH\020\t\"\320\001\n\037PrivatePa" + - "sswordLeakVerification\022 \n\022lookup_hash_pr" + - "efix\030\001 \001(\014B\004\342A\001\002\022-\n\037encrypted_user_crede" + - "ntials_hash\030\002 \001(\014B\004\342A\001\001\022+\n\035encrypted_lea" + - "k_match_prefixes\030\003 \003(\014B\004\342A\001\003\022/\n!reencryp" + - "ted_user_credentials_hash\030\004 \001(\014B\004\342A\001\003\"\322\007" + - "\n\nAssessment\022\023\n\004name\030\001 \001(\tB\005\342A\002\003\010\022?\n\005eve" + - "nt\030\002 \001(\0132*.google.cloud.recaptchaenterpr" + - "ise.v1.EventB\004\342A\001\001\022N\n\rrisk_analysis\030\003 \001(" + - "\01321.google.cloud.recaptchaenterprise.v1." + - "RiskAnalysisB\004\342A\001\003\022T\n\020token_properties\030\004" + - " \001(\01324.google.cloud.recaptchaenterprise." + - "v1.TokenPropertiesB\004\342A\001\003\022`\n\024account_veri" + - "fication\030\005 \001(\0132<.google.cloud.recaptchae" + - "nterprise.v1.AccountVerificationInfoB\004\342A" + - "\001\001\022i\n\033account_defender_assessment\030\006 \001(\0132" + - ">.google.cloud.recaptchaenterprise.v1.Ac" + - "countDefenderAssessmentB\004\342A\001\003\022v\n\"private" + - "_password_leak_verification\030\010 \001(\0132D.goog" + - "le.cloud.recaptchaenterprise.v1.PrivateP" + - "asswordLeakVerificationB\004\342A\001\001\022g\n\032firewal" + - "l_policy_assessment\030\n \001(\0132=.google.cloud" + - ".recaptchaenterprise.v1.FirewallPolicyAs" + - "sessmentB\004\342A\001\003\022i\n\033fraud_prevention_asses" + - "sment\030\013 \001(\0132>.google.cloud.recaptchaente" + - "rprise.v1.FraudPreventionAssessmentB\004\342A\001" + - "\003\022N\n\rfraud_signals\030\r \001(\01321.google.cloud." + - "recaptchaenterprise.v1.FraudSignalsB\004\342A\001" + - "\003:_\352A\\\n-recaptchaenterprise.googleapis.c" + - "om/Assessment\022+projects/{project}/assess" + - "ments/{assessment}\"\371\003\n\005Event\022\023\n\005token\030\001 " + - "\001(\tB\004\342A\001\001\022\026\n\010site_key\030\002 \001(\tB\004\342A\001\001\022\030\n\nuse" + - "r_agent\030\003 \001(\tB\004\342A\001\001\022\035\n\017user_ip_address\030\004" + - " \001(\tB\004\342A\001\001\022\035\n\017expected_action\030\005 \001(\tB\004\342A\001" + - "\001\022!\n\021hashed_account_id\030\006 \001(\014B\006\030\001\342A\001\001\022\025\n\007" + - "express\030\016 \001(\010B\004\342A\001\001\022\033\n\rrequested_uri\030\010 \001" + - "(\tB\004\342A\001\001\022\"\n\024waf_token_assessment\030\t \001(\010B\004" + - "\342A\001\001\022\021\n\003ja3\030\n \001(\tB\004\342A\001\001\022\025\n\007headers\030\013 \003(\t" + - "B\004\342A\001\001\022(\n\032firewall_policy_evaluation\030\014 \001" + - "(\010B\004\342A\001\001\022T\n\020transaction_data\030\r \001(\01324.goo" + - "gle.cloud.recaptchaenterprise.v1.Transac" + - "tionDataB\004\342A\001\001\022F\n\tuser_info\030\017 \001(\0132-.goog" + - "le.cloud.recaptchaenterprise.v1.UserInfo" + - "B\004\342A\001\001\"\300\n\n\017TransactionData\022\033\n\016transactio" + - "n_id\030\013 \001(\tH\000\210\001\001\022\034\n\016payment_method\030\001 \001(\tB" + - "\004\342A\001\001\022\026\n\010card_bin\030\002 \001(\tB\004\342A\001\001\022\034\n\016card_la" + - "st_four\030\003 \001(\tB\004\342A\001\001\022\033\n\rcurrency_code\030\004 \001" + - "(\tB\004\342A\001\001\022\023\n\005value\030\005 \001(\001B\004\342A\001\001\022\034\n\016shippin" + - "g_value\030\014 \001(\001B\004\342A\001\001\022\\\n\020shipping_address\030" + - "\006 \001(\0132<.google.cloud.recaptchaenterprise" + - ".v1.TransactionData.AddressB\004\342A\001\001\022[\n\017bil" + - "ling_address\030\007 \001(\0132<.google.cloud.recapt" + - "chaenterprise.v1.TransactionData.Address" + - "B\004\342A\001\001\022M\n\004user\030\010 \001(\01329.google.cloud.reca" + - "ptchaenterprise.v1.TransactionData.UserB" + - "\004\342A\001\001\022R\n\tmerchants\030\r \003(\01329.google.cloud." + - "recaptchaenterprise.v1.TransactionData.U" + - "serB\004\342A\001\001\022N\n\005items\030\016 \003(\01329.google.cloud." + - "recaptchaenterprise.v1.TransactionData.I" + - "temB\004\342A\001\001\022\\\n\014gateway_info\030\n \001(\0132@.google" + - ".cloud.recaptchaenterprise.v1.Transactio" + - "nData.GatewayInfoB\004\342A\001\001\032\252\001\n\007Address\022\027\n\tr" + - "ecipient\030\001 \001(\tB\004\342A\001\001\022\025\n\007address\030\002 \003(\tB\004\342" + - "A\001\001\022\026\n\010locality\030\003 \001(\tB\004\342A\001\001\022!\n\023administr" + - "ative_area\030\004 \001(\tB\004\342A\001\001\022\031\n\013region_code\030\005 " + - "\001(\tB\004\342A\001\001\022\031\n\013postal_code\030\006 \001(\tB\004\342A\001\001\032\250\001\n" + - "\004User\022\030\n\naccount_id\030\006 \001(\tB\004\342A\001\001\022\031\n\013creat" + - "ion_ms\030\001 \001(\003B\004\342A\001\001\022\023\n\005email\030\002 \001(\tB\004\342A\001\001\022" + - "\034\n\016email_verified\030\003 \001(\010B\004\342A\001\001\022\032\n\014phone_n" + - "umber\030\004 \001(\tB\004\342A\001\001\022\034\n\016phone_verified\030\005 \001(" + - "\010B\004\342A\001\001\032j\n\004Item\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022\023\n\005v" + - "alue\030\002 \001(\001B\004\342A\001\001\022\026\n\010quantity\030\003 \001(\003B\004\342A\001\001" + - "\022!\n\023merchant_account_id\030\004 \001(\tB\004\342A\001\001\032\210\001\n\013" + - "GatewayInfo\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022#\n\025gatew" + - "ay_response_code\030\002 \001(\tB\004\342A\001\001\022\037\n\021avs_resp" + - "onse_code\030\003 \001(\tB\004\342A\001\001\022\037\n\021cvv_response_co" + - "de\030\004 \001(\tB\004\342A\001\001B\021\n\017_transaction_id\"\250\001\n\010Us" + - "erInfo\022=\n\023create_account_time\030\001 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\004\342A\001\001\022\030\n\naccount" + - "_id\030\002 \001(\tB\004\342A\001\001\022C\n\010user_ids\030\003 \003(\0132+.goog" + - "le.cloud.recaptchaenterprise.v1.UserIdB\004" + - "\342A\001\001\"c\n\006UserId\022\025\n\005email\030\001 \001(\tB\004\342A\001\001H\000\022\034\n" + - "\014phone_number\030\002 \001(\tB\004\342A\001\001H\000\022\030\n\010username\030" + - "\003 \001(\tB\004\342A\001\001H\000B\n\n\010id_oneof\"\226\003\n\014RiskAnalys" + - "is\022\023\n\005score\030\001 \001(\002B\004\342A\001\003\022]\n\007reasons\030\002 \003(\016" + - "2F.google.cloud.recaptchaenterprise.v1.R" + - "iskAnalysis.ClassificationReasonB\004\342A\001\003\022&" + - "\n\030extended_verdict_reasons\030\003 \003(\tB\004\342A\001\003\"\351" + - "\001\n\024ClassificationReason\022%\n!CLASSIFICATIO" + - "N_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032" + - "\n\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_T" + - "RAFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PATTERNS\020\004\022" + - "\030\n\024LOW_CONFIDENCE_SCORE\020\005\022\025\n\021SUSPECTED_C" + - "ARDING\020\006\022\030\n\024SUSPECTED_CHARGEBACK\020\007\"\302\003\n\017T" + - "okenProperties\022\023\n\005valid\030\001 \001(\010B\004\342A\001\003\022`\n\016i" + - "nvalid_reason\030\002 \001(\0162B.google.cloud.recap" + - "tchaenterprise.v1.TokenProperties.Invali" + - "dReasonB\004\342A\001\003\0225\n\013create_time\030\003 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\004\342A\001\003\022\026\n\010hostname" + - "\030\004 \001(\tB\004\342A\001\003\022\"\n\024android_package_name\030\010 \001" + - "(\tB\004\342A\001\003\022\033\n\rios_bundle_id\030\t \001(\tB\004\342A\001\003\022\024\n" + - "\006action\030\005 \001(\tB\004\342A\001\003\"\221\001\n\rInvalidReason\022\036\n" + - "\032INVALID_REASON_UNSPECIFIED\020\000\022\032\n\026UNKNOWN" + - "_INVALID_REASON\020\001\022\r\n\tMALFORMED\020\002\022\013\n\007EXPI" + - "RED\020\003\022\010\n\004DUPE\020\004\022\013\n\007MISSING\020\005\022\021\n\rBROWSER_" + - "ERROR\020\006\"\272\004\n\031FraudPreventionAssessment\022\036\n" + - "\020transaction_risk\030\001 \001(\002B\004\342A\001\003\022\177\n\031stolen_" + - "instrument_verdict\030\002 \001(\0132V.google.cloud." + - "recaptchaenterprise.v1.FraudPreventionAs" + - "sessment.StolenInstrumentVerdictB\004\342A\001\003\022u" + - "\n\024card_testing_verdict\030\003 \001(\0132Q.google.cl" + - "oud.recaptchaenterprise.v1.FraudPreventi" + - "onAssessment.CardTestingVerdictB\004\342A\001\003\022}\n" + - "\030behavioral_trust_verdict\030\004 \001(\0132U.google" + - ".cloud.recaptchaenterprise.v1.FraudPreve" + - "ntionAssessment.BehavioralTrustVerdictB\004" + - "\342A\001\003\032-\n\027StolenInstrumentVerdict\022\022\n\004risk\030" + - "\001 \001(\002B\004\342A\001\003\032(\n\022CardTestingVerdict\022\022\n\004ris" + - "k\030\001 \001(\002B\004\342A\001\003\032-\n\026BehavioralTrustVerdict\022" + - "\023\n\005trust\030\001 \001(\002B\004\342A\001\003\"\350\003\n\014FraudSignals\022Y\n" + - "\014user_signals\030\001 \001(\0132=.google.cloud.recap" + - "tchaenterprise.v1.FraudSignals.UserSigna" + - "lsB\004\342A\001\003\022Y\n\014card_signals\030\002 \001(\0132=.google." + - "cloud.recaptchaenterprise.v1.FraudSignal" + - "s.CardSignalsB\004\342A\001\003\032R\n\013UserSignals\022%\n\027ac" + - "tive_days_lower_bound\030\001 \001(\005B\004\342A\001\003\022\034\n\016syn" + - "thetic_risk\030\002 \001(\002B\004\342A\001\003\032\315\001\n\013CardSignals\022" + - "b\n\013card_labels\030\001 \003(\0162G.google.cloud.reca" + - "ptchaenterprise.v1.FraudSignals.CardSign" + - "als.CardLabelB\004\342A\001\003\"Z\n\tCardLabel\022\032\n\026CARD" + - "_LABEL_UNSPECIFIED\020\000\022\013\n\007PREPAID\020\001\022\013\n\007VIR" + - "TUAL\020\002\022\027\n\023UNEXPECTED_LOCATION\020\003\"\274\002\n\031Acco" + - "untDefenderAssessment\022i\n\006labels\030\001 \003(\0162S." + - "google.cloud.recaptchaenterprise.v1.Acco" + - "untDefenderAssessment.AccountDefenderLab" + - "elB\004\342A\001\003\"\263\001\n\024AccountDefenderLabel\022&\n\"ACC" + - "OUNT_DEFENDER_LABEL_UNSPECIFIED\020\000\022\021\n\rPRO" + - "FILE_MATCH\020\001\022\035\n\031SUSPICIOUS_LOGIN_ACTIVIT" + - "Y\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_CREATION\020\003\022 \n\034" + - "RELATED_ACCOUNTS_NUMBER_HIGH\020\004\"\225\001\n\020Creat" + - "eKeyRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cl" + - "oudresourcemanager.googleapis.com/Projec" + - "t\022;\n\003key\030\002 \001(\0132(.google.cloud.recaptchae" + - "nterprise.v1.KeyB\004\342A\001\002\"\212\001\n\017ListKeysReque" + - "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresour" + - "cemanager.googleapis.com/Project\022\027\n\tpage" + - "_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342" + - "A\001\001\"c\n\020ListKeysResponse\0226\n\004keys\030\001 \003(\0132(." + - "google.cloud.recaptchaenterprise.v1.Key\022" + - "\027\n\017next_page_token\030\002 \001(\t\"^\n\036RetrieveLega" + - "cySecretKeyRequest\022<\n\003key\030\001 \001(\tB/\342A\001\002\372A(" + - "\n&recaptchaenterprise.googleapis.com/Key" + - "\"N\n\rGetKeyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(" + - "\n&recaptchaenterprise.googleapis.com/Key" + - "\"\206\001\n\020UpdateKeyRequest\022;\n\003key\030\001 \001(\0132(.goo" + - "gle.cloud.recaptchaenterprise.v1.KeyB\004\342A" + - "\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" + - "f.FieldMaskB\004\342A\001\001\"Q\n\020DeleteKeyRequest\022=\n" + - "\004name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaenterpris" + - "e.googleapis.com/Key\"\267\001\n\033CreateFirewallP" + - "olicyRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+c" + - "loudresourcemanager.googleapis.com/Proje" + - "ct\022R\n\017firewall_policy\030\002 \001(\01323.google.clo" + - "ud.recaptchaenterprise.v1.FirewallPolicy" + - "B\004\342A\001\002\"\226\001\n\033ListFirewallPoliciesRequest\022D" + - "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + - "nager.googleapis.com/Project\022\027\n\tpage_siz" + - "e\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"" + - "\207\001\n\034ListFirewallPoliciesResponse\022N\n\021fire" + - "wall_policies\030\001 \003(\01323.google.cloud.recap" + - "tchaenterprise.v1.FirewallPolicy\022\027\n\017next" + - "_page_token\030\002 \001(\t\"d\n\030GetFirewallPolicyRe" + - "quest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchae" + - "nterprise.googleapis.com/FirewallPolicy\"" + - "\250\001\n\033UpdateFirewallPolicyRequest\022R\n\017firew" + - "all_policy\030\001 \001(\01323.google.cloud.recaptch" + - "aenterprise.v1.FirewallPolicyB\004\342A\001\002\0225\n\013u" + - "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + - "MaskB\004\342A\001\001\"g\n\033DeleteFirewallPolicyReques" + - "t\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchaenter" + - "prise.googleapis.com/FirewallPolicy\"t\n\021M" + - "igrateKeyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + - "&recaptchaenterprise.googleapis.com/Key\022" + - " \n\022skip_billing_check\030\002 \001(\010B\004\342A\001\001\"V\n\021Get" + - "MetricsRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*r" + - "ecaptchaenterprise.googleapis.com/Metric" + - "s\"\302\002\n\007Metrics\022\023\n\004name\030\004 \001(\tB\005\342A\002\010\003\022.\n\nst" + - "art_time\030\001 \001(\0132\032.google.protobuf.Timesta" + - "mp\022H\n\rscore_metrics\030\002 \003(\01321.google.cloud" + - ".recaptchaenterprise.v1.ScoreMetrics\022P\n\021" + - "challenge_metrics\030\003 \003(\01325.google.cloud.r" + - "ecaptchaenterprise.v1.ChallengeMetrics:V" + - "\352AS\n*recaptchaenterprise.googleapis.com/" + - "Metrics\022%projects/{project}/keys/{key}/m" + - "etrics\"<\n\037RetrieveLegacySecretKeyRespons" + - "e\022\031\n\021legacy_secret_key\030\001 \001(\t\"\331\005\n\003Key\022\022\n\004" + - "name\030\001 \001(\tB\004\342A\001\010\022\032\n\014display_name\030\002 \001(\tB\004" + - "\342A\001\002\022K\n\014web_settings\030\003 \001(\01323.google.clou" + - "d.recaptchaenterprise.v1.WebKeySettingsH" + - "\000\022S\n\020android_settings\030\004 \001(\01327.google.clo" + - "ud.recaptchaenterprise.v1.AndroidKeySett" + - "ingsH\000\022K\n\014ios_settings\030\005 \001(\01323.google.cl" + - "oud.recaptchaenterprise.v1.IOSKeySetting" + - "sH\000\022J\n\006labels\030\006 \003(\01324.google.cloud.recap" + - "tchaenterprise.v1.Key.LabelsEntryB\004\342A\001\001\022" + - "5\n\013create_time\030\007 \001(\0132\032.google.protobuf.T" + - "imestampB\004\342A\001\003\022R\n\017testing_options\030\t \001(\0132" + - "3.google.cloud.recaptchaenterprise.v1.Te" + - "stingOptionsB\004\342A\001\001\022L\n\014waf_settings\030\n \001(\013" + - "20.google.cloud.recaptchaenterprise.v1.W" + - "afSettingsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:J\352AG\n&recaptchae" + - "nterprise.googleapis.com/Key\022\035projects/{" + - "project}/keys/{key}B\023\n\021platform_settings" + - "\"\364\001\n\016TestingOptions\022\033\n\rtesting_score\030\001 \001" + - "(\002B\004\342A\001\001\022e\n\021testing_challenge\030\002 \001(\0162D.go" + - "ogle.cloud.recaptchaenterprise.v1.Testin" + - "gOptions.TestingChallengeB\004\342A\001\001\"^\n\020Testi" + - "ngChallenge\022!\n\035TESTING_CHALLENGE_UNSPECI" + - "FIED\020\000\022\r\n\tNOCAPTCHA\020\001\022\030\n\024UNSOLVABLE_CHAL" + - "LENGE\020\002\"\251\004\n\016WebKeySettings\022\037\n\021allow_all_" + - "domains\030\003 \001(\010B\004\342A\001\001\022\035\n\017allowed_domains\030\001" + - " \003(\tB\004\342A\001\001\022\037\n\021allow_amp_traffic\030\002 \001(\010B\004\342" + - "A\001\001\022c\n\020integration_type\030\004 \001(\0162C.google.c" + - "loud.recaptchaenterprise.v1.WebKeySettin" + - "gs.IntegrationTypeB\004\342A\001\002\022|\n\035challenge_se" + - "curity_preference\030\005 \001(\0162O.google.cloud.r" + - "ecaptchaenterprise.v1.WebKeySettings.Cha" + - "llengeSecurityPreferenceB\004\342A\001\001\"[\n\017Integr" + - "ationType\022 \n\034INTEGRATION_TYPE_UNSPECIFIE" + - "D\020\000\022\t\n\005SCORE\020\001\022\014\n\010CHECKBOX\020\002\022\r\n\tINVISIBL" + - "E\020\003\"v\n\033ChallengeSecurityPreference\022-\n)CH" + - "ALLENGE_SECURITY_PREFERENCE_UNSPECIFIED\020" + - "\000\022\r\n\tUSABILITY\020\001\022\013\n\007BALANCE\020\002\022\014\n\010SECURIT" + - "Y\020\003\"\231\001\n\022AndroidKeySettings\022%\n\027allow_all_" + - "package_names\030\002 \001(\010B\004\342A\001\001\022#\n\025allowed_pac" + - "kage_names\030\001 \003(\tB\004\342A\001\001\0227\n)support_non_go" + - "ogle_app_store_distribution\030\003 \001(\010B\004\342A\001\001\"" + - "\257\001\n\016IOSKeySettings\022\"\n\024allow_all_bundle_i" + - "ds\030\002 \001(\010B\004\342A\001\001\022 \n\022allowed_bundle_ids\030\001 \003" + - "(\tB\004\342A\001\001\022W\n\022apple_developer_id\030\003 \001(\01325.g" + - "oogle.cloud.recaptchaenterprise.v1.Apple" + - "DeveloperIdB\004\342A\001\001\"[\n\020AppleDeveloperId\022\032\n" + - "\013private_key\030\001 \001(\tB\005\342A\002\002\004\022\024\n\006key_id\030\002 \001(" + - "\tB\004\342A\001\002\022\025\n\007team_id\030\003 \001(\tB\004\342A\001\002\"\251\001\n\021Score" + - "Distribution\022_\n\rscore_buckets\030\001 \003(\0132H.go" + - "ogle.cloud.recaptchaenterprise.v1.ScoreD" + - "istribution.ScoreBucketsEntry\0323\n\021ScoreBu" + - "cketsEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\003:\002" + - "8\001\"\253\002\n\014ScoreMetrics\022O\n\017overall_metrics\030\001" + - " \001(\01326.google.cloud.recaptchaenterprise." + - "v1.ScoreDistribution\022\\\n\016action_metrics\030\002" + - " \003(\0132D.google.cloud.recaptchaenterprise." + - "v1.ScoreMetrics.ActionMetricsEntry\032l\n\022Ac" + - "tionMetricsEntry\022\013\n\003key\030\001 \001(\t\022E\n\005value\030\002" + - " \001(\01326.google.cloud.recaptchaenterprise." + - "v1.ScoreDistribution:\0028\001\"o\n\020ChallengeMet" + - "rics\022\026\n\016pageload_count\030\001 \001(\003\022\027\n\017nocaptch" + - "a_count\030\002 \001(\003\022\024\n\014failed_count\030\003 \001(\003\022\024\n\014p" + - "assed_count\030\004 \001(\003\"\227\001\n\030FirewallPolicyAsse" + - "ssment\022\'\n\005error\030\005 \001(\0132\022.google.rpc.Statu" + - "sB\004\342A\001\003\022R\n\017firewall_policy\030\010 \001(\01323.googl" + - "e.cloud.recaptchaenterprise.v1.FirewallP" + - "olicyB\004\342A\001\003\"\357\004\n\016FirewallAction\022P\n\005allow\030" + - "\001 \001(\0132?.google.cloud.recaptchaenterprise" + - ".v1.FirewallAction.AllowActionH\000\022P\n\005bloc" + - "k\030\002 \001(\0132?.google.cloud.recaptchaenterpri" + - "se.v1.FirewallAction.BlockActionH\000\022V\n\010re" + - "direct\030\005 \001(\0132B.google.cloud.recaptchaent" + - "erprise.v1.FirewallAction.RedirectAction" + - "H\000\022Z\n\nsubstitute\030\003 \001(\0132D.google.cloud.re" + - "captchaenterprise.v1.FirewallAction.Subs" + - "tituteActionH\000\022Y\n\nset_header\030\004 \001(\0132C.goo" + - "gle.cloud.recaptchaenterprise.v1.Firewal" + - "lAction.SetHeaderActionH\000\032\r\n\013AllowAction" + - "\032\r\n\013BlockAction\032\020\n\016RedirectAction\032&\n\020Sub" + - "stituteAction\022\022\n\004path\030\001 \001(\tB\004\342A\001\001\0329\n\017Set" + - "HeaderAction\022\021\n\003key\030\001 \001(\tB\004\342A\001\001\022\023\n\005value" + - "\030\002 \001(\tB\004\342A\001\001B\027\n\025firewall_action_oneof\"\246\002" + - "\n\016FirewallPolicy\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\022\031\n\013" + - "description\030\002 \001(\tB\004\342A\001\001\022\022\n\004path\030\004 \001(\tB\004\342" + - "A\001\001\022\027\n\tcondition\030\005 \001(\tB\004\342A\001\001\022J\n\007actions\030" + - "\006 \003(\01323.google.cloud.recaptchaenterprise" + - ".v1.FirewallActionB\004\342A\001\001:l\352Ai\n1recaptcha" + - "enterprise.googleapis.com/FirewallPolicy" + - "\0224projects/{project}/firewallpolicies/{f" + - "irewallpolicy}\"\271\001\n)ListRelatedAccountGro" + - "upMembershipsRequest\022Y\n\006parent\030\001 \001(\tBI\342A" + - "\001\002\372AB\022@recaptchaenterprise.googleapis.co" + - "m/RelatedAccountGroupMembership\022\027\n\tpage_" + - "size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A" + - "\001\001\"\264\001\n*ListRelatedAccountGroupMembership" + - "sResponse\022m\n!related_account_group_membe" + - "rships\030\001 \003(\0132B.google.cloud.recaptchaent" + - "erprise.v1.RelatedAccountGroupMembership" + - "\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n\037ListRelate" + - "dAccountGroupsRequest\022O\n\006parent\030\001 \001(\tB?\342" + - "A\001\002\372A8\0226recaptchaenterprise.googleapis.c" + - "om/RelatedAccountGroup\022\027\n\tpage_size\030\002 \001(" + - "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\225\001\n Li" + - "stRelatedAccountGroupsResponse\022X\n\026relate" + - "d_account_groups\030\001 \003(\01328.google.cloud.re" + - "captchaenterprise.v1.RelatedAccountGroup" + - "\022\027\n\017next_page_token\030\002 \001(\t\"\371\001\n+SearchRela" + - "tedAccountGroupMembershipsRequest\022Z\n\007pro" + - "ject\030\001 \001(\tBI\342A\001\002\372AB\022@recaptchaenterprise" + - ".googleapis.com/RelatedAccountGroupMembe" + - "rship\022\030\n\naccount_id\030\005 \001(\tB\004\342A\001\001\022!\n\021hashe" + - "d_account_id\030\002 \001(\014B\006\030\001\342A\001\001\022\027\n\tpage_size\030" + - "\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\"\266\001" + - "\n,SearchRelatedAccountGroupMembershipsRe" + - "sponse\022m\n!related_account_group_membersh" + - "ips\030\001 \003(\0132B.google.cloud.recaptchaenterp" + - "rise.v1.RelatedAccountGroupMembership\022\027\n" + - "\017next_page_token\030\002 \001(\t\"\315\002\n\035RelatedAccoun" + - "tGroupMembership\022X\n\004name\030\001 \001(\tBJ\342A\002\010\002\372AB" + - "\n@recaptchaenterprise.googleapis.com/Rel" + - "atedAccountGroupMembership\022\022\n\naccount_id" + - "\030\004 \001(\t\022\035\n\021hashed_account_id\030\002 \001(\014B\002\030\001:\236\001" + - "\352A\232\001\n@recaptchaenterprise.googleapis.com" + - "/RelatedAccountGroupMembership\022Vprojects" + - "/{project}/relatedaccountgroups/{related" + - "accountgroup}/memberships/{membership}\"\341" + - "\001\n\023RelatedAccountGroup\022N\n\004name\030\001 \001(\tB@\342A" + - "\002\010\002\372A8\n6recaptchaenterprise.googleapis.c" + - "om/RelatedAccountGroup:z\352Aw\n6recaptchaen" + - "terprise.googleapis.com/RelatedAccountGr" + - "oup\022=projects/{project}/relatedaccountgr", - "oups/{relatedaccountgroup}\"\355\002\n\013WafSettin" + - "gs\022V\n\013waf_service\030\001 \001(\0162;.google.cloud.r" + - "ecaptchaenterprise.v1.WafSettings.WafSer" + - "viceB\004\342A\001\002\022V\n\013waf_feature\030\002 \001(\0162;.google" + - ".cloud.recaptchaenterprise.v1.WafSetting" + - "s.WafFeatureB\004\342A\001\002\"o\n\nWafFeature\022\033\n\027WAF_" + - "FEATURE_UNSPECIFIED\020\000\022\022\n\016CHALLENGE_PAGE\020" + - "\001\022\021\n\rSESSION_TOKEN\020\002\022\020\n\014ACTION_TOKEN\020\003\022\013" + - "\n\007EXPRESS\020\005\"=\n\nWafService\022\033\n\027WAF_SERVICE" + - "_UNSPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006FASTLY\020\0032\346\035\n\032R" + - "ecaptchaEnterpriseService\022\316\001\n\020CreateAsse" + - "ssment\022<.google.cloud.recaptchaenterpris" + - "e.v1.CreateAssessmentRequest\032/.google.cl" + - "oud.recaptchaenterprise.v1.Assessment\"K\332" + - "A\021parent,assessment\202\323\344\223\0021\"#/v1/{parent=p" + - "rojects/*}/assessments:\nassessment\022\340\001\n\022A" + - "nnotateAssessment\022>.google.cloud.recaptc" + - "haenterprise.v1.AnnotateAssessmentReques" + - "t\032?.google.cloud.recaptchaenterprise.v1." + - "AnnotateAssessmentResponse\"I\332A\017name,anno" + - "tation\202\323\344\223\0021\",/v1/{name=projects/*/asses" + - "sments/*}:annotate:\001*\022\244\001\n\tCreateKey\0225.go" + - "ogle.cloud.recaptchaenterprise.v1.Create" + - "KeyRequest\032(.google.cloud.recaptchaenter" + - "prise.v1.Key\"6\332A\nparent,key\202\323\344\223\002#\"\034/v1/{" + - "parent=projects/*}/keys:\003key\022\246\001\n\010ListKey" + - "s\0224.google.cloud.recaptchaenterprise.v1." + - "ListKeysRequest\0325.google.cloud.recaptcha" + - "enterprise.v1.ListKeysResponse\"-\332A\006paren" + - "t\202\323\344\223\002\036\022\034/v1/{parent=projects/*}/keys\022\347\001" + - "\n\027RetrieveLegacySecretKey\022C.google.cloud" + - ".recaptchaenterprise.v1.RetrieveLegacySe" + - "cretKeyRequest\032D.google.cloud.recaptchae" + - "nterprise.v1.RetrieveLegacySecretKeyResp" + - "onse\"A\332A\003key\202\323\344\223\0025\0223/v1/{key=projects/*/" + - "keys/*}:retrieveLegacySecretKey\022\223\001\n\006GetK" + - "ey\0222.google.cloud.recaptchaenterprise.v1" + - ".GetKeyRequest\032(.google.cloud.recaptchae" + - "nterprise.v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{na" + - "me=projects/*/keys/*}\022\255\001\n\tUpdateKey\0225.go" + - "ogle.cloud.recaptchaenterprise.v1.Update" + - "KeyRequest\032(.google.cloud.recaptchaenter" + - "prise.v1.Key\"?\332A\017key,update_mask\202\323\344\223\002\'2 " + - "/v1/{key.name=projects/*/keys/*}:\003key\022\207\001" + - "\n\tDeleteKey\0225.google.cloud.recaptchaente" + - "rprise.v1.DeleteKeyRequest\032\026.google.prot" + - "obuf.Empty\"+\332A\004name\202\323\344\223\002\036*\034/v1/{name=pro" + - "jects/*/keys/*}\022\237\001\n\nMigrateKey\0226.google." + - "cloud.recaptchaenterprise.v1.MigrateKeyR" + - "equest\032(.google.cloud.recaptchaenterpris" + - "e.v1.Key\"/\202\323\344\223\002)\"$/v1/{name=projects/*/k" + - "eys/*}:migrate:\001*\022\247\001\n\nGetMetrics\0226.googl" + - "e.cloud.recaptchaenterprise.v1.GetMetric" + - "sRequest\032,.google.cloud.recaptchaenterpr" + - "ise.v1.Metrics\"3\332A\004name\202\323\344\223\002&\022$/v1/{name" + - "=projects/*/keys/*/metrics}\022\351\001\n\024CreateFi" + - "rewallPolicy\022@.google.cloud.recaptchaent" + - "erprise.v1.CreateFirewallPolicyRequest\0323" + - ".google.cloud.recaptchaenterprise.v1.Fir" + - "ewallPolicy\"Z\332A\026parent,firewall_policy\202\323" + - "\344\223\002;\"(/v1/{parent=projects/*}/firewallpo" + - "licies:\017firewall_policy\022\326\001\n\024ListFirewall" + - "Policies\022@.google.cloud.recaptchaenterpr" + - "ise.v1.ListFirewallPoliciesRequest\032A.goo" + - "gle.cloud.recaptchaenterprise.v1.ListFir" + - "ewallPoliciesResponse\"9\332A\006parent\202\323\344\223\002*\022(" + - "/v1/{parent=projects/*}/firewallpolicies" + - "\022\300\001\n\021GetFirewallPolicy\022=.google.cloud.re" + - "captchaenterprise.v1.GetFirewallPolicyRe" + - "quest\0323.google.cloud.recaptchaenterprise" + - ".v1.FirewallPolicy\"7\332A\004name\202\323\344\223\002*\022(/v1/{" + - "name=projects/*/firewallpolicies/*}\022\376\001\n\024" + - "UpdateFirewallPolicy\022@.google.cloud.reca" + - "ptchaenterprise.v1.UpdateFirewallPolicyR" + - "equest\0323.google.cloud.recaptchaenterpris" + - "e.v1.FirewallPolicy\"o\332A\033firewall_policy," + - "update_mask\202\323\344\223\002K28/v1/{firewall_policy." + - "name=projects/*/firewallpolicies/*}:\017fir" + - "ewall_policy\022\251\001\n\024DeleteFirewallPolicy\022@." + - "google.cloud.recaptchaenterprise.v1.Dele" + - "teFirewallPolicyRequest\032\026.google.protobu" + - "f.Empty\"7\332A\004name\202\323\344\223\002**(/v1/{name=projec" + - "ts/*/firewallpolicies/*}\022\346\001\n\030ListRelated" + - "AccountGroups\022D.google.cloud.recaptchaen" + - "terprise.v1.ListRelatedAccountGroupsRequ" + - "est\032E.google.cloud.recaptchaenterprise.v" + - "1.ListRelatedAccountGroupsResponse\"=\332A\006p" + - "arent\202\323\344\223\002.\022,/v1/{parent=projects/*}/rel" + - "atedaccountgroups\022\222\002\n\"ListRelatedAccount" + - "GroupMemberships\022N.google.cloud.recaptch" + - "aenterprise.v1.ListRelatedAccountGroupMe" + - "mbershipsRequest\032O.google.cloud.recaptch" + - "aenterprise.v1.ListRelatedAccountGroupMe" + - "mbershipsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/" + - "{parent=projects/*/relatedaccountgroups/" + - "*}/memberships\022\262\002\n$SearchRelatedAccountG" + - "roupMemberships\022P.google.cloud.recaptcha" + - "enterprise.v1.SearchRelatedAccountGroupM" + - "embershipsRequest\032Q.google.cloud.recaptc" + - "haenterprise.v1.SearchRelatedAccountGrou" + - "pMembershipsResponse\"e\332A\031project,hashed_" + - "account_id\202\323\344\223\002C\">/v1/{project=projects/" + - "*}/relatedaccountgroupmemberships:search" + - ":\001*\032V\312A\"recaptchaenterprise.googleapis.c" + - "om\322A.https://www.googleapis.com/auth/clo" + - "ud-platformB\231\002\n!com.google.recaptchaente" + - "rprise.v1B\030RecaptchaEnterpriseProtoP\001Z\\c" + - "loud.google.com/go/recaptchaenterprise/v" + - "2/apiv1/recaptchaenterprisepb;recaptchae" + - "nterprisepb\242\002\004GCRE\252\002#Google.Cloud.Recapt" + - "chaEnterprise.V1\312\002#Google\\Cloud\\Recaptch" + - "aEnterprise\\V1\352\002&Google::Cloud::Recaptch" + - "aEnterprise::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.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor, - new java.lang.String[] { "Parent", "Assessment", }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor, - new java.lang.String[] { "EventType", "Reason", "Value", "EventTime", }); - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor, - new java.lang.String[] { "Name", "Annotation", "Reasons", "AccountId", "HashedAccountId", "TransactionEvent", }); - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor, - new java.lang.String[] { "EmailAddress", "PhoneNumber", "RequestToken", "LastVerificationTime", "Endpoint", }); - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor, - new java.lang.String[] { "Endpoints", "LanguageCode", "LatestVerificationResult", "Username", }); - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor, - new java.lang.String[] { "LookupHashPrefix", "EncryptedUserCredentialsHash", "EncryptedLeakMatchPrefixes", "ReencryptedUserCredentialsHash", }); - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor, - new java.lang.String[] { "Name", "Event", "RiskAnalysis", "TokenProperties", "AccountVerification", "AccountDefenderAssessment", "PrivatePasswordLeakVerification", "FirewallPolicyAssessment", "FraudPreventionAssessment", "FraudSignals", }); - internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor, - new java.lang.String[] { "Token", "SiteKey", "UserAgent", "UserIpAddress", "ExpectedAction", "HashedAccountId", "Express", "RequestedUri", "WafTokenAssessment", "Ja3", "Headers", "FirewallPolicyEvaluation", "TransactionData", "UserInfo", }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor, - new java.lang.String[] { "TransactionId", "PaymentMethod", "CardBin", "CardLastFour", "CurrencyCode", "Value", "ShippingValue", "ShippingAddress", "BillingAddress", "User", "Merchants", "Items", "GatewayInfo", "TransactionId", }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor, - new java.lang.String[] { "Recipient", "Address", "Locality", "AdministrativeArea", "RegionCode", "PostalCode", }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor, - new java.lang.String[] { "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified", }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor, - new java.lang.String[] { "Name", "Value", "Quantity", "MerchantAccountId", }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor, - new java.lang.String[] { "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", }); - internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_UserInfo_descriptor, - new java.lang.String[] { "CreateAccountTime", "AccountId", "UserIds", }); - internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_recaptchaenterprise_v1_UserId_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_UserId_descriptor, - new java.lang.String[] { "Email", "PhoneNumber", "Username", "IdOneof", }); - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor, - new java.lang.String[] { "Score", "Reasons", "ExtendedVerdictReasons", }); - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor, - new java.lang.String[] { "Valid", "InvalidReason", "CreateTime", "Hostname", "AndroidPackageName", "IosBundleId", "Action", }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor, - new java.lang.String[] { "TransactionRisk", "StolenInstrumentVerdict", "CardTestingVerdict", "BehavioralTrustVerdict", }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor, - new java.lang.String[] { "Risk", }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor, - new java.lang.String[] { "Risk", }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor, - new java.lang.String[] { "Trust", }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor, - new java.lang.String[] { "UserSignals", "CardSignals", }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor, - new java.lang.String[] { "ActiveDaysLowerBound", "SyntheticRisk", }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor, - new java.lang.String[] { "CardLabels", }); - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor, - new java.lang.String[] { "Labels", }); - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor, - new java.lang.String[] { "Parent", "Key", }); - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor, - new java.lang.String[] { "Keys", "NextPageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor, - new java.lang.String[] { "Key", }); - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor, - new java.lang.String[] { "Key", "UpdateMask", }); - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor, - new java.lang.String[] { "Parent", "FirewallPolicy", }); - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor, - new java.lang.String[] { "FirewallPolicies", "NextPageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor, - new java.lang.String[] { "FirewallPolicy", "UpdateMask", }); - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor, - new java.lang.String[] { "Name", "SkipBillingCheck", }); - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor, - new java.lang.String[] { "Name", "StartTime", "ScoreMetrics", "ChallengeMetrics", }); - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor, - new java.lang.String[] { "LegacySecretKey", }); - internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor, - new java.lang.String[] { "Name", "DisplayName", "WebSettings", "AndroidSettings", "IosSettings", "Labels", "CreateTime", "TestingOptions", "WafSettings", "PlatformSettings", }); - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor, - new java.lang.String[] { "TestingScore", "TestingChallenge", }); - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor, - new java.lang.String[] { "AllowAllDomains", "AllowedDomains", "AllowAmpTraffic", "IntegrationType", "ChallengeSecurityPreference", }); - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor, - new java.lang.String[] { "AllowAllPackageNames", "AllowedPackageNames", "SupportNonGoogleAppStoreDistribution", }); - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor, - new java.lang.String[] { "AllowAllBundleIds", "AllowedBundleIds", "AppleDeveloperId", }); - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor, - new java.lang.String[] { "PrivateKey", "KeyId", "TeamId", }); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor, - new java.lang.String[] { "ScoreBuckets", }); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor, - new java.lang.String[] { "OverallMetrics", "ActionMetrics", }); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor, - new java.lang.String[] { "PageloadCount", "NocaptchaCount", "FailedCount", "PassedCount", }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor, - new java.lang.String[] { "Error", "FirewallPolicy", }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor, - new java.lang.String[] { "Allow", "Block", "Redirect", "Substitute", "SetHeader", "FirewallActionOneof", }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor, - new java.lang.String[] { "Path", }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor, - new java.lang.String[] { "Name", "Description", "Path", "Condition", "Actions", }); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor, - new java.lang.String[] { "RelatedAccountGroupMemberships", "NextPageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor, - new java.lang.String[] { "RelatedAccountGroups", "NextPageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor, - new java.lang.String[] { "Project", "AccountId", "HashedAccountId", "PageSize", "PageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor, - new java.lang.String[] { "RelatedAccountGroupMemberships", "NextPageToken", }); - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor, - new java.lang.String[] { "Name", "AccountId", "HashedAccountId", }); - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor, - new java.lang.String[] { "WafService", "WafFeature", }); - 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); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java deleted file mode 100644 index 06bb17d0f388..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface RelatedAccountGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Identifier. The resource name for the related account group in
-   * the format
-   * `projects/{project}/relatedaccountgroups/{related_account_group}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Identifier. The resource name for the related account group in
-   * the format
-   * `projects/{project}/relatedaccountgroups/{related_account_group}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java deleted file mode 100644 index 3795bee6e6d9..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface RetrieveLegacySecretKeyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The public key name linked to the requested secret key in the
-   * format `projects/{project}/keys/{key}`.
-   * 
- * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The key. - */ - java.lang.String getKey(); - /** - *
-   * Required. The public key name linked to the requested secret key in the
-   * format `projects/{project}/keys/{key}`.
-   * 
- * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java deleted file mode 100644 index ac15fba5ab1f..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface WafSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.WafSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The WAF service that uses this key.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for wafService. - */ - int getWafServiceValue(); - /** - *
-   * Required. The WAF service that uses this key.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The wafService. - */ - com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService(); - - /** - *
-   * Required. The WAF feature for which this key is enabled.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for wafFeature. - */ - int getWafFeatureValue(); - /** - *
-   * Required. The WAF feature for which this key is enabled.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The wafFeature. - */ - com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java deleted file mode 100644 index ef5594930c96..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface AccountDefenderAssessmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * @return A list containing the labels. - */ - java.util.List getLabelsList(); - /** - *
-   * Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * @return The count of labels. - */ - int getLabelsCount(); - /** - *
-   * Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * @param index The index of the element to return. - * @return The labels at the given index. - */ - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index); - /** - *
-   * Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * @return A list containing the enum numeric values on the wire for labels. - */ - java.util.List - getLabelsValueList(); - /** - *
-   * Labels for this request.
-   * 
- * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of labels at the given index. - */ - int getLabelsValue(int index); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java deleted file mode 100644 index d4773aed170d..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface AnnotateAssessmentResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java deleted file mode 100644 index f5cf5c8586af..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface CreateAssessmentRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the project in which the assessment will be created,
-   * in the format `projects/{project_number}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the project in which the assessment will be created,
-   * in the format `projects/{project_number}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The assessment details.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the assessment field is set. - */ - boolean hasAssessment(); - /** - *
-   * Required. The assessment details.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The assessment. - */ - com.google.recaptchaenterprise.v1beta1.Assessment getAssessment(); - /** - *
-   * Required. The assessment details.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java deleted file mode 100644 index 9f1bd169476d..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface FraudPreventionAssessmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Probability (0-1) of this transaction being fraudulent. Summarizes the
-   * combined risk of attack vectors below.
-   * 
- * - * float transaction_risk = 1; - * @return The transactionRisk. - */ - float getTransactionRisk(); - - /** - *
-   * Assessment of this transaction for risk of a stolen instrument.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * @return Whether the stolenInstrumentVerdict field is set. - */ - boolean hasStolenInstrumentVerdict(); - /** - *
-   * Assessment of this transaction for risk of a stolen instrument.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * @return The stolenInstrumentVerdict. - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict(); - /** - *
-   * Assessment of this transaction for risk of a stolen instrument.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder(); - - /** - *
-   * Assessment of this transaction for risk of being part of a card testing
-   * attack.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * @return Whether the cardTestingVerdict field is set. - */ - boolean hasCardTestingVerdict(); - /** - *
-   * Assessment of this transaction for risk of being part of a card testing
-   * attack.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * @return The cardTestingVerdict. - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict(); - /** - *
-   * Assessment of this transaction for risk of being part of a card testing
-   * attack.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder(); - - /** - *
-   * Assessment of this transaction for behavioral trust.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * @return Whether the behavioralTrustVerdict field is set. - */ - boolean hasBehavioralTrustVerdict(); - /** - *
-   * Assessment of this transaction for behavioral trust.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * @return The behavioralTrustVerdict. - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict(); - /** - *
-   * Assessment of this transaction for behavioral trust.
-   * 
- * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder(); -} diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java deleted file mode 100644 index d0f29d298ba0..000000000000 --- a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java +++ /dev/null @@ -1,422 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public final class RecaptchaEnterpriseProto { - private RecaptchaEnterpriseProto() {} - 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_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/recaptchaenterprise/v1bet" + - "a1/recaptchaenterprise.proto\022(google.clo" + - "ud.recaptchaenterprise.v1beta1\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032\037google/protob" + - "uf/timestamp.proto\"\257\001\n\027CreateAssessmentR" + - "equest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudre" + - "sourcemanager.googleapis.com/Project\022N\n\n" + - "assessment\030\002 \001(\01324.google.cloud.recaptch" + - "aenterprise.v1beta1.AssessmentB\004\342A\001\002\"\233\005\n" + - "\020TransactionEvent\022i\n\nevent_type\030\001 \001(\0162O." + - "google.cloud.recaptchaenterprise.v1beta1" + - ".TransactionEvent.TransactionEventTypeB\004" + - "\342A\001\001\022\024\n\006reason\030\002 \001(\tB\004\342A\001\001\022\023\n\005value\030\003 \001(" + - "\001B\004\342A\001\001\0224\n\nevent_time\030\004 \001(\0132\032.google.pro" + - "tobuf.TimestampB\004\342A\001\001\"\272\003\n\024TransactionEve" + - "ntType\022&\n\"TRANSACTION_EVENT_TYPE_UNSPECI" + - "FIED\020\000\022\024\n\020MERCHANT_APPROVE\020\001\022\021\n\rMERCHANT" + - "_DENY\020\002\022\021\n\rMANUAL_REVIEW\020\003\022\021\n\rAUTHORIZAT" + - "ION\020\004\022\031\n\025AUTHORIZATION_DECLINE\020\005\022\023\n\017PAYM" + - "ENT_CAPTURE\020\006\022\033\n\027PAYMENT_CAPTURE_DECLINE" + - "\020\007\022\n\n\006CANCEL\020\010\022\026\n\022CHARGEBACK_INQUIRY\020\t\022\024" + - "\n\020CHARGEBACK_ALERT\020\n\022\026\n\022FRAUD_NOTIFICATI" + - "ON\020\013\022\016\n\nCHARGEBACK\020\014\022\034\n\030CHARGEBACK_REPRE" + - "SENTMENT\020\r\022\026\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016RE" + - "FUND_REQUEST\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006RE" + - "FUND\020\021\022\022\n\016REFUND_REVERSE\020\022\"\376\006\n\031AnnotateA" + - "ssessmentRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n" + - "-recaptchaenterprise.googleapis.com/Asse" + - "ssment\022h\n\nannotation\030\002 \001(\0162N.google.clou" + - "d.recaptchaenterprise.v1beta1.AnnotateAs" + - "sessmentRequest.AnnotationB\004\342A\001\001\022a\n\007reas" + - "ons\030\003 \003(\0162J.google.cloud.recaptchaenterp" + - "rise.v1beta1.AnnotateAssessmentRequest.R" + - "easonB\004\342A\001\001\022\037\n\021hashed_account_id\030\004 \001(\014B\004" + - "\342A\001\001\022[\n\021transaction_event\030\005 \001(\0132:.google" + - ".cloud.recaptchaenterprise.v1beta1.Trans" + - "actionEventB\004\342A\001\001\"~\n\nAnnotation\022\032\n\026ANNOT" + - "ATION_UNSPECIFIED\020\000\022\016\n\nLEGITIMATE\020\001\022\016\n\nF" + - "RAUDULENT\020\002\022\030\n\020PASSWORD_CORRECT\020\003\032\002\010\001\022\032\n" + - "\022PASSWORD_INCORRECT\020\004\032\002\010\001\"\317\002\n\006Reason\022\026\n\022" + - "REASON_UNSPECIFIED\020\000\022\016\n\nCHARGEBACK\020\001\022\024\n\020" + - "CHARGEBACK_FRAUD\020\010\022\026\n\022CHARGEBACK_DISPUTE" + - "\020\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FRAUD\020\013\022\030\n\024TRAN" + - "SACTION_ACCEPTED\020\014\022\030\n\024TRANSACTION_DECLIN" + - "ED\020\r\022\026\n\022PAYMENT_HEURISTICS\020\002\022\030\n\024INITIATE" + - "D_TWO_FACTOR\020\007\022\025\n\021PASSED_TWO_FACTOR\020\003\022\025\n" + - "\021FAILED_TWO_FACTOR\020\004\022\024\n\020CORRECT_PASSWORD" + - "\020\005\022\026\n\022INCORRECT_PASSWORD\020\006\022\017\n\013SOCIAL_SPA" + - "M\020\016\"\034\n\032AnnotateAssessmentResponse\"\211\001\n\030Pa" + - "sswordLeakVerification\022%\n\027hashed_user_cr" + - "edentials\030\001 \001(\014B\004\342A\001\001\022 \n\022credentials_lea" + - "ked\030\002 \001(\010B\004\342A\001\003\022$\n\026canonicalized_usernam" + - "e\030\003 \001(\tB\004\342A\001\001\"\273\007\n\nAssessment\022\022\n\004name\030\001 \001" + - "(\tB\004\342A\001\003\022>\n\005event\030\002 \001(\0132/.google.cloud.r" + - "ecaptchaenterprise.v1beta1.Event\022\023\n\005scor" + - "e\030\003 \001(\002B\004\342A\001\003\022Y\n\020token_properties\030\004 \001(\0132" + - "9.google.cloud.recaptchaenterprise.v1bet" + - "a1.TokenPropertiesB\004\342A\001\003\022`\n\007reasons\030\005 \003(" + - "\0162I.google.cloud.recaptchaenterprise.v1b" + - "eta1.Assessment.ClassificationReasonB\004\342A" + - "\001\003\022f\n\032password_leak_verification\030\007 \001(\0132B" + - ".google.cloud.recaptchaenterprise.v1beta" + - "1.PasswordLeakVerification\022h\n\033account_de" + - "fender_assessment\030\010 \001(\0132C.google.cloud.r" + - "ecaptchaenterprise.v1beta1.AccountDefend" + - "erAssessment\022h\n\033fraud_prevention_assessm" + - "ent\030\013 \001(\0132C.google.cloud.recaptchaenterp" + - "rise.v1beta1.FraudPreventionAssessment\"\351" + - "\001\n\024ClassificationReason\022%\n!CLASSIFICATIO" + - "N_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032" + - "\n\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_T" + - "RAFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PATTERNS\020\004\022" + - "\030\n\024LOW_CONFIDENCE_SCORE\020\005\022\025\n\021SUSPECTED_C" + - "ARDING\020\006\022\030\n\024SUSPECTED_CHARGEBACK\020\007:_\352A\\\n" + - "-recaptchaenterprise.googleapis.com/Asse" + - "ssment\022+projects/{project}/assessments/{" + - "assessment}\"\210\002\n\005Event\022\023\n\005token\030\001 \001(\tB\004\342A" + - "\001\001\022\026\n\010site_key\030\002 \001(\tB\004\342A\001\001\022\030\n\nuser_agent" + - "\030\003 \001(\tB\004\342A\001\001\022\035\n\017user_ip_address\030\004 \001(\tB\004\342" + - "A\001\001\022\035\n\017expected_action\030\005 \001(\tB\004\342A\001\001\022\037\n\021ha" + - "shed_account_id\030\006 \001(\014B\004\342A\001\001\022Y\n\020transacti" + - "on_data\030\r \001(\01329.google.cloud.recaptchaen" + - "terprise.v1beta1.TransactionDataB\004\342A\001\001\"\235" + - "\t\n\017TransactionData\022\033\n\016transaction_id\030\013 \001" + - "(\tH\000\210\001\001\022\026\n\016payment_method\030\001 \001(\t\022\020\n\010card_" + - "bin\030\002 \001(\t\022\026\n\016card_last_four\030\003 \001(\t\022\025\n\rcur" + - "rency_code\030\004 \001(\t\022\r\n\005value\030\005 \001(\001\022\026\n\016shipp" + - "ing_value\030\014 \001(\001\022[\n\020shipping_address\030\006 \001(" + - "\0132A.google.cloud.recaptchaenterprise.v1b" + - "eta1.TransactionData.Address\022Z\n\017billing_" + - "address\030\007 \001(\0132A.google.cloud.recaptchaen" + - "terprise.v1beta1.TransactionData.Address" + - "\022L\n\004user\030\010 \001(\0132>.google.cloud.recaptchae" + - "nterprise.v1beta1.TransactionData.User\022Q" + - "\n\tmerchants\030\r \003(\0132>.google.cloud.recaptc" + - "haenterprise.v1beta1.TransactionData.Use" + - "r\022M\n\005items\030\016 \003(\0132>.google.cloud.recaptch" + - "aenterprise.v1beta1.TransactionData.Item" + - "\022[\n\014gateway_info\030\n \001(\0132E.google.cloud.re" + - "captchaenterprise.v1beta1.TransactionDat" + - "a.GatewayInfo\032\206\001\n\007Address\022\021\n\trecipient\030\001" + - " \001(\t\022\017\n\007address\030\002 \003(\t\022\020\n\010locality\030\003 \001(\t\022" + - "\033\n\023administrative_area\030\004 \001(\t\022\023\n\013region_c" + - "ode\030\005 \001(\t\022\023\n\013postal_code\030\006 \001(\t\032\204\001\n\004User\022" + - "\022\n\naccount_id\030\006 \001(\t\022\023\n\013creation_ms\030\001 \001(\003" + - "\022\r\n\005email\030\002 \001(\t\022\026\n\016email_verified\030\003 \001(\010\022" + - "\024\n\014phone_number\030\004 \001(\t\022\026\n\016phone_verified\030" + - "\005 \001(\010\032R\n\004Item\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\001\022\020\n\010quantity\030\003 \001(\003\022\033\n\023merchant_account" + - "_id\030\004 \001(\t\032p\n\013GatewayInfo\022\014\n\004name\030\001 \001(\t\022\035" + - "\n\025gateway_response_code\030\002 \001(\t\022\031\n\021avs_res" + - "ponse_code\030\003 \001(\t\022\031\n\021cvv_response_code\030\004 " + - "\001(\tB\021\n\017_transaction_id\"\377\002\n\017TokenProperti" + - "es\022\r\n\005valid\030\001 \001(\010\022_\n\016invalid_reason\030\002 \001(" + - "\0162G.google.cloud.recaptchaenterprise.v1b" + - "eta1.TokenProperties.InvalidReason\022/\n\013cr" + - "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + - "amp\022\020\n\010hostname\030\004 \001(\t\022\016\n\006action\030\005 \001(\t\"\250\001" + - "\n\rInvalidReason\022\036\n\032INVALID_REASON_UNSPEC" + - "IFIED\020\000\022\032\n\026UNKNOWN_INVALID_REASON\020\001\022\r\n\tM" + - "ALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE\020\004\022\025\n\rSIT" + - "E_MISMATCH\020\005\032\002\010\001\022\013\n\007MISSING\020\006\022\021\n\rBROWSER" + - "_ERROR\020\007\"\237\004\n\031FraudPreventionAssessment\022\030" + - "\n\020transaction_risk\030\001 \001(\002\022~\n\031stolen_instr" + - "ument_verdict\030\002 \001(\0132[.google.cloud.recap" + - "tchaenterprise.v1beta1.FraudPreventionAs" + - "sessment.StolenInstrumentVerdict\022t\n\024card" + - "_testing_verdict\030\003 \001(\0132V.google.cloud.re" + - "captchaenterprise.v1beta1.FraudPreventio" + - "nAssessment.CardTestingVerdict\022|\n\030behavi" + - "oral_trust_verdict\030\004 \001(\0132Z.google.cloud." + - "recaptchaenterprise.v1beta1.FraudPrevent" + - "ionAssessment.BehavioralTrustVerdict\032\'\n\027" + - "StolenInstrumentVerdict\022\014\n\004risk\030\001 \001(\002\032\"\n" + - "\022CardTestingVerdict\022\014\n\004risk\030\001 \001(\002\032\'\n\026Beh" + - "avioralTrustVerdict\022\r\n\005trust\030\001 \001(\002\"\273\002\n\031A" + - "ccountDefenderAssessment\022h\n\006labels\030\001 \003(\016" + - "2X.google.cloud.recaptchaenterprise.v1be" + - "ta1.AccountDefenderAssessment.AccountDef" + - "enderLabel\"\263\001\n\024AccountDefenderLabel\022&\n\"A" + - "CCOUNT_DEFENDER_LABEL_UNSPECIFIED\020\000\022\021\n\rP" + - "ROFILE_MATCH\020\001\022\035\n\031SUSPICIOUS_LOGIN_ACTIV" + - "ITY\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_CREATION\020\003\022 " + - "\n\034RELATED_ACCOUNTS_NUMBER_HIGH\020\0042\315\004\n!Rec" + - "aptchaEnterpriseServiceV1Beta1\022\335\001\n\020Creat" + - "eAssessment\022A.google.cloud.recaptchaente" + - "rprise.v1beta1.CreateAssessmentRequest\0324" + - ".google.cloud.recaptchaenterprise.v1beta" + - "1.Assessment\"P\332A\021parent,assessment\202\323\344\223\0026" + - "\"(/v1beta1/{parent=projects/*}/assessmen" + - "ts:\nassessment\022\357\001\n\022AnnotateAssessment\022C." + - "google.cloud.recaptchaenterprise.v1beta1" + - ".AnnotateAssessmentRequest\032D.google.clou" + - "d.recaptchaenterprise.v1beta1.AnnotateAs" + - "sessmentResponse\"N\332A\017name,annotation\202\323\344\223" + - "\0026\"1/v1beta1/{name=projects/*/assessment" + - "s/*}:annotate:\001*\032V\312A\"recaptchaenterprise" + - ".googleapis.com\322A.https://www.googleapis" + - ".com/auth/cloud-platformB\262\002\n&com.google." + - "recaptchaenterprise.v1beta1B\030RecaptchaEn" + - "terpriseProtoP\001Zacloud.google.com/go/rec" + - "aptchaenterprise/v2/apiv1beta1/recaptcha" + - "enterprisepb;recaptchaenterprisepb\242\002\004GCR" + - "E\252\002(Google.Cloud.RecaptchaEnterprise.V1B" + - "eta1\312\002(Google\\Cloud\\RecaptchaEnterprise\\" + - "V1beta1\352\002+Google::Cloud::RecaptchaEnterp" + - "rise::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor, - new java.lang.String[] { "Parent", "Assessment", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor, - new java.lang.String[] { "EventType", "Reason", "Value", "EventTime", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor, - new java.lang.String[] { "Name", "Annotation", "Reasons", "HashedAccountId", "TransactionEvent", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor, - new java.lang.String[] { "HashedUserCredentials", "CredentialsLeaked", "CanonicalizedUsername", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor, - new java.lang.String[] { "Name", "Event", "Score", "TokenProperties", "Reasons", "PasswordLeakVerification", "AccountDefenderAssessment", "FraudPreventionAssessment", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor, - new java.lang.String[] { "Token", "SiteKey", "UserAgent", "UserIpAddress", "ExpectedAction", "HashedAccountId", "TransactionData", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor, - new java.lang.String[] { "TransactionId", "PaymentMethod", "CardBin", "CardLastFour", "CurrencyCode", "Value", "ShippingValue", "ShippingAddress", "BillingAddress", "User", "Merchants", "Items", "GatewayInfo", "TransactionId", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor, - new java.lang.String[] { "Recipient", "Address", "Locality", "AdministrativeArea", "RegionCode", "PostalCode", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor, - new java.lang.String[] { "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor, - new java.lang.String[] { "Name", "Value", "Quantity", "MerchantAccountId", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor, - new java.lang.String[] { "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor, - new java.lang.String[] { "Valid", "InvalidReason", "CreateTime", "Hostname", "Action", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor, - new java.lang.String[] { "TransactionRisk", "StolenInstrumentVerdict", "CardTestingVerdict", "BehavioralTrustVerdict", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor, - new java.lang.String[] { "Risk", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor, - new java.lang.String[] { "Risk", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor, - new java.lang.String[] { "Trust", }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor, - new java.lang.String[] { "Labels", }); - 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); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/versions.txt b/versions.txt index 02021a55dd8d..e7867e485698 100644 --- a/versions.txt +++ b/versions.txt @@ -718,4 +718,4 @@ proto-google-cloud-securitycentermanagement-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-cloud-securitycentermanagement-v1:0.1.0:0.2.0-SNAPSHOT google-shopping-css:0.1.0:0.2.0-SNAPSHOT proto-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT -grpc-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT \ No newline at end of file +grpc-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT