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
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the project in which the assessment is created, in the format `projects/{project}`.
$msg->assessment()/$msg->assessment($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Assessment)Required. The assessment details.
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:
StringOptional. 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:
DoubleOptional. 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=>0MERCHANT_APPROVE=>1MERCHANT_DENY=>2MANUAL_REVIEW=>3AUTHORIZATION=>4AUTHORIZATION_DECLINE=>5PAYMENT_CAPTURE=>6PAYMENT_CAPTURE_DECLINE=>7CANCEL=>8CHARGEBACK_INQUIRY=>9CHARGEBACK_ALERT=>10FRAUD_NOTIFICATION=>11CHARGEBACK=>12CHARGEBACK_REPRESENTMENT=>13CHARGEBACK_REVERSE=>14REFUND_REQUEST=>15REFUND_DECLINE=>16REFUND=>17REFUND_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:
StringRequired. 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:
StringRequired. 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:
StringOptional. 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:
BytesOptional. 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=>0LEGITIMATE=>1FRAUDULENT=>2PASSWORD_CORRECT=>3PASSWORD_INCORRECT=>4
Enum: AnnotateAssessmentRequest::Reason
REASON_UNSPECIFIED=>0CHARGEBACK=>1CHARGEBACK_FRAUD=>8CHARGEBACK_DISPUTE=>9REFUND=>10REFUND_FRAUD=>11TRANSACTION_ACCEPTED=>12TRANSACTION_DECLINED=>13PAYMENT_HEURISTICS=>2INITIATED_TWO_FACTOR=>7PASSED_TWO_FACTOR=>3FAILED_TWO_FACTOR=>4CORRECT_PASSWORD=>5INCORRECT_PASSWORD=>6SOCIAL_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:
StringEmail address for which to trigger a verification request.
$msg->phone_number()/$msg->phone_number($value)Type:
StringPhone number for which to trigger a verification request. Should be given in E.164 format.
$msg->request_token()/$msg->request_token($value)Type:
StringOutput 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:
StringOptional. 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:
StringUsername 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=>0SUCCESS_USER_VERIFIED=>1ERROR_USER_NOT_VERIFIED=>2ERROR_SITE_ONBOARDING_INCOMPLETE=>3ERROR_RECIPIENT_NOT_ALLOWED=>4ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED=>5ERROR_CRITICAL_INTERNAL=>6ERROR_CUSTOMER_QUOTA_EXHAUSTED=>7ERROR_VERIFICATION_BYPASSED=>8ERROR_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:
BytesRequired. 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:
BytesOptional. 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:
BytesOutput 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:
BytesOutput 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
$msg->name()/$msg->name($value)Type:
StringOutput only. Identifier. The resource name for the Assessment in the format `projects/{project}/assessments/{assessment}`.
$msg->event()/$msg->event($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Event)Optional. The event being assessed.
$msg->risk_analysis()/$msg->risk_analysis($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RiskAnalysis)Output only. The risk analysis result for the event being assessed.
$msg->token_properties()/$msg->token_properties($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TokenProperties)Output only. Properties of the provided event token.
$msg->account_verification()/$msg->account_verification($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AccountVerificationInfo)Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature.
$msg->account_defender_assessment()/$msg->account_defender_assessment($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AccountDefenderAssessment)Output only. Assessment returned by Account defense when an account identifier is provided.
$msg->private_password_leak_verification()/$msg->private_password_leak_verification($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PrivatePasswordLeakVerification)Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.
$msg->firewall_policy_assessment()/$msg->firewall_policy_assessment($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallPolicyAssessment)Output only. Assessment returned when firewall policies belonging to the project are evaluated using the field firewall_policy_evaluation.
$msg->fraud_prevention_assessment()/$msg->fraud_prevention_assessment($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudPreventionAssessment)Output only. Assessment returned by Fraud Prevention when TransactionData is provided.
$msg->fraud_signals()/$msg->fraud_signals($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudSignals)Output only. Fraud Signals specific to the users involved in a payment transaction.
$msg->phone_fraud_assessment()/$msg->phone_fraud_assessment($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PhoneFraudAssessment)Output only. Assessment returned when a site key, a token, and a phone number as `user_id` are provided. SMS defense needs to be enabled.
$msg->assessment_environment()/$msg->assessment_environment($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AssessmentEnvironment)Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.
$msg->policy_evaluation()/$msg->policy_evaluation($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PolicyEvaluation)Output only. Provides information about the policy evaluation for this assessment.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Event
The event being assessed.
Inherits from Protobuf::Message.
Accessors
$msg->token()/$msg->token($value)Type:
StringOptional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site.
$msg->site_key()/$msg->site_key($value)Type:
StringOptional. 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:
StringOptional. 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:
StringOptional. The IP address in the request from the user's device related to this event.
$msg->expected_action()/$msg->expected_action($value)Type:
StringOptional. 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:
BytesOptional. 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:
BoolOptional. 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:
StringOptional. The URI resource the user requested that triggered an assessment.
$msg->waf_token_assessment()/$msg->waf_token_assessment($value)Type:
BoolOptional. 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:
StringOptional. 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:
StringOptional. 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:
StringOptional. HTTP header information about the request.
$msg->firewall_policy_evaluation()/$msg->firewall_policy_evaluation($value)Type:
BoolOptional. 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=>0ENABLED=>1DISABLED=>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:
StringUnique 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:
StringOptional. 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:
StringOptional. The Bank Identification Number - generally the first 6 or 8 digits of the card.
$msg->card_last_four()/$msg->card_last_four($value)Type:
StringOptional. The last four digits of the card.
$msg->currency_code()/$msg->currency_code($value)Type:
StringOptional. The currency code in ISO-4217 format.
$msg->value()/$msg->value($value)Type:
DoubleOptional. The decimal value of the transaction in the specified currency.
$msg->shipping_value()/$msg->shipping_value($value)Type:
DoubleOptional. 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:
StringOptional. 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:
StringOptional. An email address.
$msg->phone_number()/$msg->phone_number($value)Type:
StringOptional. A phone number. Should use the E.164 format.
$msg->username()/$msg->username($value)Type:
StringOptional. 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:
FloatOutput 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:
StringOutput 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=>0AUTOMATION=>1UNEXPECTED_ENVIRONMENT=>2TOO_MUCH_TRAFFIC=>3UNEXPECTED_USAGE_PATTERNS=>4LOW_CONFIDENCE_SCORE=>5SUSPECTED_CARDING=>6SUSPECTED_CHARGEBACK=>7
Enum: RiskAnalysis::Challenge
CHALLENGE_UNSPECIFIED=>0NOCAPTCHA=>1PASSED=>2FAILED=>3
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Bot
Bot information and metadata.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOptional. 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=>0AI_AGENT=>1CONTENT_SCRAPER=>2SEARCH_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:
BoolOutput 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:
StringOutput 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:
StringOutput 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:
StringOutput only. The ID of the iOS bundle with which the token was generated (iOS keys only).
$msg->action()/$msg->action($value)Type:
StringOutput only. Action name provided at token generation.
Enum: TokenProperties::InvalidReason
INVALID_REASON_UNSPECIFIED=>0UNKNOWN_INVALID_REASON=>1MALFORMED=>2EXPIRED=>3DUPE=>4MISSING=>5BROWSER_ERROR=>6UNEXPECTED_ACTION=>7KEY_MISMATCH=>8DOMAIN_MISMATCH=>9
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudPreventionAssessment
Assessment for Fraud Prevention.
Inherits from Protobuf::Message.
Accessors
$msg->transaction_risk()/$msg->transaction_risk($value)Type:
FloatOutput only. Probability of this transaction being fraudulent. Summarizes the combined risk of attack vectors below. Values are from 0.0 (lowest) to 1.0 (highest).
$msg->risk_reasons()/$msg->risk_reasons($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudPreventionAssessment::RiskReason)Output only. Reasons why the transaction is probably fraudulent and received a high transaction risk score.
$msg->stolen_instrument_verdict()/$msg->stolen_instrument_verdict($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudPreventionAssessment::StolenInstrumentVerdict)Output only. Assessment of this transaction for risk of a stolen instrument.
$msg->card_testing_verdict()/$msg->card_testing_verdict($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudPreventionAssessment::CardTestingVerdict)Output only. Assessment of this transaction for risk of being part of a card testing attack.
$msg->behavioral_trust_verdict()/$msg->behavioral_trust_verdict($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudPreventionAssessment::BehavioralTrustVerdict)Output only. Assessment of this transaction for behavioral trust.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudSignals
Fraud signals describing users and cards involved in the transaction.
Inherits from Protobuf::Message.
Accessors
$msg->user_signals()/$msg->user_signals($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudSignals::UserSignals)Output only. Signals describing the end user in this transaction.
$msg->card_signals()/$msg->card_signals($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FraudSignals::CardSignals)Output only. Signals describing the payment card or cards used in this transaction.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::SmsTollFraudVerdict
Information about SMS toll fraud.
Inherits from Protobuf::Message.
Accessors
$msg->risk()/$msg->risk($value)Type:
FloatOutput only. Probability of an SMS event being fraudulent. Values are from 0.0 (lowest) to 1.0 (highest).
$msg->reasons()/$msg->reasons($value)Type:
Enum(Google::Cloud::Recaptchaenterprise::V1::SmsTollFraudVerdict::SmsTollFraudReason)Output only. Reasons contributing to the SMS toll fraud verdict.
Enum: SmsTollFraudVerdict::SmsTollFraudReason
SMS_TOLL_FRAUD_REASON_UNSPECIFIED=>0INVALID_PHONE_NUMBER=>1
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::PhoneFraudAssessment
Assessment for Phone Fraud
Inherits from Protobuf::Message.
Accessors
$msg->sms_toll_fraud_verdict()/$msg->sms_toll_fraud_verdict($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::SmsTollFraudVerdict)Output only. Assessment of this phone event for risk of SMS toll fraud.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AccountDefenderAssessment
Account defense risk assessment.
Inherits from Protobuf::Message.
Accessors
$msg->labels()/$msg->labels($value)Type:
Enum(Google::Cloud::Recaptchaenterprise::V1::AccountDefenderAssessment::AccountDefenderLabel)Output only. Labels for this request.
$msg->account_takeover_verdict()/$msg->account_takeover_verdict($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AccountDefenderAssessment::AccountTakeoverVerdict)Output only. Account takeover risk assessment for this request.
Enum: AccountDefenderAssessment::AccountDefenderLabel
ACCOUNT_DEFENDER_LABEL_UNSPECIFIED=>0PROFILE_MATCH=>1SUSPICIOUS_LOGIN_ACTIVITY=>2SUSPICIOUS_ACCOUNT_CREATION=>3RELATED_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:
StringRequired. 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:
StringRequired. 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:
Int32Optional. The maximum number of keys to return. Default is 10. Max limit is 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. 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
$msg->keys()/$msg->keys($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Key)Key details.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results. It is set to empty if no keys remain in results.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RetrieveLegacySecretKeyRequest
The retrieve legacy secret key request message.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringRequired. 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:
StringRequired. 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
$msg->key()/$msg->key($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Key)Required. The key to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields of the key get updated. If the mask is not present, all fields are updated.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::DeleteKeyRequest
The delete key request message.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the project this policy applies to, in the format `projects/{project}`.
$msg->firewall_policy()/$msg->firewall_policy($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallPolicy)Required. Information to create the policy.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ListFirewallPoliciesRequest
The list firewall policies request message.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the project to list the policies for, in the format `projects/{project}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of policies to return. Default is 10. Max limit is 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. 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
$msg->firewall_policies()/$msg->firewall_policies($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallPolicy)Policy details.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results. It is set to empty if no policies remain in results.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::GetFirewallPolicyRequest
The get firewall policy request message.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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
$msg->firewall_policy()/$msg->firewall_policy($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallPolicy)Required. The policy to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::DeleteFirewallPolicyRequest
The delete firewall policy request message.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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:
StringRequired. The name of the project to list the policies for, in the format `projects/{project}`.
$msg->names()/$msg->names($value)Type:
StringRequired. 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:
StringRequired. 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:
BoolOptional. 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:
StringRequired. 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
$msg->name()/$msg->name($value)Type:
StringOutput only. Identifier. The name of the metrics, in the format `projects/{project}/keys/{key}/metrics`.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Inclusive start time aligned to a day in the America/Los_Angeles (Pacific) timezone.
$msg->score_metrics()/$msg->score_metrics($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ScoreMetrics)Metrics are continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.
$msg->challenge_metrics()/$msg->challenge_metrics($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeMetrics)Metrics are continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have challenge-based data.
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:
StringThe 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
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name for the Key in the format `projects/{project}/keys/{key}`.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. Human-readable display name of this key. Modifiable by user.
$msg->web_settings()/$msg->web_settings($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::WebKeySettings)Settings for keys that can be used by websites.
$msg->android_settings()/$msg->android_settings($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::AndroidKeySettings)Settings for keys that can be used by Android apps.
$msg->ios_settings()/$msg->ios_settings($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::IOSKeySettings)Settings for keys that can be used by iOS apps.
$msg->express_settings()/$msg->express_settings($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ExpressKeySettings)Settings for keys that can be used by reCAPTCHA Express.
$msg->universal_settings()/$msg->universal_settings($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::UniversalKeySettings)Settings for keys that are configured through their Policy.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Key::LabelsEntry)Optional. See [Creating and managing labels] (https://cloud.google.com/recaptcha/docs/labels).
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp corresponding to the creation of this key.
$msg->testing_options()/$msg->testing_options($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TestingOptions)Optional. Options for user acceptance testing.
$msg->waf_settings()/$msg->waf_settings($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::WafSettings)Optional. Settings for Web Application Firewall (WAF).
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::TestingOptions
Options for user acceptance testing.
Inherits from Protobuf::Message.
Accessors
$msg->testing_score()/$msg->testing_score($value)Type:
FloatOptional. 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=>0NOCAPTCHA=>1UNSOLVABLE_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:
BoolOptional. If set to true, it means allowed_domains are not enforced.
$msg->allowed_domains()/$msg->allowed_domains($value)Type:
StringOptional. 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:
BoolOptional. 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=>0SCORE=>1CHECKBOX=>2INVISIBLE=>3POLICY_BASED_CHALLENGE=>5
Enum: WebKeySettings::ChallengeSecurityPreference
CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED=>0USABILITY=>1BALANCE=>2SECURITY=>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:
BoolOptional. If set to true, allowed_package_names are not enforced.
$msg->allowed_package_names()/$msg->allowed_package_names($value)Type:
StringOptional. 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:
BoolOptional. 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:
BoolOptional. If set to true, allowed_bundle_ids are not enforced.
$msg->allowed_bundle_ids()/$msg->allowed_bundle_ids($value)Type:
StringOptional. 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:
StringRequired. 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:
StringRequired. The Apple developer key ID (10-character string).
$msg->team_id()/$msg->team_id($value)Type:
StringRequired. 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
$msg->score_buckets()/$msg->score_buckets($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ScoreDistribution::ScoreBucketsEntry)Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ScoreMetrics
Metrics related to scoring.
Inherits from Protobuf::Message.
Accessors
$msg->overall_metrics()/$msg->overall_metrics($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ScoreDistribution)Aggregated score metrics for all traffic.
$msg->action_metrics()/$msg->action_metrics($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ScoreMetrics::ActionMetricsEntry)Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.
Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeMetrics
Metrics related to challenges.
Inherits from Protobuf::Message.
Accessors
$msg->pageload_count()/$msg->pageload_count($value)Type:
Int64Count 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:
Int64Count of nocaptchas (successful verification without a challenge) issued.
$msg->failed_count()/$msg->failed_count($value)Type:
Int64Count 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:
Int64Count 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
$msg->allow()/$msg->allow($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallAction::AllowAction)The user request did not match any policy and should be allowed access to the requested resource.
$msg->block()/$msg->block($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallAction::BlockAction)This action denies access to a given page. The user gets an HTTP error code.
$msg->include_recaptcha_script()/$msg->include_recaptcha_script($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallAction::IncludeRecaptchaScriptAction)This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
$msg->redirect()/$msg->redirect($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallAction::RedirectAction)This action redirects the request to a reCAPTCHA interstitial to attach a token.
$msg->substitute()/$msg->substitute($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallAction::SubstituteAction)This action transparently serves a different page to an offending user.
$msg->set_header()/$msg->set_header($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::FirewallAction::SetHeaderAction)This action sets a custom header but allow the request to continue to the customer backend.
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:
StringIdentifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
$msg->description()/$msg->description($value)Type:
StringOptional. 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:
StringOptional. 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:
StringOptional. 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:
StringRequired. The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. 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
$msg->related_account_group_memberships()/$msg->related_account_group_memberships($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RelatedAccountGroupMembership)The memberships listed by the query.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA 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::ListRelatedAccountGroupsRequest
The request message to list related account groups.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the project to list related account groups from, in the format `projects/{project}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. 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:
StringA 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:
StringRequired. 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:
StringOptional. 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:
BytesOptional. 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:
Int32Optional. 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:
StringOptional. 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
$msg->related_account_group_memberships()/$msg->related_account_group_memberships($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::RelatedAccountGroupMembership)The queried memberships.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA 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::AddIpOverrideRequest
The AddIpOverride request message.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`.
$msg->ip_override_data()/$msg->ip_override_data($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::IpOverrideData)Required. IP override added to the key.
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
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the key from which the IP override is removed, in the format `projects/{project}/keys/{key}`.
$msg->ip_override_data()/$msg->ip_override_data($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::IpOverrideData)Required. IP override to be removed from the key.
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:
StringRequired. 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:
Int32Optional. 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:
StringOptional. 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
$msg->ip_overrides()/$msg->ip_overrides($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::IpOverrideData)IP Overrides details.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results. If this field is empty, no keys remain in the results.
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:
StringRequired. Identifier. The resource name for this membership in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
$msg->account_id()/$msg->account_id($value)Type:
StringThe 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:
BytesDeprecated: 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:
StringRequired. 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
$msg->waf_service()/$msg->waf_service($value)Type:
Enum(Google::Cloud::Recaptchaenterprise::V1::WafSettings::WafService)Required. The Web Application Firewall (WAF) service that uses this key.
$msg->waf_feature()/$msg->waf_feature($value)Type:
Enum(Google::Cloud::Recaptchaenterprise::V1::WafSettings::WafFeature)Required. The Web Application Firewall (WAF) feature for which this key is enabled.
Enum: WafSettings::WafFeature
WAF_FEATURE_UNSPECIFIED=>0CHALLENGE_PAGE=>1SESSION_TOKEN=>2ACTION_TOKEN=>3EXPRESS=>5
Enum: WafSettings::WafService
WAF_SERVICE_UNSPECIFIED=>0CA=>1FASTLY=>3CLOUDFLARE=>4AKAMAI=>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:
StringOptional. 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:
StringOptional. 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
$msg->challenge_rule_evaluation()/$msg->challenge_rule_evaluation($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeRuleEvaluation)Output only. Populated if one or more Challenge rules were matched. Its presence in the assessment indicates that at least one challenge rule was matched and determined whether a challenge was presented to the user.
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:
StringRequired. 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=>0ALLOW=>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:
StringRequired. 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
$msg->policy()/$msg->policy($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::Policy)Required. The Policy's name is used to identify the policy to update, in the format `projects/{project}/keys/{key}/policy`.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.
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
$msg->name()/$msg->name($value)Type:
StringIdentifier. Resource name for this policy. Format: "projects/{project}/keys/{key}/policy" for a policy under a key.
$msg->client_settings()/$msg->client_settings($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ClientSettings)Required. Configuration for clients protected by this policy.
$msg->challenge_rule_groups()/$msg->challenge_rule_groups($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeRuleGroup)Optional. Rules to configure the behavior of reCAPTCHA for showing a challenge. Rule groups are evaluated in order. Evaluation stops when the first matching rule group is found.
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:
StringRequired. 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
$msg->condition()/$msg->condition($value)Type:
StringOptional. A CEL condition that must be met for this rule to apply. If unspecified, the rule applies unconditionally. The following fields can be referenced in the condition: * `score` * `user_ip_address` * `user_asn` * `user_agent` * `verified_bots.name` * `verified_bots.bot_type`
Examples: * `score < 0.5` * `user_ip_address == "123.45.67.89"` * `user_agent.contains("Chrome")` * `score < 0.5 && user_ip_address == "123.45.67.89"`
$msg->no_challenge()/$msg->no_challenge($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeRule::NoChallengeOutcome)Do not present a challenge to the user.
$msg->challenge()/$msg->challenge($value)Type:
Message(Google::Cloud::Recaptchaenterprise::V1::Recaptchaenterprise::ChallengeRule::ChallengeOutcome)Present a challenge to the user.
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:
StringOptional. 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:
BoolOptional. 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:
StringRequired. 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:
StringRequired. 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.