- 3.50.0 (latest)
- 3.49.0
- 3.48.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.12
- 2.6.1
- 2.5.0
- 2.4.10
- 2.3.1
public static final class WebKeySettings.Builder extends GeneratedMessageV3.Builder<WebKeySettings.Builder> implements WebKeySettingsOrBuilder
Settings specific to keys that can be used by websites.
Protobuf type google.cloud.recaptchaenterprise.v1.WebKeySettings
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WebKeySettings.BuilderImplements
WebKeySettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllAllowedDomains(Iterable<String> values)
public WebKeySettings.Builder addAllAllowedDomains(Iterable<String> values)
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'
repeated string allowed_domains = 1;
Name | Description |
values | Iterable<String> The allowedDomains to add. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
addAllowedDomains(String value)
public WebKeySettings.Builder addAllowedDomains(String value)
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'
repeated string allowed_domains = 1;
Name | Description |
value | String The allowedDomains to add. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
addAllowedDomainsBytes(ByteString value)
public WebKeySettings.Builder addAllowedDomainsBytes(ByteString value)
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'
repeated string allowed_domains = 1;
Name | Description |
value | ByteString The bytes of the allowedDomains to add. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WebKeySettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
WebKeySettings.Builder |
build()
public WebKeySettings build()
Type | Description |
WebKeySettings |
buildPartial()
public WebKeySettings buildPartial()
Type | Description |
WebKeySettings |
clear()
public WebKeySettings.Builder clear()
Type | Description |
WebKeySettings.Builder |
clearAllowAllDomains()
public WebKeySettings.Builder clearAllowAllDomains()
If set to true, it means allowed_domains will not be enforced.
bool allow_all_domains = 3;
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
clearAllowAmpTraffic()
public WebKeySettings.Builder clearAllowAmpTraffic()
If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
bool allow_amp_traffic = 2;
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
clearAllowedDomains()
public WebKeySettings.Builder clearAllowedDomains()
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'
repeated string allowed_domains = 1;
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
clearChallengeSecurityPreference()
public WebKeySettings.Builder clearChallengeSecurityPreference()
Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5;
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public WebKeySettings.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
WebKeySettings.Builder |
clearIntegrationType()
public WebKeySettings.Builder clearIntegrationType()
Required. Describes how this key is integrated with the website.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public WebKeySettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
WebKeySettings.Builder |
clone()
public WebKeySettings.Builder clone()
Type | Description |
WebKeySettings.Builder |
getAllowAllDomains()
public boolean getAllowAllDomains()
If set to true, it means allowed_domains will not be enforced.
bool allow_all_domains = 3;
Type | Description |
boolean | The allowAllDomains. |
getAllowAmpTraffic()
public boolean getAllowAmpTraffic()
If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
bool allow_amp_traffic = 2;
Type | Description |
boolean | The allowAmpTraffic. |
getAllowedDomains(int index)
public String getAllowedDomains(int index)
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'
repeated string allowed_domains = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The allowedDomains at the given index. |
getAllowedDomainsBytes(int index)
public ByteString getAllowedDomainsBytes(int index)
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'
repeated string allowed_domains = 1;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the allowedDomains at the given index. |
getAllowedDomainsCount()
public int getAllowedDomainsCount()
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'
repeated string allowed_domains = 1;
Type | Description |
int | The count of allowedDomains. |
getAllowedDomainsList()
public ProtocolStringList getAllowedDomainsList()
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'
repeated string allowed_domains = 1;
Type | Description |
ProtocolStringList | A list containing the allowedDomains. |
getChallengeSecurityPreference()
public WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference()
Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5;
Type | Description |
WebKeySettings.ChallengeSecurityPreference | The challengeSecurityPreference. |
getChallengeSecurityPreferenceValue()
public int getChallengeSecurityPreferenceValue()
Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5;
Type | Description |
int | The enum numeric value on the wire for challengeSecurityPreference. |
getDefaultInstanceForType()
public WebKeySettings getDefaultInstanceForType()
Type | Description |
WebKeySettings |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIntegrationType()
public WebKeySettings.IntegrationType getIntegrationType()
Required. Describes how this key is integrated with the website.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
WebKeySettings.IntegrationType | The integrationType. |
getIntegrationTypeValue()
public int getIntegrationTypeValue()
Required. Describes how this key is integrated with the website.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The enum numeric value on the wire for integrationType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WebKeySettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
WebKeySettings.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public WebKeySettings.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
WebKeySettings.Builder |
mergeFrom(WebKeySettings other)
public WebKeySettings.Builder mergeFrom(WebKeySettings other)
Name | Description |
other | WebKeySettings |
Type | Description |
WebKeySettings.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WebKeySettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
WebKeySettings.Builder |
setAllowAllDomains(boolean value)
public WebKeySettings.Builder setAllowAllDomains(boolean value)
If set to true, it means allowed_domains will not be enforced.
bool allow_all_domains = 3;
Name | Description |
value | boolean The allowAllDomains to set. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
setAllowAmpTraffic(boolean value)
public WebKeySettings.Builder setAllowAmpTraffic(boolean value)
If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
bool allow_amp_traffic = 2;
Name | Description |
value | boolean The allowAmpTraffic to set. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
setAllowedDomains(int index, String value)
public WebKeySettings.Builder setAllowedDomains(int index, String value)
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'
repeated string allowed_domains = 1;
Name | Description |
index | int The index to set the value at. |
value | String The allowedDomains to set. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
setChallengeSecurityPreference(WebKeySettings.ChallengeSecurityPreference value)
public WebKeySettings.Builder setChallengeSecurityPreference(WebKeySettings.ChallengeSecurityPreference value)
Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5;
Name | Description |
value | WebKeySettings.ChallengeSecurityPreference The challengeSecurityPreference to set. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
setChallengeSecurityPreferenceValue(int value)
public WebKeySettings.Builder setChallengeSecurityPreferenceValue(int value)
Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5;
Name | Description |
value | int The enum numeric value on the wire for challengeSecurityPreference to set. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public WebKeySettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
WebKeySettings.Builder |
setIntegrationType(WebKeySettings.IntegrationType value)
public WebKeySettings.Builder setIntegrationType(WebKeySettings.IntegrationType value)
Required. Describes how this key is integrated with the website.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | WebKeySettings.IntegrationType The integrationType to set. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
setIntegrationTypeValue(int value)
public WebKeySettings.Builder setIntegrationTypeValue(int value)
Required. Describes how this key is integrated with the website.
.google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | int The enum numeric value on the wire for integrationType to set. |
Type | Description |
WebKeySettings.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WebKeySettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
WebKeySettings.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final WebKeySettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
WebKeySettings.Builder |