# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto", :syntax => :proto3) do add_message "google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest" do optional :parent, :string, 1 optional :assessment, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Assessment" end add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest" do optional :name, :string, 1 optional :annotation, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation" repeated :reasons, :enum, 3, "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason" optional :hashed_account_id, :bytes, 4 end add_enum "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation" do value :ANNOTATION_UNSPECIFIED, 0 value :LEGITIMATE, 1 value :FRAUDULENT, 2 value :PASSWORD_CORRECT, 3 value :PASSWORD_INCORRECT, 4 end add_enum "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason" do value :REASON_UNSPECIFIED, 0 value :CHARGEBACK, 1 value :CHARGEBACK_FRAUD, 8 value :CHARGEBACK_DISPUTE, 9 value :PAYMENT_HEURISTICS, 2 value :INITIATED_TWO_FACTOR, 7 value :PASSED_TWO_FACTOR, 3 value :FAILED_TWO_FACTOR, 4 value :CORRECT_PASSWORD, 5 value :INCORRECT_PASSWORD, 6 end add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse" do end add_message "google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification" do optional :hashed_user_credentials, :bytes, 1 optional :credentials_leaked, :bool, 2 optional :canonicalized_username, :string, 3 end add_message "google.cloud.recaptchaenterprise.v1beta1.Assessment" do optional :name, :string, 1 optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Event" optional :score, :float, 3 optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties" repeated :reasons, :enum, 5, "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason" optional :password_leak_verification, :message, 7, "google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification" optional :account_defender_assessment, :message, 8, "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment" end add_enum "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason" do value :CLASSIFICATION_REASON_UNSPECIFIED, 0 value :AUTOMATION, 1 value :UNEXPECTED_ENVIRONMENT, 2 value :TOO_MUCH_TRAFFIC, 3 value :UNEXPECTED_USAGE_PATTERNS, 4 value :LOW_CONFIDENCE_SCORE, 5 end add_message "google.cloud.recaptchaenterprise.v1beta1.Event" do optional :token, :string, 1 optional :site_key, :string, 2 optional :user_agent, :string, 3 optional :user_ip_address, :string, 4 optional :expected_action, :string, 5 optional :hashed_account_id, :bytes, 6 end add_message "google.cloud.recaptchaenterprise.v1beta1.TokenProperties" do optional :valid, :bool, 1 optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason" optional :create_time, :message, 3, "google.protobuf.Timestamp" optional :hostname, :string, 4 optional :action, :string, 5 end add_enum "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason" do value :INVALID_REASON_UNSPECIFIED, 0 value :UNKNOWN_INVALID_REASON, 1 value :MALFORMED, 2 value :EXPIRED, 3 value :DUPE, 4 value :SITE_MISMATCH, 5 value :MISSING, 6 value :BROWSER_ERROR, 7 end add_message "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment" do repeated :labels, :enum, 1, "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel" end add_enum "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel" do value :ACCOUNT_DEFENDER_LABEL_UNSPECIFIED, 0 value :PROFILE_MATCH, 1 value :SUSPICIOUS_LOGIN_ACTIVITY, 2 value :SUSPICIOUS_ACCOUNT_CREATION, 3 value :RELATED_ACCOUNTS_NUMBER_HIGH, 4 end end end module Google module Cloud module RecaptchaEnterprise module V1beta1 CreateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest").msgclass AnnotateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest").msgclass AnnotateAssessmentRequest::Annotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation").enummodule AnnotateAssessmentRequest::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason").enummodule AnnotateAssessmentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse").msgclass PasswordLeakVerification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification").msgclass Assessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Assessment").msgclass Assessment::ClassificationReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason").enummodule Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Event").msgclass TokenProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TokenProperties").msgclass TokenProperties::InvalidReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason").enummodule AccountDefenderAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment").msgclass AccountDefenderAssessment::AccountDefenderLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel").enummodule end end end end