/
recaptchaenterprise.pb.go
executable file
·9409 lines (8511 loc) · 433 KB
/
recaptchaenterprise.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.23.2
// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
package recaptchaenterprisepb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Enum that represents an event in the payment transaction lifecycle.
type TransactionEvent_TransactionEventType int32
const (
// Default, unspecified event type.
TransactionEvent_TRANSACTION_EVENT_TYPE_UNSPECIFIED TransactionEvent_TransactionEventType = 0
// Indicates that the transaction is approved by the merchant. The
// accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
// 'CYBERSOURCE', or 'MANUAL_REVIEW'.
TransactionEvent_MERCHANT_APPROVE TransactionEvent_TransactionEventType = 1
// Indicates that the transaction is denied and concluded due to risks
// detected by the merchant. The accompanying reasons can include terms such
// as 'INHOUSE', 'ACCERTIFY', 'CYBERSOURCE', or 'MANUAL_REVIEW'.
TransactionEvent_MERCHANT_DENY TransactionEvent_TransactionEventType = 2
// Indicates that the transaction is being evaluated by a human, due to
// suspicion or risk.
TransactionEvent_MANUAL_REVIEW TransactionEvent_TransactionEventType = 3
// Indicates that the authorization attempt with the card issuer succeeded.
TransactionEvent_AUTHORIZATION TransactionEvent_TransactionEventType = 4
// Indicates that the authorization attempt with the card issuer failed.
// The accompanying reasons can include Visa's '54' indicating that the card
// is expired, or '82' indicating that the CVV is incorrect.
TransactionEvent_AUTHORIZATION_DECLINE TransactionEvent_TransactionEventType = 5
// Indicates that the transaction is completed because the funds were
// settled.
TransactionEvent_PAYMENT_CAPTURE TransactionEvent_TransactionEventType = 6
// Indicates that the transaction could not be completed because the funds
// were not settled.
TransactionEvent_PAYMENT_CAPTURE_DECLINE TransactionEvent_TransactionEventType = 7
// Indicates that the transaction has been canceled. Specify the reason
// for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
TransactionEvent_CANCEL TransactionEvent_TransactionEventType = 8
// Indicates that the merchant has received a chargeback inquiry due to
// fraud for the transaction, requesting additional information before a
// fraud chargeback is officially issued and a formal chargeback
// notification is sent.
TransactionEvent_CHARGEBACK_INQUIRY TransactionEvent_TransactionEventType = 9
// Indicates that the merchant has received a chargeback alert due to fraud
// for the transaction. The process of resolving the dispute without
// involving the payment network is started.
TransactionEvent_CHARGEBACK_ALERT TransactionEvent_TransactionEventType = 10
// Indicates that a fraud notification is issued for the transaction, sent
// by the payment instrument's issuing bank because the transaction appears
// to be fraudulent. We recommend including TC40 or SAFE data in the
// `reason` field for this event type. For partial chargebacks, we recommend
// that you include an amount in the `value` field.
TransactionEvent_FRAUD_NOTIFICATION TransactionEvent_TransactionEventType = 11
// Indicates that the merchant is informed by the payment network that the
// transaction has entered the chargeback process due to fraud. Reason code
// examples include Discover's '6005' and '6041'. For partial chargebacks,
// we recommend that you include an amount in the `value` field.
TransactionEvent_CHARGEBACK TransactionEvent_TransactionEventType = 12
// Indicates that the transaction has entered the chargeback process due to
// fraud, and that the merchant has chosen to enter representment. Reason
// examples include Discover's '6005' and '6041'. For partial chargebacks,
// we recommend that you include an amount in the `value` field.
TransactionEvent_CHARGEBACK_REPRESENTMENT TransactionEvent_TransactionEventType = 13
// Indicates that the transaction has had a fraud chargeback which was
// illegitimate and was reversed as a result. For partial chargebacks, we
// recommend that you include an amount in the `value` field.
TransactionEvent_CHARGEBACK_REVERSE TransactionEvent_TransactionEventType = 14
// Indicates that the merchant has received a refund for a completed
// transaction. For partial refunds, we recommend that you include an amount
// in the `value` field. Reason example: 'TAX_EXEMPT' (partial refund of
// exempt tax)
TransactionEvent_REFUND_REQUEST TransactionEvent_TransactionEventType = 15
// Indicates that the merchant has received a refund request for this
// transaction, but that they have declined it. For partial refunds, we
// recommend that you include an amount in the `value` field. Reason
// example: 'TAX_EXEMPT' (partial refund of exempt tax)
TransactionEvent_REFUND_DECLINE TransactionEvent_TransactionEventType = 16
// Indicates that the completed transaction was refunded by the merchant.
// For partial refunds, we recommend that you include an amount in the
// `value` field. Reason example: 'TAX_EXEMPT' (partial refund of exempt
// tax)
TransactionEvent_REFUND TransactionEvent_TransactionEventType = 17
// Indicates that the completed transaction was refunded by the merchant,
// and that this refund was reversed. For partial refunds, we recommend that
// you include an amount in the `value` field.
TransactionEvent_REFUND_REVERSE TransactionEvent_TransactionEventType = 18
)
// Enum value maps for TransactionEvent_TransactionEventType.
var (
TransactionEvent_TransactionEventType_name = map[int32]string{
0: "TRANSACTION_EVENT_TYPE_UNSPECIFIED",
1: "MERCHANT_APPROVE",
2: "MERCHANT_DENY",
3: "MANUAL_REVIEW",
4: "AUTHORIZATION",
5: "AUTHORIZATION_DECLINE",
6: "PAYMENT_CAPTURE",
7: "PAYMENT_CAPTURE_DECLINE",
8: "CANCEL",
9: "CHARGEBACK_INQUIRY",
10: "CHARGEBACK_ALERT",
11: "FRAUD_NOTIFICATION",
12: "CHARGEBACK",
13: "CHARGEBACK_REPRESENTMENT",
14: "CHARGEBACK_REVERSE",
15: "REFUND_REQUEST",
16: "REFUND_DECLINE",
17: "REFUND",
18: "REFUND_REVERSE",
}
TransactionEvent_TransactionEventType_value = map[string]int32{
"TRANSACTION_EVENT_TYPE_UNSPECIFIED": 0,
"MERCHANT_APPROVE": 1,
"MERCHANT_DENY": 2,
"MANUAL_REVIEW": 3,
"AUTHORIZATION": 4,
"AUTHORIZATION_DECLINE": 5,
"PAYMENT_CAPTURE": 6,
"PAYMENT_CAPTURE_DECLINE": 7,
"CANCEL": 8,
"CHARGEBACK_INQUIRY": 9,
"CHARGEBACK_ALERT": 10,
"FRAUD_NOTIFICATION": 11,
"CHARGEBACK": 12,
"CHARGEBACK_REPRESENTMENT": 13,
"CHARGEBACK_REVERSE": 14,
"REFUND_REQUEST": 15,
"REFUND_DECLINE": 16,
"REFUND": 17,
"REFUND_REVERSE": 18,
}
)
func (x TransactionEvent_TransactionEventType) Enum() *TransactionEvent_TransactionEventType {
p := new(TransactionEvent_TransactionEventType)
*p = x
return p
}
func (x TransactionEvent_TransactionEventType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TransactionEvent_TransactionEventType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[0].Descriptor()
}
func (TransactionEvent_TransactionEventType) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[0]
}
func (x TransactionEvent_TransactionEventType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TransactionEvent_TransactionEventType.Descriptor instead.
func (TransactionEvent_TransactionEventType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{1, 0}
}
// Enum that represents the types of annotations.
type AnnotateAssessmentRequest_Annotation int32
const (
// Default unspecified type.
AnnotateAssessmentRequest_ANNOTATION_UNSPECIFIED AnnotateAssessmentRequest_Annotation = 0
// Provides information that the event turned out to be legitimate.
AnnotateAssessmentRequest_LEGITIMATE AnnotateAssessmentRequest_Annotation = 1
// Provides information that the event turned out to be fraudulent.
AnnotateAssessmentRequest_FRAUDULENT AnnotateAssessmentRequest_Annotation = 2
// Provides information that the event was related to a login event in which
// the user typed the correct password. Deprecated, prefer indicating
// CORRECT_PASSWORD through the reasons field instead.
//
// Deprecated: Marked as deprecated in google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto.
AnnotateAssessmentRequest_PASSWORD_CORRECT AnnotateAssessmentRequest_Annotation = 3
// Provides information that the event was related to a login event in which
// the user typed the incorrect password. Deprecated, prefer indicating
// INCORRECT_PASSWORD through the reasons field instead.
//
// Deprecated: Marked as deprecated in google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto.
AnnotateAssessmentRequest_PASSWORD_INCORRECT AnnotateAssessmentRequest_Annotation = 4
)
// Enum value maps for AnnotateAssessmentRequest_Annotation.
var (
AnnotateAssessmentRequest_Annotation_name = map[int32]string{
0: "ANNOTATION_UNSPECIFIED",
1: "LEGITIMATE",
2: "FRAUDULENT",
3: "PASSWORD_CORRECT",
4: "PASSWORD_INCORRECT",
}
AnnotateAssessmentRequest_Annotation_value = map[string]int32{
"ANNOTATION_UNSPECIFIED": 0,
"LEGITIMATE": 1,
"FRAUDULENT": 2,
"PASSWORD_CORRECT": 3,
"PASSWORD_INCORRECT": 4,
}
)
func (x AnnotateAssessmentRequest_Annotation) Enum() *AnnotateAssessmentRequest_Annotation {
p := new(AnnotateAssessmentRequest_Annotation)
*p = x
return p
}
func (x AnnotateAssessmentRequest_Annotation) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AnnotateAssessmentRequest_Annotation) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[1].Descriptor()
}
func (AnnotateAssessmentRequest_Annotation) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[1]
}
func (x AnnotateAssessmentRequest_Annotation) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AnnotateAssessmentRequest_Annotation.Descriptor instead.
func (AnnotateAssessmentRequest_Annotation) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{2, 0}
}
// Enum that represents potential reasons for annotating an assessment.
type AnnotateAssessmentRequest_Reason int32
const (
// Default unspecified reason.
AnnotateAssessmentRequest_REASON_UNSPECIFIED AnnotateAssessmentRequest_Reason = 0
// Indicates that the transaction had a chargeback issued with no other
// details. When possible, specify the type by using CHARGEBACK_FRAUD or
// CHARGEBACK_DISPUTE instead.
AnnotateAssessmentRequest_CHARGEBACK AnnotateAssessmentRequest_Reason = 1
// Indicates that the transaction had a chargeback issued related to an
// alleged unauthorized transaction from the cardholder's perspective (for
// example, the card number was stolen).
AnnotateAssessmentRequest_CHARGEBACK_FRAUD AnnotateAssessmentRequest_Reason = 8
// Indicates that the transaction had a chargeback issued related to the
// cardholder having provided their card details but allegedly not being
// satisfied with the purchase (for example, misrepresentation, attempted
// cancellation).
AnnotateAssessmentRequest_CHARGEBACK_DISPUTE AnnotateAssessmentRequest_Reason = 9
// Indicates that the completed payment transaction was refunded by the
// seller.
AnnotateAssessmentRequest_REFUND AnnotateAssessmentRequest_Reason = 10
// Indicates that the completed payment transaction was determined to be
// fraudulent by the seller, and was cancelled and refunded as a result.
AnnotateAssessmentRequest_REFUND_FRAUD AnnotateAssessmentRequest_Reason = 11
// Indicates that the payment transaction was accepted, and the user was
// charged.
AnnotateAssessmentRequest_TRANSACTION_ACCEPTED AnnotateAssessmentRequest_Reason = 12
// Indicates that the payment transaction was declined, for example due to
// invalid card details.
AnnotateAssessmentRequest_TRANSACTION_DECLINED AnnotateAssessmentRequest_Reason = 13
// Indicates the transaction associated with the assessment is suspected of
// being fraudulent based on the payment method, billing details, shipping
// address or other transaction information.
AnnotateAssessmentRequest_PAYMENT_HEURISTICS AnnotateAssessmentRequest_Reason = 2
// Indicates that the user was served a 2FA challenge. An old assessment
// with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
// overwritten with `PASSED_TWO_FACTOR` is treated as an abandoned 2FA flow.
// This is equivalent to `FAILED_TWO_FACTOR`.
AnnotateAssessmentRequest_INITIATED_TWO_FACTOR AnnotateAssessmentRequest_Reason = 7
// Indicates that the user passed a 2FA challenge.
AnnotateAssessmentRequest_PASSED_TWO_FACTOR AnnotateAssessmentRequest_Reason = 3
// Indicates that the user failed a 2FA challenge.
AnnotateAssessmentRequest_FAILED_TWO_FACTOR AnnotateAssessmentRequest_Reason = 4
// Indicates the user provided the correct password.
AnnotateAssessmentRequest_CORRECT_PASSWORD AnnotateAssessmentRequest_Reason = 5
// Indicates the user provided an incorrect password.
AnnotateAssessmentRequest_INCORRECT_PASSWORD AnnotateAssessmentRequest_Reason = 6
// Indicates that the user sent unwanted and abusive messages to other users
// of the platform, such as spam, scams, phishing, or social engineering.
AnnotateAssessmentRequest_SOCIAL_SPAM AnnotateAssessmentRequest_Reason = 14
)
// Enum value maps for AnnotateAssessmentRequest_Reason.
var (
AnnotateAssessmentRequest_Reason_name = map[int32]string{
0: "REASON_UNSPECIFIED",
1: "CHARGEBACK",
8: "CHARGEBACK_FRAUD",
9: "CHARGEBACK_DISPUTE",
10: "REFUND",
11: "REFUND_FRAUD",
12: "TRANSACTION_ACCEPTED",
13: "TRANSACTION_DECLINED",
2: "PAYMENT_HEURISTICS",
7: "INITIATED_TWO_FACTOR",
3: "PASSED_TWO_FACTOR",
4: "FAILED_TWO_FACTOR",
5: "CORRECT_PASSWORD",
6: "INCORRECT_PASSWORD",
14: "SOCIAL_SPAM",
}
AnnotateAssessmentRequest_Reason_value = map[string]int32{
"REASON_UNSPECIFIED": 0,
"CHARGEBACK": 1,
"CHARGEBACK_FRAUD": 8,
"CHARGEBACK_DISPUTE": 9,
"REFUND": 10,
"REFUND_FRAUD": 11,
"TRANSACTION_ACCEPTED": 12,
"TRANSACTION_DECLINED": 13,
"PAYMENT_HEURISTICS": 2,
"INITIATED_TWO_FACTOR": 7,
"PASSED_TWO_FACTOR": 3,
"FAILED_TWO_FACTOR": 4,
"CORRECT_PASSWORD": 5,
"INCORRECT_PASSWORD": 6,
"SOCIAL_SPAM": 14,
}
)
func (x AnnotateAssessmentRequest_Reason) Enum() *AnnotateAssessmentRequest_Reason {
p := new(AnnotateAssessmentRequest_Reason)
*p = x
return p
}
func (x AnnotateAssessmentRequest_Reason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AnnotateAssessmentRequest_Reason) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[2].Descriptor()
}
func (AnnotateAssessmentRequest_Reason) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[2]
}
func (x AnnotateAssessmentRequest_Reason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AnnotateAssessmentRequest_Reason.Descriptor instead.
func (AnnotateAssessmentRequest_Reason) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{2, 1}
}
// Result of the account verification as contained in the verdict token issued
// at the end of the verification flow.
type AccountVerificationInfo_Result int32
const (
// No information about the latest account verification.
AccountVerificationInfo_RESULT_UNSPECIFIED AccountVerificationInfo_Result = 0
// The user was successfully verified. This means the account verification
// challenge was successfully completed.
AccountVerificationInfo_SUCCESS_USER_VERIFIED AccountVerificationInfo_Result = 1
// The user failed the verification challenge.
AccountVerificationInfo_ERROR_USER_NOT_VERIFIED AccountVerificationInfo_Result = 2
// The site is not properly onboarded to use the account verification
// feature.
AccountVerificationInfo_ERROR_SITE_ONBOARDING_INCOMPLETE AccountVerificationInfo_Result = 3
// The recipient is not allowed for account verification. This can occur
// during integration but should not occur in production.
AccountVerificationInfo_ERROR_RECIPIENT_NOT_ALLOWED AccountVerificationInfo_Result = 4
// The recipient has already been sent too many verification codes in a
// short amount of time.
AccountVerificationInfo_ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED AccountVerificationInfo_Result = 5
// The verification flow could not be completed due to a critical internal
// error.
AccountVerificationInfo_ERROR_CRITICAL_INTERNAL AccountVerificationInfo_Result = 6
// The client has exceeded their two factor request quota for this period of
// time.
AccountVerificationInfo_ERROR_CUSTOMER_QUOTA_EXHAUSTED AccountVerificationInfo_Result = 7
// The request cannot be processed at the time because of an incident. This
// bypass can be restricted to a problematic destination email domain, a
// customer, or could affect the entire service.
AccountVerificationInfo_ERROR_VERIFICATION_BYPASSED AccountVerificationInfo_Result = 8
// The request parameters do not match with the token provided and cannot be
// processed.
AccountVerificationInfo_ERROR_VERDICT_MISMATCH AccountVerificationInfo_Result = 9
)
// Enum value maps for AccountVerificationInfo_Result.
var (
AccountVerificationInfo_Result_name = map[int32]string{
0: "RESULT_UNSPECIFIED",
1: "SUCCESS_USER_VERIFIED",
2: "ERROR_USER_NOT_VERIFIED",
3: "ERROR_SITE_ONBOARDING_INCOMPLETE",
4: "ERROR_RECIPIENT_NOT_ALLOWED",
5: "ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED",
6: "ERROR_CRITICAL_INTERNAL",
7: "ERROR_CUSTOMER_QUOTA_EXHAUSTED",
8: "ERROR_VERIFICATION_BYPASSED",
9: "ERROR_VERDICT_MISMATCH",
}
AccountVerificationInfo_Result_value = map[string]int32{
"RESULT_UNSPECIFIED": 0,
"SUCCESS_USER_VERIFIED": 1,
"ERROR_USER_NOT_VERIFIED": 2,
"ERROR_SITE_ONBOARDING_INCOMPLETE": 3,
"ERROR_RECIPIENT_NOT_ALLOWED": 4,
"ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED": 5,
"ERROR_CRITICAL_INTERNAL": 6,
"ERROR_CUSTOMER_QUOTA_EXHAUSTED": 7,
"ERROR_VERIFICATION_BYPASSED": 8,
"ERROR_VERDICT_MISMATCH": 9,
}
)
func (x AccountVerificationInfo_Result) Enum() *AccountVerificationInfo_Result {
p := new(AccountVerificationInfo_Result)
*p = x
return p
}
func (x AccountVerificationInfo_Result) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AccountVerificationInfo_Result) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[3].Descriptor()
}
func (AccountVerificationInfo_Result) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[3]
}
func (x AccountVerificationInfo_Result) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AccountVerificationInfo_Result.Descriptor instead.
func (AccountVerificationInfo_Result) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{5, 0}
}
// Reasons contributing to the risk analysis verdict.
type RiskAnalysis_ClassificationReason int32
const (
// Default unspecified type.
RiskAnalysis_CLASSIFICATION_REASON_UNSPECIFIED RiskAnalysis_ClassificationReason = 0
// Interactions matched the behavior of an automated agent.
RiskAnalysis_AUTOMATION RiskAnalysis_ClassificationReason = 1
// The event originated from an illegitimate environment.
RiskAnalysis_UNEXPECTED_ENVIRONMENT RiskAnalysis_ClassificationReason = 2
// Traffic volume from the event source is higher than normal.
RiskAnalysis_TOO_MUCH_TRAFFIC RiskAnalysis_ClassificationReason = 3
// Interactions with the site were significantly different than expected
// patterns.
RiskAnalysis_UNEXPECTED_USAGE_PATTERNS RiskAnalysis_ClassificationReason = 4
// Too little traffic has been received from this site thus far to generate
// quality risk analysis.
RiskAnalysis_LOW_CONFIDENCE_SCORE RiskAnalysis_ClassificationReason = 5
// The request matches behavioral characteristics of a carding attack.
RiskAnalysis_SUSPECTED_CARDING RiskAnalysis_ClassificationReason = 6
// The request matches behavioral characteristics of chargebacks for fraud.
RiskAnalysis_SUSPECTED_CHARGEBACK RiskAnalysis_ClassificationReason = 7
)
// Enum value maps for RiskAnalysis_ClassificationReason.
var (
RiskAnalysis_ClassificationReason_name = map[int32]string{
0: "CLASSIFICATION_REASON_UNSPECIFIED",
1: "AUTOMATION",
2: "UNEXPECTED_ENVIRONMENT",
3: "TOO_MUCH_TRAFFIC",
4: "UNEXPECTED_USAGE_PATTERNS",
5: "LOW_CONFIDENCE_SCORE",
6: "SUSPECTED_CARDING",
7: "SUSPECTED_CHARGEBACK",
}
RiskAnalysis_ClassificationReason_value = map[string]int32{
"CLASSIFICATION_REASON_UNSPECIFIED": 0,
"AUTOMATION": 1,
"UNEXPECTED_ENVIRONMENT": 2,
"TOO_MUCH_TRAFFIC": 3,
"UNEXPECTED_USAGE_PATTERNS": 4,
"LOW_CONFIDENCE_SCORE": 5,
"SUSPECTED_CARDING": 6,
"SUSPECTED_CHARGEBACK": 7,
}
)
func (x RiskAnalysis_ClassificationReason) Enum() *RiskAnalysis_ClassificationReason {
p := new(RiskAnalysis_ClassificationReason)
*p = x
return p
}
func (x RiskAnalysis_ClassificationReason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RiskAnalysis_ClassificationReason) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[4].Descriptor()
}
func (RiskAnalysis_ClassificationReason) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[4]
}
func (x RiskAnalysis_ClassificationReason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RiskAnalysis_ClassificationReason.Descriptor instead.
func (RiskAnalysis_ClassificationReason) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{12, 0}
}
// Enum that represents the types of invalid token reasons.
type TokenProperties_InvalidReason int32
const (
// Default unspecified type.
TokenProperties_INVALID_REASON_UNSPECIFIED TokenProperties_InvalidReason = 0
// If the failure reason was not accounted for.
TokenProperties_UNKNOWN_INVALID_REASON TokenProperties_InvalidReason = 1
// The provided user verification token was malformed.
TokenProperties_MALFORMED TokenProperties_InvalidReason = 2
// The user verification token had expired.
TokenProperties_EXPIRED TokenProperties_InvalidReason = 3
// The user verification had already been seen.
TokenProperties_DUPE TokenProperties_InvalidReason = 4
// The user verification token was not present.
TokenProperties_MISSING TokenProperties_InvalidReason = 5
// A retriable error (such as network failure) occurred on the browser.
// Could easily be simulated by an attacker.
TokenProperties_BROWSER_ERROR TokenProperties_InvalidReason = 6
)
// Enum value maps for TokenProperties_InvalidReason.
var (
TokenProperties_InvalidReason_name = map[int32]string{
0: "INVALID_REASON_UNSPECIFIED",
1: "UNKNOWN_INVALID_REASON",
2: "MALFORMED",
3: "EXPIRED",
4: "DUPE",
5: "MISSING",
6: "BROWSER_ERROR",
}
TokenProperties_InvalidReason_value = map[string]int32{
"INVALID_REASON_UNSPECIFIED": 0,
"UNKNOWN_INVALID_REASON": 1,
"MALFORMED": 2,
"EXPIRED": 3,
"DUPE": 4,
"MISSING": 5,
"BROWSER_ERROR": 6,
}
)
func (x TokenProperties_InvalidReason) Enum() *TokenProperties_InvalidReason {
p := new(TokenProperties_InvalidReason)
*p = x
return p
}
func (x TokenProperties_InvalidReason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TokenProperties_InvalidReason) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[5].Descriptor()
}
func (TokenProperties_InvalidReason) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[5]
}
func (x TokenProperties_InvalidReason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TokenProperties_InvalidReason.Descriptor instead.
func (TokenProperties_InvalidReason) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{13, 0}
}
// Risk labels describing the card being assessed, such as its funding
// mechanism.
type FraudSignals_CardSignals_CardLabel int32
const (
// No label specified.
FraudSignals_CardSignals_CARD_LABEL_UNSPECIFIED FraudSignals_CardSignals_CardLabel = 0
// This card has been detected as prepaid.
FraudSignals_CardSignals_PREPAID FraudSignals_CardSignals_CardLabel = 1
// This card has been detected as virtual, such as a card number generated
// for a single transaction or merchant.
FraudSignals_CardSignals_VIRTUAL FraudSignals_CardSignals_CardLabel = 2
// This card has been detected as being used in an unexpected geographic
// location.
FraudSignals_CardSignals_UNEXPECTED_LOCATION FraudSignals_CardSignals_CardLabel = 3
)
// Enum value maps for FraudSignals_CardSignals_CardLabel.
var (
FraudSignals_CardSignals_CardLabel_name = map[int32]string{
0: "CARD_LABEL_UNSPECIFIED",
1: "PREPAID",
2: "VIRTUAL",
3: "UNEXPECTED_LOCATION",
}
FraudSignals_CardSignals_CardLabel_value = map[string]int32{
"CARD_LABEL_UNSPECIFIED": 0,
"PREPAID": 1,
"VIRTUAL": 2,
"UNEXPECTED_LOCATION": 3,
}
)
func (x FraudSignals_CardSignals_CardLabel) Enum() *FraudSignals_CardSignals_CardLabel {
p := new(FraudSignals_CardSignals_CardLabel)
*p = x
return p
}
func (x FraudSignals_CardSignals_CardLabel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FraudSignals_CardSignals_CardLabel) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[6].Descriptor()
}
func (FraudSignals_CardSignals_CardLabel) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[6]
}
func (x FraudSignals_CardSignals_CardLabel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FraudSignals_CardSignals_CardLabel.Descriptor instead.
func (FraudSignals_CardSignals_CardLabel) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{15, 1, 0}
}
// Labels returned by account defender for this request.
type AccountDefenderAssessment_AccountDefenderLabel int32
const (
// Default unspecified type.
AccountDefenderAssessment_ACCOUNT_DEFENDER_LABEL_UNSPECIFIED AccountDefenderAssessment_AccountDefenderLabel = 0
// The request matches a known good profile for the user.
AccountDefenderAssessment_PROFILE_MATCH AccountDefenderAssessment_AccountDefenderLabel = 1
// The request is potentially a suspicious login event and must be further
// verified either through multi-factor authentication or another system.
AccountDefenderAssessment_SUSPICIOUS_LOGIN_ACTIVITY AccountDefenderAssessment_AccountDefenderLabel = 2
// The request matched a profile that previously had suspicious account
// creation behavior. This can mean that this is a fake account.
AccountDefenderAssessment_SUSPICIOUS_ACCOUNT_CREATION AccountDefenderAssessment_AccountDefenderLabel = 3
// The account in the request has a high number of related accounts. It does
// not necessarily imply that the account is bad but can require further
// investigation.
AccountDefenderAssessment_RELATED_ACCOUNTS_NUMBER_HIGH AccountDefenderAssessment_AccountDefenderLabel = 4
)
// Enum value maps for AccountDefenderAssessment_AccountDefenderLabel.
var (
AccountDefenderAssessment_AccountDefenderLabel_name = map[int32]string{
0: "ACCOUNT_DEFENDER_LABEL_UNSPECIFIED",
1: "PROFILE_MATCH",
2: "SUSPICIOUS_LOGIN_ACTIVITY",
3: "SUSPICIOUS_ACCOUNT_CREATION",
4: "RELATED_ACCOUNTS_NUMBER_HIGH",
}
AccountDefenderAssessment_AccountDefenderLabel_value = map[string]int32{
"ACCOUNT_DEFENDER_LABEL_UNSPECIFIED": 0,
"PROFILE_MATCH": 1,
"SUSPICIOUS_LOGIN_ACTIVITY": 2,
"SUSPICIOUS_ACCOUNT_CREATION": 3,
"RELATED_ACCOUNTS_NUMBER_HIGH": 4,
}
)
func (x AccountDefenderAssessment_AccountDefenderLabel) Enum() *AccountDefenderAssessment_AccountDefenderLabel {
p := new(AccountDefenderAssessment_AccountDefenderLabel)
*p = x
return p
}
func (x AccountDefenderAssessment_AccountDefenderLabel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AccountDefenderAssessment_AccountDefenderLabel) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[7].Descriptor()
}
func (AccountDefenderAssessment_AccountDefenderLabel) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[7]
}
func (x AccountDefenderAssessment_AccountDefenderLabel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AccountDefenderAssessment_AccountDefenderLabel.Descriptor instead.
func (AccountDefenderAssessment_AccountDefenderLabel) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{16, 0}
}
// Enum that represents the challenge option for challenge-based (CHECKBOX,
// INVISIBLE) testing keys.
type TestingOptions_TestingChallenge int32
const (
// Perform the normal risk analysis and return either nocaptcha or a
// challenge depending on risk and trust factors.
TestingOptions_TESTING_CHALLENGE_UNSPECIFIED TestingOptions_TestingChallenge = 0
// Challenge requests for this key always return a nocaptcha, which
// does not require a solution.
TestingOptions_NOCAPTCHA TestingOptions_TestingChallenge = 1
// Challenge requests for this key always return an unsolvable
// challenge.
TestingOptions_UNSOLVABLE_CHALLENGE TestingOptions_TestingChallenge = 2
)
// Enum value maps for TestingOptions_TestingChallenge.
var (
TestingOptions_TestingChallenge_name = map[int32]string{
0: "TESTING_CHALLENGE_UNSPECIFIED",
1: "NOCAPTCHA",
2: "UNSOLVABLE_CHALLENGE",
}
TestingOptions_TestingChallenge_value = map[string]int32{
"TESTING_CHALLENGE_UNSPECIFIED": 0,
"NOCAPTCHA": 1,
"UNSOLVABLE_CHALLENGE": 2,
}
)
func (x TestingOptions_TestingChallenge) Enum() *TestingOptions_TestingChallenge {
p := new(TestingOptions_TestingChallenge)
*p = x
return p
}
func (x TestingOptions_TestingChallenge) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TestingOptions_TestingChallenge) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[8].Descriptor()
}
func (TestingOptions_TestingChallenge) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[8]
}
func (x TestingOptions_TestingChallenge) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TestingOptions_TestingChallenge.Descriptor instead.
func (TestingOptions_TestingChallenge) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{35, 0}
}
// Enum that represents the integration types for web keys.
type WebKeySettings_IntegrationType int32
const (
// Default type that indicates this enum hasn't been specified. This is not
// a valid IntegrationType, one of the other types must be specified
// instead.
WebKeySettings_INTEGRATION_TYPE_UNSPECIFIED WebKeySettings_IntegrationType = 0
// Only used to produce scores. It doesn't display the "I'm not a robot"
// checkbox and never shows captcha challenges.
WebKeySettings_SCORE WebKeySettings_IntegrationType = 1
// Displays the "I'm not a robot" checkbox and may show captcha challenges
// after it is checked.
WebKeySettings_CHECKBOX WebKeySettings_IntegrationType = 2
// Doesn't display the "I'm not a robot" checkbox, but may show captcha
// challenges after risk analysis.
WebKeySettings_INVISIBLE WebKeySettings_IntegrationType = 3
)
// Enum value maps for WebKeySettings_IntegrationType.
var (
WebKeySettings_IntegrationType_name = map[int32]string{
0: "INTEGRATION_TYPE_UNSPECIFIED",
1: "SCORE",
2: "CHECKBOX",
3: "INVISIBLE",
}
WebKeySettings_IntegrationType_value = map[string]int32{
"INTEGRATION_TYPE_UNSPECIFIED": 0,
"SCORE": 1,
"CHECKBOX": 2,
"INVISIBLE": 3,
}
)
func (x WebKeySettings_IntegrationType) Enum() *WebKeySettings_IntegrationType {
p := new(WebKeySettings_IntegrationType)
*p = x
return p
}
func (x WebKeySettings_IntegrationType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WebKeySettings_IntegrationType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[9].Descriptor()
}
func (WebKeySettings_IntegrationType) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[9]
}
func (x WebKeySettings_IntegrationType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WebKeySettings_IntegrationType.Descriptor instead.
func (WebKeySettings_IntegrationType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{36, 0}
}
// Enum that represents the possible challenge frequency and difficulty
// configurations for a web key.
type WebKeySettings_ChallengeSecurityPreference int32
const (
// Default type that indicates this enum hasn't been specified.
WebKeySettings_CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED WebKeySettings_ChallengeSecurityPreference = 0
// Key tends to show fewer and easier challenges.
WebKeySettings_USABILITY WebKeySettings_ChallengeSecurityPreference = 1
// Key tends to show balanced (in amount and difficulty) challenges.
WebKeySettings_BALANCE WebKeySettings_ChallengeSecurityPreference = 2
// Key tends to show more and harder challenges.
WebKeySettings_SECURITY WebKeySettings_ChallengeSecurityPreference = 3
)
// Enum value maps for WebKeySettings_ChallengeSecurityPreference.
var (
WebKeySettings_ChallengeSecurityPreference_name = map[int32]string{
0: "CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED",
1: "USABILITY",
2: "BALANCE",
3: "SECURITY",
}
WebKeySettings_ChallengeSecurityPreference_value = map[string]int32{
"CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED": 0,
"USABILITY": 1,
"BALANCE": 2,
"SECURITY": 3,
}
)
func (x WebKeySettings_ChallengeSecurityPreference) Enum() *WebKeySettings_ChallengeSecurityPreference {
p := new(WebKeySettings_ChallengeSecurityPreference)
*p = x
return p
}
func (x WebKeySettings_ChallengeSecurityPreference) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WebKeySettings_ChallengeSecurityPreference) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[10].Descriptor()
}
func (WebKeySettings_ChallengeSecurityPreference) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[10]
}
func (x WebKeySettings_ChallengeSecurityPreference) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WebKeySettings_ChallengeSecurityPreference.Descriptor instead.
func (WebKeySettings_ChallengeSecurityPreference) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{36, 1}
}
// Supported WAF features. For more information, see
// https://cloud.google.com/recaptcha-enterprise/docs/usecase#comparison_of_features.
type WafSettings_WafFeature int32
const (
// Undefined feature.
WafSettings_WAF_FEATURE_UNSPECIFIED WafSettings_WafFeature = 0
// Redirects suspicious traffic to reCAPTCHA.
WafSettings_CHALLENGE_PAGE WafSettings_WafFeature = 1
// Use reCAPTCHA session-tokens to protect the whole user session on the
// site's domain.
WafSettings_SESSION_TOKEN WafSettings_WafFeature = 2
// Use reCAPTCHA action-tokens to protect user actions.
WafSettings_ACTION_TOKEN WafSettings_WafFeature = 3
// Use reCAPTCHA WAF express protection to protect any content other than
// web pages, like APIs and IoT devices.
WafSettings_EXPRESS WafSettings_WafFeature = 5
)
// Enum value maps for WafSettings_WafFeature.
var (
WafSettings_WafFeature_name = map[int32]string{
0: "WAF_FEATURE_UNSPECIFIED",
1: "CHALLENGE_PAGE",
2: "SESSION_TOKEN",
3: "ACTION_TOKEN",
5: "EXPRESS",
}
WafSettings_WafFeature_value = map[string]int32{
"WAF_FEATURE_UNSPECIFIED": 0,
"CHALLENGE_PAGE": 1,
"SESSION_TOKEN": 2,
"ACTION_TOKEN": 3,
"EXPRESS": 5,
}
)
func (x WafSettings_WafFeature) Enum() *WafSettings_WafFeature {
p := new(WafSettings_WafFeature)
*p = x
return p
}
func (x WafSettings_WafFeature) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WafSettings_WafFeature) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[11].Descriptor()
}
func (WafSettings_WafFeature) Type() protoreflect.EnumType {
return &file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_enumTypes[11]
}
func (x WafSettings_WafFeature) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WafSettings_WafFeature.Descriptor instead.
func (WafSettings_WafFeature) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto_rawDescGZIP(), []int{54, 0}
}
// Web Application Firewalls supported by reCAPTCHA Enterprise.
type WafSettings_WafService int32
const (
// Undefined WAF
WafSettings_WAF_SERVICE_UNSPECIFIED WafSettings_WafService = 0
// Cloud Armor
WafSettings_CA WafSettings_WafService = 1
// Fastly
WafSettings_FASTLY WafSettings_WafService = 3