Service Client: Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RecaptchaEnterpriseServiceClient

Client stub representing the remote RecaptchaEnterpriseService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to recaptchaenterprise.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise - Compiled Protocol Buffers messages for google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto

SYNOPSIS

use Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise;

my $msg = Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::CreateAssessmentRequest->new({
    parent => $parent,
    assessment => $assessment,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::CreateAssessmentRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::CreateAssessmentRequest

The create assessment request message.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionEvent

Describes an event in the lifecycle of a payment transaction.

Inherits from Protobuf::Message.

Accessors

  • $msg->event_type() / $msg->event_type($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::TransactionEvent::TransactionEventType)

    Optional. The type of this transaction event.

  • $msg->reason() / $msg->reason($value)

    Type: String

    Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.

  • $msg->value() / $msg->value($value)

    Type: Double

    Optional. The value that corresponds with this transaction event, if one exists. For example, a refund event where $5.00 was refunded. Currency is obtained from the original transaction data.

  • $msg->event_time() / $msg->event_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.

Enum: TransactionEvent::TransactionEventType

  • TRANSACTION_EVENT_TYPE_UNSPECIFIED => 0

  • MERCHANT_APPROVE => 1

  • MERCHANT_DENY => 2

  • MANUAL_REVIEW => 3

  • AUTHORIZATION => 4

  • AUTHORIZATION_DECLINE => 5

  • PAYMENT_CAPTURE => 6

  • PAYMENT_CAPTURE_DECLINE => 7

  • CANCEL => 8

  • CHARGEBACK_INQUIRY => 9

  • CHARGEBACK_ALERT => 10

  • FRAUD_NOTIFICATION => 11

  • CHARGEBACK => 12

  • CHARGEBACK_REPRESENTMENT => 13

  • CHARGEBACK_REVERSE => 14

  • REFUND_REQUEST => 15

  • REFUND_DECLINE => 16

  • REFUND => 17

  • REFUND_REVERSE => 18

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PhoneAuthenticationEvent

Details on a phone authentication event

Inherits from Protobuf::Message.

Accessors

  • $msg->phone_number() / $msg->phone_number($value)

    Type: String

    Required. Phone number in E.164 format for which a multi-factor authentication challenge was initiated, succeeded, or failed.

  • $msg->event_time() / $msg->event_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AnnotateAssessmentRequest

The request message to annotate an Assessment.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`.

  • $msg->annotation() / $msg->annotation($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::AnnotateAssessmentRequest::Annotation)

    Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.

  • $msg->reasons() / $msg->reasons($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::AnnotateAssessmentRequest::Reason)

    Optional. Reasons for the annotation that are assigned to the event.

  • $msg->account_id() / $msg->account_id($value)

    Type: String

    Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.

  • $msg->hashed_account_id() / $msg->hashed_account_id($value)

    Type: Bytes

    Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting `hashed_account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.

  • $msg->transaction_event() / $msg->transaction_event($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionEvent)

    Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.

  • $msg->phone_authentication_event() / $msg->phone_authentication_event($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PhoneAuthenticationEvent)

    Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.

Enum: AnnotateAssessmentRequest::Annotation

  • ANNOTATION_UNSPECIFIED => 0

  • LEGITIMATE => 1

  • FRAUDULENT => 2

  • PASSWORD_CORRECT => 3

  • PASSWORD_INCORRECT => 4

Enum: AnnotateAssessmentRequest::Reason

  • REASON_UNSPECIFIED => 0

  • CHARGEBACK => 1

  • CHARGEBACK_FRAUD => 8

  • CHARGEBACK_DISPUTE => 9

  • REFUND => 10

  • REFUND_FRAUD => 11

  • TRANSACTION_ACCEPTED => 12

  • TRANSACTION_DECLINED => 13

  • PAYMENT_HEURISTICS => 2

  • INITIATED_TWO_FACTOR => 7

  • PASSED_TWO_FACTOR => 3

  • FAILED_TWO_FACTOR => 4

  • CORRECT_PASSWORD => 5

  • INCORRECT_PASSWORD => 6

  • SOCIAL_SPAM => 14

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AnnotateAssessmentResponse

Empty response for AnnotateAssessment.

Inherits from Protobuf::Message.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::EndpointVerificationInfo

Information about a verification endpoint that can be used for 2FA.

Inherits from Protobuf::Message.

Accessors

  • $msg->email_address() / $msg->email_address($value)

    Type: String

    Email address for which to trigger a verification request.

  • $msg->phone_number() / $msg->phone_number($value)

    Type: String

    Phone number for which to trigger a verification request. Should be given in E.164 format.

  • $msg->request_token() / $msg->request_token($value)

    Type: String

    Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.

  • $msg->last_verification_time() / $msg->last_verification_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp of the last successful verification for the endpoint, if any.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AccountVerificationInfo

Information about account verification, used for identity verification.

Inherits from Protobuf::Message.

Accessors

  • $msg->endpoints() / $msg->endpoints($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::EndpointVerificationInfo)

    Optional. Endpoints that can be used for identity verification.

  • $msg->language_code() / $msg->language_code($value)

    Type: String

    Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.

  • $msg->latest_verification_result() / $msg->latest_verification_result($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::AccountVerificationInfo::Result)

    Output only. Result of the latest account verification challenge.

  • $msg->username() / $msg->username($value)

    Type: String

    Username of the account that is being verified. Deprecated. Customers should now provide the `account_id` field in `event.user_info`.

Enum: AccountVerificationInfo::Result

  • RESULT_UNSPECIFIED => 0

  • SUCCESS_USER_VERIFIED => 1

  • ERROR_USER_NOT_VERIFIED => 2

  • ERROR_SITE_ONBOARDING_INCOMPLETE => 3

  • ERROR_RECIPIENT_NOT_ALLOWED => 4

  • ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED => 5

  • ERROR_CRITICAL_INTERNAL => 6

  • ERROR_CUSTOMER_QUOTA_EXHAUSTED => 7

  • ERROR_VERIFICATION_BYPASSED => 8

  • ERROR_VERDICT_MISMATCH => 9

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PrivatePasswordLeakVerification

Private password leak verification info.

Inherits from Protobuf::Message.

Accessors

  • $msg->lookup_hash_prefix() / $msg->lookup_hash_prefix($value)

    Type: Bytes

    Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It is used to look up password leaks associated with that hash prefix.

  • $msg->encrypted_user_credentials_hash() / $msg->encrypted_user_credentials_hash($value)

    Type: Bytes

    Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through `reencrypted_user_credentials_hash`.

  • $msg->encrypted_leak_match_prefixes() / $msg->encrypted_leak_match_prefixes($value)

    Type: Bytes

    Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of `reencrypted_user_credentials_hash`

  • $msg->reencrypted_user_credentials_hash() / $msg->reencrypted_user_credentials_hash($value)

    Type: Bytes

    Output only. Corresponds to the re-encryption of the `encrypted_user_credentials_hash` field. It is used to match potential password leaks within `encrypted_leak_match_prefixes`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Assessment

A reCAPTCHA Enterprise assessment resource.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Event

The event being assessed.

Inherits from Protobuf::Message.

Accessors

  • $msg->token() / $msg->token($value)

    Type: String

    Optional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site.

  • $msg->site_key() / $msg->site_key($value)

    Type: String

    Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token.

  • $msg->user_agent() / $msg->user_agent($value)

    Type: String

    Optional. The user agent present in the request from the user's device related to this event.

  • $msg->user_ip_address() / $msg->user_ip_address($value)

    Type: String

    Optional. The IP address in the request from the user's device related to this event.

  • $msg->expected_action() / $msg->expected_action($value)

    Type: String

    Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with recaptcha enterprise. Required for Universal keys.

  • $msg->hashed_account_id() / $msg->hashed_account_id($value)

    Type: Bytes

    Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.

  • $msg->express() / $msg->express($value)

    Type: Bool

    Optional. Flag for a reCAPTCHA express request for an assessment without a token. If enabled, `site_key` must reference an Express site key.

  • $msg->requested_uri() / $msg->requested_uri($value)

    Type: String

    Optional. The URI resource the user requested that triggered an assessment.

  • $msg->waf_token_assessment() / $msg->waf_token_assessment($value)

    Type: Bool

    Optional. Flag for running Web Application Firewall (WAF) token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key.

  • $msg->ja3() / $msg->ja3($value)

    Type: String

    Optional. JA3 fingerprint for SSL clients. To learn how to compute this fingerprint, please refer to https://github.com/salesforce/ja3.

  • $msg->ja4() / $msg->ja4($value)

    Type: String

    Optional. JA4 fingerprint for SSL clients. To learn how to compute this fingerprint, please refer to https://github.com/FoxIO-LLC/ja4.

  • $msg->headers() / $msg->headers($value)

    Type: String

    Optional. HTTP header information about the request.

  • $msg->firewall_policy_evaluation() / $msg->firewall_policy_evaluation($value)

    Type: Bool

    Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy is evaluated and a suggested firewall action is returned in the response.

  • $msg->transaction_data() / $msg->transaction_data($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionData)

    Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Enterprise Fraud Prevention and the FraudPreventionAssessment component in the response.

  • $msg->user_info() / $msg->user_info($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UserInfo)

    Optional. Information about the user that generates this event, when they can be identified. They are often identified through the use of an account for logged-in requests or login/registration requests, or by providing user identifiers for guest actions like checkout.

  • $msg->fraud_prevention() / $msg->fraud_prevention($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::Event::FraudPrevention)

    Optional. The Fraud Prevention setting for this assessment.

Enum: Event::FraudPrevention

  • FRAUD_PREVENTION_UNSPECIFIED => 0

  • ENABLED => 1

  • DISABLED => 2

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionData

Transaction data associated with a payment protected by reCAPTCHA Enterprise.

Inherits from Protobuf::Message.

Accessors

  • $msg->transaction_id() / $msg->transaction_id($value)

    Type: String

    Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

  • $msg->payment_method() / $msg->payment_method($value)

    Type: String

    Optional. The payment method for the transaction. The allowed values are:

    * credit-card * debit-card * gift-card * processor-{name} (If a third-party is used, for example, processor-paypal) * custom-{name} (If an alternative method is used, for example, custom-crypto)

  • $msg->card_bin() / $msg->card_bin($value)

    Type: String

    Optional. The Bank Identification Number - generally the first 6 or 8 digits of the card.

  • $msg->card_last_four() / $msg->card_last_four($value)

    Type: String

    Optional. The last four digits of the card.

  • $msg->currency_code() / $msg->currency_code($value)

    Type: String

    Optional. The currency code in ISO-4217 format.

  • $msg->value() / $msg->value($value)

    Type: Double

    Optional. The decimal value of the transaction in the specified currency.

  • $msg->shipping_value() / $msg->shipping_value($value)

    Type: Double

    Optional. The value of shipping in the specified currency. 0 for free or no shipping.

  • $msg->shipping_address() / $msg->shipping_address($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionData::Address)

    Optional. Destination address if this transaction involves shipping a physical item.

  • $msg->billing_address() / $msg->billing_address($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionData::Address)

    Optional. Address associated with the payment method when applicable.

  • $msg->user() / $msg->user($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionData::User)

    Optional. Information about the user paying/initiating the transaction.

  • $msg->merchants() / $msg->merchants($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionData::User)

    Optional. Information about the user or users fulfilling the transaction.

  • $msg->items() / $msg->items($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionData::Item)

    Optional. Items purchased in this transaction.

  • $msg->gateway_info() / $msg->gateway_info($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TransactionData::GatewayInfo)

    Optional. Information about the payment gateway's response to the transaction.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UserInfo

User information associated with a request protected by reCAPTCHA Enterprise.

Inherits from Protobuf::Message.

Accessors

  • $msg->create_account_time() / $msg->create_account_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

  • $msg->account_id() / $msg->account_id($value)

    Type: String

    Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.

  • $msg->user_ids() / $msg->user_ids($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UserId)

    Optional. Identifiers associated with this user or request.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UserId

An identifier associated with a user.

Inherits from Protobuf::Message.

Accessors

  • $msg->email() / $msg->email($value)

    Type: String

    Optional. An email address.

  • $msg->phone_number() / $msg->phone_number($value)

    Type: String

    Optional. A phone number. Should use the E.164 format.

  • $msg->username() / $msg->username($value)

    Type: String

    Optional. A unique username, if different from all the other identifiers and `account_id` that are provided. Can be a unique login handle or display name for a user.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RiskAnalysis

Risk analysis result for an event.

Inherits from Protobuf::Message.

Accessors

  • $msg->score() / $msg->score($value)

    Type: Float

    Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).

  • $msg->reasons() / $msg->reasons($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::RiskAnalysis::ClassificationReason)

    Output only. Reasons contributing to the risk analysis verdict.

  • $msg->extended_verdict_reasons() / $msg->extended_verdict_reasons($value)

    Type: String

    Output only. Additional reasons contributing to the risk analysis verdict. These reasons are available to Enterprise tier projects only. Contact sales for more information. The set of reasons is subject to change.

  • $msg->last_challenge_type() / $msg->last_challenge_type($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::ChallengeType)

    Output only. Type of the last challenge presented to the user for Universal, `POLICY_BASED_CHALLENGE` and `INVISIBLE` keys. The field is only set when a challenge was presented to the user.

  • $msg->challenge() / $msg->challenge($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::RiskAnalysis::Challenge)

    Output only. Challenge information for Universal, `POLICY_BASED_CHALLENGE` and `INVISIBLE` keys.

  • $msg->verified_bots() / $msg->verified_bots($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Bot)

    Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.

Enum: RiskAnalysis::ClassificationReason

  • CLASSIFICATION_REASON_UNSPECIFIED => 0

  • AUTOMATION => 1

  • UNEXPECTED_ENVIRONMENT => 2

  • TOO_MUCH_TRAFFIC => 3

  • UNEXPECTED_USAGE_PATTERNS => 4

  • LOW_CONFIDENCE_SCORE => 5

  • SUSPECTED_CARDING => 6

  • SUSPECTED_CHARGEBACK => 7

Enum: RiskAnalysis::Challenge

  • CHALLENGE_UNSPECIFIED => 0

  • NOCAPTCHA => 1

  • PASSED => 2

  • FAILED => 3

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Bot

Bot information and metadata.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Optional. Enumerated string value that indicates the identity of the bot, formatted in kebab-case. Current example values include the following:

    * google-agent - AI_AGENT * browser-base - AI_AGENT * chat-gpt - AI_AGENT * aws-bedrock - AI_AGENT * cybaa-bot - AI_AGENT * cloudflare - AI_AGENT * payhawk - AI_AGENT * duck-duck-go - SEARCH_INDEXER * mediaboard - CONTENT_SCRAPER * marker-io - AI_AGENT * broadcom - AI_AGENT * anchor-browser - AI_AGENT * shopify - AI_AGENT * stackscope - CONTENT_SCRAPER * manus - AI_AGENT * kernel-sh - AI_AGENT * zvelo - SEARCH_INDEXER

    Ensure that your applications can handle identifier values not explicitly listed here. Deprecated values might take some time to stop showing up in responses. New values can be pushed so this list should be taken as non exhaustive.

  • $msg->bot_type() / $msg->bot_type($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::Bot::BotType)

    Optional. Enumerated field representing the type of bot.

Enum: Bot::BotType

  • BOT_TYPE_UNSPECIFIED => 0

  • AI_AGENT => 1

  • CONTENT_SCRAPER => 2

  • SEARCH_INDEXER => 3

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TokenProperties

Properties of the provided event token.

Inherits from Protobuf::Message.

Accessors

  • $msg->valid() / $msg->valid($value)

    Type: Bool

    Output only. Indicates whether the provided user response token is valid. If `false`, the token is invalid, either because the user failed the challenge or for a reason provided in the `invalid_reason` field.

  • $msg->invalid_reason() / $msg->invalid_reason($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::TokenProperties::InvalidReason)

    Output only. Reason associated with the response when valid = false.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp corresponding to the generation of the token.

  • $msg->hostname() / $msg->hostname($value)

    Type: String

    Output only. The hostname of the page on which the token was generated (Web keys only).

  • $msg->android_package_name() / $msg->android_package_name($value)

    Type: String

    Output only. The name of the Android package with which the token was generated (Android keys only).

  • $msg->ios_bundle_id() / $msg->ios_bundle_id($value)

    Type: String

    Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).

  • $msg->action() / $msg->action($value)

    Type: String

    Output only. Action name provided at token generation.

Enum: TokenProperties::InvalidReason

  • INVALID_REASON_UNSPECIFIED => 0

  • UNKNOWN_INVALID_REASON => 1

  • MALFORMED => 2

  • EXPIRED => 3

  • DUPE => 4

  • MISSING => 5

  • BROWSER_ERROR => 6

  • UNEXPECTED_ACTION => 7

  • KEY_MISMATCH => 8

  • DOMAIN_MISMATCH => 9

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudPreventionAssessment

Assessment for Fraud Prevention.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudSignals

Fraud signals describing users and cards involved in the transaction.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::SmsTollFraudVerdict

Information about SMS toll fraud.

Inherits from Protobuf::Message.

Accessors

Enum: SmsTollFraudVerdict::SmsTollFraudReason

  • SMS_TOLL_FRAUD_REASON_UNSPECIFIED => 0

  • INVALID_PHONE_NUMBER => 1

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PhoneFraudAssessment

Assessment for Phone Fraud

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AccountDefenderAssessment

Account defense risk assessment.

Inherits from Protobuf::Message.

Accessors

Enum: AccountDefenderAssessment::AccountDefenderLabel

  • ACCOUNT_DEFENDER_LABEL_UNSPECIFIED => 0

  • PROFILE_MATCH => 1

  • SUSPICIOUS_LOGIN_ACTIVITY => 2

  • SUSPICIOUS_ACCOUNT_CREATION => 3

  • RELATED_ACCOUNTS_NUMBER_HIGH => 4

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::CreateKeyRequest

The create key request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the project in which the key is created, in the format `projects/{project}`.

  • $msg->key() / $msg->key($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Key)

    Required. Information to create a reCAPTCHA Enterprise key.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListKeysRequest

The list keys request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the project that contains the keys that is listed, in the format `projects/{project}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of keys to return. Default is 10. Max limit is 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. The next_page_token value returned from a previous. ListKeysRequest, if any.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListKeysResponse

Response to request to list keys in a project.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RetrieveLegacySecretKeyRequest

The retrieve legacy secret key request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    Required. The public key name linked to the requested secret key in the format `projects/{project}/keys/{key}`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::GetKeyRequest

The get key request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the requested key, in the format `projects/{project}/keys/{key}`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UpdateKeyRequest

The update key request message.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::DeleteKeyRequest

The delete key request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the key to be deleted, in the format `projects/{project}/keys/{key}`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::CreateFirewallPolicyRequest

The create firewall policy request message.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListFirewallPoliciesRequest

The list firewall policies request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the project to list the policies for, in the format `projects/{project}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of policies to return. Default is 10. Max limit is 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. The next_page_token value returned from a previous. ListFirewallPoliciesRequest, if any.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListFirewallPoliciesResponse

Response to request to list firewall policies belonging to a project.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::GetFirewallPolicyRequest

The get firewall policy request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the requested policy, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UpdateFirewallPolicyRequest

The update firewall policy request message.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::DeleteFirewallPolicyRequest

The delete firewall policy request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the policy to be deleted, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ReorderFirewallPoliciesRequest

The reorder firewall policies request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the project to list the policies for, in the format `projects/{project}`.

  • $msg->names() / $msg->names($value)

    Type: String

    Required. A list containing all policy names, in the new order. Each name is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ReorderFirewallPoliciesResponse

The reorder firewall policies response message.

Inherits from Protobuf::Message.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::MigrateKeyRequest

The migrate key request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the key to be migrated, in the format `projects/{project}/keys/{key}`.

  • $msg->skip_billing_check() / $msg->skip_billing_check($value)

    Type: Bool

    Optional. If true, skips the billing check. A reCAPTCHA Enterprise key or migrated key behaves differently than a reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see https://docs.cloud.google.com/recaptcha/quotas#quota_limit). To avoid any disruption of your usage, we check that a billing account is present. If your usage of reCAPTCHA is under the free quota, you can safely skip the billing check and proceed with the migration. See https://cloud.google.com/recaptcha/docs/billing-information.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::GetMetricsRequest

The get metrics request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the requested metrics, in the format `projects/{project}/keys/{key}/metrics`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Metrics

Metrics for a single Key.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RetrieveLegacySecretKeyResponse

Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party integration with legacy reCAPTCHA.

Inherits from Protobuf::Message.

Accessors

  • $msg->legacy_secret_key() / $msg->legacy_secret_key($value)

    Type: String

    The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Key

A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TestingOptions

Options for user acceptance testing.

Inherits from Protobuf::Message.

Accessors

  • $msg->testing_score() / $msg->testing_score($value)

    Type: Float

    Optional. All assessments for this Key return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.

  • $msg->testing_challenge() / $msg->testing_challenge($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::TestingOptions::TestingChallenge)

    Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE.

Enum: TestingOptions::TestingChallenge

  • TESTING_CHALLENGE_UNSPECIFIED => 0

  • NOCAPTCHA => 1

  • UNSOLVABLE_CHALLENGE => 2

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::WebKeySettings

Settings specific to keys that can be used by websites.

Inherits from Protobuf::Message.

Accessors

  • $msg->allow_all_domains() / $msg->allow_all_domains($value)

    Type: Bool

    Optional. If set to true, it means allowed_domains are not enforced.

  • $msg->allowed_domains() / $msg->allowed_domains($value)

    Type: String

    Optional. Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com' Each key supports a maximum of 250 domains. To use a key on more domains, set `allow_all_domains` to true. When this is set, you are responsible for validating the hostname by checking the `token_properties.hostname` field in each assessment response against your list of allowed domains.

  • $msg->allow_amp_traffic() / $msg->allow_amp_traffic($value)

    Type: Bool

    Optional. If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.

  • $msg->integration_type() / $msg->integration_type($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::WebKeySettings::IntegrationType)

    Required. Describes how this key is integrated with the website.

  • $msg->challenge_security_preference() / $msg->challenge_security_preference($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::WebKeySettings::ChallengeSecurityPreference)

    Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE.

  • $msg->challenge_settings() / $msg->challenge_settings($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::WebKeySettings::ChallengeSettings)

    Optional. Challenge settings.

Enum: WebKeySettings::IntegrationType

  • INTEGRATION_TYPE_UNSPECIFIED => 0

  • SCORE => 1

  • CHECKBOX => 2

  • INVISIBLE => 3

  • POLICY_BASED_CHALLENGE => 5

Enum: WebKeySettings::ChallengeSecurityPreference

  • CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED => 0

  • USABILITY => 1

  • BALANCE => 2

  • SECURITY => 3

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AndroidKeySettings

Settings specific to keys that can be used by Android apps.

Inherits from Protobuf::Message.

Accessors

  • $msg->allow_all_package_names() / $msg->allow_all_package_names($value)

    Type: Bool

    Optional. If set to true, allowed_package_names are not enforced.

  • $msg->allowed_package_names() / $msg->allowed_package_names($value)

    Type: String

    Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname' Each key supports a maximum of 250 package names. To use a key on more apps, set `allow_all_package_names` to true. When this is set, you are responsible for validating the package name by checking the `token_properties.android_package_name` field in each assessment response against your list of allowed package names.

  • $msg->support_non_google_app_store_distribution() / $msg->support_non_google_app_store_distribution($value)

    Type: Bool

    Optional. Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::IOSKeySettings

Settings specific to keys that can be used by iOS apps.

Inherits from Protobuf::Message.

Accessors

  • $msg->allow_all_bundle_ids() / $msg->allow_all_bundle_ids($value)

    Type: Bool

    Optional. If set to true, allowed_bundle_ids are not enforced.

  • $msg->allowed_bundle_ids() / $msg->allowed_bundle_ids($value)

    Type: String

    Optional. iOS bundle IDs of apps allowed to use the key. Example: 'com.companyname.productname.appname' Each key supports a maximum of 250 bundle IDs. To use a key on more apps, set `allow_all_bundle_ids` to true. When this is set, you are responsible for validating the bundle id by checking the `token_properties.ios_bundle_id` field in each assessment response against your list of allowed bundle IDs.

  • $msg->apple_developer_id() / $msg->apple_developer_id($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AppleDeveloperId)

    Optional. Apple Developer account details for the app that is protected by the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple App Attest and Apple DeviceCheck to protect your app from abuse. Providing these fields allows reCAPTCHA to get a better assessment of the integrity of your app.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ExpressKeySettings

Settings specific to keys that can be used for reCAPTCHA Express.

Inherits from Protobuf::Message.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UniversalKeySettings

Settings for keys that are configured through their Policy.

Inherits from Protobuf::Message.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AppleDeveloperId

Contains fields that are required to perform Apple-specific integrity checks.

Inherits from Protobuf::Message.

Accessors

  • $msg->private_key() / $msg->private_key($value)

    Type: String

    Required. Input only. A private key (downloaded as a text file with a .p8 file extension) generated for your Apple Developer account. Ensure that Apple DeviceCheck is enabled for the private key.

  • $msg->key_id() / $msg->key_id($value)

    Type: String

    Required. The Apple developer key ID (10-character string).

  • $msg->team_id() / $msg->team_id($value)

    Type: String

    Required. The Apple team ID (10-character string) owning the provisioning profile used to build your application.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ScoreDistribution

Score distribution.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ScoreMetrics

Metrics related to scoring.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeMetrics

Metrics related to challenges.

Inherits from Protobuf::Message.

Accessors

  • $msg->pageload_count() / $msg->pageload_count($value)

    Type: Int64

    Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent to a count of pageloads for pages that include reCAPTCHA.

  • $msg->nocaptcha_count() / $msg->nocaptcha_count($value)

    Type: Int64

    Count of nocaptchas (successful verification without a challenge) issued.

  • $msg->failed_count() / $msg->failed_count($value)

    Type: Int64

    Count of submitted challenge solutions that were incorrect or otherwise deemed suspicious such that a subsequent challenge was triggered.

  • $msg->passed_count() / $msg->passed_count($value)

    Type: Int64

    Count of nocaptchas (successful verification without a challenge) plus submitted challenge solutions that were correct and resulted in verification.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallPolicyAssessment

Policy config assessment.

Inherits from Protobuf::Message.

Accessors

  • $msg->error() / $msg->error($value)

    Type: Message (Google::Rpc::Status::Status)

    Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

  • $msg->firewall_policy() / $msg->firewall_policy($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallPolicy)

    Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallAction

An individual action. Each action represents what to do if a policy matches.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallPolicy

A FirewallPolicy represents a single matching pattern and resulting actions to take.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.

  • $msg->path() / $msg->path($value)

    Type: String

    Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.

  • $msg->condition() / $msg->condition($value)

    Type: String

    Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.

  • $msg->actions() / $msg->actions($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallAction)

    Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListRelatedAccountGroupMembershipsRequest

The request message to list memberships in a related account group.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of accounts to return. The service might return fewer than this value. If unspecified, at most 50 accounts are returned. The maximum value is 1000; values above 1000 are coerced to 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships` call.

    When paginating, all other parameters provided to `ListRelatedAccountGroupMemberships` must match the call that provided the page token.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListRelatedAccountGroupMembershipsResponse

The response to a `ListRelatedAccountGroupMemberships` call.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListRelatedAccountGroupsRequest

The request message to list related account groups.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the project to list related account groups from, in the format `projects/{project}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of groups to return. The service might return fewer than this value. If unspecified, at most 50 groups are returned. The maximum value is 1000; values above 1000 are coerced to 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListRelatedAccountGroups` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListRelatedAccountGroups` must match the call that provided the page token.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListRelatedAccountGroupsResponse

The response to a `ListRelatedAccountGroups` call.

Inherits from Protobuf::Message.

Accessors

  • $msg->related_account_groups() / $msg->related_account_groups($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RelatedAccountGroup)

    The groups of related accounts listed by the query.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::SearchRelatedAccountGroupMembershipsRequest

The request message to search related account group memberships.

Inherits from Protobuf::Message.

Accessors

  • $msg->project() / $msg->project($value)

    Type: String

    Required. The name of the project to search related account group memberships from. Specify the project name in the following format: `projects/{project}`.

  • $msg->account_id() / $msg->account_id($value)

    Type: String

    Optional. The unique stable account identifier used to search connections. The identifier should correspond to an `account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call. Either hashed_account_id or account_id must be set, but not both.

  • $msg->hashed_account_id() / $msg->hashed_account_id($value)

    Type: Bytes

    Optional. Deprecated: use `account_id` instead. The unique stable hashed account identifier used to search connections. The identifier should correspond to a `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call. Either hashed_account_id or account_id must be set, but not both.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of groups to return. The service might return fewer than this value. If unspecified, at most 50 groups are returned. The maximum value is 1000; values above 1000 are coerced to 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `SearchRelatedAccountGroupMemberships` must match the call that provided the page token.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::SearchRelatedAccountGroupMembershipsResponse

The response to a `SearchRelatedAccountGroupMemberships` call.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AddIpOverrideRequest

The AddIpOverride request message.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AddIpOverrideResponse

Response for AddIpOverride.

Inherits from Protobuf::Message.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RemoveIpOverrideRequest

The RemoveIpOverride request message.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RemoveIpOverrideResponse

Response for RemoveIpOverride.

Inherits from Protobuf::Message.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListIpOverridesRequest

The ListIpOverrides request message.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent key for which the IP overrides are listed, in the format `projects/{project}/keys/{key}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of overrides to return. Default is 10. Max limit is 100. If the number of overrides is less than the page_size, all overrides are returned. If the page size is more than 100, it is coerced to 100.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. The next_page_token value returned from a previous ListIpOverridesRequest, if any.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListIpOverridesResponse

Response for ListIpOverrides.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RelatedAccountGroupMembership

A membership in a group of related accounts.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Identifier. The resource name for this membership in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.

  • $msg->account_id() / $msg->account_id($value)

    Type: String

    The unique stable account identifier of the member. The identifier corresponds to an `account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call.

  • $msg->hashed_account_id() / $msg->hashed_account_id($value)

    Type: Bytes

    Deprecated: use `account_id` instead. The unique stable hashed account identifier of the member. The identifier corresponds to a `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RelatedAccountGroup

A group of related accounts.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Identifier. The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{related_account_group}`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::WafSettings

Settings specific to keys that can be used for WAF (Web Application Firewall).

Inherits from Protobuf::Message.

Accessors

Enum: WafSettings::WafFeature

  • WAF_FEATURE_UNSPECIFIED => 0

  • CHALLENGE_PAGE => 1

  • SESSION_TOKEN => 2

  • ACTION_TOKEN => 3

  • EXPRESS => 5

Enum: WafSettings::WafService

  • WAF_SERVICE_UNSPECIFIED => 0

  • CA => 1

  • FASTLY => 3

  • CLOUDFLARE => 4

  • AKAMAI => 5

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AssessmentEnvironment

The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.

Inherits from Protobuf::Message.

Accessors

  • $msg->client() / $msg->client($value)

    Type: String

    Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module's project. Examples include:

    -
    "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager"
    - "wordpress.org/plugins/recaptcha-something"
  • $msg->version() / $msg->version($value)

    Type: String

    Optional. The version of the client module. For example, "1.0.0".

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PolicyEvaluation

Information about the policy evaluation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeRuleEvaluation

Information about the evaluation of a `ChallengeRule`.

Inherits from Protobuf::Message.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::IpOverrideData

Information about the IP or IP range override.

Inherits from Protobuf::Message.

Accessors

  • $msg->ip() / $msg->ip($value)

    Type: String

    Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48

  • $msg->override_type() / $msg->override_type($value)

    Type: Enum (Google::Cloud::Recaptchaenterprise::V1::IpOverrideData::OverrideType)

    Required. Describes the type of IP override.

Enum: IpOverrideData::OverrideType

  • OVERRIDE_TYPE_UNSPECIFIED => 0

  • ALLOW => 1

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::GetPolicyRequest

The request message to get a policy.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the policy to get, in the format `projects/{project}/keys/{key}/policy`.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UpdatePolicyRequest

The request message to update a policy.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Policy

A complete configuration set containing multiple grouped rules defining the behavior of reCAPTCHA for fraud detection and prevention.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeRuleGroup

A collection of challenge rules that applies to one or more actions.

Inherits from Protobuf::Message.

Accessors

  • $msg->actions() / $msg->actions($value)

    Type: String

    Required. Action name provided at token generation. The action name is not case-sensitive and can only contain alphanumeric characters, slashes, and underscores. If "*" is provided, the rule group applies to all actions. If multiple actions are provided, the rule group is applied to all of them. This field is required.

  • $msg->challenge_rules() / $msg->challenge_rules($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeRule)

    Required. A list of rules that configure when and how reCAPTCHA presents a challenge. reCAPTCHA evaluates these rules in order and applies the first one that matches.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeRule

A rule to configure the behavior of reCAPTCHA for conditionally presenting a challenge.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ClientSettings

Configuration for clients to protect with reCAPTCHA.

Inherits from Protobuf::Message.

Accessors

  • $msg->allowed_domains() / $msg->allowed_domains($value)

    Type: String

    Optional. Domains or subdomains of websites allowed to use the policy. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com' Each policy supports a maximum of 250 domains. To use a policy on more domains, set `allow_all_domains` to true. When this is set, you are responsible for validating the hostname by checking the `token_properties.hostname` field in each assessment response against your list of allowed domains.

  • $msg->allow_all_domains() / $msg->allow_all_domains($value)

    Type: Bool

    Optional. If set to true, it means allowed_domains are not enforced.

  • $msg->protected_endpoint_group() / $msg->protected_endpoint_group($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ProtectedEndpointGroup)

    Optional. Configuration for all API endpoints to protect with reCAPTCHA. If this field is not set, reCAPTCHA will not automatically request tokens on any API endpoints.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ProtectedEndpointGroup

Configuration for API endpoints to protect with reCAPTCHA.

Inherits from Protobuf::Message.

Accessors

  • $msg->protected_endpoints() / $msg->protected_endpoints($value)

    Type: Message (Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ProtectedEndpoint)

    Optional. List of API endpoints to automatically protect with reCAPTCHA. If any of these endpoints is invoked from a page where a key bound to this policy is installed, a reCAPTCHA token is automatically generated and attached to the request. If multiple protected endpoints match a given API endpoint, the first one in the list is used.

Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ProtectedEndpoint

Configuration for an API endpoint to protect with reCAPTCHA.

Inherits from Protobuf::Message.

Accessors

  • $msg->path() / $msg->path($value)

    Type: String

    Required. URI path of the API endpoint to protect. Must start with '/'. Supports glob characters '*' to match a single path segment and '**' to match multiple path segments. Standalone root catch-alls ('/*' and '/**') are invalid because it can negatively impact performance to trigger reCAPTCHA on every single request to your backend.

    Matching is evaluated against the URL path only (domain, scheme, and query parameters are ignored).

    Examples: - `/login` matches `/login`, `https://example.com/login`, and `/login?query=1`, but not `/login/step1`. - `/products/*` matches `/products/123`, but not `/products/123/456`. - `/content/**` matches `/content/articles/2024/01/01`.

  • $msg->action() / $msg->action($value)

    Type: String

    Required. Action name to be used for token generation for this endpoint. The action name can only contain alphanumeric characters, slashes, and underscores.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.