Class Key
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.recaptchaenterprise.v1.Key
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,KeyOrBuilder
,Serializable
public final class Key extends com.google.protobuf.GeneratedMessageV3 implements KeyOrBuilder
A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.
Protobuf typegoogle.cloud.recaptchaenterprise.v1.Key
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Key.Builder
A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.static class
Key.PlatformSettingsCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANDROID_SETTINGS_FIELD_NUMBER
static int
CREATE_TIME_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
IOS_SETTINGS_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
TESTING_OPTIONS_FIELD_NUMBER
static int
WAF_SETTINGS_FIELD_NUMBER
static int
WEB_SETTINGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.boolean
equals(Object obj)
AndroidKeySettings
getAndroidSettings()
Settings for keys that can be used by Android apps.AndroidKeySettingsOrBuilder
getAndroidSettingsOrBuilder()
Settings for keys that can be used by Android apps.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.static Key
getDefaultInstance()
Key
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
Human-readable display name of this key.com.google.protobuf.ByteString
getDisplayNameBytes()
Human-readable display name of this key.IOSKeySettings
getIosSettings()
Settings for keys that can be used by iOS apps.IOSKeySettingsOrBuilder
getIosSettingsOrBuilder()
Settings for keys that can be used by iOS apps.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.Map<String,String>
getLabelsMap()
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.String
getLabelsOrDefault(String key, String defaultValue)
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.String
getLabelsOrThrow(String key)
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.String
getName()
The resource name for the Key in the format "projects/{project}/keys/{key}".com.google.protobuf.ByteString
getNameBytes()
The resource name for the Key in the format "projects/{project}/keys/{key}".com.google.protobuf.Parser<Key>
getParserForType()
Key.PlatformSettingsCase
getPlatformSettingsCase()
int
getSerializedSize()
TestingOptions
getTestingOptions()
Options for user acceptance testing.TestingOptionsOrBuilder
getTestingOptionsOrBuilder()
Options for user acceptance testing.WafSettings
getWafSettings()
Settings for WAFWafSettingsOrBuilder
getWafSettingsOrBuilder()
Settings for WAFWebKeySettings
getWebSettings()
Settings for keys that can be used by websites.WebKeySettingsOrBuilder
getWebSettingsOrBuilder()
Settings for keys that can be used by websites.boolean
hasAndroidSettings()
Settings for keys that can be used by Android apps.boolean
hasCreateTime()
Output only.int
hashCode()
boolean
hasIosSettings()
Settings for keys that can be used by iOS apps.boolean
hasTestingOptions()
Options for user acceptance testing.boolean
hasWafSettings()
Settings for WAFboolean
hasWebSettings()
Settings for keys that can be used by websites.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Key.Builder
newBuilder()
static Key.Builder
newBuilder(Key prototype)
Key.Builder
newBuilderForType()
protected Key.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Key
parseDelimitedFrom(InputStream input)
static Key
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Key
parseFrom(byte[] data)
static Key
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Key
parseFrom(com.google.protobuf.ByteString data)
static Key
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Key
parseFrom(com.google.protobuf.CodedInputStream input)
static Key
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Key
parseFrom(InputStream input)
static Key
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Key
parseFrom(ByteBuffer data)
static Key
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Key>
parser()
Key.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEB_SETTINGS_FIELD_NUMBER
public static final int WEB_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANDROID_SETTINGS_FIELD_NUMBER
public static final int ANDROID_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IOS_SETTINGS_FIELD_NUMBER
public static final int IOS_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TESTING_OPTIONS_FIELD_NUMBER
public static final int TESTING_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WAF_SETTINGS_FIELD_NUMBER
public static final int WAF_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getPlatformSettingsCase
public Key.PlatformSettingsCase getPlatformSettingsCase()
- Specified by:
getPlatformSettingsCase
in interfaceKeyOrBuilder
-
getName
public String getName()
The resource name for the Key in the format "projects/{project}/keys/{key}".
string name = 1;
- Specified by:
getName
in interfaceKeyOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name for the Key in the format "projects/{project}/keys/{key}".
string name = 1;
- Specified by:
getNameBytes
in interfaceKeyOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Human-readable display name of this key. Modifiable by user.
string display_name = 2;
- Specified by:
getDisplayName
in interfaceKeyOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Human-readable display name of this key. Modifiable by user.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceKeyOrBuilder
- Returns:
- The bytes for displayName.
-
hasWebSettings
public boolean hasWebSettings()
Settings for keys that can be used by websites.
.google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
- Specified by:
hasWebSettings
in interfaceKeyOrBuilder
- Returns:
- Whether the webSettings field is set.
-
getWebSettings
public WebKeySettings getWebSettings()
Settings for keys that can be used by websites.
.google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
- Specified by:
getWebSettings
in interfaceKeyOrBuilder
- Returns:
- The webSettings.
-
getWebSettingsOrBuilder
public WebKeySettingsOrBuilder getWebSettingsOrBuilder()
Settings for keys that can be used by websites.
.google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
- Specified by:
getWebSettingsOrBuilder
in interfaceKeyOrBuilder
-
hasAndroidSettings
public boolean hasAndroidSettings()
Settings for keys that can be used by Android apps.
.google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
- Specified by:
hasAndroidSettings
in interfaceKeyOrBuilder
- Returns:
- Whether the androidSettings field is set.
-
getAndroidSettings
public AndroidKeySettings getAndroidSettings()
Settings for keys that can be used by Android apps.
.google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
- Specified by:
getAndroidSettings
in interfaceKeyOrBuilder
- Returns:
- The androidSettings.
-
getAndroidSettingsOrBuilder
public AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder()
Settings for keys that can be used by Android apps.
.google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
- Specified by:
getAndroidSettingsOrBuilder
in interfaceKeyOrBuilder
-
hasIosSettings
public boolean hasIosSettings()
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
- Specified by:
hasIosSettings
in interfaceKeyOrBuilder
- Returns:
- Whether the iosSettings field is set.
-
getIosSettings
public IOSKeySettings getIosSettings()
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
- Specified by:
getIosSettings
in interfaceKeyOrBuilder
- Returns:
- The iosSettings.
-
getIosSettingsOrBuilder
public IOSKeySettingsOrBuilder getIosSettingsOrBuilder()
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
- Specified by:
getIosSettingsOrBuilder
in interfaceKeyOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:KeyOrBuilder
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6;
- Specified by:
getLabelsCount
in interfaceKeyOrBuilder
-
containsLabels
public boolean containsLabels(String key)
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6;
- Specified by:
containsLabels
in interfaceKeyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceKeyOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6;
- Specified by:
getLabelsMap
in interfaceKeyOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6;
- Specified by:
getLabelsOrDefault
in interfaceKeyOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6;
- Specified by:
getLabelsOrThrow
in interfaceKeyOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The timestamp corresponding to the creation of this Key.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceKeyOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp corresponding to the creation of this Key.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceKeyOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp corresponding to the creation of this Key.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceKeyOrBuilder
-
hasTestingOptions
public boolean hasTestingOptions()
Options for user acceptance testing.
.google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9;
- Specified by:
hasTestingOptions
in interfaceKeyOrBuilder
- Returns:
- Whether the testingOptions field is set.
-
getTestingOptions
public TestingOptions getTestingOptions()
Options for user acceptance testing.
.google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9;
- Specified by:
getTestingOptions
in interfaceKeyOrBuilder
- Returns:
- The testingOptions.
-
getTestingOptionsOrBuilder
public TestingOptionsOrBuilder getTestingOptionsOrBuilder()
Options for user acceptance testing.
.google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9;
- Specified by:
getTestingOptionsOrBuilder
in interfaceKeyOrBuilder
-
hasWafSettings
public boolean hasWafSettings()
Settings for WAF
.google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10;
- Specified by:
hasWafSettings
in interfaceKeyOrBuilder
- Returns:
- Whether the wafSettings field is set.
-
getWafSettings
public WafSettings getWafSettings()
Settings for WAF
.google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10;
- Specified by:
getWafSettings
in interfaceKeyOrBuilder
- Returns:
- The wafSettings.
-
getWafSettingsOrBuilder
public WafSettingsOrBuilder getWafSettingsOrBuilder()
Settings for WAF
.google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10;
- Specified by:
getWafSettingsOrBuilder
in interfaceKeyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Key parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Key parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Key parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Key parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Key parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Key parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Key parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Key parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Key parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Key parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Key parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Key parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Key.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Key.Builder newBuilder()
-
newBuilder
public static Key.Builder newBuilder(Key prototype)
-
toBuilder
public Key.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Key.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Key getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Key> parser()
-
getParserForType
public com.google.protobuf.Parser<Key> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Key getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-