Class ProtectedEndpointGroup.Builder (3.96.0)

public static final class ProtectedEndpointGroup.Builder extends GeneratedMessage.Builder<ProtectedEndpointGroup.Builder> implements ProtectedEndpointGroupOrBuilder

Configuration for API endpoints to protect with reCAPTCHA.

Protobuf type google.cloud.recaptchaenterprise.v1.ProtectedEndpointGroup

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllProtectedEndpoints(Iterable<? extends ProtectedEndpoint> values)

public ProtectedEndpointGroup.Builder addAllProtectedEndpoints(Iterable<? extends ProtectedEndpoint> values)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.recaptchaenterprise.v1.ProtectedEndpoint>
Returns
Type Description
ProtectedEndpointGroup.Builder

addProtectedEndpoints(ProtectedEndpoint value)

public ProtectedEndpointGroup.Builder addProtectedEndpoints(ProtectedEndpoint value)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProtectedEndpoint
Returns
Type Description
ProtectedEndpointGroup.Builder

addProtectedEndpoints(ProtectedEndpoint.Builder builderForValue)

public ProtectedEndpointGroup.Builder addProtectedEndpoints(ProtectedEndpoint.Builder builderForValue)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ProtectedEndpoint.Builder
Returns
Type Description
ProtectedEndpointGroup.Builder

addProtectedEndpoints(int index, ProtectedEndpoint value)

public ProtectedEndpointGroup.Builder addProtectedEndpoints(int index, ProtectedEndpoint value)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ProtectedEndpoint
Returns
Type Description
ProtectedEndpointGroup.Builder

addProtectedEndpoints(int index, ProtectedEndpoint.Builder builderForValue)

public ProtectedEndpointGroup.Builder addProtectedEndpoints(int index, ProtectedEndpoint.Builder builderForValue)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ProtectedEndpoint.Builder
Returns
Type Description
ProtectedEndpointGroup.Builder

addProtectedEndpointsBuilder()

public ProtectedEndpoint.Builder addProtectedEndpointsBuilder()

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtectedEndpoint.Builder

addProtectedEndpointsBuilder(int index)

public ProtectedEndpoint.Builder addProtectedEndpointsBuilder(int index)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ProtectedEndpoint.Builder

build()

public ProtectedEndpointGroup build()
Returns
Type Description
ProtectedEndpointGroup

buildPartial()

public ProtectedEndpointGroup buildPartial()
Returns
Type Description
ProtectedEndpointGroup

clear()

public ProtectedEndpointGroup.Builder clear()
Returns
Type Description
ProtectedEndpointGroup.Builder
Overrides

clearProtectedEndpoints()

public ProtectedEndpointGroup.Builder clearProtectedEndpoints()

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtectedEndpointGroup.Builder

getDefaultInstanceForType()

public ProtectedEndpointGroup getDefaultInstanceForType()
Returns
Type Description
ProtectedEndpointGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProtectedEndpoints(int index)

public ProtectedEndpoint getProtectedEndpoints(int index)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ProtectedEndpoint

getProtectedEndpointsBuilder(int index)

public ProtectedEndpoint.Builder getProtectedEndpointsBuilder(int index)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ProtectedEndpoint.Builder

getProtectedEndpointsBuilderList()

public List<ProtectedEndpoint.Builder> getProtectedEndpointsBuilderList()

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getProtectedEndpointsCount()

public int getProtectedEndpointsCount()

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getProtectedEndpointsList()

public List<ProtectedEndpoint> getProtectedEndpointsList()

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ProtectedEndpoint>

getProtectedEndpointsOrBuilder(int index)

public ProtectedEndpointOrBuilder getProtectedEndpointsOrBuilder(int index)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ProtectedEndpointOrBuilder

getProtectedEndpointsOrBuilderList()

public List<? extends ProtectedEndpointOrBuilder> getProtectedEndpointsOrBuilderList()

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.recaptchaenterprise.v1.ProtectedEndpointOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProtectedEndpointGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedEndpointGroup.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProtectedEndpointGroup.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProtectedEndpointGroup.Builder
Overrides

mergeFrom(ProtectedEndpointGroup other)

public ProtectedEndpointGroup.Builder mergeFrom(ProtectedEndpointGroup other)
Parameter
Name Description
other ProtectedEndpointGroup
Returns
Type Description
ProtectedEndpointGroup.Builder

removeProtectedEndpoints(int index)

public ProtectedEndpointGroup.Builder removeProtectedEndpoints(int index)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ProtectedEndpointGroup.Builder

setProtectedEndpoints(int index, ProtectedEndpoint value)

public ProtectedEndpointGroup.Builder setProtectedEndpoints(int index, ProtectedEndpoint value)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ProtectedEndpoint
Returns
Type Description
ProtectedEndpointGroup.Builder

setProtectedEndpoints(int index, ProtectedEndpoint.Builder builderForValue)

public ProtectedEndpointGroup.Builder setProtectedEndpoints(int index, ProtectedEndpoint.Builder builderForValue)

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.

repeated .google.cloud.recaptchaenterprise.v1.ProtectedEndpoint protected_endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ProtectedEndpoint.Builder
Returns
Type Description
ProtectedEndpointGroup.Builder