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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>public WebKeySettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WebKeySettings build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WebKeySettings buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WebKeySettings.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone 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.BuildersetField 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.BuilderclearField 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.BuilderclearOneof 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.BuildersetRepeatedField 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.BuilderaddRepeatedField 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.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WebKeySettings.Builder>IOExceptionpublic boolean getAllowAllDomains()
If set to true, it means allowed_domains will not be enforced.
bool allow_all_domains = 3;getAllowAllDomains in interface WebKeySettingsOrBuilderpublic 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 WebKeySettingsOrBuilderpublic 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 WebKeySettingsOrBuilderpublic 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 WebKeySettingsOrBuilderindex - 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 WebKeySettingsOrBuilderindex - 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.
bool allow_amp_traffic = 2 [(.google.api.field_behavior) = REQUIRED];getAllowAmpTraffic in interface WebKeySettingsOrBuilderpublic WebKeySettings.Builder setAllowAmpTraffic(boolean value)
Required. Whether this key can be used on AMP (Accelerated Mobile Pages) websites.
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.
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 WebKeySettingsOrBuilderpublic 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 WebKeySettingsOrBuilderpublic 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 WebKeySettingsOrBuilderpublic 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 WebKeySettingsOrBuilderpublic 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.BuildersetUnknownFields 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.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WebKeySettings.Builder>Copyright © 2021 Google LLC. All rights reserved.