diff --git a/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto b/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto index 3172a6047fa4a..17ecdc1bbb4e1 100644 --- a/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto +++ b/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto @@ -401,6 +401,24 @@ message Assessment { } message Event { + // Setting that controls Fraud Prevention assessments. + enum FraudPrevention { + // Default, unspecified setting. If opted in for automatic detection, + // `fraud_prevention_assessment` is returned based on the request. + // Otherwise, `fraud_prevention_assessment` is returned if + // `transaction_data` is present in the `Event` and Fraud Prevention is + // enabled in the Google Cloud console. + FRAUD_PREVENTION_UNSPECIFIED = 0; + + // Enable Fraud Prevention for this assessment, if Fraud Prevention is + // enabled in the Google Cloud console. + ENABLED = 1; + + // Disable Fraud Prevention for this assessment, regardless of opt-in + // status or the Google Cloud console settings. + DISABLED = 2; + } + // Optional. The user response token provided by the reCAPTCHA Enterprise // client-side integration on your site. string token = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -431,6 +449,10 @@ message Event { // FraudPreventionAssessment component in the response. TransactionData transaction_data = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Fraud Prevention setting for this Assessment. + FraudPrevention fraud_prevention = 17 + [(google.api.field_behavior) = OPTIONAL]; } // Transaction data associated with a payment protected by reCAPTCHA Enterprise.