# Google Cloud Dialogflow v2beta1 API - Class Participants.ParticipantsBase (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    [BindServiceMethod(typeof(Participants), "BindService")]
    public abstract class Participants.ParticipantsBase

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

Base class for server-side implementations of Participants

## Inheritance

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

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

## 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

## Methods

### AnalyzeContent(AnalyzeContentRequest, ServerCallContext)

    public virtual Task<AnalyzeContentResponse> AnalyzeContent(AnalyzeContentRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### BidiStreamingAnalyzeContent(IAsyncStreamReader\<BidiStreamingAnalyzeContentRequest\>, IServerStreamWriter\<BidiStreamingAnalyzeContentResponse\>, ServerCallContext)

    public virtual Task BidiStreamingAnalyzeContent(IAsyncStreamReader<BidiStreamingAnalyzeContentRequest> requestStream, IServerStreamWriter<BidiStreamingAnalyzeContentResponse> responseStream, ServerCallContext context)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `requestStream` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IAsyncStreamReader-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.BidiStreamingAnalyzeContentRequest` Used for reading requests from the client. |
| `responseStream` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IServerStreamWriter-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.BidiStreamingAnalyzeContentResponse` Used for sending responses back to the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task indicating completion of the handler. |

### CompileSuggestion(CompileSuggestionRequest, ServerCallContext)

    [Obsolete]
    public virtual Task<CompileSuggestionResponse> CompileSuggestion(CompileSuggestionRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### CreateParticipant(CreateParticipantRequest, ServerCallContext)

    public virtual Task<Participant> CreateParticipant(CreateParticipantRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### GetParticipant(GetParticipantRequest, ServerCallContext)

    public virtual Task<Participant> GetParticipant(GetParticipantRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### ListParticipants(ListParticipantsRequest, ServerCallContext)

    public virtual Task<ListParticipantsResponse> ListParticipants(ListParticipantsRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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.ListParticipantsResponse` | The response to send back to the client (wrapped by a task). |

### ListSuggestions(ListSuggestionsRequest, ServerCallContext)

    [Obsolete]
    public virtual Task<ListSuggestionsResponse> ListSuggestions(ListSuggestionsRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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.ListSuggestionsResponse` | The response to send back to the client (wrapped by a task). |

### StreamingAnalyzeContent(IAsyncStreamReader\<StreamingAnalyzeContentRequest\>, IServerStreamWriter\<StreamingAnalyzeContentResponse\>, ServerCallContext)

    public virtual Task StreamingAnalyzeContent(IAsyncStreamReader<StreamingAnalyzeContentRequest> requestStream, IServerStreamWriter<StreamingAnalyzeContentResponse> responseStream, ServerCallContext context)

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** |
| `requestStream` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IAsyncStreamReader-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.StreamingAnalyzeContentRequest` Used for reading requests from the client. |
| `responseStream` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IServerStreamWriter-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.StreamingAnalyzeContentResponse` Used for sending responses back to the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task indicating completion of the handler. |

### SuggestArticles(SuggestArticlesRequest, ServerCallContext)

    public virtual Task<SuggestArticlesResponse> SuggestArticles(SuggestArticlesRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### SuggestFaqAnswers(SuggestFaqAnswersRequest, ServerCallContext)

    public virtual Task<SuggestFaqAnswersResponse> SuggestFaqAnswers(SuggestFaqAnswersRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### SuggestKnowledgeAssist(SuggestKnowledgeAssistRequest, ServerCallContext)

    public virtual Task<SuggestKnowledgeAssistResponse> SuggestKnowledgeAssist(SuggestKnowledgeAssistRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### SuggestSmartReplies(SuggestSmartRepliesRequest, ServerCallContext)

    public virtual Task<SuggestSmartRepliesResponse> SuggestSmartReplies(SuggestSmartRepliesRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |

### UpdateParticipant(UpdateParticipantRequest, ServerCallContext)

    public virtual Task<Participant> UpdateParticipant(UpdateParticipantRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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` | The response to send back to the client (wrapped by a task). |