aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoogle APIs <noreply@google.com>2024-04-23 11:08:47 -0700
committerCopybara-Service <copybara-worker@google.com>2024-04-23 11:09:37 -0700
commit0f16abbe51676b83a966ae0787c680d0aaade137 (patch)
tree23b3d8ba8c7fec6d49cfca5699ce006f083e5da2
parenta5526a09082c5ac94e285c47919f481c1f999dc6 (diff)
downloadgoogleapis-0f16abbe51676b83a966ae0787c680d0aaade137.tar.gz
feat:Add Fraud Prevention settings field
PiperOrigin-RevId: 627445658
-rw-r--r--google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto22
1 files changed, 22 insertions, 0 deletions
diff --git a/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
index 2ac658a8a..62a45074e 100644
--- a/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
+++ b/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
@@ -653,6 +653,24 @@ message Assessment {
// The event being assessed.
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 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];
@@ -718,6 +736,10 @@ message Event {
// for logged-in requests or login/registration requests, or by providing user
// identifiers for guest actions like checkout.
UserInfo user_info = 15 [(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.