Skip to content

Commit

Permalink
feat: [google-cloud-recaptcha-enterprise]Add Fraud Prevention setting…
Browse files Browse the repository at this point in the history
…s field (#12626)

BEGIN_COMMIT_OVERRIDE
feat:Add Fraud Prevention settings field
END_COMMIT_OVERRIDE

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 627512001

Source-Link:
googleapis/googleapis@0179dcc

Source-Link:
googleapis/googleapis-gen@e483da8
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYS1lbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiJlNDgzZGE4MmFjMTk3MmM5ZTc2NDU5MmQwNmYyZGE5NWFmODM1YjExIn0=

BEGIN_NESTED_COMMIT
feat: [google-cloud-recaptcha-enterprise]Add Fraud Prevention settings
field
PiperOrigin-RevId: 627445658

Source-Link:
googleapis/googleapis@0f16abb

Source-Link:
googleapis/googleapis-gen@692123d
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYS1lbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiI2OTIxMjNkZTdiZGNkOTE4MGVmNjQzNjlhMDkyN2FhZmU4ODQ2ZDkxIn0=
END_NESTED_COMMIT

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: ohmayr <omairnaveed@ymail.com>
  • Loading branch information
3 people committed Apr 24, 2024
1 parent bbc49a5 commit 5c373f6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.19.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.19.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,35 @@ class Event(proto.Message):
login/registration requests, or by providing
user identifiers for guest actions like
checkout.
fraud_prevention (google.cloud.recaptchaenterprise_v1.types.Event.FraudPrevention):
Optional. The Fraud Prevention setting for
this assessment.
"""

class FraudPrevention(proto.Enum):
r"""Setting that controls Fraud Prevention assessments.
Values:
FRAUD_PREVENTION_UNSPECIFIED (0):
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.
ENABLED (1):
Enable Fraud Prevention for this assessment,
if Fraud Prevention is enabled in the Google
Cloud console.
DISABLED (2):
Disable Fraud Prevention for this assessment,
regardless of opt-in status or Google Cloud
console settings.
"""
FRAUD_PREVENTION_UNSPECIFIED = 0
ENABLED = 1
DISABLED = 2

token: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -854,6 +881,11 @@ class Event(proto.Message):
number=15,
message="UserInfo",
)
fraud_prevention: FraudPrevention = proto.Field(
proto.ENUM,
number=17,
enum=FraudPrevention,
)


class TransactionData(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-recaptcha-enterprise",
"version": "1.19.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 5c373f6

Please sign in to comment.