Class ParticipantsClient (3.9.0)

public abstract class ParticipantsClient

Participants client wrapper, for convenient use.

Inheritance

Object > ParticipantsClient

Derived Types

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

Service for managing [Participants][google.cloud.dialogflow.v2.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
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Participants scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual Participants.ParticipantsClient GrpcClient { get; }

The underlying gRPC Participants client

Property Value
TypeDescription
Participants.ParticipantsClient

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.

Parameters
NameDescription
requestAnalyzeContentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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(),
    RequestId = "",
    AssistQueryParams = new AssistQueryParameters(),
};
// Make the request
AnalyzeContentResponse response = participantsClient.AnalyzeContent(request);

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.

Parameters
NameDescription
participantParticipantName

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

eventInputEventInput

An input event to send to Dialogflow.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
participantParticipantName

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

textInputTextInput

The natural language text to be processed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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, 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.

Parameters
NameDescription
participantString

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

eventInputEventInput

An input event to send to Dialogflow.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
participantString

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

textInputTextInput

The natural language text to be processed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
requestAnalyzeContentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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(),
    RequestId = "",
    AssistQueryParams = new AssistQueryParameters(),
};
// 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.

Parameters
NameDescription
requestAnalyzeContentRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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(),
    RequestId = "",
    AssistQueryParams = new AssistQueryParameters(),
};
// Make the request
AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(request);

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.

Parameters
NameDescription
participantParticipantName

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

eventInputEventInput

An input event to send to Dialogflow.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
participantParticipantName

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

eventInputEventInput

An input event to send to Dialogflow.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
participantParticipantName

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

textInputTextInput

The natural language text to be processed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
participantParticipantName

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

textInputTextInput

The natural language text to be processed.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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, 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.

Parameters
NameDescription
participantString

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

eventInputEventInput

An input event to send to Dialogflow.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
participantString

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

eventInputEventInput

An input event to send to Dialogflow.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
participantString

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

textInputTextInput

The natural language text to be processed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
participantString

Required. The name of the participant this text comes from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

textInputTextInput

The natural language text to be processed.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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);

Create()

public static ParticipantsClient Create()

Synchronously creates a ParticipantsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ParticipantsClientBuilder.

Returns
TypeDescription
ParticipantsClient

The created ParticipantsClient.

CreateAsync(CancellationToken)

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

Asynchronously creates a ParticipantsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ParticipantsClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<ParticipantsClient>

The task representing the created ParticipantsClient.

CreateParticipant(ConversationName, Participant, CallSettings)

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

Creates a new participant in a conversation.

Parameters
NameDescription
parentConversationName

Required. Resource identifier of the conversation adding the participant. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

participantParticipant

Required. The participant to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateParticipantRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentString

Required. Resource identifier of the conversation adding the participant. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

participantParticipant

Required. The participant to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentConversationName

Required. Resource identifier of the conversation adding the participant. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

participantParticipant

Required. The participant to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
parentConversationName

Required. Resource identifier of the conversation adding the participant. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

participantParticipant

Required. The participant to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
requestCreateParticipantRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestCreateParticipantRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
parentString

Required. Resource identifier of the conversation adding the participant. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

participantParticipant

Required. The participant to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
parentString

Required. Resource identifier of the conversation adding the participant. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

participantParticipant

Required. The participant to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
requestGetParticipantRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameParticipantName

Required. The name of the participant. Format: projects/{Project ID}/locations/{Location ID}/conversations/{Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameString

Required. The name of the participant. Format: projects/{Project ID}/locations/{Location ID}/conversations/{Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetParticipantRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestGetParticipantRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
nameParticipantName

Required. The name of the participant. Format: projects/{Project ID}/locations/{Location ID}/conversations/{Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
nameParticipantName

Required. The name of the participant. Format: projects/{Project ID}/locations/{Location ID}/conversations/{Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
nameString

Required. The name of the participant. Format: projects/{Project ID}/locations/{Location ID}/conversations/{Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
nameString

Required. The name of the participant. Format: projects/{Project ID}/locations/{Location ID}/conversations/{Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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, Nullable<Int32>, CallSettings)

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

Returns the list of all participants in the specified conversation.

Parameters
NameDescription
parentConversationName

Required. The conversation to list all participants from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListParticipantsResponse, Participant>

A pageable sequence of 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
NameDescription
requestListParticipantsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListParticipantsResponse, Participant>

A pageable sequence of 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, Nullable<Int32>, CallSettings)

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

Returns the list of all participants in the specified conversation.

Parameters
NameDescription
parentString

Required. The conversation to list all participants from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListParticipantsResponse, Participant>

A pageable sequence of 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, Nullable<Int32>, CallSettings)

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

Returns the list of all participants in the specified conversation.

Parameters
NameDescription
parentConversationName

Required. The conversation to list all participants from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListParticipantsResponse, Participant>

A pageable asynchronous sequence of 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 response.ForEachAsync((Participant item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListParticipantsResponse page) =>
{
    // 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
NameDescription
requestListParticipantsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListParticipantsResponse, Participant>

A pageable asynchronous sequence of 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 response.ForEachAsync((Participant item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListParticipantsResponse page) =>
{
    // 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, Nullable<Int32>, CallSettings)

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

Returns the list of all participants in the specified conversation.

Parameters
NameDescription
parentString

Required. The conversation to list all participants from. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListParticipantsResponse, Participant>

A pageable asynchronous sequence of 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 response.ForEachAsync((Participant item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListParticipantsResponse page) =>
{
    // 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;

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

SuggestArticles(ParticipantName, CallSettings)

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

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

Parameters
NameDescription
parentParticipantName

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
requestSuggestArticlesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
parentString

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
parentParticipantName

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
parentParticipantName

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
requestSuggestArticlesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
requestSuggestArticlesRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
parentString

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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.

Parameters
NameDescription
parentString

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
parentParticipantName

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSuggestFaqAnswersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentString

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentParticipantName

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
parentParticipantName

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
requestSuggestFaqAnswersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestSuggestFaqAnswersRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
parentString

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
parentString

Required. The name of the participant to fetch suggestion for. Format: projects/{Project ID}/locations/{Location ID&amp;gt;/conversations/&amp;lt;Conversation ID&amp;gt;/participants/&amp;lt;Participant ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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);

UpdateParticipant(Participant, FieldMask, CallSettings)

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

Updates the specified participant.

Parameters
NameDescription
participantParticipant

Required. The participant to update.

updateMaskFieldMask

Required. The mask to specify which fields to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateParticipantRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
participantParticipant

Required. The participant to update.

updateMaskFieldMask

Required. The mask to specify which fields to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
participantParticipant

Required. The participant to update.

updateMaskFieldMask

Required. The mask to specify which fields to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
requestUpdateParticipantRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestUpdateParticipantRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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);