# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto", :syntax => :proto3) do add_message "google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest" do optional :parent, :string, 1 optional :assessment, :message, 2, "google.cloud.recaptchaenterprise.v1.Assessment" end add_message "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest" do optional :name, :string, 1 optional :annotation, :enum, 2, "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation" repeated :reasons, :enum, 3, "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason" optional :hashed_account_id, :bytes, 4 end add_enum "google.cloud.recaptchaenterprise.v1.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.v1.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.v1.AnnotateAssessmentResponse" do end add_message "google.cloud.recaptchaenterprise.v1.Assessment" do optional :name, :string, 1 optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1.Event" optional :risk_analysis, :message, 3, "google.cloud.recaptchaenterprise.v1.RiskAnalysis" optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1.TokenProperties" optional :account_defender_assessment, :message, 6, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment" end add_message "google.cloud.recaptchaenterprise.v1.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.v1.RiskAnalysis" do optional :score, :float, 1 repeated :reasons, :enum, 2, "google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason" end add_enum "google.cloud.recaptchaenterprise.v1.RiskAnalysis.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.v1.TokenProperties" do optional :valid, :bool, 1 optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason" optional :create_time, :message, 3, "google.protobuf.Timestamp" optional :hostname, :string, 4 optional :action, :string, 5 end add_enum "google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason" do value :INVALID_REASON_UNSPECIFIED, 0 value :UNKNOWN_INVALID_REASON, 1 value :MALFORMED, 2 value :EXPIRED, 3 value :DUPE, 4 value :MISSING, 5 value :BROWSER_ERROR, 6 end add_message "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment" do repeated :labels, :enum, 1, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel" end add_enum "google.cloud.recaptchaenterprise.v1.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 add_message "google.cloud.recaptchaenterprise.v1.CreateKeyRequest" do optional :parent, :string, 1 optional :key, :message, 2, "google.cloud.recaptchaenterprise.v1.Key" end add_message "google.cloud.recaptchaenterprise.v1.ListKeysRequest" do optional :parent, :string, 1 optional :page_size, :int32, 2 optional :page_token, :string, 3 end add_message "google.cloud.recaptchaenterprise.v1.ListKeysResponse" do repeated :keys, :message, 1, "google.cloud.recaptchaenterprise.v1.Key" optional :next_page_token, :string, 2 end add_message "google.cloud.recaptchaenterprise.v1.GetKeyRequest" do optional :name, :string, 1 end add_message "google.cloud.recaptchaenterprise.v1.UpdateKeyRequest" do optional :key, :message, 1, "google.cloud.recaptchaenterprise.v1.Key" optional :update_mask, :message, 2, "google.protobuf.FieldMask" end add_message "google.cloud.recaptchaenterprise.v1.DeleteKeyRequest" do optional :name, :string, 1 end add_message "google.cloud.recaptchaenterprise.v1.MigrateKeyRequest" do optional :name, :string, 1 end add_message "google.cloud.recaptchaenterprise.v1.GetMetricsRequest" do optional :name, :string, 1 end add_message "google.cloud.recaptchaenterprise.v1.Metrics" do optional :name, :string, 4 optional :start_time, :message, 1, "google.protobuf.Timestamp" repeated :score_metrics, :message, 2, "google.cloud.recaptchaenterprise.v1.ScoreMetrics" repeated :challenge_metrics, :message, 3, "google.cloud.recaptchaenterprise.v1.ChallengeMetrics" end add_message "google.cloud.recaptchaenterprise.v1.Key" do optional :name, :string, 1 optional :display_name, :string, 2 map :labels, :string, :string, 6 optional :create_time, :message, 7, "google.protobuf.Timestamp" optional :testing_options, :message, 9, "google.cloud.recaptchaenterprise.v1.TestingOptions" oneof :platform_settings do optional :web_settings, :message, 3, "google.cloud.recaptchaenterprise.v1.WebKeySettings" optional :android_settings, :message, 4, "google.cloud.recaptchaenterprise.v1.AndroidKeySettings" optional :ios_settings, :message, 5, "google.cloud.recaptchaenterprise.v1.IOSKeySettings" end end add_message "google.cloud.recaptchaenterprise.v1.TestingOptions" do optional :testing_score, :float, 1 optional :testing_challenge, :enum, 2, "google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge" end add_enum "google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge" do value :TESTING_CHALLENGE_UNSPECIFIED, 0 value :NOCAPTCHA, 1 value :UNSOLVABLE_CHALLENGE, 2 end add_message "google.cloud.recaptchaenterprise.v1.WebKeySettings" do optional :allow_all_domains, :bool, 3 repeated :allowed_domains, :string, 1 optional :allow_amp_traffic, :bool, 2 optional :integration_type, :enum, 4, "google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType" optional :challenge_security_preference, :enum, 5, "google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference" end add_enum "google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType" do value :INTEGRATION_TYPE_UNSPECIFIED, 0 value :SCORE, 1 value :CHECKBOX, 2 value :INVISIBLE, 3 end add_enum "google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference" do value :CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED, 0 value :USABILITY, 1 value :BALANCE, 2 value :SECURITY, 3 end add_message "google.cloud.recaptchaenterprise.v1.AndroidKeySettings" do optional :allow_all_package_names, :bool, 2 repeated :allowed_package_names, :string, 1 end add_message "google.cloud.recaptchaenterprise.v1.IOSKeySettings" do optional :allow_all_bundle_ids, :bool, 2 repeated :allowed_bundle_ids, :string, 1 end add_message "google.cloud.recaptchaenterprise.v1.ScoreDistribution" do map :score_buckets, :int32, :int64, 1 end add_message "google.cloud.recaptchaenterprise.v1.ScoreMetrics" do optional :overall_metrics, :message, 1, "google.cloud.recaptchaenterprise.v1.ScoreDistribution" map :action_metrics, :string, :message, 2, "google.cloud.recaptchaenterprise.v1.ScoreDistribution" end add_message "google.cloud.recaptchaenterprise.v1.ChallengeMetrics" do optional :pageload_count, :int64, 1 optional :nocaptcha_count, :int64, 2 optional :failed_count, :int64, 3 optional :passed_count, :int64, 4 end add_message "google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest" do optional :parent, :string, 1 optional :page_size, :int32, 2 optional :page_token, :string, 3 end add_message "google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse" do repeated :related_account_group_memberships, :message, 1, "google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership" optional :next_page_token, :string, 2 end add_message "google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest" do optional :parent, :string, 1 optional :page_size, :int32, 2 optional :page_token, :string, 3 end add_message "google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse" do repeated :related_account_groups, :message, 1, "google.cloud.recaptchaenterprise.v1.RelatedAccountGroup" optional :next_page_token, :string, 2 end add_message "google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest" do optional :parent, :string, 1 optional :hashed_account_id, :bytes, 2 optional :page_size, :int32, 3 optional :page_token, :string, 4 end add_message "google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse" do repeated :related_account_group_memberships, :message, 1, "google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership" optional :next_page_token, :string, 2 end add_message "google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership" do optional :name, :string, 1 optional :hashed_account_id, :bytes, 2 end add_message "google.cloud.recaptchaenterprise.v1.RelatedAccountGroup" do optional :name, :string, 1 end end end module Google module Cloud module RecaptchaEnterprise module V1 CreateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest").msgclass AnnotateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest").msgclass AnnotateAssessmentRequest::Annotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation").enummodule AnnotateAssessmentRequest::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason").enummodule AnnotateAssessmentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse").msgclass Assessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Assessment").msgclass Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Event").msgclass RiskAnalysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RiskAnalysis").msgclass RiskAnalysis::ClassificationReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason").enummodule TokenProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties").msgclass TokenProperties::InvalidReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason").enummodule AccountDefenderAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment").msgclass AccountDefenderAssessment::AccountDefenderLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel").enummodule CreateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateKeyRequest").msgclass ListKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListKeysRequest").msgclass ListKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListKeysResponse").msgclass GetKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.GetKeyRequest").msgclass UpdateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.UpdateKeyRequest").msgclass DeleteKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.DeleteKeyRequest").msgclass MigrateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.MigrateKeyRequest").msgclass GetMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.GetMetricsRequest").msgclass Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Metrics").msgclass Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Key").msgclass TestingOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TestingOptions").msgclass TestingOptions::TestingChallenge = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge").enummodule WebKeySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WebKeySettings").msgclass WebKeySettings::IntegrationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType").enummodule WebKeySettings::ChallengeSecurityPreference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference").enummodule AndroidKeySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AndroidKeySettings").msgclass IOSKeySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.IOSKeySettings").msgclass ScoreDistribution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ScoreDistribution").msgclass ScoreMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ScoreMetrics").msgclass ChallengeMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ChallengeMetrics").msgclass ListRelatedAccountGroupMembershipsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest").msgclass ListRelatedAccountGroupMembershipsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse").msgclass ListRelatedAccountGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest").msgclass ListRelatedAccountGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse").msgclass SearchRelatedAccountGroupMembershipsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest").msgclass SearchRelatedAccountGroupMembershipsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse").msgclass RelatedAccountGroupMembership = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership").msgclass RelatedAccountGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RelatedAccountGroup").msgclass end end end end