1.1.0 (latest) 1.0.0

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

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class GenerateChatTokenRequest.

Request message for
\[WidgetService.GenerateChatToken\]\[google.cloud.ces.v1.WidgetService.GenerateChatToken\].

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GenerateChatTokenRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.GenerateChatTokenRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GenerateChatTokenRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.GenerateChatTokenRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GenerateChatTokenRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.GenerateChatTokenRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## Assembly

Google.Cloud.Ces.V1.dll

## Constructors

### GenerateChatTokenRequest()

    public GenerateChatTokenRequest()

### GenerateChatTokenRequest(GenerateChatTokenRequest)

    public GenerateChatTokenRequest(GenerateChatTokenRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GenerateChatTokenRequest` |

## Properties

### Deployment

    public string Deployment { get; set; }

Required. The deployment of the app to use for the session.
Format:
projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DeploymentAsDeploymentName

    public DeploymentName DeploymentAsDeploymentName { get; set; }

[DeploymentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.DeploymentName.md.txt)-typed view over the [Deployment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.GenerateChatTokenRequest.md.txt#Google_Cloud_Ces_V1_GenerateChatTokenRequest_Deployment) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DeploymentName` |   |

### LiveHandoffEnabled

    public bool LiveHandoffEnabled { get; set; }

Optional. Indicates if live handoff is enabled for the session.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Name

    public string Name { get; set; }

Required. The session name to generate the chat token for.
Format:
projects/{project}/locations/{location}/apps/{app}/sessions/{session}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RecaptchaToken

    public string RecaptchaToken { get; set; }

Optional. The reCAPTCHA token generated by the client-side chat widget.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SessionName

    public SessionName SessionName { get; set; }

[SessionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.SessionName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.GenerateChatTokenRequest.md.txt#Google_Cloud_Ces_V1_GenerateChatTokenRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SessionName` |   |