Class Key
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class Key
extends com.google.protobuf.GeneratedMessage
implements KeyOrBuilder
A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.Protobuf type
google.cloud.recaptchaenterprise.v1.Key- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Optional.booleanSettings for keys that can be used by Android apps.Settings for keys that can be used by Android apps.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static Keystatic final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Settings for keys that can be used by reCAPTCHA Express.Settings for keys that can be used by reCAPTCHA Express.Settings for keys that can be used by iOS apps.Settings for keys that can be used by iOS apps.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.Parser<Key>intOptional.Optional.Optional.Optional.Settings for keys that can be used by websites.Settings for keys that can be used by websites.booleanSettings for keys that can be used by Android apps.booleanOutput only.booleanSettings for keys that can be used by reCAPTCHA Express.inthashCode()booleanSettings for keys that can be used by iOS apps.booleanOptional.booleanOptional.booleanSettings for keys that can be used by websites.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Key.Builderstatic Key.BuildernewBuilder(Key prototype) protected Key.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static KeyparseDelimitedFrom(InputStream input) static KeyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyparseFrom(byte[] data) static KeyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyparseFrom(com.google.protobuf.ByteString data) static KeyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyparseFrom(com.google.protobuf.CodedInputStream input) static KeyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyparseFrom(InputStream input) static KeyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyparseFrom(ByteBuffer data) static KeyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Key>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
WEB_SETTINGS_FIELD_NUMBER
public static final int WEB_SETTINGS_FIELD_NUMBER- See Also:
-
ANDROID_SETTINGS_FIELD_NUMBER
public static final int ANDROID_SETTINGS_FIELD_NUMBER- See Also:
-
IOS_SETTINGS_FIELD_NUMBER
public static final int IOS_SETTINGS_FIELD_NUMBER- See Also:
-
EXPRESS_SETTINGS_FIELD_NUMBER
public static final int EXPRESS_SETTINGS_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
TESTING_OPTIONS_FIELD_NUMBER
public static final int TESTING_OPTIONS_FIELD_NUMBER- See Also:
-
WAF_SETTINGS_FIELD_NUMBER
public static final int WAF_SETTINGS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getPlatformSettingsCase
- Specified by:
getPlatformSettingsCasein interfaceKeyOrBuilder
-
getName
Identifier. The resource name for the Key in the format `projects/{project}/keys/{key}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceKeyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. The resource name for the Key in the format `projects/{project}/keys/{key}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceKeyOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Required. Human-readable display name of this key. Modifiable by user.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceKeyOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. Human-readable display name of this key. Modifiable by user.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin 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:
hasWebSettingsin interfaceKeyOrBuilder- Returns:
- Whether the webSettings field is set.
-
getWebSettings
Settings for keys that can be used by websites.
.google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;- Specified by:
getWebSettingsin interfaceKeyOrBuilder- Returns:
- The webSettings.
-
getWebSettingsOrBuilder
Settings for keys that can be used by websites.
.google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;- Specified by:
getWebSettingsOrBuilderin 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:
hasAndroidSettingsin interfaceKeyOrBuilder- Returns:
- Whether the androidSettings field is set.
-
getAndroidSettings
Settings for keys that can be used by Android apps.
.google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;- Specified by:
getAndroidSettingsin interfaceKeyOrBuilder- Returns:
- The androidSettings.
-
getAndroidSettingsOrBuilder
Settings for keys that can be used by Android apps.
.google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;- Specified by:
getAndroidSettingsOrBuilderin 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:
hasIosSettingsin interfaceKeyOrBuilder- Returns:
- Whether the iosSettings field is set.
-
getIosSettings
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;- Specified by:
getIosSettingsin interfaceKeyOrBuilder- Returns:
- The iosSettings.
-
getIosSettingsOrBuilder
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;- Specified by:
getIosSettingsOrBuilderin interfaceKeyOrBuilder
-
hasExpressSettings
public boolean hasExpressSettings()Settings for keys that can be used by reCAPTCHA Express.
.google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;- Specified by:
hasExpressSettingsin interfaceKeyOrBuilder- Returns:
- Whether the expressSettings field is set.
-
getExpressSettings
Settings for keys that can be used by reCAPTCHA Express.
.google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;- Specified by:
getExpressSettingsin interfaceKeyOrBuilder- Returns:
- The expressSettings.
-
getExpressSettingsOrBuilder
Settings for keys that can be used by reCAPTCHA Express.
.google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;- Specified by:
getExpressSettingsOrBuilderin interfaceKeyOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:KeyOrBuilderOptional. See [Creating and managing labels] (https://cloud.google.com/recaptcha/docs/labels).
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceKeyOrBuilder
-
containsLabels
Optional. See [Creating and managing labels] (https://cloud.google.com/recaptcha/docs/labels).
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceKeyOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceKeyOrBuilder
-
getLabelsMap
Optional. See [Creating and managing labels] (https://cloud.google.com/recaptcha/docs/labels).
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceKeyOrBuilder
-
getLabelsOrDefault
Optional. See [Creating and managing labels] (https://cloud.google.com/recaptcha/docs/labels).
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceKeyOrBuilder
-
getLabelsOrThrow
Optional. See [Creating and managing labels] (https://cloud.google.com/recaptcha/docs/labels).
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin 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:
hasCreateTimein 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:
getCreateTimein 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:
getCreateTimeOrBuilderin interfaceKeyOrBuilder
-
hasTestingOptions
public boolean hasTestingOptions()Optional. Options for user acceptance testing.
.google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTestingOptionsin interfaceKeyOrBuilder- Returns:
- Whether the testingOptions field is set.
-
getTestingOptions
Optional. Options for user acceptance testing.
.google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTestingOptionsin interfaceKeyOrBuilder- Returns:
- The testingOptions.
-
getTestingOptionsOrBuilder
Optional. Options for user acceptance testing.
.google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTestingOptionsOrBuilderin interfaceKeyOrBuilder
-
hasWafSettings
public boolean hasWafSettings()Optional. Settings for Web Application Firewall (WAF).
.google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasWafSettingsin interfaceKeyOrBuilder- Returns:
- Whether the wafSettings field is set.
-
getWafSettings
Optional. Settings for Web Application Firewall (WAF).
.google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWafSettingsin interfaceKeyOrBuilder- Returns:
- The wafSettings.
-
getWafSettingsOrBuilder
Optional. Settings for Web Application Firewall (WAF).
.google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWafSettingsOrBuilderin interfaceKeyOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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
- 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
- Throws:
IOException
-
parseFrom
public static Key parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Key parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Key parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-