aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoogle APIs <noreply@google.com>2024-04-23 14:46:32 -0700
committerCopybara-Service <copybara-worker@google.com>2024-04-23 14:47:25 -0700
commit0179dcc4d2b4d7376e7f0292b15c72aab3100dd6 (patch)
tree7096977e1ab461843dfd9d8a912e8fd421b8a55c
parent087cb30ad13897a7cbe3d44ec3f0486a991dbae4 (diff)
downloadgoogleapis-0179dcc4d2b4d7376e7f0292b15c72aab3100dd6.tar.gz
feat:Add Fraud Prevention settings field
PiperOrigin-RevId: 627512001
-rw-r--r--google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto22
1 files changed, 22 insertions, 0 deletions
diff --git a/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto b/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
index 3172a6047..17ecdc1bb 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.