# Google Cloud reCAPTCHA Enterprise v1beta1 API - Class TokenProperties (2.0.0-beta10)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta10 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties)
- [2.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/2.0.0-beta09/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties)
- [1.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/1.0.0-beta06/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties)

    public sealed class TokenProperties : IMessage<TokenProperties>, IEquatable<TokenProperties>, IDeepCloneable<TokenProperties>, IBufferMessage, IMessage

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TokenProperties

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TokenProperties](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TokenProperties](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TokenProperties](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.RecaptchaEnterprise.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1)

## Assembly

Google.Cloud.RecaptchaEnterprise.V1Beta1.dll

## Constructors

### TokenProperties()

    public TokenProperties()

### TokenProperties(TokenProperties)

    public TokenProperties(TokenProperties other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties` |

## Properties

### Action

    public string Action { get; set; }

Action name provided at token generation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

The timestamp corresponding to the generation of the token.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Hostname

    public string Hostname { get; set; }

The hostname of the page on which the token was generated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### InvalidReason

    public TokenProperties.Types.InvalidReason InvalidReason { get; set; }

Reason associated with the response when valid = false.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenPropertieshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TokenProperties.Types.InvalidReason` |   |

### Valid

    public bool Valid { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |