public final class WebKeySettings extends GeneratedMessageV3 implements WebKeySettingsOrBuilder
Settings specific to keys that can be used by websites.
Protobuf type google.cloud.recaptchaenterprise.v1.WebKeySettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ALLOWED_DOMAINS_FIELD_NUMBER
public static final int ALLOWED_DOMAINS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ALLOW_ALL_DOMAINS_FIELD_NUMBER
public static final int ALLOW_ALL_DOMAINS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ALLOW_AMP_TRAFFIC_FIELD_NUMBER
public static final int ALLOW_AMP_TRAFFIC_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CHALLENGE_SECURITY_PREFERENCE_FIELD_NUMBER
public static final int CHALLENGE_SECURITY_PREFERENCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INTEGRATION_TYPE_FIELD_NUMBER
public static final int INTEGRATION_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static WebKeySettings getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static WebKeySettings.Builder newBuilder()
newBuilder(WebKeySettings prototype)
public static WebKeySettings.Builder newBuilder(WebKeySettings prototype)
public static WebKeySettings parseDelimitedFrom(InputStream input)
public static WebKeySettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static WebKeySettings parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WebKeySettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static WebKeySettings parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebKeySettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebKeySettings parseFrom(CodedInputStream input)
public static WebKeySettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WebKeySettings parseFrom(InputStream input)
public static WebKeySettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static WebKeySettings parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WebKeySettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<WebKeySettings> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getAllowAllDomains()
public boolean getAllowAllDomains()
If set to true, it means allowed_domains will not be enforced.
bool allow_all_domains = 3;
Returns |
---|
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;
Returns |
---|
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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
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;
Returns |
---|
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;
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;
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;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for challengeSecurityPreference.
|
getDefaultInstanceForType()
public WebKeySettings getDefaultInstanceForType()
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];
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];
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for integrationType.
|
getParserForType()
public Parser<WebKeySettings> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public WebKeySettings.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WebKeySettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public WebKeySettings.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides