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 empty "github.com/golang/protobuf/ptypes/empty" 13 timestamp "github.com/golang/protobuf/ptypes/timestamp" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 field_mask "google.golang.org/genproto/protobuf/field_mask" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19) 20 21// Reference imports to suppress errors if they are not otherwise used. 22var _ = proto.Marshal 23var _ = fmt.Errorf 24var _ = math.Inf 25 26// This is a compile-time assertion to ensure that this generated file 27// is compatible with the proto package it is being compiled against. 28// A compilation error at this line likely means your copy of the 29// proto package needs to be updated. 30const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 31 32// Enum that reprensents the types of annotations. 33type AnnotateAssessmentRequest_Annotation int32 34 35const ( 36 // Default unspecified type. 37 AnnotateAssessmentRequest_ANNOTATION_UNSPECIFIED AnnotateAssessmentRequest_Annotation = 0 38 // Provides information that the event turned out to be legitimate. 39 AnnotateAssessmentRequest_LEGITIMATE AnnotateAssessmentRequest_Annotation = 1 40 // Provides information that the event turned out to be fraudulent. 41 AnnotateAssessmentRequest_FRAUDULENT AnnotateAssessmentRequest_Annotation = 2 42) 43 44var AnnotateAssessmentRequest_Annotation_name = map[int32]string{ 45 0: "ANNOTATION_UNSPECIFIED", 46 1: "LEGITIMATE", 47 2: "FRAUDULENT", 48} 49 50var AnnotateAssessmentRequest_Annotation_value = map[string]int32{ 51 "ANNOTATION_UNSPECIFIED": 0, 52 "LEGITIMATE": 1, 53 "FRAUDULENT": 2, 54} 55 56func (x AnnotateAssessmentRequest_Annotation) String() string { 57 return proto.EnumName(AnnotateAssessmentRequest_Annotation_name, int32(x)) 58} 59 60func (AnnotateAssessmentRequest_Annotation) EnumDescriptor() ([]byte, []int) { 61 return fileDescriptor_72b3da91aae1398d, []int{1, 0} 62} 63 64// LINT.IfChange(classification_reason) 65// Reasons contributing to the risk analysis verdict. 66type Assessment_ClassificationReason int32 67 68const ( 69 // Default unspecified type. 70 Assessment_CLASSIFICATION_REASON_UNSPECIFIED Assessment_ClassificationReason = 0 71 // Interactions matched the behavior of an automated agent. 72 Assessment_AUTOMATION Assessment_ClassificationReason = 1 73 // The event originated from an illegitimate environment. 74 Assessment_UNEXPECTED_ENVIRONMENT Assessment_ClassificationReason = 2 75 // Traffic volume from the event source is higher than normal. 76 Assessment_TOO_MUCH_TRAFFIC Assessment_ClassificationReason = 3 77 // Interactions with the site were significantly different than expected 78 // patterns. 79 Assessment_UNEXPECTED_USAGE_PATTERNS Assessment_ClassificationReason = 4 80 // Too little traffic has been received from this site thus far to generate 81 // quality risk analysis. 82 Assessment_LOW_CONFIDENCE_SCORE Assessment_ClassificationReason = 5 83) 84 85var Assessment_ClassificationReason_name = map[int32]string{ 86 0: "CLASSIFICATION_REASON_UNSPECIFIED", 87 1: "AUTOMATION", 88 2: "UNEXPECTED_ENVIRONMENT", 89 3: "TOO_MUCH_TRAFFIC", 90 4: "UNEXPECTED_USAGE_PATTERNS", 91 5: "LOW_CONFIDENCE_SCORE", 92} 93 94var Assessment_ClassificationReason_value = map[string]int32{ 95 "CLASSIFICATION_REASON_UNSPECIFIED": 0, 96 "AUTOMATION": 1, 97 "UNEXPECTED_ENVIRONMENT": 2, 98 "TOO_MUCH_TRAFFIC": 3, 99 "UNEXPECTED_USAGE_PATTERNS": 4, 100 "LOW_CONFIDENCE_SCORE": 5, 101} 102 103func (x Assessment_ClassificationReason) String() string { 104 return proto.EnumName(Assessment_ClassificationReason_name, int32(x)) 105} 106 107func (Assessment_ClassificationReason) EnumDescriptor() ([]byte, []int) { 108 return fileDescriptor_72b3da91aae1398d, []int{3, 0} 109} 110 111// LINT.IfChange 112// Enum that represents the types of invalid token reasons. 113type TokenProperties_InvalidReason int32 114 115const ( 116 // Default unspecified type. 117 TokenProperties_INVALID_REASON_UNSPECIFIED TokenProperties_InvalidReason = 0 118 // If the failure reason was not accounted for. 119 TokenProperties_UNKNOWN_INVALID_REASON TokenProperties_InvalidReason = 1 120 // The provided user verification token was malformed. 121 TokenProperties_MALFORMED TokenProperties_InvalidReason = 2 122 // The user verification token had expired. 123 TokenProperties_EXPIRED TokenProperties_InvalidReason = 3 124 // The user verification had already been seen. 125 TokenProperties_DUPE TokenProperties_InvalidReason = 4 126 // The user verification token did not match the provided site key. 127 // This may be a configuration error (e.g. development keys used in 128 // production) or end users trying to use verification tokens from other 129 // sites. 130 TokenProperties_SITE_MISMATCH TokenProperties_InvalidReason = 5 131 // The user verification token was not present. It is a required input. 132 TokenProperties_MISSING TokenProperties_InvalidReason = 6 133) 134 135var TokenProperties_InvalidReason_name = map[int32]string{ 136 0: "INVALID_REASON_UNSPECIFIED", 137 1: "UNKNOWN_INVALID_REASON", 138 2: "MALFORMED", 139 3: "EXPIRED", 140 4: "DUPE", 141 5: "SITE_MISMATCH", 142 6: "MISSING", 143} 144 145var TokenProperties_InvalidReason_value = map[string]int32{ 146 "INVALID_REASON_UNSPECIFIED": 0, 147 "UNKNOWN_INVALID_REASON": 1, 148 "MALFORMED": 2, 149 "EXPIRED": 3, 150 "DUPE": 4, 151 "SITE_MISMATCH": 5, 152 "MISSING": 6, 153} 154 155func (x TokenProperties_InvalidReason) String() string { 156 return proto.EnumName(TokenProperties_InvalidReason_name, int32(x)) 157} 158 159func (TokenProperties_InvalidReason) EnumDescriptor() ([]byte, []int) { 160 return fileDescriptor_72b3da91aae1398d, []int{5, 0} 161} 162 163// Enum that represents the integration types for web keys. 164type WebKeySettings_IntegrationType int32 165 166const ( 167 // Default type that indicates this enum hasn't been specified. This is not 168 // a valid IntegrationType, one of the other types must be specified 169 // instead. 170 WebKeySettings_INTEGRATION_TYPE_UNSPECIFIED WebKeySettings_IntegrationType = 0 171 // Only used to produce scores. It doesn't display the "I'm not a robot" 172 // checkbox and never shows captcha challenges. 173 WebKeySettings_SCORE_ONLY WebKeySettings_IntegrationType = 1 174 // Displays the "I'm not a robot" checkbox and may show captcha challenges 175 // after it is checked. 176 WebKeySettings_CHECKBOX_CHALLENGE WebKeySettings_IntegrationType = 2 177 // Doesn't display the "I'm not a robot" checkbox, but may show captcha 178 // challenges after risk analysis. 179 WebKeySettings_INVISIBLE_CHALLENGE WebKeySettings_IntegrationType = 3 180) 181 182var WebKeySettings_IntegrationType_name = map[int32]string{ 183 0: "INTEGRATION_TYPE_UNSPECIFIED", 184 1: "SCORE_ONLY", 185 2: "CHECKBOX_CHALLENGE", 186 3: "INVISIBLE_CHALLENGE", 187} 188 189var WebKeySettings_IntegrationType_value = map[string]int32{ 190 "INTEGRATION_TYPE_UNSPECIFIED": 0, 191 "SCORE_ONLY": 1, 192 "CHECKBOX_CHALLENGE": 2, 193 "INVISIBLE_CHALLENGE": 3, 194} 195 196func (x WebKeySettings_IntegrationType) String() string { 197 return proto.EnumName(WebKeySettings_IntegrationType_name, int32(x)) 198} 199 200func (WebKeySettings_IntegrationType) EnumDescriptor() ([]byte, []int) { 201 return fileDescriptor_72b3da91aae1398d, []int{13, 0} 202} 203 204// Enum that represents the possible challenge frequency and difficulty 205// configurations for a web key. 206type WebKeySettings_ChallengeSecurityPreference int32 207 208const ( 209 // Default type that indicates this enum hasn't been specified. 210 WebKeySettings_CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED WebKeySettings_ChallengeSecurityPreference = 0 211 // Key tends to show fewer and easier challenges. 212 WebKeySettings_USABILITY WebKeySettings_ChallengeSecurityPreference = 1 213 // Key tends to show balanced (in amount and difficulty) challenges. 214 WebKeySettings_BALANCED WebKeySettings_ChallengeSecurityPreference = 2 215 // Key tends to show more and harder challenges. 216 WebKeySettings_SECURITY WebKeySettings_ChallengeSecurityPreference = 3 217) 218 219var WebKeySettings_ChallengeSecurityPreference_name = map[int32]string{ 220 0: "CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED", 221 1: "USABILITY", 222 2: "BALANCED", 223 3: "SECURITY", 224} 225 226var WebKeySettings_ChallengeSecurityPreference_value = map[string]int32{ 227 "CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED": 0, 228 "USABILITY": 1, 229 "BALANCED": 2, 230 "SECURITY": 3, 231} 232 233func (x WebKeySettings_ChallengeSecurityPreference) String() string { 234 return proto.EnumName(WebKeySettings_ChallengeSecurityPreference_name, int32(x)) 235} 236 237func (WebKeySettings_ChallengeSecurityPreference) EnumDescriptor() ([]byte, []int) { 238 return fileDescriptor_72b3da91aae1398d, []int{13, 1} 239} 240 241// The create assessment request message. 242type CreateAssessmentRequest struct { 243 // Required. The name of the project in which the assessment will be created, 244 // in the format "projects/{project_number}". 245 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 246 // Required. The assessment details. 247 Assessment *Assessment `protobuf:"bytes,2,opt,name=assessment,proto3" json:"assessment,omitempty"` 248 XXX_NoUnkeyedLiteral struct{} `json:"-"` 249 XXX_unrecognized []byte `json:"-"` 250 XXX_sizecache int32 `json:"-"` 251} 252 253func (m *CreateAssessmentRequest) Reset() { *m = CreateAssessmentRequest{} } 254func (m *CreateAssessmentRequest) String() string { return proto.CompactTextString(m) } 255func (*CreateAssessmentRequest) ProtoMessage() {} 256func (*CreateAssessmentRequest) Descriptor() ([]byte, []int) { 257 return fileDescriptor_72b3da91aae1398d, []int{0} 258} 259 260func (m *CreateAssessmentRequest) XXX_Unmarshal(b []byte) error { 261 return xxx_messageInfo_CreateAssessmentRequest.Unmarshal(m, b) 262} 263func (m *CreateAssessmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 264 return xxx_messageInfo_CreateAssessmentRequest.Marshal(b, m, deterministic) 265} 266func (m *CreateAssessmentRequest) XXX_Merge(src proto.Message) { 267 xxx_messageInfo_CreateAssessmentRequest.Merge(m, src) 268} 269func (m *CreateAssessmentRequest) XXX_Size() int { 270 return xxx_messageInfo_CreateAssessmentRequest.Size(m) 271} 272func (m *CreateAssessmentRequest) XXX_DiscardUnknown() { 273 xxx_messageInfo_CreateAssessmentRequest.DiscardUnknown(m) 274} 275 276var xxx_messageInfo_CreateAssessmentRequest proto.InternalMessageInfo 277 278func (m *CreateAssessmentRequest) GetParent() string { 279 if m != nil { 280 return m.Parent 281 } 282 return "" 283} 284 285func (m *CreateAssessmentRequest) GetAssessment() *Assessment { 286 if m != nil { 287 return m.Assessment 288 } 289 return nil 290} 291 292// The request message to annotate an Assessment. 293type AnnotateAssessmentRequest struct { 294 // Required. The resource name of the Assessment, in the format 295 // "projects/{project_number}/assessments/{assessment_id}". 296 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 297 // Required. The annotation that will be assigned to the Event. 298 Annotation AnnotateAssessmentRequest_Annotation `protobuf:"varint,2,opt,name=annotation,proto3,enum=google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest_Annotation" json:"annotation,omitempty"` 299 XXX_NoUnkeyedLiteral struct{} `json:"-"` 300 XXX_unrecognized []byte `json:"-"` 301 XXX_sizecache int32 `json:"-"` 302} 303 304func (m *AnnotateAssessmentRequest) Reset() { *m = AnnotateAssessmentRequest{} } 305func (m *AnnotateAssessmentRequest) String() string { return proto.CompactTextString(m) } 306func (*AnnotateAssessmentRequest) ProtoMessage() {} 307func (*AnnotateAssessmentRequest) Descriptor() ([]byte, []int) { 308 return fileDescriptor_72b3da91aae1398d, []int{1} 309} 310 311func (m *AnnotateAssessmentRequest) XXX_Unmarshal(b []byte) error { 312 return xxx_messageInfo_AnnotateAssessmentRequest.Unmarshal(m, b) 313} 314func (m *AnnotateAssessmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 315 return xxx_messageInfo_AnnotateAssessmentRequest.Marshal(b, m, deterministic) 316} 317func (m *AnnotateAssessmentRequest) XXX_Merge(src proto.Message) { 318 xxx_messageInfo_AnnotateAssessmentRequest.Merge(m, src) 319} 320func (m *AnnotateAssessmentRequest) XXX_Size() int { 321 return xxx_messageInfo_AnnotateAssessmentRequest.Size(m) 322} 323func (m *AnnotateAssessmentRequest) XXX_DiscardUnknown() { 324 xxx_messageInfo_AnnotateAssessmentRequest.DiscardUnknown(m) 325} 326 327var xxx_messageInfo_AnnotateAssessmentRequest proto.InternalMessageInfo 328 329func (m *AnnotateAssessmentRequest) GetName() string { 330 if m != nil { 331 return m.Name 332 } 333 return "" 334} 335 336func (m *AnnotateAssessmentRequest) GetAnnotation() AnnotateAssessmentRequest_Annotation { 337 if m != nil { 338 return m.Annotation 339 } 340 return AnnotateAssessmentRequest_ANNOTATION_UNSPECIFIED 341} 342 343// Empty response for AnnotateAssessment. 344type AnnotateAssessmentResponse struct { 345 XXX_NoUnkeyedLiteral struct{} `json:"-"` 346 XXX_unrecognized []byte `json:"-"` 347 XXX_sizecache int32 `json:"-"` 348} 349 350func (m *AnnotateAssessmentResponse) Reset() { *m = AnnotateAssessmentResponse{} } 351func (m *AnnotateAssessmentResponse) String() string { return proto.CompactTextString(m) } 352func (*AnnotateAssessmentResponse) ProtoMessage() {} 353func (*AnnotateAssessmentResponse) Descriptor() ([]byte, []int) { 354 return fileDescriptor_72b3da91aae1398d, []int{2} 355} 356 357func (m *AnnotateAssessmentResponse) XXX_Unmarshal(b []byte) error { 358 return xxx_messageInfo_AnnotateAssessmentResponse.Unmarshal(m, b) 359} 360func (m *AnnotateAssessmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 361 return xxx_messageInfo_AnnotateAssessmentResponse.Marshal(b, m, deterministic) 362} 363func (m *AnnotateAssessmentResponse) XXX_Merge(src proto.Message) { 364 xxx_messageInfo_AnnotateAssessmentResponse.Merge(m, src) 365} 366func (m *AnnotateAssessmentResponse) XXX_Size() int { 367 return xxx_messageInfo_AnnotateAssessmentResponse.Size(m) 368} 369func (m *AnnotateAssessmentResponse) XXX_DiscardUnknown() { 370 xxx_messageInfo_AnnotateAssessmentResponse.DiscardUnknown(m) 371} 372 373var xxx_messageInfo_AnnotateAssessmentResponse proto.InternalMessageInfo 374 375// A recaptcha assessment resource. 376type Assessment struct { 377 // Output only. The resource name for the Assessment in the format 378 // "projects/{project_number}/assessments/{assessment_id}". 379 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 380 // The event being assessed. 381 Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` 382 // Output only. Legitimate event score from 0.0 to 1.0. 383 // (1.0 means very likely legitimate traffic while 0.0 means very likely 384 // non-legitimate traffic). 385 Score float32 `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"` 386 // Output only. Properties of the provided event token. 387 TokenProperties *TokenProperties `protobuf:"bytes,4,opt,name=token_properties,json=tokenProperties,proto3" json:"token_properties,omitempty"` 388 // Output only. Reasons contributing to the risk analysis verdict. 389 Reasons []Assessment_ClassificationReason `protobuf:"varint,5,rep,packed,name=reasons,proto3,enum=google.cloud.recaptchaenterprise.v1beta1.Assessment_ClassificationReason" json:"reasons,omitempty"` 390 XXX_NoUnkeyedLiteral struct{} `json:"-"` 391 XXX_unrecognized []byte `json:"-"` 392 XXX_sizecache int32 `json:"-"` 393} 394 395func (m *Assessment) Reset() { *m = Assessment{} } 396func (m *Assessment) String() string { return proto.CompactTextString(m) } 397func (*Assessment) ProtoMessage() {} 398func (*Assessment) Descriptor() ([]byte, []int) { 399 return fileDescriptor_72b3da91aae1398d, []int{3} 400} 401 402func (m *Assessment) XXX_Unmarshal(b []byte) error { 403 return xxx_messageInfo_Assessment.Unmarshal(m, b) 404} 405func (m *Assessment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 406 return xxx_messageInfo_Assessment.Marshal(b, m, deterministic) 407} 408func (m *Assessment) XXX_Merge(src proto.Message) { 409 xxx_messageInfo_Assessment.Merge(m, src) 410} 411func (m *Assessment) XXX_Size() int { 412 return xxx_messageInfo_Assessment.Size(m) 413} 414func (m *Assessment) XXX_DiscardUnknown() { 415 xxx_messageInfo_Assessment.DiscardUnknown(m) 416} 417 418var xxx_messageInfo_Assessment proto.InternalMessageInfo 419 420func (m *Assessment) GetName() string { 421 if m != nil { 422 return m.Name 423 } 424 return "" 425} 426 427func (m *Assessment) GetEvent() *Event { 428 if m != nil { 429 return m.Event 430 } 431 return nil 432} 433 434func (m *Assessment) GetScore() float32 { 435 if m != nil { 436 return m.Score 437 } 438 return 0 439} 440 441func (m *Assessment) GetTokenProperties() *TokenProperties { 442 if m != nil { 443 return m.TokenProperties 444 } 445 return nil 446} 447 448func (m *Assessment) GetReasons() []Assessment_ClassificationReason { 449 if m != nil { 450 return m.Reasons 451 } 452 return nil 453} 454 455type Event struct { 456 // Optional. The user response token provided by the reCAPTCHA client-side integration 457 // on your site. 458 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 459 // Optional. The site key that was used to invoke reCAPTCHA on your site and generate 460 // the token. 461 SiteKey string `protobuf:"bytes,2,opt,name=site_key,json=siteKey,proto3" json:"site_key,omitempty"` 462 // Optional. The user agent present in the request from the user's device related to 463 // this event. 464 UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` 465 // Optional. The IP address in the request from the user's device related to this event. 466 UserIpAddress string `protobuf:"bytes,4,opt,name=user_ip_address,json=userIpAddress,proto3" json:"user_ip_address,omitempty"` 467 // Optional. The expected action for this type of event. This should be the same action 468 // provided at token generation time on client-side platforms already 469 // integrated with recaptcha enterprise. 470 ExpectedAction string `protobuf:"bytes,5,opt,name=expected_action,json=expectedAction,proto3" json:"expected_action,omitempty"` 471 XXX_NoUnkeyedLiteral struct{} `json:"-"` 472 XXX_unrecognized []byte `json:"-"` 473 XXX_sizecache int32 `json:"-"` 474} 475 476func (m *Event) Reset() { *m = Event{} } 477func (m *Event) String() string { return proto.CompactTextString(m) } 478func (*Event) ProtoMessage() {} 479func (*Event) Descriptor() ([]byte, []int) { 480 return fileDescriptor_72b3da91aae1398d, []int{4} 481} 482 483func (m *Event) XXX_Unmarshal(b []byte) error { 484 return xxx_messageInfo_Event.Unmarshal(m, b) 485} 486func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 487 return xxx_messageInfo_Event.Marshal(b, m, deterministic) 488} 489func (m *Event) XXX_Merge(src proto.Message) { 490 xxx_messageInfo_Event.Merge(m, src) 491} 492func (m *Event) XXX_Size() int { 493 return xxx_messageInfo_Event.Size(m) 494} 495func (m *Event) XXX_DiscardUnknown() { 496 xxx_messageInfo_Event.DiscardUnknown(m) 497} 498 499var xxx_messageInfo_Event proto.InternalMessageInfo 500 501func (m *Event) GetToken() string { 502 if m != nil { 503 return m.Token 504 } 505 return "" 506} 507 508func (m *Event) GetSiteKey() string { 509 if m != nil { 510 return m.SiteKey 511 } 512 return "" 513} 514 515func (m *Event) GetUserAgent() string { 516 if m != nil { 517 return m.UserAgent 518 } 519 return "" 520} 521 522func (m *Event) GetUserIpAddress() string { 523 if m != nil { 524 return m.UserIpAddress 525 } 526 return "" 527} 528 529func (m *Event) GetExpectedAction() string { 530 if m != nil { 531 return m.ExpectedAction 532 } 533 return "" 534} 535 536type TokenProperties struct { 537 // Whether the provided user response token is valid. 538 Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` 539 // Reason associated with the response when valid = false. 540 InvalidReason TokenProperties_InvalidReason `protobuf:"varint,2,opt,name=invalid_reason,json=invalidReason,proto3,enum=google.cloud.recaptchaenterprise.v1beta1.TokenProperties_InvalidReason" json:"invalid_reason,omitempty"` 541 // The timestamp corresponding to the generation of the token. 542 CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 543 // The hostname of the page on which the token was generated. 544 Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"` 545 // Action name provided at token generation. 546 Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` 547 XXX_NoUnkeyedLiteral struct{} `json:"-"` 548 XXX_unrecognized []byte `json:"-"` 549 XXX_sizecache int32 `json:"-"` 550} 551 552func (m *TokenProperties) Reset() { *m = TokenProperties{} } 553func (m *TokenProperties) String() string { return proto.CompactTextString(m) } 554func (*TokenProperties) ProtoMessage() {} 555func (*TokenProperties) Descriptor() ([]byte, []int) { 556 return fileDescriptor_72b3da91aae1398d, []int{5} 557} 558 559func (m *TokenProperties) XXX_Unmarshal(b []byte) error { 560 return xxx_messageInfo_TokenProperties.Unmarshal(m, b) 561} 562func (m *TokenProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 563 return xxx_messageInfo_TokenProperties.Marshal(b, m, deterministic) 564} 565func (m *TokenProperties) XXX_Merge(src proto.Message) { 566 xxx_messageInfo_TokenProperties.Merge(m, src) 567} 568func (m *TokenProperties) XXX_Size() int { 569 return xxx_messageInfo_TokenProperties.Size(m) 570} 571func (m *TokenProperties) XXX_DiscardUnknown() { 572 xxx_messageInfo_TokenProperties.DiscardUnknown(m) 573} 574 575var xxx_messageInfo_TokenProperties proto.InternalMessageInfo 576 577func (m *TokenProperties) GetValid() bool { 578 if m != nil { 579 return m.Valid 580 } 581 return false 582} 583 584func (m *TokenProperties) GetInvalidReason() TokenProperties_InvalidReason { 585 if m != nil { 586 return m.InvalidReason 587 } 588 return TokenProperties_INVALID_REASON_UNSPECIFIED 589} 590 591func (m *TokenProperties) GetCreateTime() *timestamp.Timestamp { 592 if m != nil { 593 return m.CreateTime 594 } 595 return nil 596} 597 598func (m *TokenProperties) GetHostname() string { 599 if m != nil { 600 return m.Hostname 601 } 602 return "" 603} 604 605func (m *TokenProperties) GetAction() string { 606 if m != nil { 607 return m.Action 608 } 609 return "" 610} 611 612// The create key request message. 613type CreateKeyRequest struct { 614 // Required. The name of the project in which the key will be created, in the 615 // format "projects/{project_number}". 616 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 617 // Required. Information to create a reCAPTCHA Enterprise key. 618 Key *Key `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 619 XXX_NoUnkeyedLiteral struct{} `json:"-"` 620 XXX_unrecognized []byte `json:"-"` 621 XXX_sizecache int32 `json:"-"` 622} 623 624func (m *CreateKeyRequest) Reset() { *m = CreateKeyRequest{} } 625func (m *CreateKeyRequest) String() string { return proto.CompactTextString(m) } 626func (*CreateKeyRequest) ProtoMessage() {} 627func (*CreateKeyRequest) Descriptor() ([]byte, []int) { 628 return fileDescriptor_72b3da91aae1398d, []int{6} 629} 630 631func (m *CreateKeyRequest) XXX_Unmarshal(b []byte) error { 632 return xxx_messageInfo_CreateKeyRequest.Unmarshal(m, b) 633} 634func (m *CreateKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 635 return xxx_messageInfo_CreateKeyRequest.Marshal(b, m, deterministic) 636} 637func (m *CreateKeyRequest) XXX_Merge(src proto.Message) { 638 xxx_messageInfo_CreateKeyRequest.Merge(m, src) 639} 640func (m *CreateKeyRequest) XXX_Size() int { 641 return xxx_messageInfo_CreateKeyRequest.Size(m) 642} 643func (m *CreateKeyRequest) XXX_DiscardUnknown() { 644 xxx_messageInfo_CreateKeyRequest.DiscardUnknown(m) 645} 646 647var xxx_messageInfo_CreateKeyRequest proto.InternalMessageInfo 648 649func (m *CreateKeyRequest) GetParent() string { 650 if m != nil { 651 return m.Parent 652 } 653 return "" 654} 655 656func (m *CreateKeyRequest) GetKey() *Key { 657 if m != nil { 658 return m.Key 659 } 660 return nil 661} 662 663// The list keys request message. 664type ListKeysRequest struct { 665 // Required. The name of the project that contains the keys that will be 666 // listed, in the format "projects/{project_number}". 667 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 668 // Optional. The maximum number of keys to return. Default is 10. Max limit is 669 // 1000. 670 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 671 // Optional. The next_page_token value returned from a previous. 672 // ListKeysRequest, if any. 673 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 674 XXX_NoUnkeyedLiteral struct{} `json:"-"` 675 XXX_unrecognized []byte `json:"-"` 676 XXX_sizecache int32 `json:"-"` 677} 678 679func (m *ListKeysRequest) Reset() { *m = ListKeysRequest{} } 680func (m *ListKeysRequest) String() string { return proto.CompactTextString(m) } 681func (*ListKeysRequest) ProtoMessage() {} 682func (*ListKeysRequest) Descriptor() ([]byte, []int) { 683 return fileDescriptor_72b3da91aae1398d, []int{7} 684} 685 686func (m *ListKeysRequest) XXX_Unmarshal(b []byte) error { 687 return xxx_messageInfo_ListKeysRequest.Unmarshal(m, b) 688} 689func (m *ListKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 690 return xxx_messageInfo_ListKeysRequest.Marshal(b, m, deterministic) 691} 692func (m *ListKeysRequest) XXX_Merge(src proto.Message) { 693 xxx_messageInfo_ListKeysRequest.Merge(m, src) 694} 695func (m *ListKeysRequest) XXX_Size() int { 696 return xxx_messageInfo_ListKeysRequest.Size(m) 697} 698func (m *ListKeysRequest) XXX_DiscardUnknown() { 699 xxx_messageInfo_ListKeysRequest.DiscardUnknown(m) 700} 701 702var xxx_messageInfo_ListKeysRequest proto.InternalMessageInfo 703 704func (m *ListKeysRequest) GetParent() string { 705 if m != nil { 706 return m.Parent 707 } 708 return "" 709} 710 711func (m *ListKeysRequest) GetPageSize() int32 { 712 if m != nil { 713 return m.PageSize 714 } 715 return 0 716} 717 718func (m *ListKeysRequest) GetPageToken() string { 719 if m != nil { 720 return m.PageToken 721 } 722 return "" 723} 724 725// Response to request to list keys in a project. 726type ListKeysResponse struct { 727 // Key details. 728 Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` 729 // Token to retrieve the next page of results. It is set to empty if no keys 730 // remain in results. 731 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 732 XXX_NoUnkeyedLiteral struct{} `json:"-"` 733 XXX_unrecognized []byte `json:"-"` 734 XXX_sizecache int32 `json:"-"` 735} 736 737func (m *ListKeysResponse) Reset() { *m = ListKeysResponse{} } 738func (m *ListKeysResponse) String() string { return proto.CompactTextString(m) } 739func (*ListKeysResponse) ProtoMessage() {} 740func (*ListKeysResponse) Descriptor() ([]byte, []int) { 741 return fileDescriptor_72b3da91aae1398d, []int{8} 742} 743 744func (m *ListKeysResponse) XXX_Unmarshal(b []byte) error { 745 return xxx_messageInfo_ListKeysResponse.Unmarshal(m, b) 746} 747func (m *ListKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 748 return xxx_messageInfo_ListKeysResponse.Marshal(b, m, deterministic) 749} 750func (m *ListKeysResponse) XXX_Merge(src proto.Message) { 751 xxx_messageInfo_ListKeysResponse.Merge(m, src) 752} 753func (m *ListKeysResponse) XXX_Size() int { 754 return xxx_messageInfo_ListKeysResponse.Size(m) 755} 756func (m *ListKeysResponse) XXX_DiscardUnknown() { 757 xxx_messageInfo_ListKeysResponse.DiscardUnknown(m) 758} 759 760var xxx_messageInfo_ListKeysResponse proto.InternalMessageInfo 761 762func (m *ListKeysResponse) GetKeys() []*Key { 763 if m != nil { 764 return m.Keys 765 } 766 return nil 767} 768 769func (m *ListKeysResponse) GetNextPageToken() string { 770 if m != nil { 771 return m.NextPageToken 772 } 773 return "" 774} 775 776// The get key request message. 777type GetKeyRequest struct { 778 // Required. The name of the requested key, in the format 779 // "projects/{project_number}/keys/{key_id}". 780 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 781 XXX_NoUnkeyedLiteral struct{} `json:"-"` 782 XXX_unrecognized []byte `json:"-"` 783 XXX_sizecache int32 `json:"-"` 784} 785 786func (m *GetKeyRequest) Reset() { *m = GetKeyRequest{} } 787func (m *GetKeyRequest) String() string { return proto.CompactTextString(m) } 788func (*GetKeyRequest) ProtoMessage() {} 789func (*GetKeyRequest) Descriptor() ([]byte, []int) { 790 return fileDescriptor_72b3da91aae1398d, []int{9} 791} 792 793func (m *GetKeyRequest) XXX_Unmarshal(b []byte) error { 794 return xxx_messageInfo_GetKeyRequest.Unmarshal(m, b) 795} 796func (m *GetKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 797 return xxx_messageInfo_GetKeyRequest.Marshal(b, m, deterministic) 798} 799func (m *GetKeyRequest) XXX_Merge(src proto.Message) { 800 xxx_messageInfo_GetKeyRequest.Merge(m, src) 801} 802func (m *GetKeyRequest) XXX_Size() int { 803 return xxx_messageInfo_GetKeyRequest.Size(m) 804} 805func (m *GetKeyRequest) XXX_DiscardUnknown() { 806 xxx_messageInfo_GetKeyRequest.DiscardUnknown(m) 807} 808 809var xxx_messageInfo_GetKeyRequest proto.InternalMessageInfo 810 811func (m *GetKeyRequest) GetName() string { 812 if m != nil { 813 return m.Name 814 } 815 return "" 816} 817 818// The update key request message. 819type UpdateKeyRequest struct { 820 // Required. The key to update. 821 Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 822 // Optional. The mask to control which field of the key get updated. If the mask is not 823 // present, all fields will be updated. 824 UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 825 XXX_NoUnkeyedLiteral struct{} `json:"-"` 826 XXX_unrecognized []byte `json:"-"` 827 XXX_sizecache int32 `json:"-"` 828} 829 830func (m *UpdateKeyRequest) Reset() { *m = UpdateKeyRequest{} } 831func (m *UpdateKeyRequest) String() string { return proto.CompactTextString(m) } 832func (*UpdateKeyRequest) ProtoMessage() {} 833func (*UpdateKeyRequest) Descriptor() ([]byte, []int) { 834 return fileDescriptor_72b3da91aae1398d, []int{10} 835} 836 837func (m *UpdateKeyRequest) XXX_Unmarshal(b []byte) error { 838 return xxx_messageInfo_UpdateKeyRequest.Unmarshal(m, b) 839} 840func (m *UpdateKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 841 return xxx_messageInfo_UpdateKeyRequest.Marshal(b, m, deterministic) 842} 843func (m *UpdateKeyRequest) XXX_Merge(src proto.Message) { 844 xxx_messageInfo_UpdateKeyRequest.Merge(m, src) 845} 846func (m *UpdateKeyRequest) XXX_Size() int { 847 return xxx_messageInfo_UpdateKeyRequest.Size(m) 848} 849func (m *UpdateKeyRequest) XXX_DiscardUnknown() { 850 xxx_messageInfo_UpdateKeyRequest.DiscardUnknown(m) 851} 852 853var xxx_messageInfo_UpdateKeyRequest proto.InternalMessageInfo 854 855func (m *UpdateKeyRequest) GetKey() *Key { 856 if m != nil { 857 return m.Key 858 } 859 return nil 860} 861 862func (m *UpdateKeyRequest) GetUpdateMask() *field_mask.FieldMask { 863 if m != nil { 864 return m.UpdateMask 865 } 866 return nil 867} 868 869// The delete key request message. 870type DeleteKeyRequest struct { 871 // Required. The name of the key to be deleted, in the format 872 // "projects/{project_number}/keys/{key_id}". 873 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 874 XXX_NoUnkeyedLiteral struct{} `json:"-"` 875 XXX_unrecognized []byte `json:"-"` 876 XXX_sizecache int32 `json:"-"` 877} 878 879func (m *DeleteKeyRequest) Reset() { *m = DeleteKeyRequest{} } 880func (m *DeleteKeyRequest) String() string { return proto.CompactTextString(m) } 881func (*DeleteKeyRequest) ProtoMessage() {} 882func (*DeleteKeyRequest) Descriptor() ([]byte, []int) { 883 return fileDescriptor_72b3da91aae1398d, []int{11} 884} 885 886func (m *DeleteKeyRequest) XXX_Unmarshal(b []byte) error { 887 return xxx_messageInfo_DeleteKeyRequest.Unmarshal(m, b) 888} 889func (m *DeleteKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 890 return xxx_messageInfo_DeleteKeyRequest.Marshal(b, m, deterministic) 891} 892func (m *DeleteKeyRequest) XXX_Merge(src proto.Message) { 893 xxx_messageInfo_DeleteKeyRequest.Merge(m, src) 894} 895func (m *DeleteKeyRequest) XXX_Size() int { 896 return xxx_messageInfo_DeleteKeyRequest.Size(m) 897} 898func (m *DeleteKeyRequest) XXX_DiscardUnknown() { 899 xxx_messageInfo_DeleteKeyRequest.DiscardUnknown(m) 900} 901 902var xxx_messageInfo_DeleteKeyRequest proto.InternalMessageInfo 903 904func (m *DeleteKeyRequest) GetName() string { 905 if m != nil { 906 return m.Name 907 } 908 return "" 909} 910 911// A key used to identify and configure applications (web and/or mobile) that 912// use reCAPTCHA Enterprise. 913type Key struct { 914 // The resource name for the Key in the format 915 // "projects/{project_number}/keys/{key_id}". 916 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 917 // Human-readable display name of this key. Modifiable by user. 918 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 919 // Platform specific settings for this key. The key can only be used on one 920 // platform, the one it has settings for. 921 // 922 // Types that are valid to be assigned to PlatformSettings: 923 // *Key_WebSettings 924 // *Key_AndroidSettings 925 // *Key_IosSettings 926 PlatformSettings isKey_PlatformSettings `protobuf_oneof:"platform_settings"` 927 XXX_NoUnkeyedLiteral struct{} `json:"-"` 928 XXX_unrecognized []byte `json:"-"` 929 XXX_sizecache int32 `json:"-"` 930} 931 932func (m *Key) Reset() { *m = Key{} } 933func (m *Key) String() string { return proto.CompactTextString(m) } 934func (*Key) ProtoMessage() {} 935func (*Key) Descriptor() ([]byte, []int) { 936 return fileDescriptor_72b3da91aae1398d, []int{12} 937} 938 939func (m *Key) XXX_Unmarshal(b []byte) error { 940 return xxx_messageInfo_Key.Unmarshal(m, b) 941} 942func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 943 return xxx_messageInfo_Key.Marshal(b, m, deterministic) 944} 945func (m *Key) XXX_Merge(src proto.Message) { 946 xxx_messageInfo_Key.Merge(m, src) 947} 948func (m *Key) XXX_Size() int { 949 return xxx_messageInfo_Key.Size(m) 950} 951func (m *Key) XXX_DiscardUnknown() { 952 xxx_messageInfo_Key.DiscardUnknown(m) 953} 954 955var xxx_messageInfo_Key proto.InternalMessageInfo 956 957func (m *Key) GetName() string { 958 if m != nil { 959 return m.Name 960 } 961 return "" 962} 963 964func (m *Key) GetDisplayName() string { 965 if m != nil { 966 return m.DisplayName 967 } 968 return "" 969} 970 971type isKey_PlatformSettings interface { 972 isKey_PlatformSettings() 973} 974 975type Key_WebSettings struct { 976 WebSettings *WebKeySettings `protobuf:"bytes,3,opt,name=web_settings,json=webSettings,proto3,oneof"` 977} 978 979type Key_AndroidSettings struct { 980 AndroidSettings *AndroidKeySettings `protobuf:"bytes,4,opt,name=android_settings,json=androidSettings,proto3,oneof"` 981} 982 983type Key_IosSettings struct { 984 IosSettings *IOSKeySettings `protobuf:"bytes,5,opt,name=ios_settings,json=iosSettings,proto3,oneof"` 985} 986 987func (*Key_WebSettings) isKey_PlatformSettings() {} 988 989func (*Key_AndroidSettings) isKey_PlatformSettings() {} 990 991func (*Key_IosSettings) isKey_PlatformSettings() {} 992 993func (m *Key) GetPlatformSettings() isKey_PlatformSettings { 994 if m != nil { 995 return m.PlatformSettings 996 } 997 return nil 998} 999 1000func (m *Key) GetWebSettings() *WebKeySettings { 1001 if x, ok := m.GetPlatformSettings().(*Key_WebSettings); ok { 1002 return x.WebSettings 1003 } 1004 return nil 1005} 1006 1007func (m *Key) GetAndroidSettings() *AndroidKeySettings { 1008 if x, ok := m.GetPlatformSettings().(*Key_AndroidSettings); ok { 1009 return x.AndroidSettings 1010 } 1011 return nil 1012} 1013 1014func (m *Key) GetIosSettings() *IOSKeySettings { 1015 if x, ok := m.GetPlatformSettings().(*Key_IosSettings); ok { 1016 return x.IosSettings 1017 } 1018 return nil 1019} 1020 1021// XXX_OneofWrappers is for the internal use of the proto package. 1022func (*Key) XXX_OneofWrappers() []interface{} { 1023 return []interface{}{ 1024 (*Key_WebSettings)(nil), 1025 (*Key_AndroidSettings)(nil), 1026 (*Key_IosSettings)(nil), 1027 } 1028} 1029 1030// Settings specific to keys that can be used by websites. 1031type WebKeySettings struct { 1032 // Whether allowed_domains is enforced or not. 1033 EnforceAllowedDomains bool `protobuf:"varint,3,opt,name=enforce_allowed_domains,json=enforceAllowedDomains,proto3" json:"enforce_allowed_domains,omitempty"` 1034 // Domains or subdomains of websites allowed to use the key. All subdomains 1035 // of an allowed domain are automatically allowed. A valid domain requires a 1036 // host and must not include any path, port, query or fragment. 1037 // Examples: 'example.com' or 'subdomain.example.com' 1038 AllowedDomains []string `protobuf:"bytes,1,rep,name=allowed_domains,json=allowedDomains,proto3" json:"allowed_domains,omitempty"` 1039 // Whether this key can be used on AMP (Accelerated Mobile Pages) websites. 1040 AllowAmpTraffic bool `protobuf:"varint,2,opt,name=allow_amp_traffic,json=allowAmpTraffic,proto3" json:"allow_amp_traffic,omitempty"` 1041 // Required. Describes how this key is integrated with the website. 1042 IntegrationType WebKeySettings_IntegrationType `protobuf:"varint,4,opt,name=integration_type,json=integrationType,proto3,enum=google.cloud.recaptchaenterprise.v1beta1.WebKeySettings_IntegrationType" json:"integration_type,omitempty"` 1043 // Settings for the frequency and difficulty at which this key triggers 1044 // captcha challenges. This should only be specified for IntegrationTypes 1045 // CHECKBOX_CHALLENGE and INVISIBLE_CHALLENGE. 1046 ChallengeSecurityPreference WebKeySettings_ChallengeSecurityPreference `protobuf:"varint,5,opt,name=challenge_security_preference,json=challengeSecurityPreference,proto3,enum=google.cloud.recaptchaenterprise.v1beta1.WebKeySettings_ChallengeSecurityPreference" json:"challenge_security_preference,omitempty"` 1047 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1048 XXX_unrecognized []byte `json:"-"` 1049 XXX_sizecache int32 `json:"-"` 1050} 1051 1052func (m *WebKeySettings) Reset() { *m = WebKeySettings{} } 1053func (m *WebKeySettings) String() string { return proto.CompactTextString(m) } 1054func (*WebKeySettings) ProtoMessage() {} 1055func (*WebKeySettings) Descriptor() ([]byte, []int) { 1056 return fileDescriptor_72b3da91aae1398d, []int{13} 1057} 1058 1059func (m *WebKeySettings) XXX_Unmarshal(b []byte) error { 1060 return xxx_messageInfo_WebKeySettings.Unmarshal(m, b) 1061} 1062func (m *WebKeySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1063 return xxx_messageInfo_WebKeySettings.Marshal(b, m, deterministic) 1064} 1065func (m *WebKeySettings) XXX_Merge(src proto.Message) { 1066 xxx_messageInfo_WebKeySettings.Merge(m, src) 1067} 1068func (m *WebKeySettings) XXX_Size() int { 1069 return xxx_messageInfo_WebKeySettings.Size(m) 1070} 1071func (m *WebKeySettings) XXX_DiscardUnknown() { 1072 xxx_messageInfo_WebKeySettings.DiscardUnknown(m) 1073} 1074 1075var xxx_messageInfo_WebKeySettings proto.InternalMessageInfo 1076 1077func (m *WebKeySettings) GetEnforceAllowedDomains() bool { 1078 if m != nil { 1079 return m.EnforceAllowedDomains 1080 } 1081 return false 1082} 1083 1084func (m *WebKeySettings) GetAllowedDomains() []string { 1085 if m != nil { 1086 return m.AllowedDomains 1087 } 1088 return nil 1089} 1090 1091func (m *WebKeySettings) GetAllowAmpTraffic() bool { 1092 if m != nil { 1093 return m.AllowAmpTraffic 1094 } 1095 return false 1096} 1097 1098func (m *WebKeySettings) GetIntegrationType() WebKeySettings_IntegrationType { 1099 if m != nil { 1100 return m.IntegrationType 1101 } 1102 return WebKeySettings_INTEGRATION_TYPE_UNSPECIFIED 1103} 1104 1105func (m *WebKeySettings) GetChallengeSecurityPreference() WebKeySettings_ChallengeSecurityPreference { 1106 if m != nil { 1107 return m.ChallengeSecurityPreference 1108 } 1109 return WebKeySettings_CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED 1110} 1111 1112// Settings specific to keys that can be used by Android apps. 1113type AndroidKeySettings struct { 1114 // Android package names of apps allowed to use the key. 1115 // Example: 'com.companyname.appname' 1116 AllowedPackageNames []string `protobuf:"bytes,1,rep,name=allowed_package_names,json=allowedPackageNames,proto3" json:"allowed_package_names,omitempty"` 1117 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1118 XXX_unrecognized []byte `json:"-"` 1119 XXX_sizecache int32 `json:"-"` 1120} 1121 1122func (m *AndroidKeySettings) Reset() { *m = AndroidKeySettings{} } 1123func (m *AndroidKeySettings) String() string { return proto.CompactTextString(m) } 1124func (*AndroidKeySettings) ProtoMessage() {} 1125func (*AndroidKeySettings) Descriptor() ([]byte, []int) { 1126 return fileDescriptor_72b3da91aae1398d, []int{14} 1127} 1128 1129func (m *AndroidKeySettings) XXX_Unmarshal(b []byte) error { 1130 return xxx_messageInfo_AndroidKeySettings.Unmarshal(m, b) 1131} 1132func (m *AndroidKeySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1133 return xxx_messageInfo_AndroidKeySettings.Marshal(b, m, deterministic) 1134} 1135func (m *AndroidKeySettings) XXX_Merge(src proto.Message) { 1136 xxx_messageInfo_AndroidKeySettings.Merge(m, src) 1137} 1138func (m *AndroidKeySettings) XXX_Size() int { 1139 return xxx_messageInfo_AndroidKeySettings.Size(m) 1140} 1141func (m *AndroidKeySettings) XXX_DiscardUnknown() { 1142 xxx_messageInfo_AndroidKeySettings.DiscardUnknown(m) 1143} 1144 1145var xxx_messageInfo_AndroidKeySettings proto.InternalMessageInfo 1146 1147func (m *AndroidKeySettings) GetAllowedPackageNames() []string { 1148 if m != nil { 1149 return m.AllowedPackageNames 1150 } 1151 return nil 1152} 1153 1154// Settings specific to keys that can be used by iOS apps. 1155type IOSKeySettings struct { 1156 // iOS bundle ids of apps allowed to use the key. 1157 // Example: 'com.companyname.productname.appname' 1158 AllowedBundleIds []string `protobuf:"bytes,1,rep,name=allowed_bundle_ids,json=allowedBundleIds,proto3" json:"allowed_bundle_ids,omitempty"` 1159 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1160 XXX_unrecognized []byte `json:"-"` 1161 XXX_sizecache int32 `json:"-"` 1162} 1163 1164func (m *IOSKeySettings) Reset() { *m = IOSKeySettings{} } 1165func (m *IOSKeySettings) String() string { return proto.CompactTextString(m) } 1166func (*IOSKeySettings) ProtoMessage() {} 1167func (*IOSKeySettings) Descriptor() ([]byte, []int) { 1168 return fileDescriptor_72b3da91aae1398d, []int{15} 1169} 1170 1171func (m *IOSKeySettings) XXX_Unmarshal(b []byte) error { 1172 return xxx_messageInfo_IOSKeySettings.Unmarshal(m, b) 1173} 1174func (m *IOSKeySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1175 return xxx_messageInfo_IOSKeySettings.Marshal(b, m, deterministic) 1176} 1177func (m *IOSKeySettings) XXX_Merge(src proto.Message) { 1178 xxx_messageInfo_IOSKeySettings.Merge(m, src) 1179} 1180func (m *IOSKeySettings) XXX_Size() int { 1181 return xxx_messageInfo_IOSKeySettings.Size(m) 1182} 1183func (m *IOSKeySettings) XXX_DiscardUnknown() { 1184 xxx_messageInfo_IOSKeySettings.DiscardUnknown(m) 1185} 1186 1187var xxx_messageInfo_IOSKeySettings proto.InternalMessageInfo 1188 1189func (m *IOSKeySettings) GetAllowedBundleIds() []string { 1190 if m != nil { 1191 return m.AllowedBundleIds 1192 } 1193 return nil 1194} 1195 1196func init() { 1197 proto.RegisterEnum("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest_Annotation", AnnotateAssessmentRequest_Annotation_name, AnnotateAssessmentRequest_Annotation_value) 1198 proto.RegisterEnum("google.cloud.recaptchaenterprise.v1beta1.Assessment_ClassificationReason", Assessment_ClassificationReason_name, Assessment_ClassificationReason_value) 1199 proto.RegisterEnum("google.cloud.recaptchaenterprise.v1beta1.TokenProperties_InvalidReason", TokenProperties_InvalidReason_name, TokenProperties_InvalidReason_value) 1200 proto.RegisterEnum("google.cloud.recaptchaenterprise.v1beta1.WebKeySettings_IntegrationType", WebKeySettings_IntegrationType_name, WebKeySettings_IntegrationType_value) 1201 proto.RegisterEnum("google.cloud.recaptchaenterprise.v1beta1.WebKeySettings_ChallengeSecurityPreference", WebKeySettings_ChallengeSecurityPreference_name, WebKeySettings_ChallengeSecurityPreference_value) 1202 proto.RegisterType((*CreateAssessmentRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest") 1203 proto.RegisterType((*AnnotateAssessmentRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest") 1204 proto.RegisterType((*AnnotateAssessmentResponse)(nil), "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse") 1205 proto.RegisterType((*Assessment)(nil), "google.cloud.recaptchaenterprise.v1beta1.Assessment") 1206 proto.RegisterType((*Event)(nil), "google.cloud.recaptchaenterprise.v1beta1.Event") 1207 proto.RegisterType((*TokenProperties)(nil), "google.cloud.recaptchaenterprise.v1beta1.TokenProperties") 1208 proto.RegisterType((*CreateKeyRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.CreateKeyRequest") 1209 proto.RegisterType((*ListKeysRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.ListKeysRequest") 1210 proto.RegisterType((*ListKeysResponse)(nil), "google.cloud.recaptchaenterprise.v1beta1.ListKeysResponse") 1211 proto.RegisterType((*GetKeyRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.GetKeyRequest") 1212 proto.RegisterType((*UpdateKeyRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.UpdateKeyRequest") 1213 proto.RegisterType((*DeleteKeyRequest)(nil), "google.cloud.recaptchaenterprise.v1beta1.DeleteKeyRequest") 1214 proto.RegisterType((*Key)(nil), "google.cloud.recaptchaenterprise.v1beta1.Key") 1215 proto.RegisterType((*WebKeySettings)(nil), "google.cloud.recaptchaenterprise.v1beta1.WebKeySettings") 1216 proto.RegisterType((*AndroidKeySettings)(nil), "google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings") 1217 proto.RegisterType((*IOSKeySettings)(nil), "google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings") 1218} 1219 1220func init() { 1221 proto.RegisterFile("google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto", fileDescriptor_72b3da91aae1398d) 1222} 1223 1224var fileDescriptor_72b3da91aae1398d = []byte{ 1225 // 2060 bytes of a gzipped FileDescriptorProto 1226 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0xdb, 0xc8, 1227 0xf5, 0x5f, 0x4a, 0x56, 0x22, 0x3f, 0xc7, 0x12, 0x33, 0xc9, 0xc6, 0x8e, 0x92, 0xec, 0xd7, 0xe1, 1228 0x17, 0x9b, 0x7a, 0x1d, 0x5b, 0x42, 0xb4, 0xed, 0xb6, 0xd5, 0xb6, 0x45, 0x29, 0x8a, 0x96, 0x59, 1229 0x4b, 0x94, 0x40, 0x52, 0x4e, 0xd2, 0x66, 0x41, 0xd0, 0xd4, 0x58, 0x66, 0x2d, 0x91, 0x2c, 0x49, 1230 0xdb, 0xd1, 0x06, 0xbe, 0xf4, 0xd8, 0x5b, 0xd1, 0x4b, 0xd1, 0xf6, 0xd2, 0xa2, 0xdb, 0xc3, 0x62, 1231 0xff, 0x80, 0x5e, 0x7b, 0xe9, 0x61, 0x8f, 0xed, 0x6d, 0x81, 0x02, 0x39, 0xf4, 0x94, 0x4b, 0xaf, 1232 0x45, 0x81, 0x02, 0x05, 0x67, 0x48, 0x51, 0x52, 0x94, 0xc4, 0xf2, 0xee, 0xde, 0xc4, 0xf7, 0xde, 1233 0xbc, 0xdf, 0xf3, 0xde, 0x67, 0x04, 0xd5, 0x9e, 0xe3, 0xf4, 0xfa, 0xb8, 0x64, 0xf6, 0x9d, 0xe3, 1234 0x6e, 0xc9, 0xc3, 0xa6, 0xe1, 0x06, 0xe6, 0xa1, 0x81, 0xed, 0x00, 0x7b, 0xae, 0x67, 0xf9, 0xb8, 1235 0x74, 0xf2, 0x60, 0x1f, 0x07, 0xc6, 0x83, 0x59, 0xbc, 0xa2, 0xeb, 0x39, 0x81, 0x83, 0xd6, 0xa9, 1236 0x8e, 0x22, 0xd1, 0x51, 0x9c, 0x25, 0x17, 0xe9, 0x28, 0xdc, 0x8e, 0xac, 0x19, 0xae, 0x55, 0x32, 1237 0x6c, 0xdb, 0x09, 0x8c, 0xc0, 0x72, 0x6c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, 0xb8, 0xc9, 0xd3, 0x72, 0xcc, 0x88, 0x42, 0x82, 1249 0x05, 0xdb, 0x18, 0xe0, 0x28, 0x86, 0x6f, 0x91, 0x18, 0x4a, 0xb0, 0x35, 0xcb, 0xd8, 0x54, 0x08, 1250 0x63, 0xba, 0x88, 0x0a, 0xe4, 0x03, 0x24, 0x65, 0x27, 0x31, 0xe4, 0xca, 0xf2, 0x1c, 0x31, 0xbc, 1251 0xca, 0xc7, 0x98, 0x63, 0x39, 0x76, 0x1c, 0xdd, 0x88, 0xc0, 0xed, 0x00, 0x24, 0x6c, 0x54, 0x80, 1252 0x1b, 0xbc, 0x2c, 0xb7, 0x34, 0x5e, 0x93, 0x5a, 0xb2, 0xde, 0x91, 0xd5, 0xb6, 0x28, 0x48, 0xdb, 1253 0x92, 0x58, 0x63, 0xdf, 0x42, 0x39, 0x80, 0x86, 0x58, 0x97, 0x34, 0xa9, 0xc9, 0x6b, 0x22, 0xcb, 1254 0x84, 0xdf, 0xdb, 0x0a, 0xdf, 0xa9, 0x75, 0x1a, 0xa2, 0xac, 0xb1, 0x29, 0xee, 0x36, 0x14, 0x66, 1255 0xb9, 0xe0, 0xbb, 0x8e, 0xed, 0x63, 0xee, 0xdf, 0x0b, 0x00, 0x09, 0x19, 0xad, 0x4c, 0xa4, 0x2d, 1256 0xfd, 0x9c, 0x4f, 0x47, 0x49, 0x10, 0x21, 0x83, 0x4f, 0x92, 0x1a, 0x96, 0xce, 0x1f, 0xbf, 0x18, 1257 0x1e, 0x53, 0xe8, 0x69, 0x74, 0x13, 0x32, 0xbe, 0xe9, 0x78, 0x78, 0x35, 0xbd, 0xc6, 0xac, 0xa7, 1258 0xa8, 0x01, 0x4a, 0x41, 0x16, 0xb0, 0x81, 0x73, 0x84, 0x6d, 0xdd, 0xf5, 0x1c, 0x17, 0x7b, 0x81, 1259 0x85, 0xfd, 0xd5, 0x05, 0x62, 0xec, 0xbb, 0xe7, 0x37, 0xa6, 0x85, 0x1a, 0xda, 0x23, 0x05, 0xd4, 1260 0x40, 0x3e, 0x98, 0xa4, 0xa2, 0x43, 0xb8, 0xec, 0x61, 0xc3, 0x77, 0x6c, 0x7f, 0x35, 0xb3, 0x96, 1261 0x5e, 0xcf, 0x95, 0xa5, 0x8b, 0xb4, 0x64, 0x51, 0xe8, 0x1b, 0xbe, 0x6f, 0x1d, 0x58, 0x26, 0x29, 1262 0x92, 0x42, 0x34, 0x52, 0x8b, 0xb1, 0x7a, 0xee, 0xcf, 0x0c, 0x5c, 0x9f, 0x25, 0x86, 0xde, 0x85, 1263 0xbb, 0x42, 0x83, 0x57, 0x55, 0x69, 0x5b, 0x12, 0x68, 0x55, 0x15, 0x91, 0x57, 0x67, 0x15, 0x97, 1264 0xef, 0x68, 0xad, 0x26, 0x11, 0x61, 0x99, 0xb0, 0x11, 0x3a, 0xb2, 0xf8, 0xa8, 0x2d, 0x0a, 0x9a, 1265 0x58, 0xd3, 0x45, 0x79, 0x4f, 0x52, 0x5a, 0x72, 0x93, 0x14, 0x1a, 0x5d, 0x07, 0x56, 0x6b, 0xb5, 1266 0xf4, 0x66, 0x47, 0xd8, 0xd1, 0x35, 0x85, 0xdf, 0xde, 0x96, 0x04, 0x36, 0x8d, 0xee, 0xc0, 0xcd, 1267 0xb1, 0x13, 0x1d, 0x95, 0xaf, 0x8b, 0x7a, 0x9b, 0xd7, 0x34, 0x51, 0x91, 0x55, 0x76, 0x01, 0xad, 1268 0xc2, 0xf5, 0x46, 0xeb, 0xa1, 0x2e, 0xb4, 0xe4, 0x6d, 0xa9, 0x26, 0xca, 0x82, 0xa8, 0xab, 0x42, 1269 0x4b, 0x11, 0xd9, 0x4c, 0x45, 0x7f, 0xc1, 0x3f, 0x99, 0xf3, 0xc2, 0xa0, 0xfb, 0x2e, 0xbd, 0xff, 1270 0x7e, 0xe9, 0x59, 0xf4, 0xeb, 0xac, 0x94, 0x5c, 0x59, 0xbf, 0xf4, 0x2c, 0xf9, 0x38, 0x0b, 0x87, 1271 0x50, 0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0xcf, 0x8b, 0x12, 0x7d, 0x71, 0xbf, 0x64, 0x60, 0x79, 0xc2, 0x23, 0xf4, 0x0e, 0x14, 1283 0x24, 0x79, 0x8f, 0x6f, 0x48, 0xb5, 0xd9, 0xcd, 0x4d, 0x9a, 0x79, 0x57, 0x6e, 0x3d, 0x94, 0xf5, 1284 0x49, 0x39, 0x96, 0x41, 0xcb, 0xb0, 0xd8, 0xe4, 0x1b, 0xdb, 0x2d, 0xa5, 0x29, 0xd6, 0xd8, 0x14, 1285 0x5a, 0x82, 0xcb, 0xe2, 0xa3, 0xb6, 0xa4, 0x88, 0x35, 0x36, 0x8d, 0xb2, 0xb0, 0x50, 0xeb, 0xb4, 1286 0x45, 0x76, 0x01, 0x5d, 0x85, 0x65, 0x55, 0xd2, 0x44, 0xbd, 0x29, 0xa9, 0x4d, 0x5e, 0x13, 0x76, 1287 0xd8, 0x4c, 0x28, 0xd9, 0x94, 0x54, 0x55, 0x92, 0xeb, 0xec, 0x25, 0xee, 0x13, 0x06, 0x58, 0xba, 1288 0xe7, 0x76, 0xf1, 0xf0, 0x6b, 0x59, 0x70, 0x35, 0x48, 0xc7, 0xad, 0xb9, 0x54, 0xde, 0x3a, 0x7f, 1289 0x2d, 0x77, 0xf1, 0x90, 0x0e, 0xfd, 0xf0, 0x38, 0xf7, 0x47, 0x06, 0xf2, 0x0d, 0xcb, 0x0f, 0x76, 1290 0xf1, 0xd0, 0xff, 0x5a, 0xdc, 0x5c, 0x83, 0x45, 0xd7, 0xe8, 0x61, 0xdd, 0xb7, 0x3e, 0xc6, 0xc4, 1291 0xd9, 0x0c, 0xed, 0xe7, 0x6c, 0x48, 0x55, 0xad, 0x8f, 0x71, 0x78, 0x91, 0x88, 0x04, 0xbd, 0x88, 1292 0xe3, 0x17, 0x29, 0x24, 0x93, 0xd6, 0xe3, 0xce, 0x80, 0x4d, 0xbc, 0xa4, 0x0b, 0x04, 0xf1, 0xb0, 1293 0x70, 0x84, 0x87, 0xfe, 0x2a, 0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37, 0x0f, 0xec, 0x22, 0x1a, 0x26, 0xcd, 0xe4, 0x23, 0xbd, 1305 0x23, 0x53, 0x1f, 0xc1, 0x15, 0xcb, 0xf1, 0x13, 0x33, 0x99, 0x79, 0x23, 0x91, 0x5a, 0xea, 0x54, 1306 0x24, 0x96, 0xe3, 0xc7, 0x9f, 0x95, 0x1f, 0xbd, 0xe0, 0xeb, 0xe7, 0x2d, 0x0d, 0xba, 0x33, 0x63, 1307 0x79, 0x86, 0xf7, 0xa3, 0xf4, 0xec, 0x08, 0x0f, 0xcf, 0xaa, 0xd7, 0xe0, 0xaa, 0xdb, 0x37, 0x82, 1308 0x03, 0xc7, 0x1b, 0x8c, 0xfc, 0xe5, 0x7e, 0x9f, 0x81, 0xdc, 0x64, 0x32, 0xd1, 0x07, 0xb0, 0x82, 1309 0xed, 0x03, 0xc7, 0x33, 0xb1, 0x6e, 0xf4, 0xfb, 0xce, 0x29, 0xee, 0xea, 0x5d, 0x67, 0x60, 0x58, 1310 0x36, 0xad, 0x53, 0x56, 0x79, 0x3b, 0x62, 0xf3, 0x94, 0x5b, 0xa3, 0x4c, 0xf4, 0x0d, 0xc8, 0x4f, 1311 0xcb, 0x87, 0x77, 0x7a, 0x51, 0xc9, 0x19, 0x93, 0x82, 0x1b, 0x70, 0x95, 0x50, 0x74, 0x63, 0xe0, 1312 0xea, 0x81, 0x67, 0x1c, 0x1c, 0x58, 0x26, 0xe9, 0x92, 0xac, 0x42, 0x35, 0xf0, 0x03, 0x57, 0xa3, 1313 0x64, 0xf4, 0x14, 0x58, 0xcb, 0x0e, 0x70, 0xcf, 0x23, 0xd8, 0x47, 0x0f, 0x86, 0x2e, 0x5d, 0x28, 1314 0xb9, 0xf2, 0xce, 0x45, 0xbb, 0xa5, 0x28, 0x25, 0x0a, 0xb5, 0xa1, 0x8b, 0xe9, 0x85, 0xcb, 0x5b, 1315 0x93, 0x54, 0xf4, 0x6b, 0x06, 0xee, 0x98, 0x87, 0x46, 0xbf, 0x8f, 0xed, 0x70, 0xee, 0x61, 0xf3, 1316 0xd8, 0xb3, 0x82, 0xa1, 0xee, 0x7a, 0xf8, 0x00, 0x7b, 0xd8, 0x36, 0x31, 0xa9, 0x75, 0xae, 0xac, 1317 0x5d, 0xd8, 0x0f, 0x21, 0xd6, 0xae, 0x46, 0xca, 0xdb, 0x23, 0xdd, 0xca, 0x2d, 0xf3, 0xd5, 0x4c, 1318 0x2e, 0x80, 0xfc, 0x54, 0x0c, 0x68, 0x0d, 0x6e, 0x4b, 0xb2, 0x26, 0xd6, 0x15, 0x8a, 0x05, 0xb5, 1319 0xc7, 0x6d, 0xf1, 0x65, 0x24, 0x48, 0x90, 0x99, 0xde, 0x92, 0x1b, 0x8f, 0x59, 0x06, 0xdd, 0x00, 1320 0x24, 0xec, 0x88, 0xc2, 0x6e, 0xb5, 0xf5, 0x48, 0x17, 0x76, 0xf8, 0x46, 0x43, 0x94, 0xeb, 0x22, 1321 0x9b, 0x42, 0x2b, 0x70, 0x4d, 0x92, 0xf7, 0x24, 0x55, 0xaa, 0x36, 0xc4, 0x31, 0x46, 0x9a, 0x3b, 1322 0x85, 0x5b, 0xaf, 0xf1, 0x18, 0x6d, 0xc1, 0x7b, 0x23, 0x69, 0x5d, 0x15, 0x85, 0x8e, 0x22, 0x69, 1323 0x8f, 0xf5, 0xb6, 0x22, 0x6e, 0x8b, 0x0a, 0xc1, 0x85, 0x93, 0xee, 0x2c, 0xc3, 0x62, 0x47, 0xe5, 1324 0xab, 0x52, 0x43, 0xd2, 0x42, 0x6f, 0xae, 0x40, 0xb6, 0xca, 0x37, 0x78, 0x59, 0x20, 0xdb, 0xfa, 1325 0x0a, 0x64, 0x63, 0x0d, 0x6c, 0x9a, 0xdb, 0x01, 0xf4, 0xf2, 0x65, 0x44, 0x65, 0x78, 0x3b, 0x6e, 1326 0x37, 0xd7, 0x30, 0x8f, 0xc2, 0xd1, 0x1f, 0x8e, 0x9b, 0xb8, 0xe9, 0xae, 0x45, 0xcc, 0x36, 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, 0x0d, 0xbb, 0x57, 0x74, 0xbc, 0x5e, 0xa9, 0x87, 0x6d, 0x12, 0x6e, 0x29, 0xf1, 1350 0xe2, 0xcd, 0xff, 0x0e, 0x7f, 0x38, 0x83, 0xf7, 0x87, 0xd4, 0x42, 0x5d, 0x50, 0xc4, 0x4f, 0x53, 1351 0xeb, 0x75, 0x6a, 0x44, 0x20, 0x15, 0x98, 0xe1, 0x4d, 0x31, 0xda, 0x17, 0x9f, 0xc7, 0xa2, 0x4f, 1352 0x88, 0xe8, 0x93, 0x19, 0xa2, 0x4f, 0xf6, 0xa8, 0xc1, 0x17, 0xa9, 0xfb, 0x54, 0xb4, 0x52, 0x21, 1353 0xb2, 0x95, 0xca, 0x0c, 0xe1, 0x4a, 0x25, 0x92, 0xde, 0xbf, 0x44, 0x42, 0x7a, 0xff, 0x7f, 0x01, 1354 0x00, 0x00, 0xff, 0xff, 0x25, 0x1c, 0x4f, 0x46, 0xef, 0x16, 0x00, 0x00, 1355} 1356 1357// Reference imports to suppress errors if they are not otherwise used. 1358var _ context.Context 1359var _ grpc.ClientConnInterface 1360 1361// This is a compile-time assertion to ensure that this generated file 1362// is compatible with the grpc package it is being compiled against. 1363const _ = grpc.SupportPackageIsVersion6 1364 1365// RecaptchaEnterpriseServiceV1Beta1Client is the client API for RecaptchaEnterpriseServiceV1Beta1 service. 1366// 1367// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1368type RecaptchaEnterpriseServiceV1Beta1Client interface { 1369 // Creates an Assessment of the likelihood an event is legitimate. 1370 CreateAssessment(ctx context.Context, in *CreateAssessmentRequest, opts ...grpc.CallOption) (*Assessment, error) 1371 // Annotates a previously created Assessment to provide additional information 1372 // on whether the event turned out to be authentic or fradulent. 1373 AnnotateAssessment(ctx context.Context, in *AnnotateAssessmentRequest, opts ...grpc.CallOption) (*AnnotateAssessmentResponse, error) 1374 // Creates a new reCAPTCHA Enterprise key. 1375 CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*Key, error) 1376 // Returns the list of all keys that belong to a project. 1377 ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error) 1378 // Returns the specified key. 1379 GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*Key, error) 1380 // Updates the specified key. 1381 UpdateKey(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*Key, error) 1382 // Deletes the specified key. 1383 DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) 1384} 1385 1386type recaptchaEnterpriseServiceV1Beta1Client struct { 1387 cc grpc.ClientConnInterface 1388} 1389 1390func NewRecaptchaEnterpriseServiceV1Beta1Client(cc grpc.ClientConnInterface) RecaptchaEnterpriseServiceV1Beta1Client { 1391 return &recaptchaEnterpriseServiceV1Beta1Client{cc} 1392} 1393 1394func (c *recaptchaEnterpriseServiceV1Beta1Client) CreateAssessment(ctx context.Context, in *CreateAssessmentRequest, opts ...grpc.CallOption) (*Assessment, error) { 1395 out := new(Assessment) 1396 err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/CreateAssessment", in, out, opts...) 1397 if err != nil { 1398 return nil, err 1399 } 1400 return out, nil 1401} 1402 1403func (c *recaptchaEnterpriseServiceV1Beta1Client) AnnotateAssessment(ctx context.Context, in *AnnotateAssessmentRequest, opts ...grpc.CallOption) (*AnnotateAssessmentResponse, error) { 1404 out := new(AnnotateAssessmentResponse) 1405 err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/AnnotateAssessment", in, out, opts...) 1406 if err != nil { 1407 return nil, err 1408 } 1409 return out, nil 1410} 1411 1412func (c *recaptchaEnterpriseServiceV1Beta1Client) CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*Key, error) { 1413 out := new(Key) 1414 err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/CreateKey", in, out, opts...) 1415 if err != nil { 1416 return nil, err 1417 } 1418 return out, nil 1419} 1420 1421func (c *recaptchaEnterpriseServiceV1Beta1Client) ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error) { 1422 out := new(ListKeysResponse) 1423 err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/ListKeys", in, out, opts...) 1424 if err != nil { 1425 return nil, err 1426 } 1427 return out, nil 1428} 1429 1430func (c *recaptchaEnterpriseServiceV1Beta1Client) GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*Key, error) { 1431 out := new(Key) 1432 err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/GetKey", in, out, opts...) 1433 if err != nil { 1434 return nil, err 1435 } 1436 return out, nil 1437} 1438 1439func (c *recaptchaEnterpriseServiceV1Beta1Client) UpdateKey(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*Key, error) { 1440 out := new(Key) 1441 err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/UpdateKey", in, out, opts...) 1442 if err != nil { 1443 return nil, err 1444 } 1445 return out, nil 1446} 1447 1448func (c *recaptchaEnterpriseServiceV1Beta1Client) DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { 1449 out := new(empty.Empty) 1450 err := c.cc.Invoke(ctx, "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/DeleteKey", in, out, opts...) 1451 if err != nil { 1452 return nil, err 1453 } 1454 return out, nil 1455} 1456 1457// RecaptchaEnterpriseServiceV1Beta1Server is the server API for RecaptchaEnterpriseServiceV1Beta1 service. 1458type RecaptchaEnterpriseServiceV1Beta1Server interface { 1459 // Creates an Assessment of the likelihood an event is legitimate. 1460 CreateAssessment(context.Context, *CreateAssessmentRequest) (*Assessment, error) 1461 // Annotates a previously created Assessment to provide additional information 1462 // on whether the event turned out to be authentic or fradulent. 1463 AnnotateAssessment(context.Context, *AnnotateAssessmentRequest) (*AnnotateAssessmentResponse, error) 1464 // Creates a new reCAPTCHA Enterprise key. 1465 CreateKey(context.Context, *CreateKeyRequest) (*Key, error) 1466 // Returns the list of all keys that belong to a project. 1467 ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error) 1468 // Returns the specified key. 1469 GetKey(context.Context, *GetKeyRequest) (*Key, error) 1470 // Updates the specified key. 1471 UpdateKey(context.Context, *UpdateKeyRequest) (*Key, error) 1472 // Deletes the specified key. 1473 DeleteKey(context.Context, *DeleteKeyRequest) (*empty.Empty, error) 1474} 1475 1476// UnimplementedRecaptchaEnterpriseServiceV1Beta1Server can be embedded to have forward compatible implementations. 1477type UnimplementedRecaptchaEnterpriseServiceV1Beta1Server struct { 1478} 1479 1480func (*UnimplementedRecaptchaEnterpriseServiceV1Beta1Server) CreateAssessment(ctx context.Context, req *CreateAssessmentRequest) (*Assessment, error) { 1481 return nil, status.Errorf(codes.Unimplemented, "method CreateAssessment not implemented") 1482} 1483func (*UnimplementedRecaptchaEnterpriseServiceV1Beta1Server) AnnotateAssessment(ctx context.Context, req *AnnotateAssessmentRequest) (*AnnotateAssessmentResponse, error) { 1484 return nil, status.Errorf(codes.Unimplemented, "method AnnotateAssessment not implemented") 1485} 1486func (*UnimplementedRecaptchaEnterpriseServiceV1Beta1Server) CreateKey(ctx context.Context, req *CreateKeyRequest) (*Key, error) { 1487 return nil, status.Errorf(codes.Unimplemented, "method CreateKey not implemented") 1488} 1489func (*UnimplementedRecaptchaEnterpriseServiceV1Beta1Server) ListKeys(ctx context.Context, req *ListKeysRequest) (*ListKeysResponse, error) { 1490 return nil, status.Errorf(codes.Unimplemented, "method ListKeys not implemented") 1491} 1492func (*UnimplementedRecaptchaEnterpriseServiceV1Beta1Server) GetKey(ctx context.Context, req *GetKeyRequest) (*Key, error) { 1493 return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented") 1494} 1495func (*UnimplementedRecaptchaEnterpriseServiceV1Beta1Server) UpdateKey(ctx context.Context, req *UpdateKeyRequest) (*Key, error) { 1496 return nil, status.Errorf(codes.Unimplemented, "method UpdateKey not implemented") 1497} 1498func (*UnimplementedRecaptchaEnterpriseServiceV1Beta1Server) DeleteKey(ctx context.Context, req *DeleteKeyRequest) (*empty.Empty, error) { 1499 return nil, status.Errorf(codes.Unimplemented, "method DeleteKey not implemented") 1500} 1501 1502func RegisterRecaptchaEnterpriseServiceV1Beta1Server(s *grpc.Server, srv RecaptchaEnterpriseServiceV1Beta1Server) { 1503 s.RegisterService(&_RecaptchaEnterpriseServiceV1Beta1_serviceDesc, srv) 1504} 1505 1506func _RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1507 in := new(CreateAssessmentRequest) 1508 if err := dec(in); err != nil { 1509 return nil, err 1510 } 1511 if interceptor == nil { 1512 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).CreateAssessment(ctx, in) 1513 } 1514 info := &grpc.UnaryServerInfo{ 1515 Server: srv, 1516 FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/CreateAssessment", 1517 } 1518 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1519 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).CreateAssessment(ctx, req.(*CreateAssessmentRequest)) 1520 } 1521 return interceptor(ctx, in, info, handler) 1522} 1523 1524func _RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1525 in := new(AnnotateAssessmentRequest) 1526 if err := dec(in); err != nil { 1527 return nil, err 1528 } 1529 if interceptor == nil { 1530 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).AnnotateAssessment(ctx, in) 1531 } 1532 info := &grpc.UnaryServerInfo{ 1533 Server: srv, 1534 FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/AnnotateAssessment", 1535 } 1536 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1537 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).AnnotateAssessment(ctx, req.(*AnnotateAssessmentRequest)) 1538 } 1539 return interceptor(ctx, in, info, handler) 1540} 1541 1542func _RecaptchaEnterpriseServiceV1Beta1_CreateKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1543 in := new(CreateKeyRequest) 1544 if err := dec(in); err != nil { 1545 return nil, err 1546 } 1547 if interceptor == nil { 1548 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).CreateKey(ctx, in) 1549 } 1550 info := &grpc.UnaryServerInfo{ 1551 Server: srv, 1552 FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/CreateKey", 1553 } 1554 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1555 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).CreateKey(ctx, req.(*CreateKeyRequest)) 1556 } 1557 return interceptor(ctx, in, info, handler) 1558} 1559 1560func _RecaptchaEnterpriseServiceV1Beta1_ListKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1561 in := new(ListKeysRequest) 1562 if err := dec(in); err != nil { 1563 return nil, err 1564 } 1565 if interceptor == nil { 1566 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).ListKeys(ctx, in) 1567 } 1568 info := &grpc.UnaryServerInfo{ 1569 Server: srv, 1570 FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/ListKeys", 1571 } 1572 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1573 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).ListKeys(ctx, req.(*ListKeysRequest)) 1574 } 1575 return interceptor(ctx, in, info, handler) 1576} 1577 1578func _RecaptchaEnterpriseServiceV1Beta1_GetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1579 in := new(GetKeyRequest) 1580 if err := dec(in); err != nil { 1581 return nil, err 1582 } 1583 if interceptor == nil { 1584 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).GetKey(ctx, in) 1585 } 1586 info := &grpc.UnaryServerInfo{ 1587 Server: srv, 1588 FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/GetKey", 1589 } 1590 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1591 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).GetKey(ctx, req.(*GetKeyRequest)) 1592 } 1593 return interceptor(ctx, in, info, handler) 1594} 1595 1596func _RecaptchaEnterpriseServiceV1Beta1_UpdateKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1597 in := new(UpdateKeyRequest) 1598 if err := dec(in); err != nil { 1599 return nil, err 1600 } 1601 if interceptor == nil { 1602 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).UpdateKey(ctx, in) 1603 } 1604 info := &grpc.UnaryServerInfo{ 1605 Server: srv, 1606 FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/UpdateKey", 1607 } 1608 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1609 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).UpdateKey(ctx, req.(*UpdateKeyRequest)) 1610 } 1611 return interceptor(ctx, in, info, handler) 1612} 1613 1614func _RecaptchaEnterpriseServiceV1Beta1_DeleteKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1615 in := new(DeleteKeyRequest) 1616 if err := dec(in); err != nil { 1617 return nil, err 1618 } 1619 if interceptor == nil { 1620 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).DeleteKey(ctx, in) 1621 } 1622 info := &grpc.UnaryServerInfo{ 1623 Server: srv, 1624 FullMethod: "/google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1/DeleteKey", 1625 } 1626 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1627 return srv.(RecaptchaEnterpriseServiceV1Beta1Server).DeleteKey(ctx, req.(*DeleteKeyRequest)) 1628 } 1629 return interceptor(ctx, in, info, handler) 1630} 1631 1632var _RecaptchaEnterpriseServiceV1Beta1_serviceDesc = grpc.ServiceDesc{ 1633 ServiceName: "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1", 1634 HandlerType: (*RecaptchaEnterpriseServiceV1Beta1Server)(nil), 1635 Methods: []grpc.MethodDesc{ 1636 { 1637 MethodName: "CreateAssessment", 1638 Handler: _RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_Handler, 1639 }, 1640 { 1641 MethodName: "AnnotateAssessment", 1642 Handler: _RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_Handler, 1643 }, 1644 { 1645 MethodName: "CreateKey", 1646 Handler: _RecaptchaEnterpriseServiceV1Beta1_CreateKey_Handler, 1647 }, 1648 { 1649 MethodName: "ListKeys", 1650 Handler: _RecaptchaEnterpriseServiceV1Beta1_ListKeys_Handler, 1651 }, 1652 { 1653 MethodName: "GetKey", 1654 Handler: _RecaptchaEnterpriseServiceV1Beta1_GetKey_Handler, 1655 }, 1656 { 1657 MethodName: "UpdateKey", 1658 Handler: _RecaptchaEnterpriseServiceV1Beta1_UpdateKey_Handler, 1659 }, 1660 { 1661 MethodName: "DeleteKey", 1662 Handler: _RecaptchaEnterpriseServiceV1Beta1_DeleteKey_Handler, 1663 }, 1664 }, 1665 Streams: []grpc.StreamDesc{}, 1666 Metadata: "google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto", 1667} 1668