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 type
google.cloud.recaptchaenterprise.v1.Key| Modifier and Type | Class and 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 |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and 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 |
WEB_SETTINGS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Optional.
|
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()
The timestamp corresponding to the creation of this Key.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The timestamp corresponding to the creation of this Key.
|
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()
Optional.
|
Map<String,String> |
getLabelsMap()
Optional.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getLabelsOrThrow(String key)
Optional.
|
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() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
WebKeySettings |
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()
The timestamp corresponding to the creation of this Key.
|
int |
hashCode() |
boolean |
hasIosSettings()
Settings for keys that can be used by iOS apps.
|
boolean |
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(ByteBuffer data) |
static Key |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Key> |
parser() |
Key.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int WEB_SETTINGS_FIELD_NUMBER
public static final int ANDROID_SETTINGS_FIELD_NUMBER
public static final int IOS_SETTINGS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Key.PlatformSettingsCase getPlatformSettingsCase()
getPlatformSettingsCase in interface KeyOrBuilderpublic String getName()
The resource name for the Key in the format
"projects/{project}/keys/{key}".
string name = 1;getName in interface KeyOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name for the Key in the format
"projects/{project}/keys/{key}".
string name = 1;getNameBytes in interface KeyOrBuilderpublic String getDisplayName()
Human-readable display name of this key. Modifiable by user.
string display_name = 2;getDisplayName in interface KeyOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Human-readable display name of this key. Modifiable by user.
string display_name = 2;getDisplayNameBytes in interface KeyOrBuilderpublic boolean hasWebSettings()
Settings for keys that can be used by websites.
.google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;hasWebSettings in interface KeyOrBuilderpublic WebKeySettings getWebSettings()
Settings for keys that can be used by websites.
.google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;getWebSettings in interface KeyOrBuilderpublic WebKeySettingsOrBuilder getWebSettingsOrBuilder()
Settings for keys that can be used by websites.
.google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;getWebSettingsOrBuilder in interface KeyOrBuilderpublic boolean hasAndroidSettings()
Settings for keys that can be used by Android apps.
.google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;hasAndroidSettings in interface KeyOrBuilderpublic AndroidKeySettings getAndroidSettings()
Settings for keys that can be used by Android apps.
.google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;getAndroidSettings in interface KeyOrBuilderpublic AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder()
Settings for keys that can be used by Android apps.
.google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;getAndroidSettingsOrBuilder in interface KeyOrBuilderpublic boolean hasIosSettings()
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;hasIosSettings in interface KeyOrBuilderpublic IOSKeySettings getIosSettings()
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;getIosSettings in interface KeyOrBuilderpublic IOSKeySettingsOrBuilder getIosSettingsOrBuilder()
Settings for keys that can be used by iOS apps.
.google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;getIosSettingsOrBuilder in interface KeyOrBuilderpublic int getLabelsCount()
KeyOrBuilderOptional. See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];getLabelsCount in interface KeyOrBuilderpublic boolean containsLabels(String key)
Optional. See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];containsLabels in interface KeyOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface KeyOrBuilderpublic Map<String,String> getLabelsMap()
Optional. See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];getLabelsMap in interface KeyOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Optional. See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];getLabelsOrDefault in interface KeyOrBuilderpublic String getLabelsOrThrow(String key)
Optional. See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];getLabelsOrThrow in interface KeyOrBuilderpublic boolean hasCreateTime()
The timestamp corresponding to the creation of this Key.
.google.protobuf.Timestamp create_time = 7;hasCreateTime in interface KeyOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The timestamp corresponding to the creation of this Key.
.google.protobuf.Timestamp create_time = 7;getCreateTime in interface KeyOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The timestamp corresponding to the creation of this Key.
.google.protobuf.Timestamp create_time = 7;getCreateTimeOrBuilder in interface KeyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Key parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Key parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Key parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Key parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Key parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Key parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Key parseFrom(InputStream input) throws IOException
IOExceptionpublic static Key parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Key parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Key parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Key parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Key parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Key.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Key.Builder newBuilder()
public static Key.Builder newBuilder(Key prototype)
public Key.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Key.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Key getDefaultInstance()
public static com.google.protobuf.Parser<Key> parser()
public com.google.protobuf.Parser<Key> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Key getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.