public static final class WebKeySettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder> implements WebKeySettingsOrBuilder
Settings specific to keys that can be used by websites.Protobuf type
google.cloud.recaptchaenterprise.v1.WebKeySettings
Modifier and Type | Method and Description |
---|---|
WebKeySettings.Builder |
addAllAllowedDomains(Iterable<String> values)
Domains or subdomains of websites allowed to use the key.
|
WebKeySettings.Builder |
addAllowedDomains(String value)
Domains or subdomains of websites allowed to use the key.
|
WebKeySettings.Builder |
addAllowedDomainsBytes(com.google.protobuf.ByteString value)
Domains or subdomains of websites allowed to use the key.
|
WebKeySettings.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WebKeySettings |
build() |
WebKeySettings |
buildPartial() |
WebKeySettings.Builder |
clear() |
WebKeySettings.Builder |
clearAllowAllDomains()
If set to true, it means allowed_domains will not be enforced.
|
WebKeySettings.Builder |
clearAllowAmpTraffic()
Required.
|
WebKeySettings.Builder |
clearAllowedDomains()
Domains or subdomains of websites allowed to use the key.
|
WebKeySettings.Builder |
clearChallengeSecurityPreference()
Settings for the frequency and difficulty at which this key triggers
captcha challenges.
|
WebKeySettings.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WebKeySettings.Builder |
clearIntegrationType()
Required.
|
WebKeySettings.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WebKeySettings.Builder |
clone() |
boolean |
getAllowAllDomains()
If set to true, it means allowed_domains will not be enforced.
|
boolean |
getAllowAmpTraffic()
Required.
|
String |
getAllowedDomains(int index)
Domains or subdomains of websites allowed to use the key.
|
com.google.protobuf.ByteString |
getAllowedDomainsBytes(int index)
Domains or subdomains of websites allowed to use the key.
|
int |
getAllowedDomainsCount()
Domains or subdomains of websites allowed to use the key.
|
com.google.protobuf.ProtocolStringList |
getAllowedDomainsList()
Domains or subdomains of websites allowed to use the key.
|
WebKeySettings.ChallengeSecurityPreference |
getChallengeSecurityPreference()
Settings for the frequency and difficulty at which this key triggers
captcha challenges.
|
int |
getChallengeSecurityPreferenceValue()
Settings for the frequency and difficulty at which this key triggers
captcha challenges.
|
WebKeySettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
WebKeySettings.IntegrationType |
getIntegrationType()
Required.
|
int |
getIntegrationTypeValue()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WebKeySettings.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WebKeySettings.Builder |
mergeFrom(com.google.protobuf.Message other) |
WebKeySettings.Builder |
mergeFrom(WebKeySettings other) |
WebKeySettings.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WebKeySettings.Builder |
setAllowAllDomains(boolean value)
If set to true, it means allowed_domains will not be enforced.
|
WebKeySettings.Builder |
setAllowAmpTraffic(boolean value)
Required.
|
WebKeySettings.Builder |
setAllowedDomains(int index,
String value)
Domains or subdomains of websites allowed to use the key.
|
WebKeySettings.Builder |
setChallengeSecurityPreference(WebKeySettings.ChallengeSecurityPreference value)
Settings for the frequency and difficulty at which this key triggers
captcha challenges.
|
WebKeySettings.Builder |
setChallengeSecurityPreferenceValue(int value)
Settings for the frequency and difficulty at which this key triggers
captcha challenges.
|
WebKeySettings.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WebKeySettings.Builder |
setIntegrationType(WebKeySettings.IntegrationType value)
Required.
|
WebKeySettings.Builder |
setIntegrationTypeValue(int value)
Required.
|
WebKeySettings.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WebKeySettings.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public WebKeySettings build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public WebKeySettings buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public WebKeySettings.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder mergeFrom(WebKeySettings other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public WebKeySettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<WebKeySettings.Builder>
IOException
public boolean getAllowAllDomains()
If set to true, it means allowed_domains will not be enforced.
bool allow_all_domains = 3;
getAllowAllDomains
in interface WebKeySettingsOrBuilder
public WebKeySettings.Builder setAllowAllDomains(boolean value)
If set to true, it means allowed_domains will not be enforced.
bool allow_all_domains = 3;
value
- The allowAllDomains to set.public WebKeySettings.Builder clearAllowAllDomains()
If set to true, it means allowed_domains will not be enforced.
bool allow_all_domains = 3;
public com.google.protobuf.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;
getAllowedDomainsList
in interface WebKeySettingsOrBuilder
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;
getAllowedDomainsCount
in interface WebKeySettingsOrBuilder
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;
getAllowedDomains
in interface WebKeySettingsOrBuilder
index
- The index of the element to return.public com.google.protobuf.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;
getAllowedDomainsBytes
in interface WebKeySettingsOrBuilder
index
- The index of the value to return.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;
index
- The index to set the value at.value
- The allowedDomains to set.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;
value
- The allowedDomains to add.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;
values
- The allowedDomains to add.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;
public WebKeySettings.Builder addAllowedDomainsBytes(com.google.protobuf.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;
value
- The bytes of the allowedDomains to add.public boolean getAllowAmpTraffic()
Required. Whether this key can be used on AMP (Accelerated Mobile Pages) websites. This can only be set for the SCORE integration type.
bool allow_amp_traffic = 2 [(.google.api.field_behavior) = REQUIRED];
getAllowAmpTraffic
in interface WebKeySettingsOrBuilder
public WebKeySettings.Builder setAllowAmpTraffic(boolean value)
Required. Whether this key can be used on AMP (Accelerated Mobile Pages) websites. This can only be set for the SCORE integration type.
bool allow_amp_traffic = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The allowAmpTraffic to set.public WebKeySettings.Builder clearAllowAmpTraffic()
Required. Whether this key can be used on AMP (Accelerated Mobile Pages) websites. This can only be set for the SCORE integration type.
bool allow_amp_traffic = 2 [(.google.api.field_behavior) = REQUIRED];
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];
getIntegrationTypeValue
in interface WebKeySettingsOrBuilder
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];
value
- The enum numeric value on the wire for integrationType to set.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];
getIntegrationType
in interface WebKeySettingsOrBuilder
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];
value
- The integrationType to set.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];
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;
getChallengeSecurityPreferenceValue
in interface WebKeySettingsOrBuilder
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;
value
- The enum numeric value on the wire for challengeSecurityPreference to set.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;
getChallengeSecurityPreference
in interface WebKeySettingsOrBuilder
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;
value
- The challengeSecurityPreference to set.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;
public final WebKeySettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
public final WebKeySettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>
Copyright © 2021 Google LLC. All rights reserved.