google-cloud-recaptcha_enterprise-v1 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb +22 -27
- data/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service.rb +1 -1
- data/lib/google/cloud/recaptcha_enterprise/v1/version.rb +1 -1
- data/lib/google/cloud/recaptcha_enterprise/v1.rb +2 -2
- data/lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_pb.rb +36 -279
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.rb +339 -7
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adeca9f6d58199ed07355741c9c6d36623cd5b021c04eeba231b5c3f47e4361a
|
4
|
+
data.tar.gz: 5b41c66768925fe80239542b06d1a1222a77b55492dd49b5af12ee9890905d0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1ab22f9da8bed262d9e455b177baa693959ebd3b9c54b4be44fb6c6947a2eb28d75794a34b442c9e5d324e4c1f9c5694f894b903b3ed3e57d347f53b6151eb8
|
7
|
+
data.tar.gz: ef884a5c1a1399b2836df262e9cfed5ffd13016e00da11835d4a56bdb426caa2c7f237b1b359768a422e347cb6af7711336b301b510e6787bc45c5fef83eecc0
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the reCAPTCHA Enterprise V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Help protect your website from fraudulent activity, spam, and abuse without creating friction.
|
4
4
|
|
5
5
|
reCAPTCHA Enterprise is a service that protects your site from spam and abuse.
|
6
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -260,7 +260,7 @@ module Google
|
|
260
260
|
# @param options [::Gapic::CallOptions, ::Hash]
|
261
261
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
262
262
|
#
|
263
|
-
# @overload annotate_assessment(name: nil, annotation: nil, reasons: nil, hashed_account_id: nil)
|
263
|
+
# @overload annotate_assessment(name: nil, annotation: nil, reasons: nil, hashed_account_id: nil, transaction_event: nil)
|
264
264
|
# Pass arguments to `annotate_assessment` via keyword arguments. Note that at
|
265
265
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
266
266
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -281,6 +281,9 @@ module Google
|
|
281
281
|
# CreateAssessment, for example when the account identifier is not yet known
|
282
282
|
# in the initial request. It is recommended that the identifier is hashed
|
283
283
|
# using hmac-sha256 with stable secret.
|
284
|
+
# @param transaction_event [::Google::Cloud::RecaptchaEnterprise::V1::TransactionEvent, ::Hash]
|
285
|
+
# Optional. If the assessment is part of a payment transaction, provide
|
286
|
+
# details on payment lifecycle events that occur in the transaction.
|
284
287
|
#
|
285
288
|
# @yield [response, operation] Access the result along with the RPC operation
|
286
289
|
# @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1::AnnotateAssessmentResponse]
|
@@ -482,13 +485,11 @@ module Google
|
|
482
485
|
# # Call the list_keys method.
|
483
486
|
# result = client.list_keys request
|
484
487
|
#
|
485
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
486
|
-
# #
|
487
|
-
#
|
488
|
-
# # methods are also available for managing paging directly.
|
489
|
-
# result.each do |response|
|
488
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
489
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
490
|
+
# result.each do |item|
|
490
491
|
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1::Key.
|
491
|
-
# p
|
492
|
+
# p item
|
492
493
|
# end
|
493
494
|
#
|
494
495
|
def list_keys request, options = nil
|
@@ -1121,13 +1122,11 @@ module Google
|
|
1121
1122
|
# # Call the list_related_account_groups method.
|
1122
1123
|
# result = client.list_related_account_groups request
|
1123
1124
|
#
|
1124
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1125
|
-
# #
|
1126
|
-
#
|
1127
|
-
# # methods are also available for managing paging directly.
|
1128
|
-
# result.each do |response|
|
1125
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1126
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1127
|
+
# result.each do |item|
|
1129
1128
|
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1::RelatedAccountGroup.
|
1130
|
-
# p
|
1129
|
+
# p item
|
1131
1130
|
# end
|
1132
1131
|
#
|
1133
1132
|
def list_related_account_groups request, options = nil
|
@@ -1225,13 +1224,11 @@ module Google
|
|
1225
1224
|
# # Call the list_related_account_group_memberships method.
|
1226
1225
|
# result = client.list_related_account_group_memberships request
|
1227
1226
|
#
|
1228
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1229
|
-
# #
|
1230
|
-
#
|
1231
|
-
# # methods are also available for managing paging directly.
|
1232
|
-
# result.each do |response|
|
1227
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1228
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1229
|
+
# result.each do |item|
|
1233
1230
|
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1::RelatedAccountGroupMembership.
|
1234
|
-
# p
|
1231
|
+
# p item
|
1235
1232
|
# end
|
1236
1233
|
#
|
1237
1234
|
def list_related_account_group_memberships request, options = nil
|
@@ -1335,13 +1332,11 @@ module Google
|
|
1335
1332
|
# # Call the search_related_account_group_memberships method.
|
1336
1333
|
# result = client.search_related_account_group_memberships request
|
1337
1334
|
#
|
1338
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1339
|
-
# #
|
1340
|
-
#
|
1341
|
-
# # methods are also available for managing paging directly.
|
1342
|
-
# result.each do |response|
|
1335
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1336
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1337
|
+
# result.each do |item|
|
1343
1338
|
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1::RelatedAccountGroupMembership.
|
1344
|
-
# p
|
1339
|
+
# p item
|
1345
1340
|
# end
|
1346
1341
|
#
|
1347
1342
|
def search_related_account_group_memberships request, options = nil
|
@@ -1424,9 +1419,9 @@ module Google
|
|
1424
1419
|
# * (`String`) The path to a service account key file in JSON format
|
1425
1420
|
# * (`Hash`) A service account key as a Hash
|
1426
1421
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1427
|
-
# (see the [googleauth docs](https://
|
1422
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1428
1423
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1429
|
-
# (see the [signet docs](https://
|
1424
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1430
1425
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1431
1426
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1432
1427
|
# * (`nil`) indicating no credentials
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
##
|
34
34
|
# Service to determine the likelihood an event is legitimate.
|
35
35
|
#
|
36
|
-
#
|
36
|
+
# @example Load this service and instantiate a gRPC client
|
37
37
|
#
|
38
38
|
# require "google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service"
|
39
39
|
# client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
|
@@ -23,9 +23,9 @@ module Google
|
|
23
23
|
module Cloud
|
24
24
|
module RecaptchaEnterprise
|
25
25
|
##
|
26
|
-
#
|
26
|
+
# API client module.
|
27
27
|
#
|
28
|
-
# @example
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
29
|
#
|
30
30
|
# require "google/cloud/recaptcha_enterprise/v1"
|
31
31
|
# client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
|
3
4
|
|
@@ -11,287 +12,33 @@ require 'google/protobuf/empty_pb'
|
|
11
12
|
require 'google/protobuf/field_mask_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
13
14
|
|
14
|
-
|
15
|
-
add_file("google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto", :syntax => :proto3) do
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
value :CHARGEBACK_DISPUTE, 9
|
38
|
-
value :REFUND, 10
|
39
|
-
value :REFUND_FRAUD, 11
|
40
|
-
value :TRANSACTION_ACCEPTED, 12
|
41
|
-
value :TRANSACTION_DECLINED, 13
|
42
|
-
value :PAYMENT_HEURISTICS, 2
|
43
|
-
value :INITIATED_TWO_FACTOR, 7
|
44
|
-
value :PASSED_TWO_FACTOR, 3
|
45
|
-
value :FAILED_TWO_FACTOR, 4
|
46
|
-
value :CORRECT_PASSWORD, 5
|
47
|
-
value :INCORRECT_PASSWORD, 6
|
48
|
-
value :SOCIAL_SPAM, 14
|
49
|
-
end
|
50
|
-
add_message "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse" do
|
51
|
-
end
|
52
|
-
add_message "google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo" do
|
53
|
-
optional :request_token, :string, 3
|
54
|
-
optional :last_verification_time, :message, 4, "google.protobuf.Timestamp"
|
55
|
-
oneof :endpoint do
|
56
|
-
optional :email_address, :string, 1
|
57
|
-
optional :phone_number, :string, 2
|
58
|
-
end
|
59
|
-
end
|
60
|
-
add_message "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo" do
|
61
|
-
repeated :endpoints, :message, 1, "google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo"
|
62
|
-
optional :language_code, :string, 3
|
63
|
-
optional :latest_verification_result, :enum, 7, "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result"
|
64
|
-
optional :username, :string, 2
|
65
|
-
end
|
66
|
-
add_enum "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result" do
|
67
|
-
value :RESULT_UNSPECIFIED, 0
|
68
|
-
value :SUCCESS_USER_VERIFIED, 1
|
69
|
-
value :ERROR_USER_NOT_VERIFIED, 2
|
70
|
-
value :ERROR_SITE_ONBOARDING_INCOMPLETE, 3
|
71
|
-
value :ERROR_RECIPIENT_NOT_ALLOWED, 4
|
72
|
-
value :ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED, 5
|
73
|
-
value :ERROR_CRITICAL_INTERNAL, 6
|
74
|
-
value :ERROR_CUSTOMER_QUOTA_EXHAUSTED, 7
|
75
|
-
value :ERROR_VERIFICATION_BYPASSED, 8
|
76
|
-
value :ERROR_VERDICT_MISMATCH, 9
|
77
|
-
end
|
78
|
-
add_message "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification" do
|
79
|
-
optional :lookup_hash_prefix, :bytes, 1
|
80
|
-
optional :encrypted_user_credentials_hash, :bytes, 2
|
81
|
-
repeated :encrypted_leak_match_prefixes, :bytes, 3
|
82
|
-
optional :reencrypted_user_credentials_hash, :bytes, 4
|
83
|
-
end
|
84
|
-
add_message "google.cloud.recaptchaenterprise.v1.Assessment" do
|
85
|
-
optional :name, :string, 1
|
86
|
-
optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1.Event"
|
87
|
-
optional :risk_analysis, :message, 3, "google.cloud.recaptchaenterprise.v1.RiskAnalysis"
|
88
|
-
optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1.TokenProperties"
|
89
|
-
optional :account_verification, :message, 5, "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo"
|
90
|
-
optional :account_defender_assessment, :message, 6, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment"
|
91
|
-
optional :private_password_leak_verification, :message, 8, "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification"
|
92
|
-
end
|
93
|
-
add_message "google.cloud.recaptchaenterprise.v1.Event" do
|
94
|
-
optional :token, :string, 1
|
95
|
-
optional :site_key, :string, 2
|
96
|
-
optional :user_agent, :string, 3
|
97
|
-
optional :user_ip_address, :string, 4
|
98
|
-
optional :expected_action, :string, 5
|
99
|
-
optional :hashed_account_id, :bytes, 6
|
100
|
-
end
|
101
|
-
add_message "google.cloud.recaptchaenterprise.v1.RiskAnalysis" do
|
102
|
-
optional :score, :float, 1
|
103
|
-
repeated :reasons, :enum, 2, "google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason"
|
104
|
-
end
|
105
|
-
add_enum "google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason" do
|
106
|
-
value :CLASSIFICATION_REASON_UNSPECIFIED, 0
|
107
|
-
value :AUTOMATION, 1
|
108
|
-
value :UNEXPECTED_ENVIRONMENT, 2
|
109
|
-
value :TOO_MUCH_TRAFFIC, 3
|
110
|
-
value :UNEXPECTED_USAGE_PATTERNS, 4
|
111
|
-
value :LOW_CONFIDENCE_SCORE, 5
|
112
|
-
end
|
113
|
-
add_message "google.cloud.recaptchaenterprise.v1.TokenProperties" do
|
114
|
-
optional :valid, :bool, 1
|
115
|
-
optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason"
|
116
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
117
|
-
optional :hostname, :string, 4
|
118
|
-
optional :android_package_name, :string, 8
|
119
|
-
optional :ios_bundle_id, :string, 9
|
120
|
-
optional :action, :string, 5
|
121
|
-
end
|
122
|
-
add_enum "google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason" do
|
123
|
-
value :INVALID_REASON_UNSPECIFIED, 0
|
124
|
-
value :UNKNOWN_INVALID_REASON, 1
|
125
|
-
value :MALFORMED, 2
|
126
|
-
value :EXPIRED, 3
|
127
|
-
value :DUPE, 4
|
128
|
-
value :MISSING, 5
|
129
|
-
value :BROWSER_ERROR, 6
|
130
|
-
end
|
131
|
-
add_message "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment" do
|
132
|
-
repeated :labels, :enum, 1, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel"
|
133
|
-
end
|
134
|
-
add_enum "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel" do
|
135
|
-
value :ACCOUNT_DEFENDER_LABEL_UNSPECIFIED, 0
|
136
|
-
value :PROFILE_MATCH, 1
|
137
|
-
value :SUSPICIOUS_LOGIN_ACTIVITY, 2
|
138
|
-
value :SUSPICIOUS_ACCOUNT_CREATION, 3
|
139
|
-
value :RELATED_ACCOUNTS_NUMBER_HIGH, 4
|
140
|
-
end
|
141
|
-
add_message "google.cloud.recaptchaenterprise.v1.CreateKeyRequest" do
|
142
|
-
optional :parent, :string, 1
|
143
|
-
optional :key, :message, 2, "google.cloud.recaptchaenterprise.v1.Key"
|
144
|
-
end
|
145
|
-
add_message "google.cloud.recaptchaenterprise.v1.ListKeysRequest" do
|
146
|
-
optional :parent, :string, 1
|
147
|
-
optional :page_size, :int32, 2
|
148
|
-
optional :page_token, :string, 3
|
149
|
-
end
|
150
|
-
add_message "google.cloud.recaptchaenterprise.v1.ListKeysResponse" do
|
151
|
-
repeated :keys, :message, 1, "google.cloud.recaptchaenterprise.v1.Key"
|
152
|
-
optional :next_page_token, :string, 2
|
153
|
-
end
|
154
|
-
add_message "google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest" do
|
155
|
-
optional :key, :string, 1
|
156
|
-
end
|
157
|
-
add_message "google.cloud.recaptchaenterprise.v1.GetKeyRequest" do
|
158
|
-
optional :name, :string, 1
|
159
|
-
end
|
160
|
-
add_message "google.cloud.recaptchaenterprise.v1.UpdateKeyRequest" do
|
161
|
-
optional :key, :message, 1, "google.cloud.recaptchaenterprise.v1.Key"
|
162
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
163
|
-
end
|
164
|
-
add_message "google.cloud.recaptchaenterprise.v1.DeleteKeyRequest" do
|
165
|
-
optional :name, :string, 1
|
166
|
-
end
|
167
|
-
add_message "google.cloud.recaptchaenterprise.v1.MigrateKeyRequest" do
|
168
|
-
optional :name, :string, 1
|
169
|
-
optional :skip_billing_check, :bool, 2
|
170
|
-
end
|
171
|
-
add_message "google.cloud.recaptchaenterprise.v1.GetMetricsRequest" do
|
172
|
-
optional :name, :string, 1
|
173
|
-
end
|
174
|
-
add_message "google.cloud.recaptchaenterprise.v1.Metrics" do
|
175
|
-
optional :name, :string, 4
|
176
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
177
|
-
repeated :score_metrics, :message, 2, "google.cloud.recaptchaenterprise.v1.ScoreMetrics"
|
178
|
-
repeated :challenge_metrics, :message, 3, "google.cloud.recaptchaenterprise.v1.ChallengeMetrics"
|
179
|
-
end
|
180
|
-
add_message "google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse" do
|
181
|
-
optional :legacy_secret_key, :string, 1
|
182
|
-
end
|
183
|
-
add_message "google.cloud.recaptchaenterprise.v1.Key" do
|
184
|
-
optional :name, :string, 1
|
185
|
-
optional :display_name, :string, 2
|
186
|
-
map :labels, :string, :string, 6
|
187
|
-
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
188
|
-
optional :testing_options, :message, 9, "google.cloud.recaptchaenterprise.v1.TestingOptions"
|
189
|
-
optional :waf_settings, :message, 10, "google.cloud.recaptchaenterprise.v1.WafSettings"
|
190
|
-
oneof :platform_settings do
|
191
|
-
optional :web_settings, :message, 3, "google.cloud.recaptchaenterprise.v1.WebKeySettings"
|
192
|
-
optional :android_settings, :message, 4, "google.cloud.recaptchaenterprise.v1.AndroidKeySettings"
|
193
|
-
optional :ios_settings, :message, 5, "google.cloud.recaptchaenterprise.v1.IOSKeySettings"
|
194
|
-
end
|
195
|
-
end
|
196
|
-
add_message "google.cloud.recaptchaenterprise.v1.TestingOptions" do
|
197
|
-
optional :testing_score, :float, 1
|
198
|
-
optional :testing_challenge, :enum, 2, "google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge"
|
199
|
-
end
|
200
|
-
add_enum "google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge" do
|
201
|
-
value :TESTING_CHALLENGE_UNSPECIFIED, 0
|
202
|
-
value :NOCAPTCHA, 1
|
203
|
-
value :UNSOLVABLE_CHALLENGE, 2
|
204
|
-
end
|
205
|
-
add_message "google.cloud.recaptchaenterprise.v1.WebKeySettings" do
|
206
|
-
optional :allow_all_domains, :bool, 3
|
207
|
-
repeated :allowed_domains, :string, 1
|
208
|
-
optional :allow_amp_traffic, :bool, 2
|
209
|
-
optional :integration_type, :enum, 4, "google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType"
|
210
|
-
optional :challenge_security_preference, :enum, 5, "google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference"
|
211
|
-
end
|
212
|
-
add_enum "google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType" do
|
213
|
-
value :INTEGRATION_TYPE_UNSPECIFIED, 0
|
214
|
-
value :SCORE, 1
|
215
|
-
value :CHECKBOX, 2
|
216
|
-
value :INVISIBLE, 3
|
217
|
-
end
|
218
|
-
add_enum "google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference" do
|
219
|
-
value :CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED, 0
|
220
|
-
value :USABILITY, 1
|
221
|
-
value :BALANCE, 2
|
222
|
-
value :SECURITY, 3
|
223
|
-
end
|
224
|
-
add_message "google.cloud.recaptchaenterprise.v1.AndroidKeySettings" do
|
225
|
-
optional :allow_all_package_names, :bool, 2
|
226
|
-
repeated :allowed_package_names, :string, 1
|
227
|
-
end
|
228
|
-
add_message "google.cloud.recaptchaenterprise.v1.IOSKeySettings" do
|
229
|
-
optional :allow_all_bundle_ids, :bool, 2
|
230
|
-
repeated :allowed_bundle_ids, :string, 1
|
231
|
-
end
|
232
|
-
add_message "google.cloud.recaptchaenterprise.v1.ScoreDistribution" do
|
233
|
-
map :score_buckets, :int32, :int64, 1
|
234
|
-
end
|
235
|
-
add_message "google.cloud.recaptchaenterprise.v1.ScoreMetrics" do
|
236
|
-
optional :overall_metrics, :message, 1, "google.cloud.recaptchaenterprise.v1.ScoreDistribution"
|
237
|
-
map :action_metrics, :string, :message, 2, "google.cloud.recaptchaenterprise.v1.ScoreDistribution"
|
238
|
-
end
|
239
|
-
add_message "google.cloud.recaptchaenterprise.v1.ChallengeMetrics" do
|
240
|
-
optional :pageload_count, :int64, 1
|
241
|
-
optional :nocaptcha_count, :int64, 2
|
242
|
-
optional :failed_count, :int64, 3
|
243
|
-
optional :passed_count, :int64, 4
|
244
|
-
end
|
245
|
-
add_message "google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest" do
|
246
|
-
optional :parent, :string, 1
|
247
|
-
optional :page_size, :int32, 2
|
248
|
-
optional :page_token, :string, 3
|
249
|
-
end
|
250
|
-
add_message "google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse" do
|
251
|
-
repeated :related_account_group_memberships, :message, 1, "google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership"
|
252
|
-
optional :next_page_token, :string, 2
|
253
|
-
end
|
254
|
-
add_message "google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest" do
|
255
|
-
optional :parent, :string, 1
|
256
|
-
optional :page_size, :int32, 2
|
257
|
-
optional :page_token, :string, 3
|
258
|
-
end
|
259
|
-
add_message "google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse" do
|
260
|
-
repeated :related_account_groups, :message, 1, "google.cloud.recaptchaenterprise.v1.RelatedAccountGroup"
|
261
|
-
optional :next_page_token, :string, 2
|
262
|
-
end
|
263
|
-
add_message "google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest" do
|
264
|
-
optional :project, :string, 1
|
265
|
-
optional :hashed_account_id, :bytes, 2
|
266
|
-
optional :page_size, :int32, 3
|
267
|
-
optional :page_token, :string, 4
|
268
|
-
end
|
269
|
-
add_message "google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse" do
|
270
|
-
repeated :related_account_group_memberships, :message, 1, "google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership"
|
271
|
-
optional :next_page_token, :string, 2
|
272
|
-
end
|
273
|
-
add_message "google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership" do
|
274
|
-
optional :name, :string, 1
|
275
|
-
optional :hashed_account_id, :bytes, 2
|
276
|
-
end
|
277
|
-
add_message "google.cloud.recaptchaenterprise.v1.RelatedAccountGroup" do
|
278
|
-
optional :name, :string, 1
|
279
|
-
end
|
280
|
-
add_message "google.cloud.recaptchaenterprise.v1.WafSettings" do
|
281
|
-
optional :waf_service, :enum, 1, "google.cloud.recaptchaenterprise.v1.WafSettings.WafService"
|
282
|
-
optional :waf_feature, :enum, 2, "google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature"
|
283
|
-
end
|
284
|
-
add_enum "google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature" do
|
285
|
-
value :WAF_FEATURE_UNSPECIFIED, 0
|
286
|
-
value :CHALLENGE_PAGE, 1
|
287
|
-
value :SESSION_TOKEN, 2
|
288
|
-
value :ACTION_TOKEN, 3
|
289
|
-
end
|
290
|
-
add_enum "google.cloud.recaptchaenterprise.v1.WafSettings.WafService" do
|
291
|
-
value :WAF_SERVICE_UNSPECIFIED, 0
|
292
|
-
value :CA, 1
|
15
|
+
|
16
|
+
descriptor_data = "\n=google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto\x12#google.cloud.recaptchaenterprise.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa8\x01\n\x17\x43reateAssessmentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12H\n\nassessment\x18\x02 \x01(\x0b\x32/.google.cloud.recaptchaenterprise.v1.AssessmentB\x03\xe0\x41\x02\"\x92\x05\n\x10TransactionEvent\x12\x63\n\nevent_type\x18\x01 \x01(\x0e\x32J.google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventTypeB\x03\xe0\x41\x01\x12\x13\n\x06reason\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05value\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x33\n\nevent_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xba\x03\n\x14TransactionEventType\x12&\n\"TRANSACTION_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10MERCHANT_APPROVE\x10\x01\x12\x11\n\rMERCHANT_DENY\x10\x02\x12\x11\n\rMANUAL_REVIEW\x10\x03\x12\x11\n\rAUTHORIZATION\x10\x04\x12\x19\n\x15\x41UTHORIZATION_DECLINE\x10\x05\x12\x13\n\x0fPAYMENT_CAPTURE\x10\x06\x12\x1b\n\x17PAYMENT_CAPTURE_DECLINE\x10\x07\x12\n\n\x06\x43\x41NCEL\x10\x08\x12\x16\n\x12\x43HARGEBACK_INQUIRY\x10\t\x12\x14\n\x10\x43HARGEBACK_ALERT\x10\n\x12\x16\n\x12\x46RAUD_NOTIFICATION\x10\x0b\x12\x0e\n\nCHARGEBACK\x10\x0c\x12\x1c\n\x18\x43HARGEBACK_REPRESENTMENT\x10\r\x12\x16\n\x12\x43HARGEBACK_REVERSE\x10\x0e\x12\x12\n\x0eREFUND_REQUEST\x10\x0f\x12\x12\n\x0eREFUND_DECLINE\x10\x10\x12\n\n\x06REFUND\x10\x11\x12\x12\n\x0eREFUND_REVERSE\x10\x12\"\xea\x06\n\x19\x41nnotateAssessmentRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-recaptchaenterprise.googleapis.com/Assessment\x12\x62\n\nannotation\x18\x02 \x01(\x0e\x32I.google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.AnnotationB\x03\xe0\x41\x01\x12[\n\x07reasons\x18\x03 \x03(\x0e\x32\x45.google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.ReasonB\x03\xe0\x41\x01\x12\x1e\n\x11hashed_account_id\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x01\x12U\n\x11transaction_event\x18\x05 \x01(\x0b\x32\x35.google.cloud.recaptchaenterprise.v1.TransactionEventB\x03\xe0\x41\x01\"~\n\nAnnotation\x12\x1a\n\x16\x41NNOTATION_UNSPECIFIED\x10\x00\x12\x0e\n\nLEGITIMATE\x10\x01\x12\x0e\n\nFRAUDULENT\x10\x02\x12\x18\n\x10PASSWORD_CORRECT\x10\x03\x1a\x02\x08\x01\x12\x1a\n\x12PASSWORD_INCORRECT\x10\x04\x1a\x02\x08\x01\"\xcf\x02\n\x06Reason\x12\x16\n\x12REASON_UNSPECIFIED\x10\x00\x12\x0e\n\nCHARGEBACK\x10\x01\x12\x14\n\x10\x43HARGEBACK_FRAUD\x10\x08\x12\x16\n\x12\x43HARGEBACK_DISPUTE\x10\t\x12\n\n\x06REFUND\x10\n\x12\x10\n\x0cREFUND_FRAUD\x10\x0b\x12\x18\n\x14TRANSACTION_ACCEPTED\x10\x0c\x12\x18\n\x14TRANSACTION_DECLINED\x10\r\x12\x16\n\x12PAYMENT_HEURISTICS\x10\x02\x12\x18\n\x14INITIATED_TWO_FACTOR\x10\x07\x12\x15\n\x11PASSED_TWO_FACTOR\x10\x03\x12\x15\n\x11\x46\x41ILED_TWO_FACTOR\x10\x04\x12\x14\n\x10\x43ORRECT_PASSWORD\x10\x05\x12\x16\n\x12INCORRECT_PASSWORD\x10\x06\x12\x0f\n\x0bSOCIAL_SPAM\x10\x0e\"\x1c\n\x1a\x41nnotateAssessmentResponse\"\xb4\x01\n\x18\x45ndpointVerificationInfo\x12\x17\n\remail_address\x18\x01 \x01(\tH\x00\x12\x16\n\x0cphone_number\x18\x02 \x01(\tH\x00\x12\x1a\n\rrequest_token\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12?\n\x16last_verification_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\n\n\x08\x65ndpoint\"\xd1\x04\n\x17\x41\x63\x63ountVerificationInfo\x12P\n\tendpoints\x18\x01 \x03(\x0b\x32=.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12l\n\x1alatest_verification_result\x18\x07 \x01(\x0e\x32\x43.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.ResultB\x03\xe0\x41\x03\x12\x14\n\x08username\x18\x02 \x01(\tB\x02\x18\x01\"\xc8\x02\n\x06Result\x12\x16\n\x12RESULT_UNSPECIFIED\x10\x00\x12\x19\n\x15SUCCESS_USER_VERIFIED\x10\x01\x12\x1b\n\x17\x45RROR_USER_NOT_VERIFIED\x10\x02\x12$\n ERROR_SITE_ONBOARDING_INCOMPLETE\x10\x03\x12\x1f\n\x1b\x45RROR_RECIPIENT_NOT_ALLOWED\x10\x04\x12)\n%ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED\x10\x05\x12\x1b\n\x17\x45RROR_CRITICAL_INTERNAL\x10\x06\x12\"\n\x1e\x45RROR_CUSTOMER_QUOTA_EXHAUSTED\x10\x07\x12\x1f\n\x1b\x45RROR_VERIFICATION_BYPASSED\x10\x08\x12\x1a\n\x16\x45RROR_VERDICT_MISMATCH\x10\t\"\xcc\x01\n\x1fPrivatePasswordLeakVerification\x12\x1f\n\x12lookup_hash_prefix\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x01\x12,\n\x1f\x65ncrypted_user_credentials_hash\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01\x12*\n\x1d\x65ncrypted_leak_match_prefixes\x18\x03 \x03(\x0c\x42\x03\xe0\x41\x03\x12.\n!reencrypted_user_credentials_hash\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x03\"\xf7\x05\n\nAssessment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05\x65vent\x18\x02 \x01(\x0b\x32*.google.cloud.recaptchaenterprise.v1.Event\x12M\n\rrisk_analysis\x18\x03 \x01(\x0b\x32\x31.google.cloud.recaptchaenterprise.v1.RiskAnalysisB\x03\xe0\x41\x03\x12S\n\x10token_properties\x18\x04 \x01(\x0b\x32\x34.google.cloud.recaptchaenterprise.v1.TokenPropertiesB\x03\xe0\x41\x03\x12Z\n\x14\x61\x63\x63ount_verification\x18\x05 \x01(\x0b\x32<.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo\x12\x63\n\x1b\x61\x63\x63ount_defender_assessment\x18\x06 \x01(\x0b\x32>.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment\x12p\n\"private_password_leak_verification\x18\x08 \x01(\x0b\x32\x44.google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification\x12\x63\n\x1b\x66raud_prevention_assessment\x18\x0b \x01(\x0b\x32>.google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment:_\xea\x41\\\n-recaptchaenterprise.googleapis.com/Assessment\x12+projects/{project}/assessments/{assessment}\"\xfc\x01\n\x05\x45vent\x12\x12\n\x05token\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08site_key\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nuser_agent\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fuser_ip_address\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x65xpected_action\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11hashed_account_id\x18\x06 \x01(\x0c\x42\x03\xe0\x41\x01\x12S\n\x10transaction_data\x18\r \x01(\x0b\x32\x34.google.cloud.recaptchaenterprise.v1.TransactionDataB\x03\xe0\x41\x01\"\xff\x08\n\x0fTransactionData\x12\x1b\n\x0etransaction_id\x18\x0b \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0epayment_method\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61rd_bin\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61rd_last_four\x18\x03 \x01(\t\x12\x15\n\rcurrency_code\x18\x04 \x01(\t\x12\r\n\x05value\x18\x05 \x01(\x01\x12\x16\n\x0eshipping_value\x18\x0c \x01(\x01\x12V\n\x10shipping_address\x18\x06 \x01(\x0b\x32<.google.cloud.recaptchaenterprise.v1.TransactionData.Address\x12U\n\x0f\x62illing_address\x18\x07 \x01(\x0b\x32<.google.cloud.recaptchaenterprise.v1.TransactionData.Address\x12G\n\x04user\x18\x08 \x01(\x0b\x32\x39.google.cloud.recaptchaenterprise.v1.TransactionData.User\x12L\n\tmerchants\x18\r \x03(\x0b\x32\x39.google.cloud.recaptchaenterprise.v1.TransactionData.User\x12H\n\x05items\x18\x0e \x03(\x0b\x32\x39.google.cloud.recaptchaenterprise.v1.TransactionData.Item\x12V\n\x0cgateway_info\x18\n \x01(\x0b\x32@.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo\x1a\x86\x01\n\x07\x41\x64\x64ress\x12\x11\n\trecipient\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x03(\t\x12\x10\n\x08locality\x18\x03 \x01(\t\x12\x1b\n\x13\x61\x64ministrative_area\x18\x04 \x01(\t\x12\x13\n\x0bregion_code\x18\x05 \x01(\t\x12\x13\n\x0bpostal_code\x18\x06 \x01(\t\x1a\x84\x01\n\x04User\x12\x12\n\naccount_id\x18\x06 \x01(\t\x12\x13\n\x0b\x63reation_ms\x18\x01 \x01(\x03\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x03 \x01(\x08\x12\x14\n\x0cphone_number\x18\x04 \x01(\t\x12\x16\n\x0ephone_verified\x18\x05 \x01(\x08\x1aR\n\x04Item\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01\x12\x10\n\x08quantity\x18\x03 \x01(\x03\x12\x1b\n\x13merchant_account_id\x18\x04 \x01(\t\x1ap\n\x0bGatewayInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\x15gateway_response_code\x18\x02 \x01(\t\x12\x19\n\x11\x61vs_response_code\x18\x03 \x01(\t\x12\x19\n\x11\x63vv_response_code\x18\x04 \x01(\tB\x11\n\x0f_transaction_id\"\xe2\x02\n\x0cRiskAnalysis\x12\r\n\x05score\x18\x01 \x01(\x02\x12W\n\x07reasons\x18\x02 \x03(\x0e\x32\x46.google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason\"\xe9\x01\n\x14\x43lassificationReason\x12%\n!CLASSIFICATION_REASON_UNSPECIFIED\x10\x00\x12\x0e\n\nAUTOMATION\x10\x01\x12\x1a\n\x16UNEXPECTED_ENVIRONMENT\x10\x02\x12\x14\n\x10TOO_MUCH_TRAFFIC\x10\x03\x12\x1d\n\x19UNEXPECTED_USAGE_PATTERNS\x10\x04\x12\x18\n\x14LOW_CONFIDENCE_SCORE\x10\x05\x12\x15\n\x11SUSPECTED_CARDING\x10\x06\x12\x18\n\x14SUSPECTED_CHARGEBACK\x10\x07\"\x98\x03\n\x0fTokenProperties\x12\r\n\x05valid\x18\x01 \x01(\x08\x12Z\n\x0einvalid_reason\x18\x02 \x01(\x0e\x32\x42.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08hostname\x18\x04 \x01(\t\x12\x1c\n\x14\x61ndroid_package_name\x18\x08 \x01(\t\x12\x15\n\rios_bundle_id\x18\t \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x05 \x01(\t\"\x91\x01\n\rInvalidReason\x12\x1e\n\x1aINVALID_REASON_UNSPECIFIED\x10\x00\x12\x1a\n\x16UNKNOWN_INVALID_REASON\x10\x01\x12\r\n\tMALFORMED\x10\x02\x12\x0b\n\x07\x45XPIRED\x10\x03\x12\x08\n\x04\x44UPE\x10\x04\x12\x0b\n\x07MISSING\x10\x05\x12\x11\n\rBROWSER_ERROR\x10\x06\"\xee\x02\n\x19\x46raudPreventionAssessment\x12\x18\n\x10transaction_risk\x18\x01 \x01(\x02\x12y\n\x19stolen_instrument_verdict\x18\x02 \x01(\x0b\x32V.google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict\x12o\n\x14\x63\x61rd_testing_verdict\x18\x03 \x01(\x0b\x32Q.google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict\x1a\'\n\x17StolenInstrumentVerdict\x12\x0c\n\x04risk\x18\x01 \x01(\x02\x1a\"\n\x12\x43\x61rdTestingVerdict\x12\x0c\n\x04risk\x18\x01 \x01(\x02\"\xb6\x02\n\x19\x41\x63\x63ountDefenderAssessment\x12\x63\n\x06labels\x18\x01 \x03(\x0e\x32S.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel\"\xb3\x01\n\x14\x41\x63\x63ountDefenderLabel\x12&\n\"ACCOUNT_DEFENDER_LABEL_UNSPECIFIED\x10\x00\x12\x11\n\rPROFILE_MATCH\x10\x01\x12\x1d\n\x19SUSPICIOUS_LOGIN_ACTIVITY\x10\x02\x12\x1f\n\x1bSUSPICIOUS_ACCOUNT_CREATION\x10\x03\x12 \n\x1cRELATED_ACCOUNTS_NUMBER_HIGH\x10\x04\"\x93\x01\n\x10\x43reateKeyRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12:\n\x03key\x18\x02 \x01(\x0b\x32(.google.cloud.recaptchaenterprise.v1.KeyB\x03\xe0\x41\x02\"\x87\x01\n\x0fListKeysRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"c\n\x10ListKeysResponse\x12\x36\n\x04keys\x18\x01 \x03(\x0b\x32(.google.cloud.recaptchaenterprise.v1.Key\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x1eRetrieveLegacySecretKeyRequest\x12;\n\x03key\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&recaptchaenterprise.googleapis.com/Key\"M\n\rGetKeyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&recaptchaenterprise.googleapis.com/Key\"\x84\x01\n\x10UpdateKeyRequest\x12:\n\x03key\x18\x01 \x01(\x0b\x32(.google.cloud.recaptchaenterprise.v1.KeyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"P\n\x10\x44\x65leteKeyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&recaptchaenterprise.googleapis.com/Key\"r\n\x11MigrateKeyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&recaptchaenterprise.googleapis.com/Key\x12\x1f\n\x12skip_billing_check\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"U\n\x11GetMetricsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*recaptchaenterprise.googleapis.com/Metrics\"\xc0\x02\n\x07Metrics\x12\x11\n\x04name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\rscore_metrics\x18\x02 \x03(\x0b\x32\x31.google.cloud.recaptchaenterprise.v1.ScoreMetrics\x12P\n\x11\x63hallenge_metrics\x18\x03 \x03(\x0b\x32\x35.google.cloud.recaptchaenterprise.v1.ChallengeMetrics:V\xea\x41S\n*recaptchaenterprise.googleapis.com/Metrics\x12%projects/{project}/keys/{key}/metrics\"<\n\x1fRetrieveLegacySecretKeyResponse\x12\x19\n\x11legacy_secret_key\x18\x01 \x01(\t\"\xba\x05\n\x03Key\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12K\n\x0cweb_settings\x18\x03 \x01(\x0b\x32\x33.google.cloud.recaptchaenterprise.v1.WebKeySettingsH\x00\x12S\n\x10\x61ndroid_settings\x18\x04 \x01(\x0b\x32\x37.google.cloud.recaptchaenterprise.v1.AndroidKeySettingsH\x00\x12K\n\x0cios_settings\x18\x05 \x01(\x0b\x32\x33.google.cloud.recaptchaenterprise.v1.IOSKeySettingsH\x00\x12\x44\n\x06labels\x18\x06 \x03(\x0b\x32\x34.google.cloud.recaptchaenterprise.v1.Key.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n\x0ftesting_options\x18\t \x01(\x0b\x32\x33.google.cloud.recaptchaenterprise.v1.TestingOptions\x12\x46\n\x0cwaf_settings\x18\n \x01(\x0b\x32\x30.google.cloud.recaptchaenterprise.v1.WafSettings\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:J\xea\x41G\n&recaptchaenterprise.googleapis.com/Key\x12\x1dprojects/{project}/keys/{key}B\x13\n\x11platform_settings\"\xe8\x01\n\x0eTestingOptions\x12\x15\n\rtesting_score\x18\x01 \x01(\x02\x12_\n\x11testing_challenge\x18\x02 \x01(\x0e\x32\x44.google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge\"^\n\x10TestingChallenge\x12!\n\x1dTESTING_CHALLENGE_UNSPECIFIED\x10\x00\x12\r\n\tNOCAPTCHA\x10\x01\x12\x18\n\x14UNSOLVABLE_CHALLENGE\x10\x02\"\x90\x04\n\x0eWebKeySettings\x12\x19\n\x11\x61llow_all_domains\x18\x03 \x01(\x08\x12\x17\n\x0f\x61llowed_domains\x18\x01 \x03(\t\x12\x19\n\x11\x61llow_amp_traffic\x18\x02 \x01(\x08\x12\x62\n\x10integration_type\x18\x04 \x01(\x0e\x32\x43.google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationTypeB\x03\xe0\x41\x02\x12v\n\x1d\x63hallenge_security_preference\x18\x05 \x01(\x0e\x32O.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference\"[\n\x0fIntegrationType\x12 \n\x1cINTEGRATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SCORE\x10\x01\x12\x0c\n\x08\x43HECKBOX\x10\x02\x12\r\n\tINVISIBLE\x10\x03\"v\n\x1b\x43hallengeSecurityPreference\x12-\n)CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED\x10\x00\x12\r\n\tUSABILITY\x10\x01\x12\x0b\n\x07\x42\x41LANCE\x10\x02\x12\x0c\n\x08SECURITY\x10\x03\"T\n\x12\x41ndroidKeySettings\x12\x1f\n\x17\x61llow_all_package_names\x18\x02 \x01(\x08\x12\x1d\n\x15\x61llowed_package_names\x18\x01 \x03(\t\"J\n\x0eIOSKeySettings\x12\x1c\n\x14\x61llow_all_bundle_ids\x18\x02 \x01(\x08\x12\x1a\n\x12\x61llowed_bundle_ids\x18\x01 \x03(\t\"\xa9\x01\n\x11ScoreDistribution\x12_\n\rscore_buckets\x18\x01 \x03(\x0b\x32H.google.cloud.recaptchaenterprise.v1.ScoreDistribution.ScoreBucketsEntry\x1a\x33\n\x11ScoreBucketsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\xab\x02\n\x0cScoreMetrics\x12O\n\x0foverall_metrics\x18\x01 \x01(\x0b\x32\x36.google.cloud.recaptchaenterprise.v1.ScoreDistribution\x12\\\n\x0e\x61\x63tion_metrics\x18\x02 \x03(\x0b\x32\x44.google.cloud.recaptchaenterprise.v1.ScoreMetrics.ActionMetricsEntry\x1al\n\x12\x41\x63tionMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.cloud.recaptchaenterprise.v1.ScoreDistribution:\x02\x38\x01\"o\n\x10\x43hallengeMetrics\x12\x16\n\x0epageload_count\x18\x01 \x01(\x03\x12\x17\n\x0fnocaptcha_count\x18\x02 \x01(\x03\x12\x14\n\x0c\x66\x61iled_count\x18\x03 \x01(\x03\x12\x14\n\x0cpassed_count\x18\x04 \x01(\x03\"\xb6\x01\n)ListRelatedAccountGroupMembershipsRequest\x12X\n\x06parent\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\x12@recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb4\x01\n*ListRelatedAccountGroupMembershipsResponse\x12m\n!related_account_group_memberships\x18\x01 \x03(\x0b\x32\x42.google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa2\x01\n\x1fListRelatedAccountGroupsRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36recaptchaenterprise.googleapis.com/RelatedAccountGroup\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x95\x01\n ListRelatedAccountGroupsResponse\x12X\n\x16related_account_groups\x18\x01 \x03(\x0b\x32\x38.google.cloud.recaptchaenterprise.v1.RelatedAccountGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xd9\x01\n+SearchRelatedAccountGroupMembershipsRequest\x12Y\n\x07project\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\x12@recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership\x12\x1e\n\x11hashed_account_id\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xb6\x01\n,SearchRelatedAccountGroupMembershipsResponse\x12m\n!related_account_group_memberships\x18\x01 \x03(\x0b\x32\x42.google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb3\x02\n\x1dRelatedAccountGroupMembership\x12V\n\x04name\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\n@recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership\x12\x19\n\x11hashed_account_id\x18\x02 \x01(\x0c:\x9e\x01\xea\x41\x9a\x01\n@recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership\x12Vprojects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}\"\xdf\x01\n\x13RelatedAccountGroup\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6recaptchaenterprise.googleapis.com/RelatedAccountGroup:z\xea\x41w\n6recaptchaenterprise.googleapis.com/RelatedAccountGroup\x12=projects/{project}/relatedaccountgroups/{relatedaccountgroup}\"\xd2\x02\n\x0bWafSettings\x12U\n\x0bwaf_service\x18\x01 \x01(\x0e\x32;.google.cloud.recaptchaenterprise.v1.WafSettings.WafServiceB\x03\xe0\x41\x02\x12U\n\x0bwaf_feature\x18\x02 \x01(\x0e\x32;.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeatureB\x03\xe0\x41\x02\"b\n\nWafFeature\x12\x1b\n\x17WAF_FEATURE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43HALLENGE_PAGE\x10\x01\x12\x11\n\rSESSION_TOKEN\x10\x02\x12\x10\n\x0c\x41\x43TION_TOKEN\x10\x03\"1\n\nWafService\x12\x1b\n\x17WAF_SERVICE_UNSPECIFIED\x10\x00\x12\x06\n\x02\x43\x41\x10\x01\x32\xb1\x15\n\x1aRecaptchaEnterpriseService\x12\xce\x01\n\x10\x43reateAssessment\x12<.google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest\x1a/.google.cloud.recaptchaenterprise.v1.Assessment\"K\x82\xd3\xe4\x93\x02\x31\"#/v1/{parent=projects/*}/assessments:\nassessment\xda\x41\x11parent,assessment\x12\xe0\x01\n\x12\x41nnotateAssessment\x12>.google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest\x1a?.google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse\"I\x82\xd3\xe4\x93\x02\x31\",/v1/{name=projects/*/assessments/*}:annotate:\x01*\xda\x41\x0fname,annotation\x12\xa4\x01\n\tCreateKey\x12\x35.google.cloud.recaptchaenterprise.v1.CreateKeyRequest\x1a(.google.cloud.recaptchaenterprise.v1.Key\"6\x82\xd3\xe4\x93\x02#\"\x1c/v1/{parent=projects/*}/keys:\x03key\xda\x41\nparent,key\x12\xa6\x01\n\x08ListKeys\x12\x34.google.cloud.recaptchaenterprise.v1.ListKeysRequest\x1a\x35.google.cloud.recaptchaenterprise.v1.ListKeysResponse\"-\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/{parent=projects/*}/keys\xda\x41\x06parent\x12\xe7\x01\n\x17RetrieveLegacySecretKey\x12\x43.google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest\x1a\x44.google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse\"A\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{key=projects/*/keys/*}:retrieveLegacySecretKey\xda\x41\x03key\x12\x93\x01\n\x06GetKey\x12\x32.google.cloud.recaptchaenterprise.v1.GetKeyRequest\x1a(.google.cloud.recaptchaenterprise.v1.Key\"+\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/{name=projects/*/keys/*}\xda\x41\x04name\x12\xad\x01\n\tUpdateKey\x12\x35.google.cloud.recaptchaenterprise.v1.UpdateKeyRequest\x1a(.google.cloud.recaptchaenterprise.v1.Key\"?\x82\xd3\xe4\x93\x02\'2 /v1/{key.name=projects/*/keys/*}:\x03key\xda\x41\x0fkey,update_mask\x12\x87\x01\n\tDeleteKey\x12\x35.google.cloud.recaptchaenterprise.v1.DeleteKeyRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02\x1e*\x1c/v1/{name=projects/*/keys/*}\xda\x41\x04name\x12\x9f\x01\n\nMigrateKey\x12\x36.google.cloud.recaptchaenterprise.v1.MigrateKeyRequest\x1a(.google.cloud.recaptchaenterprise.v1.Key\"/\x82\xd3\xe4\x93\x02)\"$/v1/{name=projects/*/keys/*}:migrate:\x01*\x12\xa7\x01\n\nGetMetrics\x12\x36.google.cloud.recaptchaenterprise.v1.GetMetricsRequest\x1a,.google.cloud.recaptchaenterprise.v1.Metrics\"3\x82\xd3\xe4\x93\x02&\x12$/v1/{name=projects/*/keys/*/metrics}\xda\x41\x04name\x12\xe6\x01\n\x18ListRelatedAccountGroups\x12\x44.google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest\x1a\x45.google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*}/relatedaccountgroups\xda\x41\x06parent\x12\x92\x02\n\"ListRelatedAccountGroupMemberships\x12N.google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest\x1aO.google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse\"K\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/relatedaccountgroups/*}/memberships\xda\x41\x06parent\x12\xb2\x02\n$SearchRelatedAccountGroupMemberships\x12P.google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest\x1aQ.google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse\"e\x82\xd3\xe4\x93\x02\x43\">/v1/{project=projects/*}/relatedaccountgroupmemberships:search:\x01*\xda\x41\x19project,hashed_account_id\x1aV\xca\x41\"recaptchaenterprise.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x99\x02\n!com.google.recaptchaenterprise.v1B\x18RecaptchaEnterpriseProtoP\x01Z\\cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb;recaptchaenterprisepb\xa2\x02\x04GCRE\xaa\x02#Google.Cloud.RecaptchaEnterprise.V1\xca\x02#Google\\Cloud\\RecaptchaEnterprise\\V1\xea\x02&Google::Cloud::RecaptchaEnterprise::V1b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
293
38
|
end
|
294
39
|
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
295
42
|
end
|
296
43
|
|
297
44
|
module Google
|
@@ -299,6 +46,8 @@ module Google
|
|
299
46
|
module RecaptchaEnterprise
|
300
47
|
module V1
|
301
48
|
CreateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest").msgclass
|
49
|
+
TransactionEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionEvent").msgclass
|
50
|
+
TransactionEvent::TransactionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType").enummodule
|
302
51
|
AnnotateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest").msgclass
|
303
52
|
AnnotateAssessmentRequest::Annotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation").enummodule
|
304
53
|
AnnotateAssessmentRequest::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason").enummodule
|
@@ -309,10 +58,18 @@ module Google
|
|
309
58
|
PrivatePasswordLeakVerification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification").msgclass
|
310
59
|
Assessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Assessment").msgclass
|
311
60
|
Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Event").msgclass
|
61
|
+
TransactionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData").msgclass
|
62
|
+
TransactionData::Address = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData.Address").msgclass
|
63
|
+
TransactionData::User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData.User").msgclass
|
64
|
+
TransactionData::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData.Item").msgclass
|
65
|
+
TransactionData::GatewayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo").msgclass
|
312
66
|
RiskAnalysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RiskAnalysis").msgclass
|
313
67
|
RiskAnalysis::ClassificationReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason").enummodule
|
314
68
|
TokenProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties").msgclass
|
315
69
|
TokenProperties::InvalidReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason").enummodule
|
70
|
+
FraudPreventionAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment").msgclass
|
71
|
+
FraudPreventionAssessment::StolenInstrumentVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict").msgclass
|
72
|
+
FraudPreventionAssessment::CardTestingVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict").msgclass
|
316
73
|
AccountDefenderAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment").msgclass
|
317
74
|
AccountDefenderAssessment::AccountDefenderLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel").enummodule
|
318
75
|
CreateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateKeyRequest").msgclass
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -34,6 +34,127 @@ module Google
|
|
34
34
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
35
35
|
end
|
36
36
|
|
37
|
+
# Describes an event in the lifecycle of a payment transaction.
|
38
|
+
# @!attribute [rw] event_type
|
39
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::TransactionEvent::TransactionEventType]
|
40
|
+
# Optional. The type of this transaction event.
|
41
|
+
# @!attribute [rw] reason
|
42
|
+
# @return [::String]
|
43
|
+
# Optional. The reason or standardized code that corresponds with this
|
44
|
+
# transaction event, if one exists. For example, a CHARGEBACK event with code
|
45
|
+
# 6005.
|
46
|
+
# @!attribute [rw] value
|
47
|
+
# @return [::Float]
|
48
|
+
# Optional. The value that corresponds with this transaction event, if one
|
49
|
+
# exists. For example, a refund event where $5.00 was refunded. Currency is
|
50
|
+
# obtained from the original transaction data.
|
51
|
+
# @!attribute [rw] event_time
|
52
|
+
# @return [::Google::Protobuf::Timestamp]
|
53
|
+
# Optional. Timestamp when this transaction event occurred; otherwise assumed
|
54
|
+
# to be the time of the API call.
|
55
|
+
class TransactionEvent
|
56
|
+
include ::Google::Protobuf::MessageExts
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
+
|
59
|
+
# Enum that represents an event in the payment transaction lifecycle.
|
60
|
+
module TransactionEventType
|
61
|
+
# Default, unspecified event type.
|
62
|
+
TRANSACTION_EVENT_TYPE_UNSPECIFIED = 0
|
63
|
+
|
64
|
+
# Indicates that the transaction is approved by the merchant. The
|
65
|
+
# accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
|
66
|
+
# 'CYBERSOURCE', or 'MANUAL_REVIEW'.
|
67
|
+
MERCHANT_APPROVE = 1
|
68
|
+
|
69
|
+
# Indicates that the transaction is denied and concluded due to risks
|
70
|
+
# detected by the merchant. The accompanying reasons can include terms such
|
71
|
+
# as 'INHOUSE', 'ACCERTIFY', 'CYBERSOURCE', or 'MANUAL_REVIEW'.
|
72
|
+
MERCHANT_DENY = 2
|
73
|
+
|
74
|
+
# Indicates that the transaction is being evaluated by a human, due to
|
75
|
+
# suspicion or risk.
|
76
|
+
MANUAL_REVIEW = 3
|
77
|
+
|
78
|
+
# Indicates that the authorization attempt with the card issuer succeeded.
|
79
|
+
AUTHORIZATION = 4
|
80
|
+
|
81
|
+
# Indicates that the authorization attempt with the card issuer failed.
|
82
|
+
# The accompanying reasons can include Visa's '54' indicating that the card
|
83
|
+
# is expired, or '82' indicating that the CVV is incorrect.
|
84
|
+
AUTHORIZATION_DECLINE = 5
|
85
|
+
|
86
|
+
# Indicates that the transaction is completed because the funds were
|
87
|
+
# settled.
|
88
|
+
PAYMENT_CAPTURE = 6
|
89
|
+
|
90
|
+
# Indicates that the transaction could not be completed because the funds
|
91
|
+
# were not settled.
|
92
|
+
PAYMENT_CAPTURE_DECLINE = 7
|
93
|
+
|
94
|
+
# Indicates that the transaction has been canceled. Specify the reason
|
95
|
+
# for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
|
96
|
+
CANCEL = 8
|
97
|
+
|
98
|
+
# Indicates that the merchant has received a chargeback inquiry due to
|
99
|
+
# fraud for the transaction, requesting additional information before a
|
100
|
+
# fraud chargeback is officially issued and a formal chargeback
|
101
|
+
# notification is sent.
|
102
|
+
CHARGEBACK_INQUIRY = 9
|
103
|
+
|
104
|
+
# Indicates that the merchant has received a chargeback alert due to fraud
|
105
|
+
# for the transaction. The process of resolving the dispute without
|
106
|
+
# involving the payment network is started.
|
107
|
+
CHARGEBACK_ALERT = 10
|
108
|
+
|
109
|
+
# Indicates that a fraud notification is issued for the transaction, sent
|
110
|
+
# by the payment instrument's issuing bank because the transaction appears
|
111
|
+
# to be fraudulent. We recommend including TC40 or SAFE data in the
|
112
|
+
# `reason` field for this event type. For partial chargebacks, we recommend
|
113
|
+
# that you include an amount in the `value` field.
|
114
|
+
FRAUD_NOTIFICATION = 11
|
115
|
+
|
116
|
+
# Indicates that the merchant is informed by the payment network that the
|
117
|
+
# transaction has entered the chargeback process due to fraud. Reason code
|
118
|
+
# examples include Discover's '6005' and '6041'. For partial chargebacks,
|
119
|
+
# we recommend that you include an amount in the `value` field.
|
120
|
+
CHARGEBACK = 12
|
121
|
+
|
122
|
+
# Indicates that the transaction has entered the chargeback process due to
|
123
|
+
# fraud, and that the merchant has chosen to enter representment. Reason
|
124
|
+
# examples include Discover's '6005' and '6041'. For partial chargebacks,
|
125
|
+
# we recommend that you include an amount in the `value` field.
|
126
|
+
CHARGEBACK_REPRESENTMENT = 13
|
127
|
+
|
128
|
+
# Indicates that the transaction has had a fraud chargeback which was
|
129
|
+
# illegitimate and was reversed as a result. For partial chargebacks, we
|
130
|
+
# recommend that you include an amount in the `value` field.
|
131
|
+
CHARGEBACK_REVERSE = 14
|
132
|
+
|
133
|
+
# Indicates that the merchant has received a refund for a completed
|
134
|
+
# transaction. For partial refunds, we recommend that you include an amount
|
135
|
+
# in the `value` field. Reason example: 'TAX_EXEMPT' (partial refund of
|
136
|
+
# exempt tax)
|
137
|
+
REFUND_REQUEST = 15
|
138
|
+
|
139
|
+
# Indicates that the merchant has received a refund request for this
|
140
|
+
# transaction, but that they have declined it. For partial refunds, we
|
141
|
+
# recommend that you include an amount in the `value` field. Reason
|
142
|
+
# example: 'TAX_EXEMPT' (partial refund of exempt tax)
|
143
|
+
REFUND_DECLINE = 16
|
144
|
+
|
145
|
+
# Indicates that the completed transaction was refunded by the merchant.
|
146
|
+
# For partial refunds, we recommend that you include an amount in the
|
147
|
+
# `value` field. Reason example: 'TAX_EXEMPT' (partial refund of exempt
|
148
|
+
# tax)
|
149
|
+
REFUND = 17
|
150
|
+
|
151
|
+
# Indicates that the completed transaction was refunded by the merchant,
|
152
|
+
# and that this refund was reversed. For partial refunds, we recommend that
|
153
|
+
# you include an amount in the `value` field.
|
154
|
+
REFUND_REVERSE = 18
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
37
158
|
# The request message to annotate an Assessment.
|
38
159
|
# @!attribute [rw] name
|
39
160
|
# @return [::String]
|
@@ -55,6 +176,10 @@ module Google
|
|
55
176
|
# CreateAssessment, for example when the account identifier is not yet known
|
56
177
|
# in the initial request. It is recommended that the identifier is hashed
|
57
178
|
# using hmac-sha256 with stable secret.
|
179
|
+
# @!attribute [rw] transaction_event
|
180
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::TransactionEvent]
|
181
|
+
# Optional. If the assessment is part of a payment transaction, provide
|
182
|
+
# details on payment lifecycle events that occur in the transaction.
|
58
183
|
class AnnotateAssessmentRequest
|
59
184
|
include ::Google::Protobuf::MessageExts
|
60
185
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -263,7 +388,7 @@ module Google
|
|
263
388
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
264
389
|
end
|
265
390
|
|
266
|
-
# A
|
391
|
+
# A reCAPTCHA Enterprise assessment resource.
|
267
392
|
# @!attribute [r] name
|
268
393
|
# @return [::String]
|
269
394
|
# Output only. The resource name for the Assessment in the format
|
@@ -289,19 +414,23 @@ module Google
|
|
289
414
|
# @return [::Google::Cloud::RecaptchaEnterprise::V1::PrivatePasswordLeakVerification]
|
290
415
|
# The private password leak verification field contains the parameters that
|
291
416
|
# are used to to check for leaks privately without sharing user credentials.
|
417
|
+
# @!attribute [rw] fraud_prevention_assessment
|
418
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::FraudPreventionAssessment]
|
419
|
+
# Assessment returned by Fraud Prevention when TransactionData is provided.
|
292
420
|
class Assessment
|
293
421
|
include ::Google::Protobuf::MessageExts
|
294
422
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
295
423
|
end
|
296
424
|
|
425
|
+
# The event being assessed.
|
297
426
|
# @!attribute [rw] token
|
298
427
|
# @return [::String]
|
299
|
-
# Optional. The user response token provided by the reCAPTCHA
|
300
|
-
# integration on your site.
|
428
|
+
# Optional. The user response token provided by the reCAPTCHA Enterprise
|
429
|
+
# client-side integration on your site.
|
301
430
|
# @!attribute [rw] site_key
|
302
431
|
# @return [::String]
|
303
|
-
# Optional. The site key that was used to invoke reCAPTCHA on your
|
304
|
-
# generate the token.
|
432
|
+
# Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
|
433
|
+
# site and generate the token.
|
305
434
|
# @!attribute [rw] user_agent
|
306
435
|
# @return [::String]
|
307
436
|
# Optional. The user agent present in the request from the user's device
|
@@ -319,11 +448,168 @@ module Google
|
|
319
448
|
# @return [::String]
|
320
449
|
# Optional. Unique stable hashed user identifier for the request. The
|
321
450
|
# identifier must be hashed using hmac-sha256 with stable secret.
|
451
|
+
# @!attribute [rw] transaction_data
|
452
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::TransactionData]
|
453
|
+
# Optional. Data describing a payment transaction to be assessed. Sending
|
454
|
+
# this data enables reCAPTCHA Enterprise Fraud Prevention and the
|
455
|
+
# FraudPreventionAssessment component in the response.
|
322
456
|
class Event
|
323
457
|
include ::Google::Protobuf::MessageExts
|
324
458
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
325
459
|
end
|
326
460
|
|
461
|
+
# Transaction data associated with a payment protected by reCAPTCHA Enterprise.
|
462
|
+
# All fields are optional.
|
463
|
+
# @!attribute [rw] transaction_id
|
464
|
+
# @return [::String]
|
465
|
+
# Unique identifier for the transaction. This custom identifier can be used
|
466
|
+
# to reference this transaction in the future, for example, labeling a refund
|
467
|
+
# or chargeback event. Two attempts at the same transaction should use the
|
468
|
+
# same transaction id.
|
469
|
+
# @!attribute [rw] payment_method
|
470
|
+
# @return [::String]
|
471
|
+
# The payment method for the transaction. The allowed values are:
|
472
|
+
#
|
473
|
+
# * credit-card
|
474
|
+
# * debit-card
|
475
|
+
# * gift-card
|
476
|
+
# * processor-\\{name} (If a third-party is used, for example,
|
477
|
+
# processor-paypal)
|
478
|
+
# * custom-\\{name} (If an alternative method is used, for example,
|
479
|
+
# custom-crypto)
|
480
|
+
# @!attribute [rw] card_bin
|
481
|
+
# @return [::String]
|
482
|
+
# The Bank Identification Number - generally the first 6 or 8 digits of the
|
483
|
+
# card.
|
484
|
+
# @!attribute [rw] card_last_four
|
485
|
+
# @return [::String]
|
486
|
+
# The last four digits of the card.
|
487
|
+
# @!attribute [rw] currency_code
|
488
|
+
# @return [::String]
|
489
|
+
# The currency code in ISO-4217 format.
|
490
|
+
# @!attribute [rw] value
|
491
|
+
# @return [::Float]
|
492
|
+
# The decimal value of the transaction in the specified currency.
|
493
|
+
# @!attribute [rw] shipping_value
|
494
|
+
# @return [::Float]
|
495
|
+
# The value of shipping in the specified currency. 0 for free or no shipping.
|
496
|
+
# @!attribute [rw] shipping_address
|
497
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address]
|
498
|
+
# Destination address if this transaction involves shipping a physical item.
|
499
|
+
# @!attribute [rw] billing_address
|
500
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address]
|
501
|
+
# Address associated with the payment method when applicable.
|
502
|
+
# @!attribute [rw] user
|
503
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User]
|
504
|
+
# Information about the user paying/initiating the transaction.
|
505
|
+
# @!attribute [rw] merchants
|
506
|
+
# @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User>]
|
507
|
+
# Information about the user or users fulfilling the transaction.
|
508
|
+
# @!attribute [rw] items
|
509
|
+
# @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Item>]
|
510
|
+
# Items purchased in this transaction.
|
511
|
+
# @!attribute [rw] gateway_info
|
512
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::GatewayInfo]
|
513
|
+
# Information about the payment gateway's response to the transaction.
|
514
|
+
class TransactionData
|
515
|
+
include ::Google::Protobuf::MessageExts
|
516
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
517
|
+
|
518
|
+
# Structured address format for billing and shipping addresses.
|
519
|
+
# @!attribute [rw] recipient
|
520
|
+
# @return [::String]
|
521
|
+
# The recipient name, potentially including information such as "care of".
|
522
|
+
# @!attribute [rw] address
|
523
|
+
# @return [::Array<::String>]
|
524
|
+
# The first lines of the address. The first line generally contains the
|
525
|
+
# street name and number, and further lines may include information such as
|
526
|
+
# an apartment number.
|
527
|
+
# @!attribute [rw] locality
|
528
|
+
# @return [::String]
|
529
|
+
# The town/city of the address.
|
530
|
+
# @!attribute [rw] administrative_area
|
531
|
+
# @return [::String]
|
532
|
+
# The state, province, or otherwise administrative area of the address.
|
533
|
+
# @!attribute [rw] region_code
|
534
|
+
# @return [::String]
|
535
|
+
# The CLDR country/region of the address.
|
536
|
+
# @!attribute [rw] postal_code
|
537
|
+
# @return [::String]
|
538
|
+
# The postal or ZIP code of the address.
|
539
|
+
class Address
|
540
|
+
include ::Google::Protobuf::MessageExts
|
541
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
542
|
+
end
|
543
|
+
|
544
|
+
# Details about a user's account involved in the transaction.
|
545
|
+
# @!attribute [rw] account_id
|
546
|
+
# @return [::String]
|
547
|
+
# Unique account identifier for this user. If using account defender,
|
548
|
+
# this should match the hashed_account_id field. Otherwise, a unique and
|
549
|
+
# persistent identifier for this account.
|
550
|
+
# @!attribute [rw] creation_ms
|
551
|
+
# @return [::Integer]
|
552
|
+
# The epoch milliseconds of the user's account creation.
|
553
|
+
# @!attribute [rw] email
|
554
|
+
# @return [::String]
|
555
|
+
# The email address of the user.
|
556
|
+
# @!attribute [rw] email_verified
|
557
|
+
# @return [::Boolean]
|
558
|
+
# Whether the email has been verified to be accessible by the user (OTP or
|
559
|
+
# similar).
|
560
|
+
# @!attribute [rw] phone_number
|
561
|
+
# @return [::String]
|
562
|
+
# The phone number of the user, with country code.
|
563
|
+
# @!attribute [rw] phone_verified
|
564
|
+
# @return [::Boolean]
|
565
|
+
# Whether the phone number has been verified to be accessible by the user
|
566
|
+
# (OTP or similar).
|
567
|
+
class User
|
568
|
+
include ::Google::Protobuf::MessageExts
|
569
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
570
|
+
end
|
571
|
+
|
572
|
+
# Line items being purchased in this transaction.
|
573
|
+
# @!attribute [rw] name
|
574
|
+
# @return [::String]
|
575
|
+
# The full name of the item.
|
576
|
+
# @!attribute [rw] value
|
577
|
+
# @return [::Float]
|
578
|
+
# The value per item that the user is paying, in the transaction currency,
|
579
|
+
# after discounts.
|
580
|
+
# @!attribute [rw] quantity
|
581
|
+
# @return [::Integer]
|
582
|
+
# The quantity of this item that is being purchased.
|
583
|
+
# @!attribute [rw] merchant_account_id
|
584
|
+
# @return [::String]
|
585
|
+
# When a merchant is specified, its corresponding account_id. Necessary to
|
586
|
+
# populate marketplace-style transactions.
|
587
|
+
class Item
|
588
|
+
include ::Google::Protobuf::MessageExts
|
589
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
590
|
+
end
|
591
|
+
|
592
|
+
# Details about the transaction from the gateway.
|
593
|
+
# @!attribute [rw] name
|
594
|
+
# @return [::String]
|
595
|
+
# Name of the gateway service (for example, stripe, square, paypal).
|
596
|
+
# @!attribute [rw] gateway_response_code
|
597
|
+
# @return [::String]
|
598
|
+
# Gateway response code describing the state of the transaction.
|
599
|
+
# @!attribute [rw] avs_response_code
|
600
|
+
# @return [::String]
|
601
|
+
# AVS response code from the gateway
|
602
|
+
# (available only when reCAPTCHA Enterprise is called after authorization).
|
603
|
+
# @!attribute [rw] cvv_response_code
|
604
|
+
# @return [::String]
|
605
|
+
# CVV response code from the gateway
|
606
|
+
# (available only when reCAPTCHA Enterprise is called after authorization).
|
607
|
+
class GatewayInfo
|
608
|
+
include ::Google::Protobuf::MessageExts
|
609
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
610
|
+
end
|
611
|
+
end
|
612
|
+
|
327
613
|
# Risk analysis result for an event.
|
328
614
|
# @!attribute [rw] score
|
329
615
|
# @return [::Float]
|
@@ -358,9 +644,16 @@ module Google
|
|
358
644
|
# Too little traffic has been received from this site thus far to generate
|
359
645
|
# quality risk analysis.
|
360
646
|
LOW_CONFIDENCE_SCORE = 5
|
647
|
+
|
648
|
+
# The request matches behavioral characteristics of a carding attack.
|
649
|
+
SUSPECTED_CARDING = 6
|
650
|
+
|
651
|
+
# The request matches behavioral characteristics of chargebacks for fraud.
|
652
|
+
SUSPECTED_CHARGEBACK = 7
|
361
653
|
end
|
362
654
|
end
|
363
655
|
|
656
|
+
# Properties of the provided event token.
|
364
657
|
# @!attribute [rw] valid
|
365
658
|
# @return [::Boolean]
|
366
659
|
# Whether the provided user response token is valid. When valid = false, the
|
@@ -418,6 +711,45 @@ module Google
|
|
418
711
|
end
|
419
712
|
end
|
420
713
|
|
714
|
+
# Assessment for Fraud Prevention.
|
715
|
+
# @!attribute [rw] transaction_risk
|
716
|
+
# @return [::Float]
|
717
|
+
# Probability (0-1) of this transaction being fraudulent. Summarizes the
|
718
|
+
# combined risk of attack vectors below.
|
719
|
+
# @!attribute [rw] stolen_instrument_verdict
|
720
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::FraudPreventionAssessment::StolenInstrumentVerdict]
|
721
|
+
# Assessment of this transaction for risk of a stolen instrument.
|
722
|
+
# @!attribute [rw] card_testing_verdict
|
723
|
+
# @return [::Google::Cloud::RecaptchaEnterprise::V1::FraudPreventionAssessment::CardTestingVerdict]
|
724
|
+
# Assessment of this transaction for risk of being part of a card testing
|
725
|
+
# attack.
|
726
|
+
class FraudPreventionAssessment
|
727
|
+
include ::Google::Protobuf::MessageExts
|
728
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
729
|
+
|
730
|
+
# Information about stolen instrument fraud, where the user is not the
|
731
|
+
# legitimate owner of the instrument being used for the purchase.
|
732
|
+
# @!attribute [rw] risk
|
733
|
+
# @return [::Float]
|
734
|
+
# Probability (0-1) of this transaction being executed with a stolen
|
735
|
+
# instrument.
|
736
|
+
class StolenInstrumentVerdict
|
737
|
+
include ::Google::Protobuf::MessageExts
|
738
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
739
|
+
end
|
740
|
+
|
741
|
+
# Information about card testing fraud, where an adversary is testing
|
742
|
+
# fraudulently obtained cards or brute forcing their details.
|
743
|
+
# @!attribute [rw] risk
|
744
|
+
# @return [::Float]
|
745
|
+
# Probability (0-1) of this transaction attempt being part of a card
|
746
|
+
# testing attack.
|
747
|
+
class CardTestingVerdict
|
748
|
+
include ::Google::Protobuf::MessageExts
|
749
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
750
|
+
end
|
751
|
+
end
|
752
|
+
|
421
753
|
# Account defender risk assessment.
|
422
754
|
# @!attribute [rw] labels
|
423
755
|
# @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1::AccountDefenderAssessment::AccountDefenderLabel>]
|
@@ -623,9 +955,9 @@ module Google
|
|
623
955
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
624
956
|
# See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels">
|
625
957
|
# Creating and managing labels</a>.
|
626
|
-
# @!attribute [
|
958
|
+
# @!attribute [r] create_time
|
627
959
|
# @return [::Google::Protobuf::Timestamp]
|
628
|
-
# The timestamp corresponding to the creation of this Key.
|
960
|
+
# Output only. The timestamp corresponding to the creation of this Key.
|
629
961
|
# @!attribute [rw] testing_options
|
630
962
|
# @return [::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions]
|
631
963
|
# Options for user acceptance testing.
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-recaptcha_enterprise-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.19.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.19.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
53
|
+
version: 1.26.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,8 +207,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
|
-
rubygems_version: 3.
|
210
|
+
rubygems_version: 3.4.2
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
|
-
summary:
|
213
|
+
summary: Help protect your website from fraudulent activity, spam, and abuse without
|
214
|
+
creating friction.
|
214
215
|
test_files: []
|