Class TokenProperties (0.1.0)

TokenProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

NameDescription
valid bool
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).
invalid_reason .recaptchaenterprise.TokenProperties.InvalidReason
Reason associated with the response when valid = false.
create_time .timestamp.Timestamp
The timestamp corresponding to the generation of the token.
hostname str
The hostname of the page on which the token was generated.
action str
Action name provided at token generation.

Classes

InvalidReason

InvalidReason(value)

LINT.IfChange Enum that represents the types of invalid token reasons.

Methods

__delattr__

__delattr__(key)

Delete the value on the given field.

This is generally equivalent to setting a falsy value.

__eq__

__eq__(other)

Return True if the messages are equal, False otherwise.

__ne__

__ne__(other)

Return True if the messages are unequal, False otherwise.

__setattr__

__setattr__(key, value)

Set the value on the given field.

For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.