# Google Cloud Dialogflow v2beta1 API - Class ParticipantsClient (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    public abstract class ParticipantsClient

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class ParticipantsClient.

Participants client wrapper, for convenient use.

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[ParticipantsClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClientImpl)

## Namespace

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

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Remarks

Service for managing
\[Participants\]\[google.cloud.dialogflow.v2beta1.Participant\].

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the Participants service, which is a host of "dialogflow.googleapis.com" and a port
of 443.

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

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default Participants scopes.

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

**Remarks** The default Participants scopes are:

- <https://www.googleapis.com/auth/cloud-platform>
- <https://www.googleapis.com/auth/dialogflow>

### GrpcClient

    public virtual Participants.ParticipantsClient GrpcClient { get; }

The underlying gRPC Participants client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participantshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participants.ParticipantsClient` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### AnalyzeContent(AnalyzeContentRequest, CallSettings)

    public virtual AnalyzeContentResponse AnalyzeContent(AnalyzeContentRequest request, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    AnalyzeContentRequest request = new AnalyzeContentRequest
    {
        ParticipantAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        ReplyAudioConfig = new OutputAudioConfig(),
        TextInput = new TextInput(),
        QueryParams = new QueryParameters(),
        MessageSendTime = new Timestamp(),
        RequestId = "",
        AssistQueryParams = new AssistQueryParameters(),
        CxParameters = new Struct(),
        CxCurrentPage = "",
    };
    // Make the request
    AnalyzeContentResponse response = participantsClient.AnalyzeContent(request);

### AnalyzeContent(ParticipantName, AudioInput, CallSettings)

    public virtual AnalyzeContentResponse AnalyzeContent(ParticipantName participant, AudioInput audioInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `audioInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AudioInput` The natural language speech audio to be processed. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    AudioInput audioInput = new AudioInput();
    // Make the request
    AnalyzeContentResponse response = participantsClient.AnalyzeContent(participant, audioInput);

### AnalyzeContent(ParticipantName, EventInput, CallSettings)

    public virtual AnalyzeContentResponse AnalyzeContent(ParticipantName participant, EventInput eventInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `eventInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.EventInput` An input event to send to Dialogflow. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    EventInput eventInput = new EventInput();
    // Make the request
    AnalyzeContentResponse response = participantsClient.AnalyzeContent(participant, eventInput);

### AnalyzeContent(ParticipantName, TextInput, CallSettings)

    public virtual AnalyzeContentResponse AnalyzeContent(ParticipantName participant, TextInput textInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `textInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextInput` The natural language text to be processed. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    TextInput textInput = new TextInput();
    // Make the request
    AnalyzeContentResponse response = participantsClient.AnalyzeContent(participant, textInput);

### AnalyzeContent(string, AudioInput, CallSettings)

    public virtual AnalyzeContentResponse AnalyzeContent(string participant, AudioInput audioInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `audioInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AudioInput` The natural language speech audio to be processed. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    AudioInput audioInput = new AudioInput();
    // Make the request
    AnalyzeContentResponse response = participantsClient.AnalyzeContent(participant, audioInput);

### AnalyzeContent(string, EventInput, CallSettings)

    public virtual AnalyzeContentResponse AnalyzeContent(string participant, EventInput eventInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `eventInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.EventInput` An input event to send to Dialogflow. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    EventInput eventInput = new EventInput();
    // Make the request
    AnalyzeContentResponse response = participantsClient.AnalyzeContent(participant, eventInput);

### AnalyzeContent(string, TextInput, CallSettings)

    public virtual AnalyzeContentResponse AnalyzeContent(string participant, TextInput textInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `textInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextInput` The natural language text to be processed. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    TextInput textInput = new TextInput();
    // Make the request
    AnalyzeContentResponse response = participantsClient.AnalyzeContent(participant, textInput);

### AnalyzeContentAsync(AnalyzeContentRequest, CallSettings)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(AnalyzeContentRequest request, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    AnalyzeContentRequest request = new AnalyzeContentRequest
    {
        ParticipantAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        ReplyAudioConfig = new OutputAudioConfig(),
        TextInput = new TextInput(),
        QueryParams = new QueryParameters(),
        MessageSendTime = new Timestamp(),
        RequestId = "",
        AssistQueryParams = new AssistQueryParameters(),
        CxParameters = new Struct(),
        CxCurrentPage = "",
    };
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(request);

### AnalyzeContentAsync(AnalyzeContentRequest, CancellationToken)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(AnalyzeContentRequest request, CancellationToken cancellationToken)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    AnalyzeContentRequest request = new AnalyzeContentRequest
    {
        ParticipantAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        ReplyAudioConfig = new OutputAudioConfig(),
        TextInput = new TextInput(),
        QueryParams = new QueryParameters(),
        MessageSendTime = new Timestamp(),
        RequestId = "",
        AssistQueryParams = new AssistQueryParameters(),
        CxParameters = new Struct(),
        CxCurrentPage = "",
    };
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(request);

### AnalyzeContentAsync(ParticipantName, AudioInput, CallSettings)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(ParticipantName participant, AudioInput audioInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `audioInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AudioInput` The natural language speech audio to be processed. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    AudioInput audioInput = new AudioInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, audioInput);

### AnalyzeContentAsync(ParticipantName, AudioInput, CancellationToken)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(ParticipantName participant, AudioInput audioInput, CancellationToken cancellationToken)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `audioInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AudioInput` The natural language speech audio to be processed. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    AudioInput audioInput = new AudioInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, audioInput);

### AnalyzeContentAsync(ParticipantName, EventInput, CallSettings)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(ParticipantName participant, EventInput eventInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `eventInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.EventInput` An input event to send to Dialogflow. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    EventInput eventInput = new EventInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, eventInput);

### AnalyzeContentAsync(ParticipantName, EventInput, CancellationToken)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(ParticipantName participant, EventInput eventInput, CancellationToken cancellationToken)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `eventInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.EventInput` An input event to send to Dialogflow. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    EventInput eventInput = new EventInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, eventInput);

### AnalyzeContentAsync(ParticipantName, TextInput, CallSettings)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(ParticipantName participant, TextInput textInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `textInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextInput` The natural language text to be processed. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    TextInput textInput = new TextInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, textInput);

### AnalyzeContentAsync(ParticipantName, TextInput, CancellationToken)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(ParticipantName participant, TextInput textInput, CancellationToken cancellationToken)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `textInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextInput` The natural language text to be processed. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    TextInput textInput = new TextInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, textInput);

### AnalyzeContentAsync(string, AudioInput, CallSettings)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(string participant, AudioInput audioInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `audioInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AudioInput` The natural language speech audio to be processed. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    AudioInput audioInput = new AudioInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, audioInput);

### AnalyzeContentAsync(string, AudioInput, CancellationToken)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(string participant, AudioInput audioInput, CancellationToken cancellationToken)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `audioInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AudioInput` The natural language speech audio to be processed. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    AudioInput audioInput = new AudioInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, audioInput);

### AnalyzeContentAsync(string, EventInput, CallSettings)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(string participant, EventInput eventInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `eventInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.EventInput` An input event to send to Dialogflow. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    EventInput eventInput = new EventInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, eventInput);

### AnalyzeContentAsync(string, EventInput, CancellationToken)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(string participant, EventInput eventInput, CancellationToken cancellationToken)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `eventInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.EventInput` An input event to send to Dialogflow. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    EventInput eventInput = new EventInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, eventInput);

### AnalyzeContentAsync(string, TextInput, CallSettings)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(string participant, TextInput textInput, CallSettings callSettings = null)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `textInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextInput` The natural language text to be processed. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    TextInput textInput = new TextInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, textInput);

### AnalyzeContentAsync(string, TextInput, CancellationToken)

    public virtual Task<AnalyzeContentResponse> AnalyzeContentAsync(string participant, TextInput textInput, CancellationToken cancellationToken)

Adds a text (chat, for example), or audio (phone recording, for example)
message from a participant into the conversation.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `textInput` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextInput` The natural language text to be processed. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AnalyzeContentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    TextInput textInput = new TextInput();
    // Make the request
    AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, textInput);

### BidiStreamingAnalyzeContent(CallSettings, BidirectionalStreamingSettings)

    public virtual ParticipantsClient.BidiStreamingAnalyzeContentStream BidiStreamingAnalyzeContent(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Bidirectional endless streaming version of
\[StreamingAnalyzeContent\]\[google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |
| `streamingSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings.html` If not null, applies streaming overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient.BidiStreamingAnalyzeContentStream` | The client-server stream. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize streaming call, retrieving the stream object
    using ParticipantsClient.BidiStreamingAnalyzeContentStream response = participantsClient.BidiStreamingAnalyzeContent();

    // Sending requests and retrieving responses can be arbitrarily interleaved
    // Exact sequence will depend on client/server behavior

    // Create task to do something with responses from server
    Task responseHandlerTask = Task.Run(async () =>
    {
        // Note that C# 8 code can use await foreach
        AsyncResponseStream<BidiStreamingAnalyzeContentResponse> responseStream = response.GetResponseStream();
        while (await responseStream.MoveNextAsync())
        {
            BidiStreamingAnalyzeContentResponse responseItem = responseStream.Current;
            // Do something with streamed response
        }
        // The response stream has completed
    });

    // Send requests to the server
    bool done = false;
    while (!done)
    {
        // Initialize a request
        BidiStreamingAnalyzeContentRequest request = new BidiStreamingAnalyzeContentRequest
        {
            Config = new BidiStreamingAnalyzeContentRequest.Types.Config(),
        };
        // Stream a request to the server
        await response.WriteAsync(request);
        // Set "done" to true when sending requests is complete
    }

    // Complete writing requests to the stream
    await response.WriteCompleteAsync();
    // Await the response handler
    // This will complete once all server responses have been processed
    await responseHandlerTask;

### CompileSuggestion(CompileSuggestionRequest, CallSettings)

    [Obsolete]
    public virtual CompileSuggestionResponse CompileSuggestion(CompileSuggestionRequest request, CallSettings callSettings = null)

Deprecated. use
\[SuggestArticles\]\[google.cloud.dialogflow.v2beta1.Participants.SuggestArticles\]
and
\[SuggestFaqAnswers\]\[google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers\]
instead.

Gets suggestions for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionResponse` | The RPC response. |

**Example**

                // Create client
                ParticipantsClient participantsClient = ParticipantsClient.Create();
                // Initialize request argument(s)
    #pragma warning disable CS0612
                CompileSuggestionRequest request = new CompileSuggestionRequest { };
    #pragma warning restore CS0612
                // Make the request
    #pragma warning disable CS0612
                CompileSuggestionResponse response = participantsClient.CompileSuggestion(request);
    #pragma warning restore CS0612

### CompileSuggestionAsync(CompileSuggestionRequest, CallSettings)

    [Obsolete]
    public virtual Task<CompileSuggestionResponse> CompileSuggestionAsync(CompileSuggestionRequest request, CallSettings callSettings = null)

Deprecated. use
\[SuggestArticles\]\[google.cloud.dialogflow.v2beta1.Participants.SuggestArticles\]
and
\[SuggestFaqAnswers\]\[google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers\]
instead.

Gets suggestions for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionResponse` | A Task containing the RPC response. |

**Example**

                // Create client
                ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
                // Initialize request argument(s)
    #pragma warning disable CS0612
                CompileSuggestionRequest request = new CompileSuggestionRequest { };
    #pragma warning restore CS0612
                // Make the request
    #pragma warning disable CS0612
                CompileSuggestionResponse response = await participantsClient.CompileSuggestionAsync(request);
    #pragma warning restore CS0612

### CompileSuggestionAsync(CompileSuggestionRequest, CancellationToken)

    [Obsolete]
    public virtual Task<CompileSuggestionResponse> CompileSuggestionAsync(CompileSuggestionRequest request, CancellationToken cancellationToken)

Deprecated. use
\[SuggestArticles\]\[google.cloud.dialogflow.v2beta1.Participants.SuggestArticles\]
and
\[SuggestFaqAnswers\]\[google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers\]
instead.

Gets suggestions for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionResponse` | A Task containing the RPC response. |

**Example**

                // Create client
                ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
                // Initialize request argument(s)
    #pragma warning disable CS0612
                CompileSuggestionRequest request = new CompileSuggestionRequest { };
    #pragma warning restore CS0612
                // Make the request
    #pragma warning disable CS0612
                CompileSuggestionResponse response = await participantsClient.CompileSuggestionAsync(request);
    #pragma warning restore CS0612

### Create()

    public static ParticipantsClient Create()

Synchronously creates a [ParticipantsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [ParticipantsClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient` | The created [ParticipantsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient). |

### CreateAsync(CancellationToken)

    public static Task<ParticipantsClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [ParticipantsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [ParticipantsClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient` | The task representing the created [ParticipantsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient). |

### CreateParticipant(ConversationName, Participant, CallSettings)

    public virtual Participant CreateParticipant(ConversationName parent, Participant participant, CallSettings callSettings = null)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ConversationName` Required. Resource identifier of the conversation adding the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ConversationName parent = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]");
    Participant participant = new Participant();
    // Make the request
    Participant response = participantsClient.CreateParticipant(parent, participant);

### CreateParticipant(CreateParticipantRequest, CallSettings)

    public virtual Participant CreateParticipant(CreateParticipantRequest request, CallSettings callSettings = null)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateParticipantRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    CreateParticipantRequest request = new CreateParticipantRequest
    {
        ParentAsConversationName = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]"),
        Participant = new Participant(),
    };
    // Make the request
    Participant response = participantsClient.CreateParticipant(request);

### CreateParticipant(string, Participant, CallSettings)

    public virtual Participant CreateParticipant(string parent, Participant participant, CallSettings callSettings = null)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource identifier of the conversation adding the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]";
    Participant participant = new Participant();
    // Make the request
    Participant response = participantsClient.CreateParticipant(parent, participant);

### CreateParticipantAsync(ConversationName, Participant, CallSettings)

    public virtual Task<Participant> CreateParticipantAsync(ConversationName parent, Participant participant, CallSettings callSettings = null)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ConversationName` Required. Resource identifier of the conversation adding the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ConversationName parent = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]");
    Participant participant = new Participant();
    // Make the request
    Participant response = await participantsClient.CreateParticipantAsync(parent, participant);

### CreateParticipantAsync(ConversationName, Participant, CancellationToken)

    public virtual Task<Participant> CreateParticipantAsync(ConversationName parent, Participant participant, CancellationToken cancellationToken)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ConversationName` Required. Resource identifier of the conversation adding the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ConversationName parent = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]");
    Participant participant = new Participant();
    // Make the request
    Participant response = await participantsClient.CreateParticipantAsync(parent, participant);

### CreateParticipantAsync(CreateParticipantRequest, CallSettings)

    public virtual Task<Participant> CreateParticipantAsync(CreateParticipantRequest request, CallSettings callSettings = null)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateParticipantRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    CreateParticipantRequest request = new CreateParticipantRequest
    {
        ParentAsConversationName = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]"),
        Participant = new Participant(),
    };
    // Make the request
    Participant response = await participantsClient.CreateParticipantAsync(request);

### CreateParticipantAsync(CreateParticipantRequest, CancellationToken)

    public virtual Task<Participant> CreateParticipantAsync(CreateParticipantRequest request, CancellationToken cancellationToken)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateParticipantRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    CreateParticipantRequest request = new CreateParticipantRequest
    {
        ParentAsConversationName = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]"),
        Participant = new Participant(),
    };
    // Make the request
    Participant response = await participantsClient.CreateParticipantAsync(request);

### CreateParticipantAsync(string, Participant, CallSettings)

    public virtual Task<Participant> CreateParticipantAsync(string parent, Participant participant, CallSettings callSettings = null)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource identifier of the conversation adding the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]";
    Participant participant = new Participant();
    // Make the request
    Participant response = await participantsClient.CreateParticipantAsync(parent, participant);

### CreateParticipantAsync(string, Participant, CancellationToken)

    public virtual Task<Participant> CreateParticipantAsync(string parent, Participant participant, CancellationToken cancellationToken)

Creates a new participant in a conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource identifier of the conversation adding the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]";
    Participant participant = new Participant();
    // Make the request
    Participant response = await participantsClient.CreateParticipantAsync(parent, participant);

### GetParticipant(GetParticipantRequest, CallSettings)

    public virtual Participant GetParticipant(GetParticipantRequest request, CallSettings callSettings = null)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetParticipantRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    GetParticipantRequest request = new GetParticipantRequest
    {
        ParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
    };
    // Make the request
    Participant response = participantsClient.GetParticipant(request);

### GetParticipant(ParticipantName, CallSettings)

    public virtual Participant GetParticipant(ParticipantName name, CallSettings callSettings = null)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ParticipantName name = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    Participant response = participantsClient.GetParticipant(name);

### GetParticipant(string, CallSettings)

    public virtual Participant GetParticipant(string name, CallSettings callSettings = null)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    Participant response = participantsClient.GetParticipant(name);

### GetParticipantAsync(GetParticipantRequest, CallSettings)

    public virtual Task<Participant> GetParticipantAsync(GetParticipantRequest request, CallSettings callSettings = null)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetParticipantRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    GetParticipantRequest request = new GetParticipantRequest
    {
        ParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
    };
    // Make the request
    Participant response = await participantsClient.GetParticipantAsync(request);

### GetParticipantAsync(GetParticipantRequest, CancellationToken)

    public virtual Task<Participant> GetParticipantAsync(GetParticipantRequest request, CancellationToken cancellationToken)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetParticipantRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    GetParticipantRequest request = new GetParticipantRequest
    {
        ParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
    };
    // Make the request
    Participant response = await participantsClient.GetParticipantAsync(request);

### GetParticipantAsync(ParticipantName, CallSettings)

    public virtual Task<Participant> GetParticipantAsync(ParticipantName name, CallSettings callSettings = null)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName name = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    Participant response = await participantsClient.GetParticipantAsync(name);

### GetParticipantAsync(ParticipantName, CancellationToken)

    public virtual Task<Participant> GetParticipantAsync(ParticipantName name, CancellationToken cancellationToken)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName name = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    Participant response = await participantsClient.GetParticipantAsync(name);

### GetParticipantAsync(string, CallSettings)

    public virtual Task<Participant> GetParticipantAsync(string name, CallSettings callSettings = null)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    Participant response = await participantsClient.GetParticipantAsync(name);

### GetParticipantAsync(string, CancellationToken)

    public virtual Task<Participant> GetParticipantAsync(string name, CancellationToken cancellationToken)

Retrieves a conversation participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    Participant response = await participantsClient.GetParticipantAsync(name);

### ListParticipants(ConversationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListParticipantsResponse, Participant> ListParticipants(ConversationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all participants in the specified conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ConversationName` Required. The conversation to list all participants from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListParticipantsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A pageable sequence of [Participant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant) resources. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ConversationName parent = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]");
    // Make the request
    PagedEnumerable<ListParticipantsResponse, Participant> response = participantsClient.ListParticipants(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Participant item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListParticipantsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Participant item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Participant> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Participant item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListParticipants(ListParticipantsRequest, CallSettings)

    public virtual PagedEnumerable<ListParticipantsResponse, Participant> ListParticipants(ListParticipantsRequest request, CallSettings callSettings = null)

Returns the list of all participants in the specified conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListParticipantsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListParticipantsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A pageable sequence of [Participant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant) resources. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ListParticipantsRequest request = new ListParticipantsRequest
    {
        ParentAsConversationName = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]"),
    };
    // Make the request
    PagedEnumerable<ListParticipantsResponse, Participant> response = participantsClient.ListParticipants(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Participant item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListParticipantsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Participant item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Participant> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Participant item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListParticipants(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListParticipantsResponse, Participant> ListParticipants(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all participants in the specified conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The conversation to list all participants from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListParticipantsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A pageable sequence of [Participant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant) resources. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]";
    // Make the request
    PagedEnumerable<ListParticipantsResponse, Participant> response = participantsClient.ListParticipants(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Participant item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListParticipantsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Participant item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Participant> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Participant item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListParticipantsAsync(ConversationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListParticipantsResponse, Participant> ListParticipantsAsync(ConversationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all participants in the specified conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ConversationName` Required. The conversation to list all participants from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListParticipantsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A pageable asynchronous sequence of [Participant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant) resources. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ConversationName parent = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]");
    // Make the request
    PagedAsyncEnumerable<ListParticipantsResponse, Participant> response = participantsClient.ListParticipantsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Participant item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListParticipantsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Participant item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Participant> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Participant item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListParticipantsAsync(ListParticipantsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListParticipantsResponse, Participant> ListParticipantsAsync(ListParticipantsRequest request, CallSettings callSettings = null)

Returns the list of all participants in the specified conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListParticipantsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListParticipantsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A pageable asynchronous sequence of [Participant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant) resources. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ListParticipantsRequest request = new ListParticipantsRequest
    {
        ParentAsConversationName = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListParticipantsResponse, Participant> response = participantsClient.ListParticipantsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Participant item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListParticipantsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Participant item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Participant> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Participant item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListParticipantsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListParticipantsResponse, Participant> ListParticipantsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all participants in the specified conversation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The conversation to list all participants from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListParticipantsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A pageable asynchronous sequence of [Participant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant) resources. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]";
    // Make the request
    PagedAsyncEnumerable<ListParticipantsResponse, Participant> response = participantsClient.ListParticipantsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Participant item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListParticipantsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Participant item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Participant> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Participant item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSuggestions(ListSuggestionsRequest, CallSettings)

    [Obsolete]
    public virtual PagedEnumerable<ListSuggestionsResponse, Suggestion> ListSuggestions(ListSuggestionsRequest request, CallSettings callSettings = null)

Deprecated: Use inline suggestion, event based suggestion or
Suggestion\* API instead.
See
\[HumanAgentAssistantConfig.name\]\[google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name\]
for more details. Removal Date: 2020-09-01.

Retrieves suggestions for live agents.

This method should be used by human agent client software to fetch auto
generated suggestions in real-time, while the conversation with an end user
is in progress. The functionality is implemented in terms of the
[list
pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination)
design pattern. The client app should use the `next_page_token` field
to fetch the next batch of suggestions. `suggestions` are sorted by
`create_time` in descending order.
To fetch latest suggestion, just set `page_size` to 1.
To fetch new suggestions without duplication, send request with filter
`create_time_epoch_microseconds > [first item's create_time of previous
request]` and empty page_token.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListSuggestionsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListSuggestionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Suggestion` | A pageable sequence of [Suggestion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Suggestion) resources. |

**Example**

                // Create client
                ParticipantsClient participantsClient = ParticipantsClient.Create();
                // Initialize request argument(s)
    #pragma warning disable CS0612
                ListSuggestionsRequest request = new ListSuggestionsRequest { };
    #pragma warning restore CS0612
                // Make the request
    #pragma warning disable CS0612
                PagedEnumerable<ListSuggestionsResponse, Suggestion> response = participantsClient.ListSuggestions(request);
    #pragma warning restore CS0612

                // Iterate over all response items, lazily performing RPCs as required
    #pragma warning disable CS0612
                foreach (Suggestion item in response)
    #pragma warning restore CS0612
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }

                // Or iterate over pages (of server-defined size), performing one RPC per page
    #pragma warning disable CS0612
                foreach (ListSuggestionsResponse page in response.AsRawResponses())
    #pragma warning restore CS0612
                {
                    // Do something with each page of items
                    Console.WriteLine("A page of results:");
    #pragma warning disable CS0612
                    foreach (Suggestion item in page)
    #pragma warning restore CS0612
                    {
                        // Do something with each item
                        Console.WriteLine(item);
                    }
                }

                // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
                int pageSize = 10;
    #pragma warning disable CS0612
                Page<Suggestion> singlePage = response.ReadPage(pageSize);
    #pragma warning restore CS0612
                // Do something with the page of items
                Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    #pragma warning disable CS0612
                foreach (Suggestion item in singlePage)
    #pragma warning restore CS0612
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
                // Store the pageToken, for when the next page is required.
                string nextPageToken = singlePage.NextPageToken;

### ListSuggestionsAsync(ListSuggestionsRequest, CallSettings)

    [Obsolete]
    public virtual PagedAsyncEnumerable<ListSuggestionsResponse, Suggestion> ListSuggestionsAsync(ListSuggestionsRequest request, CallSettings callSettings = null)

Deprecated: Use inline suggestion, event based suggestion or
Suggestion\* API instead.
See
\[HumanAgentAssistantConfig.name\]\[google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name\]
for more details. Removal Date: 2020-09-01.

Retrieves suggestions for live agents.

This method should be used by human agent client software to fetch auto
generated suggestions in real-time, while the conversation with an end user
is in progress. The functionality is implemented in terms of the
[list
pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination)
design pattern. The client app should use the `next_page_token` field
to fetch the next batch of suggestions. `suggestions` are sorted by
`create_time` in descending order.
To fetch latest suggestion, just set `page_size` to 1.
To fetch new suggestions without duplication, send request with filter
`create_time_epoch_microseconds > [first item's create_time of previous
request]` and empty page_token.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListSuggestionsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListSuggestionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Suggestion` | A pageable asynchronous sequence of [Suggestion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Suggestion) resources. |

**Example**

                // Create client
                ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
                // Initialize request argument(s)
    #pragma warning disable CS0612
                ListSuggestionsRequest request = new ListSuggestionsRequest { };
    #pragma warning restore CS0612
                // Make the request
    #pragma warning disable CS0612
                PagedAsyncEnumerable<ListSuggestionsResponse, Suggestion> response = participantsClient.ListSuggestionsAsync(request);
    #pragma warning restore CS0612

                // Iterate over all response items, lazily performing RPCs as required
    #pragma warning disable CS0612
                await foreach (Suggestion item in response)
    #pragma warning restore CS0612
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }

                // Or iterate over pages (of server-defined size), performing one RPC per page
    #pragma warning disable CS0612
                await foreach (ListSuggestionsResponse page in response.AsRawResponses())
    #pragma warning restore CS0612
                {
                    // Do something with each page of items
                    Console.WriteLine("A page of results:");
    #pragma warning disable CS0612
                    foreach (Suggestion item in page)
    #pragma warning restore CS0612
                    {
                        // Do something with each item
                        Console.WriteLine(item);
                    }
                }

                // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
                int pageSize = 10;
    #pragma warning disable CS0612
                Page<Suggestion> singlePage = await response.ReadPageAsync(pageSize);
    #pragma warning restore CS0612
                // Do something with the page of items
                Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    #pragma warning disable CS0612
                foreach (Suggestion item in singlePage)
    #pragma warning restore CS0612
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
                // Store the pageToken, for when the next page is required.
                string nextPageToken = singlePage.NextPageToken;

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient#Google_Cloud_Dialogflow_V2Beta1_ParticipantsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient#Google_Cloud_Dialogflow_V2Beta1_ParticipantsClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient#Google_Cloud_Dialogflow_V2Beta1_ParticipantsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient#Google_Cloud_Dialogflow_V2Beta1_ParticipantsClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### StreamingAnalyzeContent(CallSettings, BidirectionalStreamingSettings)

    public virtual ParticipantsClient.StreamingAnalyzeContentStream StreamingAnalyzeContent(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Adds a text (e.g., chat) or audio (e.g., phone recording) message from a
participant into the conversation.
Note: This method is only available through the gRPC API (not REST).

The top-level message sent to the client by the server is
`StreamingAnalyzeContentResponse`. Multiple response messages can be
returned in order. The first one or more messages contain the
`recognition_result` field. Each result represents a more complete
transcript of what the user said. The next message contains the
`reply_text` field, and potentially the `reply_audio` and/or the
`automated_agent_reply` fields.

Note: Always use agent versions for production traffic
sent to virtual agents. See [Versions and
environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |
| `streamingSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings.html` If not null, applies streaming overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantsClient.StreamingAnalyzeContentStream` | The client-server stream. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize streaming call, retrieving the stream object
    using ParticipantsClient.StreamingAnalyzeContentStream response = participantsClient.StreamingAnalyzeContent();

    // Sending requests and retrieving responses can be arbitrarily interleaved
    // Exact sequence will depend on client/server behavior

    // Create task to do something with responses from server
    Task responseHandlerTask = Task.Run(async () =>
    {
        // Note that C# 8 code can use await foreach
        AsyncResponseStream<StreamingAnalyzeContentResponse> responseStream = response.GetResponseStream();
        while (await responseStream.MoveNextAsync())
        {
            StreamingAnalyzeContentResponse responseItem = responseStream.Current;
            // Do something with streamed response
        }
        // The response stream has completed
    });

    // Send requests to the server
    bool done = false;
    while (!done)
    {
        // Initialize a request
        StreamingAnalyzeContentRequest request = new StreamingAnalyzeContentRequest
        {
            ParticipantAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
            AudioConfig = new InputAudioConfig(),
            ReplyAudioConfig = new OutputAudioConfig(),
            InputAudio = ByteString.Empty,
            QueryParams = new QueryParameters(),
            AssistQueryParams = new AssistQueryParameters(),
            EnableExtendedStreaming = false,
            EnablePartialAutomatedAgentReply = false,
            CxParameters = new Struct(),
            CxCurrentPage = "",
            OutputMultipleUtterances = false,
            EnableDebuggingInfo = false,
        };
        // Stream a request to the server
        await response.WriteAsync(request);
        // Set "done" to true when sending requests is complete
    }

    // Complete writing requests to the stream
    await response.WriteCompleteAsync();
    // Await the response handler
    // This will complete once all server responses have been processed
    await responseHandlerTask;

### SuggestArticles(ParticipantName, CallSettings)

    public virtual SuggestArticlesResponse SuggestArticles(ParticipantName parent, CallSettings callSettings = null)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestArticlesResponse response = participantsClient.SuggestArticles(parent);

### SuggestArticles(SuggestArticlesRequest, CallSettings)

    public virtual SuggestArticlesResponse SuggestArticles(SuggestArticlesRequest request, CallSettings callSettings = null)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    SuggestArticlesRequest request = new SuggestArticlesRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        AssistQueryParams = new AssistQueryParameters(),
    };
    // Make the request
    SuggestArticlesResponse response = participantsClient.SuggestArticles(request);

### SuggestArticles(string, CallSettings)

    public virtual SuggestArticlesResponse SuggestArticles(string parent, CallSettings callSettings = null)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestArticlesResponse response = participantsClient.SuggestArticles(parent);

### SuggestArticlesAsync(ParticipantName, CallSettings)

    public virtual Task<SuggestArticlesResponse> SuggestArticlesAsync(ParticipantName parent, CallSettings callSettings = null)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestArticlesResponse response = await participantsClient.SuggestArticlesAsync(parent);

### SuggestArticlesAsync(ParticipantName, CancellationToken)

    public virtual Task<SuggestArticlesResponse> SuggestArticlesAsync(ParticipantName parent, CancellationToken cancellationToken)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestArticlesResponse response = await participantsClient.SuggestArticlesAsync(parent);

### SuggestArticlesAsync(SuggestArticlesRequest, CallSettings)

    public virtual Task<SuggestArticlesResponse> SuggestArticlesAsync(SuggestArticlesRequest request, CallSettings callSettings = null)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    SuggestArticlesRequest request = new SuggestArticlesRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        AssistQueryParams = new AssistQueryParameters(),
    };
    // Make the request
    SuggestArticlesResponse response = await participantsClient.SuggestArticlesAsync(request);

### SuggestArticlesAsync(SuggestArticlesRequest, CancellationToken)

    public virtual Task<SuggestArticlesResponse> SuggestArticlesAsync(SuggestArticlesRequest request, CancellationToken cancellationToken)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    SuggestArticlesRequest request = new SuggestArticlesRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        AssistQueryParams = new AssistQueryParameters(),
    };
    // Make the request
    SuggestArticlesResponse response = await participantsClient.SuggestArticlesAsync(request);

### SuggestArticlesAsync(string, CallSettings)

    public virtual Task<SuggestArticlesResponse> SuggestArticlesAsync(string parent, CallSettings callSettings = null)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestArticlesResponse response = await participantsClient.SuggestArticlesAsync(parent);

### SuggestArticlesAsync(string, CancellationToken)

    public virtual Task<SuggestArticlesResponse> SuggestArticlesAsync(string parent, CancellationToken cancellationToken)

Gets suggested articles for a participant based on specific historical
messages.

Note that
\[ListSuggestions\]\[google.cloud.dialogflow.v2beta1.Participants.ListSuggestions\]
will only list the auto-generated suggestions, while
\[CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\]
will try to compile suggestion based on the provided conversation context
in the real time.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestArticlesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestArticlesResponse response = await participantsClient.SuggestArticlesAsync(parent);

### SuggestFaqAnswers(ParticipantName, CallSettings)

    public virtual SuggestFaqAnswersResponse SuggestFaqAnswers(ParticipantName parent, CallSettings callSettings = null)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestFaqAnswersResponse response = participantsClient.SuggestFaqAnswers(parent);

### SuggestFaqAnswers(SuggestFaqAnswersRequest, CallSettings)

    public virtual SuggestFaqAnswersResponse SuggestFaqAnswers(SuggestFaqAnswersRequest request, CallSettings callSettings = null)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    SuggestFaqAnswersRequest request = new SuggestFaqAnswersRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        AssistQueryParams = new AssistQueryParameters(),
    };
    // Make the request
    SuggestFaqAnswersResponse response = participantsClient.SuggestFaqAnswers(request);

### SuggestFaqAnswers(string, CallSettings)

    public virtual SuggestFaqAnswersResponse SuggestFaqAnswers(string parent, CallSettings callSettings = null)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestFaqAnswersResponse response = participantsClient.SuggestFaqAnswers(parent);

### SuggestFaqAnswersAsync(ParticipantName, CallSettings)

    public virtual Task<SuggestFaqAnswersResponse> SuggestFaqAnswersAsync(ParticipantName parent, CallSettings callSettings = null)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(parent);

### SuggestFaqAnswersAsync(ParticipantName, CancellationToken)

    public virtual Task<SuggestFaqAnswersResponse> SuggestFaqAnswersAsync(ParticipantName parent, CancellationToken cancellationToken)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(parent);

### SuggestFaqAnswersAsync(SuggestFaqAnswersRequest, CallSettings)

    public virtual Task<SuggestFaqAnswersResponse> SuggestFaqAnswersAsync(SuggestFaqAnswersRequest request, CallSettings callSettings = null)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    SuggestFaqAnswersRequest request = new SuggestFaqAnswersRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        AssistQueryParams = new AssistQueryParameters(),
    };
    // Make the request
    SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(request);

### SuggestFaqAnswersAsync(SuggestFaqAnswersRequest, CancellationToken)

    public virtual Task<SuggestFaqAnswersResponse> SuggestFaqAnswersAsync(SuggestFaqAnswersRequest request, CancellationToken cancellationToken)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    SuggestFaqAnswersRequest request = new SuggestFaqAnswersRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        AssistQueryParams = new AssistQueryParameters(),
    };
    // Make the request
    SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(request);

### SuggestFaqAnswersAsync(string, CallSettings)

    public virtual Task<SuggestFaqAnswersResponse> SuggestFaqAnswersAsync(string parent, CallSettings callSettings = null)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(parent);

### SuggestFaqAnswersAsync(string, CancellationToken)

    public virtual Task<SuggestFaqAnswersResponse> SuggestFaqAnswersAsync(string parent, CancellationToken cancellationToken)

Gets suggested faq answers for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestFaqAnswersResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(parent);

### SuggestKnowledgeAssist(SuggestKnowledgeAssistRequest, CallSettings)

    public virtual SuggestKnowledgeAssistResponse SuggestKnowledgeAssist(SuggestKnowledgeAssistRequest request, CallSettings callSettings = null)

Gets knowledge assist suggestions based on historical messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestKnowledgeAssistRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestKnowledgeAssistResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    SuggestKnowledgeAssistRequest request = new SuggestKnowledgeAssistRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        PreviousSuggestedQuery = "",
    };
    // Make the request
    SuggestKnowledgeAssistResponse response = participantsClient.SuggestKnowledgeAssist(request);

### SuggestKnowledgeAssistAsync(SuggestKnowledgeAssistRequest, CallSettings)

    public virtual Task<SuggestKnowledgeAssistResponse> SuggestKnowledgeAssistAsync(SuggestKnowledgeAssistRequest request, CallSettings callSettings = null)

Gets knowledge assist suggestions based on historical messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestKnowledgeAssistRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestKnowledgeAssistResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    SuggestKnowledgeAssistRequest request = new SuggestKnowledgeAssistRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        PreviousSuggestedQuery = "",
    };
    // Make the request
    SuggestKnowledgeAssistResponse response = await participantsClient.SuggestKnowledgeAssistAsync(request);

### SuggestKnowledgeAssistAsync(SuggestKnowledgeAssistRequest, CancellationToken)

    public virtual Task<SuggestKnowledgeAssistResponse> SuggestKnowledgeAssistAsync(SuggestKnowledgeAssistRequest request, CancellationToken cancellationToken)

Gets knowledge assist suggestions based on historical messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestKnowledgeAssistRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestKnowledgeAssistResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    SuggestKnowledgeAssistRequest request = new SuggestKnowledgeAssistRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        PreviousSuggestedQuery = "",
    };
    // Make the request
    SuggestKnowledgeAssistResponse response = await participantsClient.SuggestKnowledgeAssistAsync(request);

### SuggestSmartReplies(ParticipantName, CallSettings)

    public virtual SuggestSmartRepliesResponse SuggestSmartReplies(ParticipantName parent, CallSettings callSettings = null)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestSmartRepliesResponse response = participantsClient.SuggestSmartReplies(parent);

### SuggestSmartReplies(SuggestSmartRepliesRequest, CallSettings)

    public virtual SuggestSmartRepliesResponse SuggestSmartReplies(SuggestSmartRepliesRequest request, CallSettings callSettings = null)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    SuggestSmartRepliesRequest request = new SuggestSmartRepliesRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        CurrentTextInput = new TextInput(),
    };
    // Make the request
    SuggestSmartRepliesResponse response = participantsClient.SuggestSmartReplies(request);

### SuggestSmartReplies(string, CallSettings)

    public virtual SuggestSmartRepliesResponse SuggestSmartReplies(string parent, CallSettings callSettings = null)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestSmartRepliesResponse response = participantsClient.SuggestSmartReplies(parent);

### SuggestSmartRepliesAsync(ParticipantName, CallSettings)

    public virtual Task<SuggestSmartRepliesResponse> SuggestSmartRepliesAsync(ParticipantName parent, CallSettings callSettings = null)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestSmartRepliesResponse response = await participantsClient.SuggestSmartRepliesAsync(parent);

### SuggestSmartRepliesAsync(ParticipantName, CancellationToken)

    public virtual Task<SuggestSmartRepliesResponse> SuggestSmartRepliesAsync(ParticipantName parent, CancellationToken cancellationToken)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
    // Make the request
    SuggestSmartRepliesResponse response = await participantsClient.SuggestSmartRepliesAsync(parent);

### SuggestSmartRepliesAsync(SuggestSmartRepliesRequest, CallSettings)

    public virtual Task<SuggestSmartRepliesResponse> SuggestSmartRepliesAsync(SuggestSmartRepliesRequest request, CallSettings callSettings = null)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    SuggestSmartRepliesRequest request = new SuggestSmartRepliesRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        CurrentTextInput = new TextInput(),
    };
    // Make the request
    SuggestSmartRepliesResponse response = await participantsClient.SuggestSmartRepliesAsync(request);

### SuggestSmartRepliesAsync(SuggestSmartRepliesRequest, CancellationToken)

    public virtual Task<SuggestSmartRepliesResponse> SuggestSmartRepliesAsync(SuggestSmartRepliesRequest request, CancellationToken cancellationToken)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    SuggestSmartRepliesRequest request = new SuggestSmartRepliesRequest
    {
        ParentAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
        LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
        ContextSize = 0,
        CurrentTextInput = new TextInput(),
    };
    // Make the request
    SuggestSmartRepliesResponse response = await participantsClient.SuggestSmartRepliesAsync(request);

### SuggestSmartRepliesAsync(string, CallSettings)

    public virtual Task<SuggestSmartRepliesResponse> SuggestSmartRepliesAsync(string parent, CallSettings callSettings = null)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestSmartRepliesResponse response = await participantsClient.SuggestSmartRepliesAsync(parent);

### SuggestSmartRepliesAsync(string, CancellationToken)

    public virtual Task<SuggestSmartRepliesResponse> SuggestSmartRepliesAsync(string parent, CancellationToken cancellationToken)

Gets smart replies for a participant based on specific historical
messages.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
    // Make the request
    SuggestSmartRepliesResponse response = await participantsClient.SuggestSmartRepliesAsync(parent);

### UpdateParticipant(Participant, FieldMask, CallSettings)

    public virtual Participant UpdateParticipant(Participant participant, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to specify which fields to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    Participant participant = new Participant();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Participant response = participantsClient.UpdateParticipant(participant, updateMask);

### UpdateParticipant(UpdateParticipantRequest, CallSettings)

    public virtual Participant UpdateParticipant(UpdateParticipantRequest request, CallSettings callSettings = null)

Updates the specified participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UpdateParticipantRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | The RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = ParticipantsClient.Create();
    // Initialize request argument(s)
    UpdateParticipantRequest request = new UpdateParticipantRequest
    {
        Participant = new Participant(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Participant response = participantsClient.UpdateParticipant(request);

### UpdateParticipantAsync(Participant, FieldMask, CallSettings)

    public virtual Task<Participant> UpdateParticipantAsync(Participant participant, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to specify which fields to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    Participant participant = new Participant();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Participant response = await participantsClient.UpdateParticipantAsync(participant, updateMask);

### UpdateParticipantAsync(Participant, FieldMask, CancellationToken)

    public virtual Task<Participant> UpdateParticipantAsync(Participant participant, FieldMask updateMask, CancellationToken cancellationToken)

Updates the specified participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `participant` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` Required. The participant to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to specify which fields to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    Participant participant = new Participant();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Participant response = await participantsClient.UpdateParticipantAsync(participant, updateMask);

### UpdateParticipantAsync(UpdateParticipantRequest, CallSettings)

    public virtual Task<Participant> UpdateParticipantAsync(UpdateParticipantRequest request, CallSettings callSettings = null)

Updates the specified participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UpdateParticipantRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    UpdateParticipantRequest request = new UpdateParticipantRequest
    {
        Participant = new Participant(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Participant response = await participantsClient.UpdateParticipantAsync(request);

### UpdateParticipantAsync(UpdateParticipantRequest, CancellationToken)

    public virtual Task<Participant> UpdateParticipantAsync(UpdateParticipantRequest request, CancellationToken cancellationToken)

Updates the specified participant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UpdateParticipantRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Participant` | A Task containing the RPC response. |

**Example**

    // Create client
    ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();
    // Initialize request argument(s)
    UpdateParticipantRequest request = new UpdateParticipantRequest
    {
        Participant = new Participant(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Participant response = await participantsClient.UpdateParticipantAsync(request);