Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class ProtectedEndpointGroup.
Configuration for API endpoints to protect with reCAPTCHA.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.ProtectedEndpointGroup
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ protected_endpoints |
array<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. |
getProtectedEndpoints
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.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<ProtectedEndpoint> |
|
setProtectedEndpoints
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.
| Parameter | |
|---|---|
| Name | Description |
var |
array<ProtectedEndpoint>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|