1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
3
4package recaptchaenterprise
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	timestamp "github.com/golang/protobuf/ptypes/timestamp"
13	_ "google.golang.org/genproto/googleapis/api/annotations"
14	grpc "google.golang.org/grpc"
15)
16
17// Reference imports to suppress errors if they are not otherwise used.
18var _ = proto.Marshal
19var _ = fmt.Errorf
20var _ = math.Inf
21
22// This is a compile-time assertion to ensure that this generated file
23// is compatible with the proto package it is being compiled against.
24// A compilation error at this line likely means your copy of the
25// proto package needs to be updated.
26const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
27
28// Enum that reprensents the types of annotations.
29type AnnotateAssessmentRequest_Annotation int32
30
31const (
32	// Default unspecified type.
33	AnnotateAssessmentRequest_ANNOTATION_UNSPECIFIED AnnotateAssessmentRequest_Annotation = 0
34	// Provides information that the event turned out to be legitimate.
35	AnnotateAssessmentRequest_LEGITIMATE AnnotateAssessmentRequest_Annotation = 1
36	// Provides information that the event turned out to be fraudulent.
37	AnnotateAssessmentRequest_FRAUDULENT AnnotateAssessmentRequest_Annotation = 2
38)
39
40var AnnotateAssessmentRequest_Annotation_name = map[int32]string{
41	0: "ANNOTATION_UNSPECIFIED",
42	1: "LEGITIMATE",
43	2: "FRAUDULENT",
44}
45
46var AnnotateAssessmentRequest_Annotation_value = map[string]int32{
47	"ANNOTATION_UNSPECIFIED": 0,
48	"LEGITIMATE":             1,
49	"FRAUDULENT":             2,
50}
51
52func (x AnnotateAssessmentRequest_Annotation) String() string {
53	return proto.EnumName(AnnotateAssessmentRequest_Annotation_name, int32(x))
54}
55
56func (AnnotateAssessmentRequest_Annotation) EnumDescriptor() ([]byte, []int) {
57	return fileDescriptor_72b3da91aae1398d, []int{1, 0}
58}
59
60// LINT.IfChange(classification_reason)
61// Reasons contributing to the risk analysis verdict.
62type Assessment_ClassificationReason int32
63
64const (
65	// Default unspecified type.
66	Assessment_CLASSIFICATION_REASON_UNSPECIFIED Assessment_ClassificationReason = 0
67	// The event appeared to be automated.
68	Assessment_AUTOMATION Assessment_ClassificationReason = 1
69	// The event was not made from the proper context on the real site.
70	Assessment_UNEXPECTED_ENVIRONMENT Assessment_ClassificationReason = 2
71	// Browsing behavior leading up to the event was generated was out of the
72	// ordinary.
73	Assessment_UNEXPECTED_USAGE_PATTERNS Assessment_ClassificationReason = 4
74	// Too little traffic has been received from this site thus far to generate
75	// quality risk analysis.
76	Assessment_PROVISIONAL_RISK_ANALYSIS Assessment_ClassificationReason = 5
77)
78
79var Assessment_ClassificationReason_name = map[int32]string{
80	0: "CLASSIFICATION_REASON_UNSPECIFIED",
81	1: "AUTOMATION",
82	2: "UNEXPECTED_ENVIRONMENT",
83	4: "UNEXPECTED_USAGE_PATTERNS",
84	5: "PROVISIONAL_RISK_ANALYSIS",
85}
86
87var Assessment_ClassificationReason_value = map[string]int32{
88	"CLASSIFICATION_REASON_UNSPECIFIED": 0,
89	"AUTOMATION":                        1,
90	"UNEXPECTED_ENVIRONMENT":            2,
91	"UNEXPECTED_USAGE_PATTERNS":         4,
92	"PROVISIONAL_RISK_ANALYSIS":         5,
93}
94
95func (x Assessment_ClassificationReason) String() string {
96	return proto.EnumName(Assessment_ClassificationReason_name, int32(x))
97}
98
99func (Assessment_ClassificationReason) EnumDescriptor() ([]byte, []int) {
100	return fileDescriptor_72b3da91aae1398d, []int{3, 0}
101}
102
103// Enum that represents the types of invalid token reasons.
104type TokenProperties_InvalidReason int32
105
106const (
107	// Default unspecified type.
108	TokenProperties_INVALID_REASON_UNSPECIFIED TokenProperties_InvalidReason = 0
109	// If the failure reason was not accounted for.
110	TokenProperties_UNKNOWN_INVALID_REASON TokenProperties_InvalidReason = 1
111	// The provided user verification token was malformed.
112	TokenProperties_MALFORMED TokenProperties_InvalidReason = 2
113	// The user verification token had expired.
114	TokenProperties_EXPIRED TokenProperties_InvalidReason = 3
115	// The user verification had already been seen.
116	TokenProperties_DUPE TokenProperties_InvalidReason = 4
117	// The user verification token did not match the provided site secret.
118	// This may be a configuration error (e.g. development keys used in
119	// production) or end users trying to use verification tokens from other
120	// sites.
121	TokenProperties_SITE_MISMATCH TokenProperties_InvalidReason = 5
122	// The user verification token was not present.  It is a required input.
123	TokenProperties_MISSING TokenProperties_InvalidReason = 6
124)
125
126var TokenProperties_InvalidReason_name = map[int32]string{
127	0: "INVALID_REASON_UNSPECIFIED",
128	1: "UNKNOWN_INVALID_REASON",
129	2: "MALFORMED",
130	3: "EXPIRED",
131	4: "DUPE",
132	5: "SITE_MISMATCH",
133	6: "MISSING",
134}
135
136var TokenProperties_InvalidReason_value = map[string]int32{
137	"INVALID_REASON_UNSPECIFIED": 0,
138	"UNKNOWN_INVALID_REASON":     1,
139	"MALFORMED":                  2,
140	"EXPIRED":                    3,
141	"DUPE":                       4,
142	"SITE_MISMATCH":              5,
143	"MISSING":                    6,
144}
145
146func (x TokenProperties_InvalidReason) String() string {
147	return proto.EnumName(TokenProperties_InvalidReason_name, int32(x))
148}
149
150func (TokenProperties_InvalidReason) EnumDescriptor() ([]byte, []int) {
151	return fileDescriptor_72b3da91aae1398d, []int{5, 0}
152}
153
154// The create assessment request message.
155type CreateAssessmentRequest struct {
156	// Required. The name of the project in which the assessment will be created,
157	// in the format "projects/{project_number}".
158	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
159	// The asessment details.
160	Assessment           *Assessment `protobuf:"bytes,2,opt,name=assessment,proto3" json:"assessment,omitempty"`
161	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
162	XXX_unrecognized     []byte      `json:"-"`
163	XXX_sizecache        int32       `json:"-"`
164}
165
166func (m *CreateAssessmentRequest) Reset()         { *m = CreateAssessmentRequest{} }
167func (m *CreateAssessmentRequest) String() string { return proto.CompactTextString(m) }
168func (*CreateAssessmentRequest) ProtoMessage()    {}
169func (*CreateAssessmentRequest) Descriptor() ([]byte, []int) {
170	return fileDescriptor_72b3da91aae1398d, []int{0}
171}
172
173func (m *CreateAssessmentRequest) XXX_Unmarshal(b []byte) error {
174	return xxx_messageInfo_CreateAssessmentRequest.Unmarshal(m, b)
175}
176func (m *CreateAssessmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
177	return xxx_messageInfo_CreateAssessmentRequest.Marshal(b, m, deterministic)
178}
179func (m *CreateAssessmentRequest) XXX_Merge(src proto.Message) {
180	xxx_messageInfo_CreateAssessmentRequest.Merge(m, src)
181}
182func (m *CreateAssessmentRequest) XXX_Size() int {
183	return xxx_messageInfo_CreateAssessmentRequest.Size(m)
184}
185func (m *CreateAssessmentRequest) XXX_DiscardUnknown() {
186	xxx_messageInfo_CreateAssessmentRequest.DiscardUnknown(m)
187}
188
189var xxx_messageInfo_CreateAssessmentRequest proto.InternalMessageInfo
190
191func (m *CreateAssessmentRequest) GetParent() string {
192	if m != nil {
193		return m.Parent
194	}
195	return ""
196}
197
198func (m *CreateAssessmentRequest) GetAssessment() *Assessment {
199	if m != nil {
200		return m.Assessment
201	}
202	return nil
203}
204
205// The request message to annotate an Assessment.
206type AnnotateAssessmentRequest struct {
207	// Required. The resource name of the Assessment, in the format
208	// "projects/{project_number}/assessments/{assessment_id}".
209	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
210	// The annotation that will be assigned to the Event.
211	Annotation           AnnotateAssessmentRequest_Annotation `protobuf:"varint,2,opt,name=annotation,proto3,enum=google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest_Annotation" json:"annotation,omitempty"`
212	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
213	XXX_unrecognized     []byte                               `json:"-"`
214	XXX_sizecache        int32                                `json:"-"`
215}
216
217func (m *AnnotateAssessmentRequest) Reset()         { *m = AnnotateAssessmentRequest{} }
218func (m *AnnotateAssessmentRequest) String() string { return proto.CompactTextString(m) }
219func (*AnnotateAssessmentRequest) ProtoMessage()    {}
220func (*AnnotateAssessmentRequest) Descriptor() ([]byte, []int) {
221	return fileDescriptor_72b3da91aae1398d, []int{1}
222}
223
224func (m *AnnotateAssessmentRequest) XXX_Unmarshal(b []byte) error {
225	return xxx_messageInfo_AnnotateAssessmentRequest.Unmarshal(m, b)
226}
227func (m *AnnotateAssessmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
228	return xxx_messageInfo_AnnotateAssessmentRequest.Marshal(b, m, deterministic)
229}
230func (m *AnnotateAssessmentRequest) XXX_Merge(src proto.Message) {
231	xxx_messageInfo_AnnotateAssessmentRequest.Merge(m, src)
232}
233func (m *AnnotateAssessmentRequest) XXX_Size() int {
234	return xxx_messageInfo_AnnotateAssessmentRequest.Size(m)
235}
236func (m *AnnotateAssessmentRequest) XXX_DiscardUnknown() {
237	xxx_messageInfo_AnnotateAssessmentRequest.DiscardUnknown(m)
238}
239
240var xxx_messageInfo_AnnotateAssessmentRequest proto.InternalMessageInfo
241
242func (m *AnnotateAssessmentRequest) GetName() string {
243	if m != nil {
244		return m.Name
245	}
246	return ""
247}
248
249func (m *AnnotateAssessmentRequest) GetAnnotation() AnnotateAssessmentRequest_Annotation {
250	if m != nil {
251		return m.Annotation
252	}
253	return AnnotateAssessmentRequest_ANNOTATION_UNSPECIFIED
254}
255
256// Empty response for AnnotateAssessment.
257type AnnotateAssessmentResponse struct {
258	XXX_NoUnkeyedLiteral struct{} `json:"-"`
259	XXX_unrecognized     []byte   `json:"-"`
260	XXX_sizecache        int32    `json:"-"`
261}
262
263func (m *AnnotateAssessmentResponse) Reset()         { *m = AnnotateAssessmentResponse{} }
264func (m *AnnotateAssessmentResponse) String() string { return proto.CompactTextString(m) }
265func (*AnnotateAssessmentResponse) ProtoMessage()    {}
266func (*AnnotateAssessmentResponse) Descriptor() ([]byte, []int) {
267	return fileDescriptor_72b3da91aae1398d, []int{2}
268}
269
270func (m *AnnotateAssessmentResponse) XXX_Unmarshal(b []byte) error {
271	return xxx_messageInfo_AnnotateAssessmentResponse.Unmarshal(m, b)
272}
273func (m *AnnotateAssessmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
274	return xxx_messageInfo_AnnotateAssessmentResponse.Marshal(b, m, deterministic)
275}
276func (m *AnnotateAssessmentResponse) XXX_Merge(src proto.Message) {
277	xxx_messageInfo_AnnotateAssessmentResponse.Merge(m, src)
278}
279func (m *AnnotateAssessmentResponse) XXX_Size() int {
280	return xxx_messageInfo_AnnotateAssessmentResponse.Size(m)
281}
282func (m *AnnotateAssessmentResponse) XXX_DiscardUnknown() {
283	xxx_messageInfo_AnnotateAssessmentResponse.DiscardUnknown(m)
284}
285
286var xxx_messageInfo_AnnotateAssessmentResponse proto.InternalMessageInfo
287
288// A recaptcha assessment resource.
289type Assessment struct {
290	// Output only. The resource name for the Assessment in the format
291	// "projects/{project_number}/assessments/{assessment_id}".
292	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
293	// The event being assessed.
294	Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
295	// Output only. Legitimate event score from 0.0 to 1.0.
296	// (1.0 means very likely legitimate traffic while 0.0 means very likely
297	// non-legitimate traffic).
298	Score float32 `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"`
299	// Output only. Properties of the provided event token.
300	TokenProperties *TokenProperties `protobuf:"bytes,4,opt,name=token_properties,json=tokenProperties,proto3" json:"token_properties,omitempty"`
301	// Output only. Reasons contributing to the risk analysis verdict.
302	Reasons              []Assessment_ClassificationReason `protobuf:"varint,5,rep,packed,name=reasons,proto3,enum=google.cloud.recaptchaenterprise.v1beta1.Assessment_ClassificationReason" json:"reasons,omitempty"`
303	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
304	XXX_unrecognized     []byte                            `json:"-"`
305	XXX_sizecache        int32                             `json:"-"`
306}
307
308func (m *Assessment) Reset()         { *m = Assessment{} }
309func (m *Assessment) String() string { return proto.CompactTextString(m) }
310func (*Assessment) ProtoMessage()    {}
311func (*Assessment) Descriptor() ([]byte, []int) {
312	return fileDescriptor_72b3da91aae1398d, []int{3}
313}
314
315func (m *Assessment) XXX_Unmarshal(b []byte) error {
316	return xxx_messageInfo_Assessment.Unmarshal(m, b)
317}
318func (m *Assessment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
319	return xxx_messageInfo_Assessment.Marshal(b, m, deterministic)
320}
321func (m *Assessment) XXX_Merge(src proto.Message) {
322	xxx_messageInfo_Assessment.Merge(m, src)
323}
324func (m *Assessment) XXX_Size() int {
325	return xxx_messageInfo_Assessment.Size(m)
326}
327func (m *Assessment) XXX_DiscardUnknown() {
328	xxx_messageInfo_Assessment.DiscardUnknown(m)
329}
330
331var xxx_messageInfo_Assessment proto.InternalMessageInfo
332
333func (m *Assessment) GetName() string {
334	if m != nil {
335		return m.Name
336	}
337	return ""
338}
339
340func (m *Assessment) GetEvent() *Event {
341	if m != nil {
342		return m.Event
343	}
344	return nil
345}
346
347func (m *Assessment) GetScore() float32 {
348	if m != nil {
349		return m.Score
350	}
351	return 0
352}
353
354func (m *Assessment) GetTokenProperties() *TokenProperties {
355	if m != nil {
356		return m.TokenProperties
357	}
358	return nil
359}
360
361func (m *Assessment) GetReasons() []Assessment_ClassificationReason {
362	if m != nil {
363		return m.Reasons
364	}
365	return nil
366}
367
368type Event struct {
369	// The user response token provided by the reCAPTCHA client-side integration
370	// on your site.
371	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
372	// The site key that was used to invoke reCAPTCHA on your site and generate
373	// the token.
374	SiteKey              string   `protobuf:"bytes,2,opt,name=site_key,json=siteKey,proto3" json:"site_key,omitempty"`
375	XXX_NoUnkeyedLiteral struct{} `json:"-"`
376	XXX_unrecognized     []byte   `json:"-"`
377	XXX_sizecache        int32    `json:"-"`
378}
379
380func (m *Event) Reset()         { *m = Event{} }
381func (m *Event) String() string { return proto.CompactTextString(m) }
382func (*Event) ProtoMessage()    {}
383func (*Event) Descriptor() ([]byte, []int) {
384	return fileDescriptor_72b3da91aae1398d, []int{4}
385}
386
387func (m *Event) XXX_Unmarshal(b []byte) error {
388	return xxx_messageInfo_Event.Unmarshal(m, b)
389}
390func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
391	return xxx_messageInfo_Event.Marshal(b, m, deterministic)
392}
393func (m *Event) XXX_Merge(src proto.Message) {
394	xxx_messageInfo_Event.Merge(m, src)
395}
396func (m *Event) XXX_Size() int {
397	return xxx_messageInfo_Event.Size(m)
398}
399func (m *Event) XXX_DiscardUnknown() {
400	xxx_messageInfo_Event.DiscardUnknown(m)
401}
402
403var xxx_messageInfo_Event proto.InternalMessageInfo
404
405func (m *Event) GetToken() string {
406	if m != nil {
407		return m.Token
408	}
409	return ""
410}
411
412func (m *Event) GetSiteKey() string {
413	if m != nil {
414		return m.SiteKey
415	}
416	return ""
417}
418
419type TokenProperties struct {
420	// Output only. Whether the provided user response token is valid.
421	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
422	// Output only. Reason associated with the response when valid = false.
423	InvalidReason TokenProperties_InvalidReason `protobuf:"varint,2,opt,name=invalid_reason,json=invalidReason,proto3,enum=google.cloud.recaptchaenterprise.v1beta1.TokenProperties_InvalidReason" json:"invalid_reason,omitempty"`
424	// Output only. The timestamp corresponding to the generation of the token.
425	CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
426	// Output only. The hostname of the page on which the token was generated.
427	Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
428	// Output only. Action name provided at token generation.
429	Action               string   `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"`
430	XXX_NoUnkeyedLiteral struct{} `json:"-"`
431	XXX_unrecognized     []byte   `json:"-"`
432	XXX_sizecache        int32    `json:"-"`
433}
434
435func (m *TokenProperties) Reset()         { *m = TokenProperties{} }
436func (m *TokenProperties) String() string { return proto.CompactTextString(m) }
437func (*TokenProperties) ProtoMessage()    {}
438func (*TokenProperties) Descriptor() ([]byte, []int) {
439	return fileDescriptor_72b3da91aae1398d, []int{5}
440}
441
442func (m *TokenProperties) XXX_Unmarshal(b []byte) error {
443	return xxx_messageInfo_TokenProperties.Unmarshal(m, b)
444}
445func (m *TokenProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
446	return xxx_messageInfo_TokenProperties.Marshal(b, m, deterministic)
447}
448func (m *TokenProperties) XXX_Merge(src proto.Message) {
449	xxx_messageInfo_TokenProperties.Merge(m, src)
450}
451func (m *TokenProperties) XXX_Size() int {
452	return xxx_messageInfo_TokenProperties.Size(m)
453}
454func (m *TokenProperties) XXX_DiscardUnknown() {
455	xxx_messageInfo_TokenProperties.DiscardUnknown(m)
456}
457
458var xxx_messageInfo_TokenProperties proto.InternalMessageInfo
459
460func (m *TokenProperties) GetValid() bool {
461	if m != nil {
462		return m.Valid
463	}
464	return false
465}
466
467func (m *TokenProperties) GetInvalidReason() TokenProperties_InvalidReason {
468	if m != nil {
469		return m.InvalidReason
470	}
471	return TokenProperties_INVALID_REASON_UNSPECIFIED
472}
473
474func (m *TokenProperties) GetCreateTime() *timestamp.Timestamp {
475	if m != nil {
476		return m.CreateTime
477	}
478	return nil
479}
480
481func (m *TokenProperties) GetHostname() string {
482	if m != nil {
483		return m.Hostname
484	}
485	return ""
486}
487
488func (m *TokenProperties) GetAction() string {
489	if m != nil {
490		return m.Action
491	}
492	return ""
493}
494
495func init() {
496	proto.RegisterEnum("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest_Annotation", AnnotateAssessmentRequest_Annotation_name, AnnotateAssessmentRequest_Annotation_value)
497	proto.RegisterEnum("google.cloud.recaptchaenterprise.v1beta1.Assessment_ClassificationReason", Assessment_ClassificationReason_name, Assessment_ClassificationReason_value)
498	proto.RegisterEnum("google.cloud.recaptchaenterprise.v1beta1.TokenProperties_InvalidReason", TokenProperties_InvalidReason_name, TokenProperties_InvalidReason_value)
499	proto.RegisterType((*CreateAssessmentRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest")
500	proto.RegisterType((*AnnotateAssessmentRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest")
501	proto.RegisterType((*AnnotateAssessmentResponse)(nil), "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse")
502	proto.RegisterType((*Assessment)(nil), "google.cloud.recaptchaenterprise.v1beta1.Assessment")
503	proto.RegisterType((*Event)(nil), "google.cloud.recaptchaenterprise.v1beta1.Event")
504	proto.RegisterType((*TokenProperties)(nil), "google.cloud.recaptchaenterprise.v1beta1.TokenProperties")
505}
506
507func init() {
508	proto.RegisterFile("google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto", fileDescriptor_72b3da91aae1398d)
509}
510
511var fileDescriptor_72b3da91aae1398d = []byte{
512	// 945 bytes of a gzipped FileDescriptorProto
513	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6f, 0xe3, 0x44,
514	0x14, 0xc7, 0xf9, 0xe8, 0xc7, 0xab, 0xda, 0x35, 0xa3, 0xd5, 0x92, 0x46, 0x0b, 0x74, 0x2d, 0x81,
515	0xa2, 0x1e, 0x6c, 0xb5, 0x20, 0x04, 0x5d, 0x38, 0xb8, 0xce, 0x34, 0x3b, 0x6a, 0xe2, 0x44, 0x63,
516	0xa7, 0x2c, 0x50, 0xc9, 0x72, 0xdd, 0xd9, 0xac, 0xd9, 0xc4, 0x36, 0x1e, 0xb7, 0xd2, 0x0a, 0xed,
517	0x85, 0x0b, 0x67, 0xc4, 0x95, 0x13, 0x17, 0x24, 0xfe, 0x13, 0xb8, 0x70, 0xe0, 0xcc, 0x8d, 0x0b,
518	0x57, 0xfe, 0x00, 0x84, 0x3c, 0x63, 0x27, 0xe9, 0xe2, 0x85, 0x52, 0xb8, 0xe5, 0xcd, 0x7b, 0xf3,
519	0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, 0x88, 0x8e, 0xe7, 0x76, 0xae,
553	0x4c, 0x7e, 0x20, 0x5e, 0x7d, 0x53, 0x2a, 0x93, 0xb4, 0xb4, 0xaf, 0x14, 0xd8, 0xbc, 0x52, 0x11,
554	0x7a, 0x0d, 0xda, 0xc4, 0x3e, 0x31, 0xfb, 0xa4, 0x5b, 0x4d, 0xb0, 0x20, 0xf4, 0xd8, 0x1e, 0x7e,
555	0x68, 0x7b, 0x57, 0xe3, 0x54, 0x05, 0x6d, 0xc2, 0xfa, 0xc0, 0xec, 0x1f, 0x0d, 0xe9, 0x00, 0x77,
556	0xd5, 0x1a, 0xda, 0x80, 0x55, 0xfc, 0x70, 0x44, 0x28, 0xee, 0xaa, 0x75, 0xb4, 0x06, 0x8d, 0xee,
557	0x78, 0x84, 0xd5, 0x06, 0x7a, 0x19, 0x36, 0x1d, 0xe2, 0x62, 0x6f, 0x40, 0x9c, 0x81, 0xe9, 0x5a,
558	0x0f, 0xd4, 0x66, 0x1e, 0x39, 0x20, 0x8e, 0x43, 0xec, 0x9e, 0xba, 0xb2, 0xff, 0x53, 0x1d, 0xee,
559	0xd1, 0x72, 0xa2, 0x78, 0x3e, 0x51, 0x87, 0xa5, 0x97, 0x61, 0xc0, 0x4e, 0xf6, 0x0e, 0xf3, 0xb9,
560	0xa2, 0x1f, 0x14, 0x50, 0x9f, 0xd7, 0x61, 0x64, 0x5e, 0x9f, 0x97, 0x17, 0x68, 0x78, 0xfb, 0x46,
561	0xba, 0xac, 0xbd, 0xff, 0xc5, 0xcf, 0xbf, 0x7e, 0x5d, 0x7b, 0x47, 0xeb, 0xcc, 0x3f, 0x55, 0x9f,
562	0x4b, 0xed, 0xff, 0x20, 0x49, 0xe3, 0x4f, 0x59, 0x90, 0x71, 0x63, 0xf7, 0x99, 0xb1, 0x10, 0x6f,
563	0x7e, 0xb0, 0xa4, 0xe4, 0xe8, 0x17, 0x05, 0xd0, 0x5f, 0xe5, 0x0d, 0x59, 0xff, 0x83, 0x34, 0xb7,
564	0xbb, 0xff, 0x0d, 0xa4, 0x50, 0xd8, 0xb2, 0xbf, 0xbd, 0x45, 0x7f, 0xf9, 0x5e, 0x2d, 0x75, 0xb7,
565	0xdc, 0x9c, 0xb1, 0xfb, 0xec, 0xa0, 0xf8, 0x0c, 0xb0, 0x03, 0x65, 0xf7, 0xf0, 0x0f, 0x05, 0xde,
566	0x0c, 0xe2, 0x59, 0x59, 0xc9, 0xdf, 0xd4, 0x70, 0xd8, 0xaa, 0x60, 0x7e, 0x94, 0xef, 0xfd, 0x48,
567	0xf9, 0xf8, 0x93, 0xe2, 0xfe, 0x24, 0x9e, 0xfa, 0xd1, 0x44, 0x8f, 0xd3, 0x89, 0x31, 0x61, 0x91,
568	0x78, 0x15, 0x86, 0x74, 0xf9, 0x49, 0xc8, 0xff, 0xf9, 0x6f, 0xc4, 0xfd, 0x0a, 0xdf, 0xb7, 0xb5,
569	0x46, 0xcf, 0xa2, 0xf8, 0xfb, 0x5a, 0xa7, 0x27, 0x93, 0x58, 0x62, 0x5c, 0x15, 0xd5, 0xe8, 0xc5,
570	0x06, 0xfe, 0x58, 0x86, 0x9e, 0x8a, 0xd0, 0xd3, 0x8a, 0xd0, 0xd3, 0x13, 0x99, 0xf0, 0x6c, 0x45,
571	0x14, 0xf9, 0xd6, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x13, 0x3b, 0x55, 0xea, 0x08, 0x00,
572	0x00,
573}
574
575// Reference imports to suppress errors if they are not otherwise used.
576var _ context.Context
577var _ grpc.ClientConn
578
579// This is a compile-time assertion to ensure that this generated file
580// is compatible with the grpc package it is being compiled against.
581const _ = grpc.SupportPackageIsVersion4
582
583// RecaptchaEnterpriseServiceV1Beta1Client is the client API for RecaptchaEnterpriseServiceV1Beta1 service.
584//
585// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
586type RecaptchaEnterpriseServiceV1Beta1Client interface {
587	// Creates an Assessment of the likelihood an event is legitimate.
588	CreateAssessment(ctx context.Context, in *CreateAssessmentRequest, opts ...grpc.CallOption) (*Assessment, error)
589	// Annotates a previously created Assessment to provide additional information
590	// on whether the event turned out to be authentic or fradulent.
591	AnnotateAssessment(ctx context.Context, in *AnnotateAssessmentRequest, opts ...grpc.CallOption) (*AnnotateAssessmentResponse, error)
592}
593
594type recaptchaEnterpriseServiceV1Beta1Client struct {
595	cc *grpc.ClientConn
596}
597
598func NewRecaptchaEnterpriseServiceV1Beta1Client(cc *grpc.ClientConn) RecaptchaEnterpriseServiceV1Beta1Client {
599	return &recaptchaEnterpriseServiceV1Beta1Client{cc}
600}
601
602func (c *recaptchaEnterpriseServiceV1Beta1Client) CreateAssessment(ctx context.Context, in *CreateAssessmentRequest, opts ...grpc.CallOption) (*Assessment, error) {
603	out := new(Assessment)
604	err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/CreateAssessment", in, out, opts...)
605	if err != nil {
606		return nil, err
607	}
608	return out, nil
609}
610
611func (c *recaptchaEnterpriseServiceV1Beta1Client) AnnotateAssessment(ctx context.Context, in *AnnotateAssessmentRequest, opts ...grpc.CallOption) (*AnnotateAssessmentResponse, error) {
612	out := new(AnnotateAssessmentResponse)
613	err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/AnnotateAssessment", in, out, opts...)
614	if err != nil {
615		return nil, err
616	}
617	return out, nil
618}
619
620// RecaptchaEnterpriseServiceV1Beta1Server is the server API for RecaptchaEnterpriseServiceV1Beta1 service.
621type RecaptchaEnterpriseServiceV1Beta1Server interface {
622	// Creates an Assessment of the likelihood an event is legitimate.
623	CreateAssessment(context.Context, *CreateAssessmentRequest) (*Assessment, error)
624	// Annotates a previously created Assessment to provide additional information
625	// on whether the event turned out to be authentic or fradulent.
626	AnnotateAssessment(context.Context, *AnnotateAssessmentRequest) (*AnnotateAssessmentResponse, error)
627}
628
629func RegisterRecaptchaEnterpriseServiceV1Beta1Server(s *grpc.Server, srv RecaptchaEnterpriseServiceV1Beta1Server) {
630	s.RegisterService(&_RecaptchaEnterpriseServiceV1Beta1_serviceDesc, srv)
631}
632
633func _RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
634	in := new(CreateAssessmentRequest)
635	if err := dec(in); err != nil {
636		return nil, err
637	}
638	if interceptor == nil {
639		return srv.(RecaptchaEnterpriseServiceV1Beta1Server).CreateAssessment(ctx, in)
640	}
641	info := &grpc.UnaryServerInfo{
642		Server:     srv,
643		FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/CreateAssessment",
644	}
645	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
646		return srv.(RecaptchaEnterpriseServiceV1Beta1Server).CreateAssessment(ctx, req.(*CreateAssessmentRequest))
647	}
648	return interceptor(ctx, in, info, handler)
649}
650
651func _RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
652	in := new(AnnotateAssessmentRequest)
653	if err := dec(in); err != nil {
654		return nil, err
655	}
656	if interceptor == nil {
657		return srv.(RecaptchaEnterpriseServiceV1Beta1Server).AnnotateAssessment(ctx, in)
658	}
659	info := &grpc.UnaryServerInfo{
660		Server:     srv,
661		FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/AnnotateAssessment",
662	}
663	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
664		return srv.(RecaptchaEnterpriseServiceV1Beta1Server).AnnotateAssessment(ctx, req.(*AnnotateAssessmentRequest))
665	}
666	return interceptor(ctx, in, info, handler)
667}
668
669var _RecaptchaEnterpriseServiceV1Beta1_serviceDesc = grpc.ServiceDesc{
670	ServiceName: "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1",
671	HandlerType: (*RecaptchaEnterpriseServiceV1Beta1Server)(nil),
672	Methods: []grpc.MethodDesc{
673		{
674			MethodName: "CreateAssessment",
675			Handler:    _RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_Handler,
676		},
677		{
678			MethodName: "AnnotateAssessment",
679			Handler:    _RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_Handler,
680		},
681	},
682	Streams:  []grpc.StreamDesc{},
683	Metadata: "google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto",
684}
685