google-cloud-recaptcha_enterprise-v1 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,8 +50,8 @@ module Google
50
50
  # Event.
51
51
  # @!attribute [rw] hashed_account_id
52
52
  # @return [::String]
53
- # Optional. Optional unique stable hashed user identifier to apply to the
54
- # assessment. This is an alternative to setting the hashed_account_id in
53
+ # Optional. Unique stable hashed user identifier to apply to the assessment.
54
+ # This is an alternative to setting the hashed_account_id in
55
55
  # CreateAssessment, for example when the account identifier is not yet known
56
56
  # in the initial request. It is recommended that the identifier is hashed
57
57
  # using hmac-sha256 with stable secret.
@@ -86,21 +86,38 @@ module Google
86
86
  # Default unspecified reason.
87
87
  REASON_UNSPECIFIED = 0
88
88
 
89
- # Indicates a chargeback issued for the transaction with no other details.
90
- # When possible, specify the type by using CHARGEBACK_FRAUD or
89
+ # Indicates that the transaction had a chargeback issued with no other
90
+ # details. When possible, specify the type by using CHARGEBACK_FRAUD or
91
91
  # CHARGEBACK_DISPUTE instead.
92
92
  CHARGEBACK = 1
93
93
 
94
- # Indicates a chargeback related to an alleged unauthorized transaction
95
- # from the cardholder's perspective (for example, the card number was
96
- # stolen).
94
+ # Indicates that the transaction had a chargeback issued related to an
95
+ # alleged unauthorized transaction from the cardholder's perspective (for
96
+ # example, the card number was stolen).
97
97
  CHARGEBACK_FRAUD = 8
98
98
 
99
- # Indicates a chargeback related to the cardholder having provided their
100
- # card details but allegedly not being satisfied with the purchase
101
- # (for example, misrepresentation, attempted cancellation).
99
+ # Indicates that the transaction had a chargeback issued related to the
100
+ # cardholder having provided their card details but allegedly not being
101
+ # satisfied with the purchase (for example, misrepresentation, attempted
102
+ # cancellation).
102
103
  CHARGEBACK_DISPUTE = 9
103
104
 
105
+ # Indicates that the completed payment transaction was refunded by the
106
+ # seller.
107
+ REFUND = 10
108
+
109
+ # Indicates that the completed payment transaction was determined to be
110
+ # fraudulent by the seller, and was cancelled and refunded as a result.
111
+ REFUND_FRAUD = 11
112
+
113
+ # Indicates that the payment transaction was accepted, and the user was
114
+ # charged.
115
+ TRANSACTION_ACCEPTED = 12
116
+
117
+ # Indicates that the payment transaction was declined, for example due to
118
+ # invalid card details.
119
+ TRANSACTION_DECLINED = 13
120
+
104
121
  # Indicates the transaction associated with the assessment is suspected of
105
122
  # being fraudulent based on the payment method, billing details, shipping
106
123
  # address or other transaction information.
@@ -123,6 +140,10 @@ module Google
123
140
 
124
141
  # Indicates the user provided an incorrect password.
125
142
  INCORRECT_PASSWORD = 6
143
+
144
+ # Indicates that the user sent unwanted and abusive messages to other users
145
+ # of the platform, such as spam, scams, phishing, or social engineering.
146
+ SOCIAL_SPAM = 14
126
147
  end
127
148
  end
128
149
 
@@ -132,6 +153,116 @@ module Google
132
153
  extend ::Google::Protobuf::MessageExts::ClassMethods
133
154
  end
134
155
 
156
+ # Information about a verification endpoint that can be used for 2FA.
157
+ # @!attribute [rw] email_address
158
+ # @return [::String]
159
+ # Email address for which to trigger a verification request.
160
+ # @!attribute [rw] phone_number
161
+ # @return [::String]
162
+ # Phone number for which to trigger a verification request. Should be given
163
+ # in E.164 format.
164
+ # @!attribute [r] request_token
165
+ # @return [::String]
166
+ # Output only. Token to provide to the client to trigger endpoint
167
+ # verification. It must be used within 15 minutes.
168
+ # @!attribute [r] last_verification_time
169
+ # @return [::Google::Protobuf::Timestamp]
170
+ # Output only. Timestamp of the last successful verification for the
171
+ # endpoint, if any.
172
+ class EndpointVerificationInfo
173
+ include ::Google::Protobuf::MessageExts
174
+ extend ::Google::Protobuf::MessageExts::ClassMethods
175
+ end
176
+
177
+ # Information about account verification, used for identity verification.
178
+ # @!attribute [rw] endpoints
179
+ # @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1::EndpointVerificationInfo>]
180
+ # Endpoints that can be used for identity verification.
181
+ # @!attribute [rw] language_code
182
+ # @return [::String]
183
+ # Language code preference for the verification message, set as a IETF BCP 47
184
+ # language code.
185
+ # @!attribute [r] latest_verification_result
186
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::AccountVerificationInfo::Result]
187
+ # Output only. Result of the latest account verification challenge.
188
+ # @!attribute [rw] username
189
+ # @return [::String]
190
+ # Username of the account that is being verified. Deprecated. Customers
191
+ # should now provide the hashed account ID field in Event.
192
+ class AccountVerificationInfo
193
+ include ::Google::Protobuf::MessageExts
194
+ extend ::Google::Protobuf::MessageExts::ClassMethods
195
+
196
+ # Result of the account verification as contained in the verdict token issued
197
+ # at the end of the verification flow.
198
+ module Result
199
+ # No information about the latest account verification.
200
+ RESULT_UNSPECIFIED = 0
201
+
202
+ # The user was successfully verified. This means the account verification
203
+ # challenge was successfully completed.
204
+ SUCCESS_USER_VERIFIED = 1
205
+
206
+ # The user failed the verification challenge.
207
+ ERROR_USER_NOT_VERIFIED = 2
208
+
209
+ # The site is not properly onboarded to use the account verification
210
+ # feature.
211
+ ERROR_SITE_ONBOARDING_INCOMPLETE = 3
212
+
213
+ # The recipient is not allowed for account verification. This can occur
214
+ # during integration but should not occur in production.
215
+ ERROR_RECIPIENT_NOT_ALLOWED = 4
216
+
217
+ # The recipient has already been sent too many verification codes in a
218
+ # short amount of time.
219
+ ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED = 5
220
+
221
+ # The verification flow could not be completed due to a critical internal
222
+ # error.
223
+ ERROR_CRITICAL_INTERNAL = 6
224
+
225
+ # The client has exceeded their two factor request quota for this period of
226
+ # time.
227
+ ERROR_CUSTOMER_QUOTA_EXHAUSTED = 7
228
+
229
+ # The request cannot be processed at the time because of an incident. This
230
+ # bypass can be restricted to a problematic destination email domain, a
231
+ # customer, or could affect the entire service.
232
+ ERROR_VERIFICATION_BYPASSED = 8
233
+
234
+ # The request parameters do not match with the token provided and cannot be
235
+ # processed.
236
+ ERROR_VERDICT_MISMATCH = 9
237
+ end
238
+ end
239
+
240
+ # Private password leak verification info.
241
+ # @!attribute [rw] lookup_hash_prefix
242
+ # @return [::String]
243
+ # Optional. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
244
+ # username. It is used to look up password leaks associated with that hash
245
+ # prefix.
246
+ # @!attribute [rw] encrypted_user_credentials_hash
247
+ # @return [::String]
248
+ # Optional. Encrypted Scrypt hash of the canonicalized username+password. It
249
+ # is re-encrypted by the server and returned through
250
+ # `reencrypted_user_credentials_hash`.
251
+ # @!attribute [r] encrypted_leak_match_prefixes
252
+ # @return [::Array<::String>]
253
+ # Output only. List of prefixes of the encrypted potential password leaks
254
+ # that matched the given parameters. They must be compared with the
255
+ # client-side decryption prefix of `reencrypted_user_credentials_hash`
256
+ # @!attribute [r] reencrypted_user_credentials_hash
257
+ # @return [::String]
258
+ # Output only. Corresponds to the re-encryption of the
259
+ # `encrypted_user_credentials_hash` field. It is used to match potential
260
+ # password leaks within `encrypted_leak_match_prefixes`.
261
+ class PrivatePasswordLeakVerification
262
+ include ::Google::Protobuf::MessageExts
263
+ extend ::Google::Protobuf::MessageExts::ClassMethods
264
+ end
265
+
135
266
  # A recaptcha assessment resource.
136
267
  # @!attribute [r] name
137
268
  # @return [::String]
@@ -146,13 +277,18 @@ module Google
146
277
  # @!attribute [r] token_properties
147
278
  # @return [::Google::Cloud::RecaptchaEnterprise::V1::TokenProperties]
148
279
  # Output only. Properties of the provided event token.
280
+ # @!attribute [rw] account_verification
281
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::AccountVerificationInfo]
282
+ # Account verification information for identity verification. The assessment
283
+ # event must include a token and site key to use this feature.
149
284
  # @!attribute [rw] account_defender_assessment
150
285
  # @return [::Google::Cloud::RecaptchaEnterprise::V1::AccountDefenderAssessment]
151
- # Assessment returned by Account Defender when a hashed_account_id is
286
+ # Assessment returned by account defender when a hashed_account_id is
152
287
  # provided.
153
288
  # @!attribute [rw] private_password_leak_verification
154
289
  # @return [::Google::Cloud::RecaptchaEnterprise::V1::PrivatePasswordLeakVerification]
155
- # Password leak verification info.
290
+ # The private password leak verification field contains the parameters that
291
+ # are used to to check for leaks privately without sharing user credentials.
156
292
  class Assessment
157
293
  include ::Google::Protobuf::MessageExts
158
294
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -181,8 +317,8 @@ module Google
181
317
  # already integrated with recaptcha enterprise.
182
318
  # @!attribute [rw] hashed_account_id
183
319
  # @return [::String]
184
- # Optional. Optional unique stable hashed user identifier for the request.
185
- # The identifier should ideally be hashed using sha256 with stable secret.
320
+ # Optional. Unique stable hashed user identifier for the request. The
321
+ # identifier must be hashed using hmac-sha256 with stable secret.
186
322
  class Event
187
323
  include ::Google::Protobuf::MessageExts
188
324
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -240,7 +376,15 @@ module Google
240
376
  # The timestamp corresponding to the generation of the token.
241
377
  # @!attribute [rw] hostname
242
378
  # @return [::String]
243
- # The hostname of the page on which the token was generated.
379
+ # The hostname of the page on which the token was generated (Web keys only).
380
+ # @!attribute [rw] android_package_name
381
+ # @return [::String]
382
+ # The name of the Android package with which the token was generated (Android
383
+ # keys only).
384
+ # @!attribute [rw] ios_bundle_id
385
+ # @return [::String]
386
+ # The ID of the iOS bundle with which the token was generated (iOS keys
387
+ # only).
244
388
  # @!attribute [rw] action
245
389
  # @return [::String]
246
390
  # Action name provided at token generation.
@@ -274,7 +418,7 @@ module Google
274
418
  end
275
419
  end
276
420
 
277
- # Account Defender risk assessment.
421
+ # Account defender risk assessment.
278
422
  # @!attribute [rw] labels
279
423
  # @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1::AccountDefenderAssessment::AccountDefenderLabel>]
280
424
  # Labels for this request.
@@ -282,7 +426,7 @@ module Google
282
426
  include ::Google::Protobuf::MessageExts
283
427
  extend ::Google::Protobuf::MessageExts::ClassMethods
284
428
 
285
- # Labels returned by Account Defender for this request.
429
+ # Labels returned by account defender for this request.
286
430
  module AccountDefenderLabel
287
431
  # Default unspecified type.
288
432
  ACCOUNT_DEFENDER_LABEL_UNSPECIFIED = 0
@@ -290,46 +434,21 @@ module Google
290
434
  # The request matches a known good profile for the user.
291
435
  PROFILE_MATCH = 1
292
436
 
293
- # The request is potentially a suspicious login event and should be further
294
- # verified either via multi-factor authentication or another system.
437
+ # The request is potentially a suspicious login event and must be further
438
+ # verified either through multi-factor authentication or another system.
295
439
  SUSPICIOUS_LOGIN_ACTIVITY = 2
296
440
 
297
441
  # The request matched a profile that previously had suspicious account
298
- # creation behavior. This could mean this is a fake account.
442
+ # creation behavior. This can mean that this is a fake account.
299
443
  SUSPICIOUS_ACCOUNT_CREATION = 3
300
444
 
301
445
  # The account in the request has a high number of related accounts. It does
302
- # not necessarily imply that the account is bad but could require
303
- # investigating.
446
+ # not necessarily imply that the account is bad but can require further
447
+ # investigation.
304
448
  RELATED_ACCOUNTS_NUMBER_HIGH = 4
305
449
  end
306
450
  end
307
451
 
308
- # Private password leak verification info.
309
- # @!attribute [rw] lookup_hash_prefix
310
- # @return [::String]
311
- # Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It
312
- # is used to look up password leaks associated with that hash prefix.
313
- # @!attribute [rw] encrypted_user_credentials_hash
314
- # @return [::String]
315
- # Encrypted Scrypt hash of the canonicalized username+password. It is
316
- # re-encrypted by the server and returned through
317
- # `reencrypted_user_credentials_hash`.
318
- # @!attribute [r] encrypted_leak_match_prefixes
319
- # @return [::Array<::String>]
320
- # List of prefixes of the encrypted potential password leaks that matched the
321
- # given parameters. They should be compared with the client-side decryption
322
- # prefix of `reencrypted_user_credentials_hash`
323
- # @!attribute [r] reencrypted_user_credentials_hash
324
- # @return [::String]
325
- # Corresponds to the re-encryption of the `encrypted_user_credentials_hash`
326
- # field. Used to match potential password leaks within
327
- # `encrypted_leak_match_prefixes`.
328
- class PrivatePasswordLeakVerification
329
- include ::Google::Protobuf::MessageExts
330
- extend ::Google::Protobuf::MessageExts::ClassMethods
331
- end
332
-
333
452
  # The create key request message.
334
453
  # @!attribute [rw] parent
335
454
  # @return [::String]
@@ -374,6 +493,16 @@ module Google
374
493
  extend ::Google::Protobuf::MessageExts::ClassMethods
375
494
  end
376
495
 
496
+ # The retrieve legacy secret key request message.
497
+ # @!attribute [rw] key
498
+ # @return [::String]
499
+ # Required. The public key name linked to the requested secret key in the
500
+ # format "projects/\\{project}/keys/\\{key}".
501
+ class RetrieveLegacySecretKeyRequest
502
+ include ::Google::Protobuf::MessageExts
503
+ extend ::Google::Protobuf::MessageExts::ClassMethods
504
+ end
505
+
377
506
  # The get key request message.
378
507
  # @!attribute [rw] name
379
508
  # @return [::String]
@@ -412,6 +541,16 @@ module Google
412
541
  # @return [::String]
413
542
  # Required. The name of the key to be migrated, in the format
414
543
  # "projects/\\{project}/keys/\\{key}".
544
+ # @!attribute [rw] skip_billing_check
545
+ # @return [::Boolean]
546
+ # Optional. If true, skips the billing check.
547
+ # A reCAPTCHA Enterprise key or migrated key behaves differently than a
548
+ # reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see
549
+ # https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid
550
+ # any disruption of your usage, we check that a billing account is present.
551
+ # If your usage of reCAPTCHA is under the free quota, you can safely skip the
552
+ # billing check and proceed with the migration. See
553
+ # https://cloud.google.com/recaptcha-enterprise/docs/billing-information.
415
554
  class MigrateKeyRequest
416
555
  include ::Google::Protobuf::MessageExts
417
556
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -449,6 +588,19 @@ module Google
449
588
  extend ::Google::Protobuf::MessageExts::ClassMethods
450
589
  end
451
590
 
591
+ # Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party
592
+ # integration with legacy reCAPTCHA.
593
+ # @!attribute [rw] legacy_secret_key
594
+ # @return [::String]
595
+ # The secret key (also known as shared secret) authorizes communication
596
+ # between your application backend and the reCAPTCHA Enterprise server to
597
+ # create an assessment.
598
+ # The secret key needs to be kept safe for security purposes.
599
+ class RetrieveLegacySecretKeyResponse
600
+ include ::Google::Protobuf::MessageExts
601
+ extend ::Google::Protobuf::MessageExts::ClassMethods
602
+ end
603
+
452
604
  # A key used to identify and configure applications (web and/or mobile) that
453
605
  # use reCAPTCHA Enterprise.
454
606
  # @!attribute [rw] name
@@ -642,7 +794,6 @@ module Google
642
794
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::RecaptchaEnterprise::V1::ScoreDistribution}]
643
795
  # Action-based metrics. The map key is the action name which specified by the
644
796
  # site owners at time of the "execute" client-side call.
645
- # Populated only for SCORE keys.
646
797
  class ScoreMetrics
647
798
  include ::Google::Protobuf::MessageExts
648
799
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -686,10 +837,9 @@ module Google
686
837
  # `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
687
838
  # @!attribute [rw] page_size
688
839
  # @return [::Integer]
689
- # Optional. The maximum number of accounts to return. The service may return
690
- # fewer than this value. If unspecified, at most 50 accounts will be
691
- # returned. The maximum value is 1000; values above 1000 will be coerced to
692
- # 1000.
840
+ # Optional. The maximum number of accounts to return. The service might
841
+ # return fewer than this value. If unspecified, at most 50 accounts are
842
+ # returned. The maximum value is 1000; values above 1000 are coerced to 1000.
693
843
  # @!attribute [rw] page_token
694
844
  # @return [::String]
695
845
  # Optional. A page token, received from a previous
@@ -723,9 +873,9 @@ module Google
723
873
  # the format "projects/\\{project}".
724
874
  # @!attribute [rw] page_size
725
875
  # @return [::Integer]
726
- # Optional. The maximum number of groups to return. The service may return
727
- # fewer than this value. If unspecified, at most 50 groups will be returned.
728
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
876
+ # Optional. The maximum number of groups to return. The service might return
877
+ # fewer than this value. If unspecified, at most 50 groups are returned. The
878
+ # maximum value is 1000; values above 1000 are coerced to 1000.
729
879
  # @!attribute [rw] page_token
730
880
  # @return [::String]
731
881
  # Optional. A page token, received from a previous `ListRelatedAccountGroups`
@@ -756,17 +906,18 @@ module Google
756
906
  # @!attribute [rw] project
757
907
  # @return [::String]
758
908
  # Required. The name of the project to search related account group
759
- # memberships from, in the format "projects/\\{project}".
909
+ # memberships from. Specify the project name in the following format:
910
+ # "projects/\\{project}".
760
911
  # @!attribute [rw] hashed_account_id
761
912
  # @return [::String]
762
913
  # Optional. The unique stable hashed user identifier we should search
763
914
  # connections to. The identifier should correspond to a `hashed_account_id`
764
- # provided in a previous CreateAssessment or AnnotateAssessment call.
915
+ # provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
765
916
  # @!attribute [rw] page_size
766
917
  # @return [::Integer]
767
- # Optional. The maximum number of groups to return. The service may return
768
- # fewer than this value. If unspecified, at most 50 groups will be returned.
769
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
918
+ # Optional. The maximum number of groups to return. The service might return
919
+ # fewer than this value. If unspecified, at most 50 groups are returned. The
920
+ # maximum value is 1000; values above 1000 are coerced to 1000.
770
921
  # @!attribute [rw] page_token
771
922
  # @return [::String]
772
923
  # Optional. A page token, received from a previous
@@ -803,7 +954,7 @@ module Google
803
954
  # @return [::String]
804
955
  # The unique stable hashed user identifier of the member. The identifier
805
956
  # corresponds to a `hashed_account_id` provided in a previous
806
- # CreateAssessment or AnnotateAssessment call.
957
+ # `CreateAssessment` or `AnnotateAssessment` call.
807
958
  class RelatedAccountGroupMembership
808
959
  include ::Google::Protobuf::MessageExts
809
960
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # A Duration represents a signed, fixed-length span of time represented
23
+ # as a count of seconds and fractions of seconds at nanosecond
24
+ # resolution. It is independent of any calendar and concepts like "day"
25
+ # or "month". It is related to Timestamp in that the difference between
26
+ # two Timestamp values is a Duration and it can be added or subtracted
27
+ # from a Timestamp. Range is approximately +-10,000 years.
28
+ #
29
+ # # Examples
30
+ #
31
+ # Example 1: Compute Duration from two Timestamps in pseudo code.
32
+ #
33
+ # Timestamp start = ...;
34
+ # Timestamp end = ...;
35
+ # Duration duration = ...;
36
+ #
37
+ # duration.seconds = end.seconds - start.seconds;
38
+ # duration.nanos = end.nanos - start.nanos;
39
+ #
40
+ # if (duration.seconds < 0 && duration.nanos > 0) {
41
+ # duration.seconds += 1;
42
+ # duration.nanos -= 1000000000;
43
+ # } else if (duration.seconds > 0 && duration.nanos < 0) {
44
+ # duration.seconds -= 1;
45
+ # duration.nanos += 1000000000;
46
+ # }
47
+ #
48
+ # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
49
+ #
50
+ # Timestamp start = ...;
51
+ # Duration duration = ...;
52
+ # Timestamp end = ...;
53
+ #
54
+ # end.seconds = start.seconds + duration.seconds;
55
+ # end.nanos = start.nanos + duration.nanos;
56
+ #
57
+ # if (end.nanos < 0) {
58
+ # end.seconds -= 1;
59
+ # end.nanos += 1000000000;
60
+ # } else if (end.nanos >= 1000000000) {
61
+ # end.seconds += 1;
62
+ # end.nanos -= 1000000000;
63
+ # }
64
+ #
65
+ # Example 3: Compute Duration from datetime.timedelta in Python.
66
+ #
67
+ # td = datetime.timedelta(days=3, minutes=10)
68
+ # duration = Duration()
69
+ # duration.FromTimedelta(td)
70
+ #
71
+ # # JSON Mapping
72
+ #
73
+ # In JSON format, the Duration type is encoded as a string rather than an
74
+ # object, where the string ends in the suffix "s" (indicating seconds) and
75
+ # is preceded by the number of seconds, with nanoseconds expressed as
76
+ # fractional seconds. For example, 3 seconds with 0 nanoseconds should be
77
+ # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
78
+ # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
+ # microsecond should be expressed in JSON format as "3.000001s".
80
+ # @!attribute [rw] seconds
81
+ # @return [::Integer]
82
+ # Signed seconds of the span of time. Must be from -315,576,000,000
83
+ # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
+ # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
+ # @!attribute [rw] nanos
86
+ # @return [::Integer]
87
+ # Signed fractions of a second at nanosecond resolution of the span
88
+ # of time. Durations less than one second are represented with a 0
89
+ # `seconds` field and a positive or negative `nanos` field. For durations
90
+ # of one second or more, a non-zero value for the `nanos` field must be
91
+ # of the same sign as the `seconds` field. Must be from -999,999,999
92
+ # to +999,999,999 inclusive.
93
+ class Duration
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+ end
98
+ end
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.10.0
4
+ version: 0.12.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: 2022-07-07 00:00:00.000000000 Z
11
+ date: 2022-12-09 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: '0.10'
19
+ version: '0.12'
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: '0.10'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -179,9 +179,12 @@ files:
179
179
  - lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_pb.rb
180
180
  - lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_services_pb.rb
181
181
  - proto_docs/README.md
182
+ - proto_docs/google/api/client.rb
182
183
  - proto_docs/google/api/field_behavior.rb
184
+ - proto_docs/google/api/launch_stage.rb
183
185
  - proto_docs/google/api/resource.rb
184
186
  - proto_docs/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.rb
187
+ - proto_docs/google/protobuf/duration.rb
185
188
  - proto_docs/google/protobuf/empty.rb
186
189
  - proto_docs/google/protobuf/field_mask.rb
187
190
  - proto_docs/google/protobuf/timestamp.rb