Class TokenProperties
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.recaptchaenterprise.v1.TokenProperties
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TokenPropertiesOrBuilder,Serializable
public final class TokenProperties extends com.google.protobuf.GeneratedMessageV3 implements TokenPropertiesOrBuilder
Properties of the provided event token.
Protobuf typegoogle.cloud.recaptchaenterprise.v1.TokenProperties- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenProperties.BuilderProperties of the provided event token.static classTokenProperties.InvalidReasonEnum that represents the types of invalid token reasons.-
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 intACTION_FIELD_NUMBERstatic intANDROID_PACKAGE_NAME_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intHOSTNAME_FIELD_NUMBERstatic intINVALID_REASON_FIELD_NUMBERstatic intIOS_BUNDLE_ID_FIELD_NUMBERstatic intVALID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAction()Action name provided at token generation.com.google.protobuf.ByteStringgetActionBytes()Action name provided at token generation.StringgetAndroidPackageName()The name of the Android package with which the token was generated (Android keys only).com.google.protobuf.ByteStringgetAndroidPackageNameBytes()The name of the Android package with which the token was generated (Android keys only).com.google.protobuf.TimestampgetCreateTime()The timestamp corresponding to the generation of the token.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The timestamp corresponding to the generation of the token.static TokenPropertiesgetDefaultInstance()TokenPropertiesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetHostname()The hostname of the page on which the token was generated (Web keys only).com.google.protobuf.ByteStringgetHostnameBytes()The hostname of the page on which the token was generated (Web keys only).TokenProperties.InvalidReasongetInvalidReason()Reason associated with the response when valid = false.intgetInvalidReasonValue()Reason associated with the response when valid = false.StringgetIosBundleId()The ID of the iOS bundle with which the token was generated (iOS keys only).com.google.protobuf.ByteStringgetIosBundleIdBytes()The ID of the iOS bundle with which the token was generated (iOS keys only).com.google.protobuf.Parser<TokenProperties>getParserForType()intgetSerializedSize()booleangetValid()Whether the provided user response token is valid.booleanhasCreateTime()The timestamp corresponding to the generation of the token.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TokenProperties.BuildernewBuilder()static TokenProperties.BuildernewBuilder(TokenProperties prototype)TokenProperties.BuildernewBuilderForType()protected TokenProperties.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TokenPropertiesparseDelimitedFrom(InputStream input)static TokenPropertiesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TokenPropertiesparseFrom(byte[] data)static TokenPropertiesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TokenPropertiesparseFrom(com.google.protobuf.ByteString data)static TokenPropertiesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TokenPropertiesparseFrom(com.google.protobuf.CodedInputStream input)static TokenPropertiesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TokenPropertiesparseFrom(InputStream input)static TokenPropertiesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TokenPropertiesparseFrom(ByteBuffer data)static TokenPropertiesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TokenProperties>parser()TokenProperties.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, internalGetMapField, 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
-
VALID_FIELD_NUMBER
public static final int VALID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INVALID_REASON_FIELD_NUMBER
public static final int INVALID_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HOSTNAME_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANDROID_PACKAGE_NAME_FIELD_NUMBER
public static final int ANDROID_PACKAGE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IOS_BUNDLE_ID_FIELD_NUMBER
public static final int IOS_BUNDLE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTION_FIELD_NUMBER
public static final int ACTION_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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getValid
public boolean getValid()
Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment).
bool valid = 1;- Specified by:
getValidin interfaceTokenPropertiesOrBuilder- Returns:
- The valid.
-
getInvalidReasonValue
public int getInvalidReasonValue()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;- Specified by:
getInvalidReasonValuein interfaceTokenPropertiesOrBuilder- Returns:
- The enum numeric value on the wire for invalidReason.
-
getInvalidReason
public TokenProperties.InvalidReason getInvalidReason()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;- Specified by:
getInvalidReasonin interfaceTokenPropertiesOrBuilder- Returns:
- The invalidReason.
-
hasCreateTime
public boolean hasCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;- Specified by:
hasCreateTimein interfaceTokenPropertiesOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimein interfaceTokenPropertiesOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimeOrBuilderin interfaceTokenPropertiesOrBuilder
-
getHostname
public String getHostname()
The hostname of the page on which the token was generated (Web keys only).
string hostname = 4;- Specified by:
getHostnamein interfaceTokenPropertiesOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
The hostname of the page on which the token was generated (Web keys only).
string hostname = 4;- Specified by:
getHostnameBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for hostname.
-
getAndroidPackageName
public String getAndroidPackageName()
The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8;- Specified by:
getAndroidPackageNamein interfaceTokenPropertiesOrBuilder- Returns:
- The androidPackageName.
-
getAndroidPackageNameBytes
public com.google.protobuf.ByteString getAndroidPackageNameBytes()
The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8;- Specified by:
getAndroidPackageNameBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for androidPackageName.
-
getIosBundleId
public String getIosBundleId()
The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9;- Specified by:
getIosBundleIdin interfaceTokenPropertiesOrBuilder- Returns:
- The iosBundleId.
-
getIosBundleIdBytes
public com.google.protobuf.ByteString getIosBundleIdBytes()
The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9;- Specified by:
getIosBundleIdBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for iosBundleId.
-
getAction
public String getAction()
Action name provided at token generation.
string action = 5;- Specified by:
getActionin interfaceTokenPropertiesOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
Action name provided at token generation.
string action = 5;- Specified by:
getActionBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for action.
-
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 TokenProperties parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenProperties parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenProperties parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenProperties parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenProperties parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenProperties parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TokenProperties parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TokenProperties parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TokenProperties parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TokenProperties parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TokenProperties parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TokenProperties.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TokenProperties.Builder newBuilder()
-
newBuilder
public static TokenProperties.Builder newBuilder(TokenProperties prototype)
-
toBuilder
public TokenProperties.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TokenProperties.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TokenProperties getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TokenProperties> parser()
-
getParserForType
public com.google.protobuf.Parser<TokenProperties> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TokenProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-