Class ProtectedEndpointGroup (3.96.0)

public final class ProtectedEndpointGroup extends GeneratedMessage implements ProtectedEndpointGroupOrBuilder

Configuration for API endpoints to protect with reCAPTCHA.

Protobuf type google.cloud.recaptchaenterprise.v1.ProtectedEndpointGroup

Static Fields

PROTECTED_ENDPOINTS_FIELD_NUMBER

public static final int PROTECTED_ENDPOINTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProtectedEndpointGroup getDefaultInstance()
Returns
Type Description
ProtectedEndpointGroup

getDescriptor()

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

newBuilder()

public static ProtectedEndpointGroup.Builder newBuilder()
Returns
Type Description
ProtectedEndpointGroup.Builder

newBuilder(ProtectedEndpointGroup prototype)

public static ProtectedEndpointGroup.Builder newBuilder(ProtectedEndpointGroup prototype)
Parameter
Name Description
prototype ProtectedEndpointGroup
Returns
Type Description
ProtectedEndpointGroup.Builder

parseDelimitedFrom(InputStream input)

public static ProtectedEndpointGroup parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedEndpointGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProtectedEndpointGroup parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProtectedEndpointGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProtectedEndpointGroup parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProtectedEndpointGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProtectedEndpointGroup parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedEndpointGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProtectedEndpointGroup parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedEndpointGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProtectedEndpointGroup parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProtectedEndpointGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedEndpointGroup
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProtectedEndpointGroup> parser()
Returns
Type Description
Parser<ProtectedEndpointGroup>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ProtectedEndpointGroup getDefaultInstanceForType()
Returns
Type Description
ProtectedEndpointGroup

getParserForType()

public Parser<ProtectedEndpointGroup> getParserForType()
Returns
Type Description
Parser<ProtectedEndpointGroup>
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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProtectedEndpointGroup.Builder newBuilderForType()
Returns
Type Description
ProtectedEndpointGroup.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ProtectedEndpointGroup.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProtectedEndpointGroup.Builder
Overrides

toBuilder()

public ProtectedEndpointGroup.Builder toBuilder()
Returns
Type Description
ProtectedEndpointGroup.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException