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 classKey.BuilderA key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.static classKey.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 intANDROID_SETTINGS_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intIOS_SETTINGS_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intTESTING_OPTIONS_FIELD_NUMBERstatic intWAF_SETTINGS_FIELD_NUMBERstatic intWEB_SETTINGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.booleanequals(Object obj)AndroidKeySettingsgetAndroidSettings()Settings for keys that can be used by Android apps.AndroidKeySettingsOrBuildergetAndroidSettingsOrBuilder()Settings for keys that can be used by Android apps.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.static KeygetDefaultInstance()KeygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Human-readable display name of this key.com.google.protobuf.ByteStringgetDisplayNameBytes()Human-readable display name of this key.IOSKeySettingsgetIosSettings()Settings for keys that can be used by iOS apps.IOSKeySettingsOrBuildergetIosSettingsOrBuilder()Settings for keys that can be used by iOS apps.Map<String,String>getLabels()Deprecated.intgetLabelsCount()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>.StringgetLabelsOrDefault(String key, String defaultValue)See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.StringgetLabelsOrThrow(String key)See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.StringgetName()The resource name for the Key in the format "projects/{project}/keys/{key}".com.google.protobuf.ByteStringgetNameBytes()The resource name for the Key in the format "projects/{project}/keys/{key}".com.google.protobuf.Parser<Key>getParserForType()Key.PlatformSettingsCasegetPlatformSettingsCase()intgetSerializedSize()TestingOptionsgetTestingOptions()Options for user acceptance testing.TestingOptionsOrBuildergetTestingOptionsOrBuilder()Options for user acceptance testing.WafSettingsgetWafSettings()Settings for WAFWafSettingsOrBuildergetWafSettingsOrBuilder()Settings for WAFWebKeySettingsgetWebSettings()Settings for keys that can be used by websites.WebKeySettingsOrBuildergetWebSettingsOrBuilder()Settings for keys that can be used by websites.booleanhasAndroidSettings()Settings for keys that can be used by Android apps.booleanhasCreateTime()Output only.inthashCode()booleanhasIosSettings()Settings for keys that can be used by iOS apps.booleanhasTestingOptions()Options for user acceptance testing.booleanhasWafSettings()Settings for WAFbooleanhasWebSettings()Settings for keys that can be used by websites.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Key.BuildernewBuilder()static Key.BuildernewBuilder(Key prototype)Key.BuildernewBuilderForType()protected Key.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()Key.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getPlatformSettingsCase
public Key.PlatformSettingsCase getPlatformSettingsCase()
- Specified by:
getPlatformSettingsCasein interfaceKeyOrBuilder
-
getName
public String getName()
The resource name for the Key in the format "projects/{project}/keys/{key}".string name = 1;- Specified by:
getNamein 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:
getNameBytesin 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:
getDisplayNamein 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:
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
public WebKeySettings 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
public WebKeySettingsOrBuilder 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
public AndroidKeySettings 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
public AndroidKeySettingsOrBuilder 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
public IOSKeySettings 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
public IOSKeySettingsOrBuilder getIosSettingsOrBuilder()
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;- Specified by:
getIosSettingsOrBuilderin interfaceKeyOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:KeyOrBuilderSee <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6;- Specified by:
getLabelsCountin 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:
containsLabelsin interfaceKeyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin 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:
getLabelsMapin 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:
getLabelsOrDefaultin 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:
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()
Options for user acceptance testing.
.google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9;- Specified by:
hasTestingOptionsin 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:
getTestingOptionsin interfaceKeyOrBuilder- Returns:
- The testingOptions.
-
getTestingOptionsOrBuilder
public TestingOptionsOrBuilder getTestingOptionsOrBuilder()
Options for user acceptance testing.
.google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9;- Specified by:
getTestingOptionsOrBuilderin interfaceKeyOrBuilder
-
hasWafSettings
public boolean hasWafSettings()
Settings for WAF
.google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10;- Specified by:
hasWafSettingsin 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:
getWafSettingsin interfaceKeyOrBuilder- Returns:
- The wafSettings.
-
getWafSettingsOrBuilder
public WafSettingsOrBuilder getWafSettingsOrBuilder()
Settings for WAF
.google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10;- Specified by:
getWafSettingsOrBuilderin interfaceKeyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Key.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Key getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-