Google Cloud Dialogflow v2 API - Class ConversationProfilesClient (4.8.0)

public abstract class ConversationProfilesClient

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class ConversationProfilesClient.

ConversationProfiles client wrapper, for convenient use.

Inheritance

Object > ConversationProfilesClient

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].

Properties

ClearSuggestionFeatureConfigOperationsClient

public virtual OperationsClient ClearSuggestionFeatureConfigOperationsClient { get; }

The long-running operations client for ClearSuggestionFeatureConfig.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the ConversationProfiles 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 ConversationProfiles scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual ConversationProfiles.ConversationProfilesClient GrpcClient { get; }

The underlying gRPC ConversationProfiles client

Property Value
TypeDescription
ConversationProfiles.ConversationProfilesClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

SetSuggestionFeatureConfigOperationsClient

public virtual OperationsClient SetSuggestionFeatureConfigOperationsClient { get; }

The long-running operations client for SetSuggestionFeatureConfig.

Property Value
TypeDescription
OperationsClient

Methods

ClearSuggestionFeatureConfig(ClearSuggestionFeatureConfigRequest, CallSettings)

public virtual Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> ClearSuggestionFeatureConfig(ClearSuggestionFeatureConfigRequest request, CallSettings callSettings = null)

Clears a suggestion feature from a conversation profile for the given participant role.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
Parameters
NameDescription
requestClearSuggestionFeatureConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ClearSuggestionFeatureConfigRequest request = new ClearSuggestionFeatureConfigRequest
{
    ConversationProfile = "",
    ParticipantRole = Participant.Types.Role.Unspecified,
    SuggestionFeatureType = SuggestionFeature.Types.Type.Unspecified,
};
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = conversationProfilesClient.ClearSuggestionFeatureConfig(request);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> retrievedResponse = conversationProfilesClient.PollOnceClearSuggestionFeatureConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

ClearSuggestionFeatureConfig(String, CallSettings)

public virtual Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> ClearSuggestionFeatureConfig(string conversationProfile, CallSettings callSettings = null)

Clears a suggestion feature from a conversation profile for the given participant role.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
Parameters
NameDescription
conversationProfileString

Required. The Conversation Profile to add or update the suggestion feature config. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string conversationProfile = "";
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = conversationProfilesClient.ClearSuggestionFeatureConfig(conversationProfile);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> retrievedResponse = conversationProfilesClient.PollOnceClearSuggestionFeatureConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

ClearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest, CallSettings)

public virtual Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>> ClearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest request, CallSettings callSettings = null)

Clears a suggestion feature from a conversation profile for the given participant role.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
Parameters
NameDescription
requestClearSuggestionFeatureConfigRequest

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<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ClearSuggestionFeatureConfigRequest request = new ClearSuggestionFeatureConfigRequest
{
    ConversationProfile = "",
    ParticipantRole = Participant.Types.Role.Unspecified,
    SuggestionFeatureType = SuggestionFeature.Types.Type.Unspecified,
};
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.ClearSuggestionFeatureConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> retrievedResponse = await conversationProfilesClient.PollOnceClearSuggestionFeatureConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

ClearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest, CancellationToken)

public virtual Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>> ClearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest request, CancellationToken cancellationToken)

Clears a suggestion feature from a conversation profile for the given participant role.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
Parameters
NameDescription
requestClearSuggestionFeatureConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ClearSuggestionFeatureConfigRequest request = new ClearSuggestionFeatureConfigRequest
{
    ConversationProfile = "",
    ParticipantRole = Participant.Types.Role.Unspecified,
    SuggestionFeatureType = SuggestionFeature.Types.Type.Unspecified,
};
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.ClearSuggestionFeatureConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> retrievedResponse = await conversationProfilesClient.PollOnceClearSuggestionFeatureConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

ClearSuggestionFeatureConfigAsync(String, CallSettings)

public virtual Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>> ClearSuggestionFeatureConfigAsync(string conversationProfile, CallSettings callSettings = null)

Clears a suggestion feature from a conversation profile for the given participant role.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
Parameters
NameDescription
conversationProfileString

Required. The Conversation Profile to add or update the suggestion feature config. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string conversationProfile = "";
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.ClearSuggestionFeatureConfigAsync(conversationProfile);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> retrievedResponse = await conversationProfilesClient.PollOnceClearSuggestionFeatureConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

ClearSuggestionFeatureConfigAsync(String, CancellationToken)

public virtual Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>> ClearSuggestionFeatureConfigAsync(string conversationProfile, CancellationToken cancellationToken)

Clears a suggestion feature from a conversation profile for the given participant role.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
Parameters
NameDescription
conversationProfileString

Required. The Conversation Profile to add or update the suggestion feature config. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string conversationProfile = "";
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.ClearSuggestionFeatureConfigAsync(conversationProfile);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> retrievedResponse = await conversationProfilesClient.PollOnceClearSuggestionFeatureConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

Create()

public static ConversationProfilesClient Create()

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

Returns
TypeDescription
ConversationProfilesClient

The created ConversationProfilesClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<ConversationProfilesClient>

The task representing the created ConversationProfilesClient.

CreateConversationProfile(LocationName, ConversationProfile, CallSettings)

public virtual ConversationProfile CreateConversationProfile(LocationName parent, ConversationProfile conversationProfile, CallSettings callSettings = null)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentLocationName

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = conversationProfilesClient.CreateConversationProfile(parent, conversationProfile);

CreateConversationProfile(ProjectName, ConversationProfile, CallSettings)

public virtual ConversationProfile CreateConversationProfile(ProjectName parent, ConversationProfile conversationProfile, CallSettings callSettings = null)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentProjectName

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = conversationProfilesClient.CreateConversationProfile(parent, conversationProfile);

CreateConversationProfile(CreateConversationProfileRequest, CallSettings)

public virtual ConversationProfile CreateConversationProfile(CreateConversationProfileRequest request, CallSettings callSettings = null)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
requestCreateConversationProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
CreateConversationProfileRequest request = new CreateConversationProfileRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    ConversationProfile = new ConversationProfile(),
};
// Make the request
ConversationProfile response = conversationProfilesClient.CreateConversationProfile(request);

CreateConversationProfile(String, ConversationProfile, CallSettings)

public virtual ConversationProfile CreateConversationProfile(string parent, ConversationProfile conversationProfile, CallSettings callSettings = null)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentString

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = conversationProfilesClient.CreateConversationProfile(parent, conversationProfile);

CreateConversationProfileAsync(LocationName, ConversationProfile, CallSettings)

public virtual Task<ConversationProfile> CreateConversationProfileAsync(LocationName parent, ConversationProfile conversationProfile, CallSettings callSettings = null)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentLocationName

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);

CreateConversationProfileAsync(LocationName, ConversationProfile, CancellationToken)

public virtual Task<ConversationProfile> CreateConversationProfileAsync(LocationName parent, ConversationProfile conversationProfile, CancellationToken cancellationToken)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentLocationName

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);

CreateConversationProfileAsync(ProjectName, ConversationProfile, CallSettings)

public virtual Task<ConversationProfile> CreateConversationProfileAsync(ProjectName parent, ConversationProfile conversationProfile, CallSettings callSettings = null)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentProjectName

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);

CreateConversationProfileAsync(ProjectName, ConversationProfile, CancellationToken)

public virtual Task<ConversationProfile> CreateConversationProfileAsync(ProjectName parent, ConversationProfile conversationProfile, CancellationToken cancellationToken)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentProjectName

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);

CreateConversationProfileAsync(CreateConversationProfileRequest, CallSettings)

public virtual Task<ConversationProfile> CreateConversationProfileAsync(CreateConversationProfileRequest request, CallSettings callSettings = null)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
requestCreateConversationProfileRequest

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

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
CreateConversationProfileRequest request = new CreateConversationProfileRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    ConversationProfile = new ConversationProfile(),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(request);

CreateConversationProfileAsync(CreateConversationProfileRequest, CancellationToken)

public virtual Task<ConversationProfile> CreateConversationProfileAsync(CreateConversationProfileRequest request, CancellationToken cancellationToken)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
requestCreateConversationProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
CreateConversationProfileRequest request = new CreateConversationProfileRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    ConversationProfile = new ConversationProfile(),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(request);

CreateConversationProfileAsync(String, ConversationProfile, CallSettings)

public virtual Task<ConversationProfile> CreateConversationProfileAsync(string parent, ConversationProfile conversationProfile, CallSettings callSettings = null)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentString

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);

CreateConversationProfileAsync(String, ConversationProfile, CancellationToken)

public virtual Task<ConversationProfile> CreateConversationProfileAsync(string parent, ConversationProfile conversationProfile, CancellationToken cancellationToken)

Creates a conversation profile in the specified project.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
parentString

Required. The project to create a conversation profile for. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

conversationProfileConversationProfile

Required. The conversation profile to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);

DeleteConversationProfile(ConversationProfileName, CallSettings)

public virtual void DeleteConversationProfile(ConversationProfileName name, CallSettings callSettings = null)

Deletes the specified conversation profile.

Parameters
NameDescription
nameConversationProfileName

Required. The name of the conversation profile to delete. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
conversationProfilesClient.DeleteConversationProfile(name);

DeleteConversationProfile(DeleteConversationProfileRequest, CallSettings)

public virtual void DeleteConversationProfile(DeleteConversationProfileRequest request, CallSettings callSettings = null)

Deletes the specified conversation profile.

Parameters
NameDescription
requestDeleteConversationProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
DeleteConversationProfileRequest request = new DeleteConversationProfileRequest
{
    ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
conversationProfilesClient.DeleteConversationProfile(request);

DeleteConversationProfile(String, CallSettings)

public virtual void DeleteConversationProfile(string name, CallSettings callSettings = null)

Deletes the specified conversation profile.

Parameters
NameDescription
nameString

Required. The name of the conversation profile to delete. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
conversationProfilesClient.DeleteConversationProfile(name);

DeleteConversationProfileAsync(ConversationProfileName, CallSettings)

public virtual Task DeleteConversationProfileAsync(ConversationProfileName name, CallSettings callSettings = null)

Deletes the specified conversation profile.

Parameters
NameDescription
nameConversationProfileName

Required. The name of the conversation profile to delete. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(name);

DeleteConversationProfileAsync(ConversationProfileName, CancellationToken)

public virtual Task DeleteConversationProfileAsync(ConversationProfileName name, CancellationToken cancellationToken)

Deletes the specified conversation profile.

Parameters
NameDescription
nameConversationProfileName

Required. The name of the conversation profile to delete. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(name);

DeleteConversationProfileAsync(DeleteConversationProfileRequest, CallSettings)

public virtual Task DeleteConversationProfileAsync(DeleteConversationProfileRequest request, CallSettings callSettings = null)

Deletes the specified conversation profile.

Parameters
NameDescription
requestDeleteConversationProfileRequest

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

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
DeleteConversationProfileRequest request = new DeleteConversationProfileRequest
{
    ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(request);

DeleteConversationProfileAsync(DeleteConversationProfileRequest, CancellationToken)

public virtual Task DeleteConversationProfileAsync(DeleteConversationProfileRequest request, CancellationToken cancellationToken)

Deletes the specified conversation profile.

Parameters
NameDescription
requestDeleteConversationProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
DeleteConversationProfileRequest request = new DeleteConversationProfileRequest
{
    ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(request);

DeleteConversationProfileAsync(String, CallSettings)

public virtual Task DeleteConversationProfileAsync(string name, CallSettings callSettings = null)

Deletes the specified conversation profile.

Parameters
NameDescription
nameString

Required. The name of the conversation profile to delete. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(name);

DeleteConversationProfileAsync(String, CancellationToken)

public virtual Task DeleteConversationProfileAsync(string name, CancellationToken cancellationToken)

Deletes the specified conversation profile.

Parameters
NameDescription
nameString

Required. The name of the conversation profile to delete. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(name);

GetConversationProfile(ConversationProfileName, CallSettings)

public virtual ConversationProfile GetConversationProfile(ConversationProfileName name, CallSettings callSettings = null)

Retrieves the specified conversation profile.

Parameters
NameDescription
nameConversationProfileName

Required. The resource name of the conversation profile. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
ConversationProfile response = conversationProfilesClient.GetConversationProfile(name);

GetConversationProfile(GetConversationProfileRequest, CallSettings)

public virtual ConversationProfile GetConversationProfile(GetConversationProfileRequest request, CallSettings callSettings = null)

Retrieves the specified conversation profile.

Parameters
NameDescription
requestGetConversationProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
GetConversationProfileRequest request = new GetConversationProfileRequest
{
    ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
ConversationProfile response = conversationProfilesClient.GetConversationProfile(request);

GetConversationProfile(String, CallSettings)

public virtual ConversationProfile GetConversationProfile(string name, CallSettings callSettings = null)

Retrieves the specified conversation profile.

Parameters
NameDescription
nameString

Required. The resource name of the conversation profile. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
ConversationProfile response = conversationProfilesClient.GetConversationProfile(name);

GetConversationProfileAsync(ConversationProfileName, CallSettings)

public virtual Task<ConversationProfile> GetConversationProfileAsync(ConversationProfileName name, CallSettings callSettings = null)

Retrieves the specified conversation profile.

Parameters
NameDescription
nameConversationProfileName

Required. The resource name of the conversation profile. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(name);

GetConversationProfileAsync(ConversationProfileName, CancellationToken)

public virtual Task<ConversationProfile> GetConversationProfileAsync(ConversationProfileName name, CancellationToken cancellationToken)

Retrieves the specified conversation profile.

Parameters
NameDescription
nameConversationProfileName

Required. The resource name of the conversation profile. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(name);

GetConversationProfileAsync(GetConversationProfileRequest, CallSettings)

public virtual Task<ConversationProfile> GetConversationProfileAsync(GetConversationProfileRequest request, CallSettings callSettings = null)

Retrieves the specified conversation profile.

Parameters
NameDescription
requestGetConversationProfileRequest

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

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
GetConversationProfileRequest request = new GetConversationProfileRequest
{
    ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(request);

GetConversationProfileAsync(GetConversationProfileRequest, CancellationToken)

public virtual Task<ConversationProfile> GetConversationProfileAsync(GetConversationProfileRequest request, CancellationToken cancellationToken)

Retrieves the specified conversation profile.

Parameters
NameDescription
requestGetConversationProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
GetConversationProfileRequest request = new GetConversationProfileRequest
{
    ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(request);

GetConversationProfileAsync(String, CallSettings)

public virtual Task<ConversationProfile> GetConversationProfileAsync(string name, CallSettings callSettings = null)

Retrieves the specified conversation profile.

Parameters
NameDescription
nameString

Required. The resource name of the conversation profile. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(name);

GetConversationProfileAsync(String, CancellationToken)

public virtual Task<ConversationProfile> GetConversationProfileAsync(string name, CancellationToken cancellationToken)

Retrieves the specified conversation profile.

Parameters
NameDescription
nameString

Required. The resource name of the conversation profile. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(name);

ListConversationProfiles(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfiles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all conversation profiles in the specified project.

Parameters
NameDescription
parentLocationName

Required. The project to list all conversation profiles from. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

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<ListConversationProfilesResponse, ConversationProfile>

A pageable sequence of ConversationProfile resources.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ConversationProfile 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 (ListConversationProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;

ListConversationProfiles(ProjectName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfiles(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all conversation profiles in the specified project.

Parameters
NameDescription
parentProjectName

Required. The project to list all conversation profiles from. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

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<ListConversationProfilesResponse, ConversationProfile>

A pageable sequence of ConversationProfile resources.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ConversationProfile 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 (ListConversationProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;

ListConversationProfiles(ListConversationProfilesRequest, CallSettings)

public virtual PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfiles(ListConversationProfilesRequest request, CallSettings callSettings = null)

Returns the list of all conversation profiles in the specified project.

Parameters
NameDescription
requestListConversationProfilesRequest

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<ListConversationProfilesResponse, ConversationProfile>

A pageable sequence of ConversationProfile resources.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ListConversationProfilesRequest request = new ListConversationProfilesRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfiles(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ConversationProfile 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 (ListConversationProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;

ListConversationProfiles(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all conversation profiles in the specified project.

Parameters
NameDescription
parentString

Required. The project to list all conversation profiles from. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

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<ListConversationProfilesResponse, ConversationProfile>

A pageable sequence of ConversationProfile resources.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ConversationProfile 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 (ListConversationProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;

ListConversationProfilesAsync(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all conversation profiles in the specified project.

Parameters
NameDescription
parentLocationName

Required. The project to list all conversation profiles from. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

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<ListConversationProfilesResponse, ConversationProfile>

A pageable asynchronous sequence of ConversationProfile resources.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversationProfile 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((ListConversationProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;

ListConversationProfilesAsync(ProjectName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfilesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all conversation profiles in the specified project.

Parameters
NameDescription
parentProjectName

Required. The project to list all conversation profiles from. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

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<ListConversationProfilesResponse, ConversationProfile>

A pageable asynchronous sequence of ConversationProfile resources.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversationProfile 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((ListConversationProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;

ListConversationProfilesAsync(ListConversationProfilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfilesAsync(ListConversationProfilesRequest request, CallSettings callSettings = null)

Returns the list of all conversation profiles in the specified project.

Parameters
NameDescription
requestListConversationProfilesRequest

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<ListConversationProfilesResponse, ConversationProfile>

A pageable asynchronous sequence of ConversationProfile resources.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ListConversationProfilesRequest request = new ListConversationProfilesRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfilesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversationProfile 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((ListConversationProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;

ListConversationProfilesAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all conversation profiles in the specified project.

Parameters
NameDescription
parentString

Required. The project to list all conversation profiles from. Format: projects/&lt;Project ID>/locations/&lt;Location ID>.

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<ListConversationProfilesResponse, ConversationProfile>

A pageable asynchronous sequence of ConversationProfile resources.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversationProfile 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((ListConversationProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;

PollOnceClearSuggestionFeatureConfig(String, CallSettings)

public virtual Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> PollOnceClearSuggestionFeatureConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ClearSuggestionFeatureConfig.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>

The result of polling the operation.

PollOnceClearSuggestionFeatureConfigAsync(String, CallSettings)

public virtual Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>> PollOnceClearSuggestionFeatureConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ClearSuggestionFeatureConfig.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>>

A task representing the result of polling the operation.

PollOnceSetSuggestionFeatureConfig(String, CallSettings)

public virtual Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> PollOnceSetSuggestionFeatureConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of SetSuggestionFeatureConfig.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>

The result of polling the operation.

PollOnceSetSuggestionFeatureConfigAsync(String, CallSettings)

public virtual Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>> PollOnceSetSuggestionFeatureConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of SetSuggestionFeatureConfig.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>>

A task representing the result of polling the operation.

SetSuggestionFeatureConfig(SetSuggestionFeatureConfigRequest, CallSettings)

public virtual Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> SetSuggestionFeatureConfig(SetSuggestionFeatureConfigRequest request, CallSettings callSettings = null)

Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]

If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.

Parameters
NameDescription
requestSetSuggestionFeatureConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
SetSuggestionFeatureConfigRequest request = new SetSuggestionFeatureConfigRequest
{
    ConversationProfile = "",
    ParticipantRole = Participant.Types.Role.Unspecified,
    SuggestionFeatureConfig = new HumanAgentAssistantConfig.Types.SuggestionFeatureConfig(),
};
// Make the request
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> response = conversationProfilesClient.SetSuggestionFeatureConfig(request);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> retrievedResponse = conversationProfilesClient.PollOnceSetSuggestionFeatureConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

SetSuggestionFeatureConfig(String, CallSettings)

public virtual Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> SetSuggestionFeatureConfig(string conversationProfile, CallSettings callSettings = null)

Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]

If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.

Parameters
NameDescription
conversationProfileString

Required. The Conversation Profile to add or update the suggestion feature config. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string conversationProfile = "";
// Make the request
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> response = conversationProfilesClient.SetSuggestionFeatureConfig(conversationProfile);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> retrievedResponse = conversationProfilesClient.PollOnceSetSuggestionFeatureConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

SetSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest, CallSettings)

public virtual Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>> SetSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest request, CallSettings callSettings = null)

Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]

If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.

Parameters
NameDescription
requestSetSuggestionFeatureConfigRequest

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<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
SetSuggestionFeatureConfigRequest request = new SetSuggestionFeatureConfigRequest
{
    ConversationProfile = "",
    ParticipantRole = Participant.Types.Role.Unspecified,
    SuggestionFeatureConfig = new HumanAgentAssistantConfig.Types.SuggestionFeatureConfig(),
};
// Make the request
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.SetSuggestionFeatureConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> retrievedResponse = await conversationProfilesClient.PollOnceSetSuggestionFeatureConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

SetSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest, CancellationToken)

public virtual Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>> SetSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest request, CancellationToken cancellationToken)

Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]

If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.

Parameters
NameDescription
requestSetSuggestionFeatureConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
SetSuggestionFeatureConfigRequest request = new SetSuggestionFeatureConfigRequest
{
    ConversationProfile = "",
    ParticipantRole = Participant.Types.Role.Unspecified,
    SuggestionFeatureConfig = new HumanAgentAssistantConfig.Types.SuggestionFeatureConfig(),
};
// Make the request
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.SetSuggestionFeatureConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> retrievedResponse = await conversationProfilesClient.PollOnceSetSuggestionFeatureConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

SetSuggestionFeatureConfigAsync(String, CallSettings)

public virtual Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>> SetSuggestionFeatureConfigAsync(string conversationProfile, CallSettings callSettings = null)

Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]

If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.

Parameters
NameDescription
conversationProfileString

Required. The Conversation Profile to add or update the suggestion feature config. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string conversationProfile = "";
// Make the request
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.SetSuggestionFeatureConfigAsync(conversationProfile);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> retrievedResponse = await conversationProfilesClient.PollOnceSetSuggestionFeatureConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

SetSuggestionFeatureConfigAsync(String, CancellationToken)

public virtual Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>> SetSuggestionFeatureConfigAsync(string conversationProfile, CancellationToken cancellationToken)

Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
  • response: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]

If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.

Parameters
NameDescription
conversationProfileString

Required. The Conversation Profile to add or update the suggestion feature config. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string conversationProfile = "";
// Make the request
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.SetSuggestionFeatureConfigAsync(conversationProfile);

// Poll until the returned long-running operation is complete
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConversationProfile result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> retrievedResponse = await conversationProfilesClient.PollOnceSetSuggestionFeatureConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConversationProfile retrievedResult = retrievedResponse.Result;
}

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.

UpdateConversationProfile(ConversationProfile, FieldMask, CallSettings)

public virtual ConversationProfile UpdateConversationProfile(ConversationProfile conversationProfile, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified conversation profile.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
conversationProfileConversationProfile

Required. The conversation profile to update.

updateMaskFieldMask

Required. The mask to control which fields to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ConversationProfile conversationProfile = new ConversationProfile();
FieldMask updateMask = new FieldMask();
// Make the request
ConversationProfile response = conversationProfilesClient.UpdateConversationProfile(conversationProfile, updateMask);

UpdateConversationProfile(UpdateConversationProfileRequest, CallSettings)

public virtual ConversationProfile UpdateConversationProfile(UpdateConversationProfileRequest request, CallSettings callSettings = null)

Updates the specified conversation profile.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
requestUpdateConversationProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationProfile

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
UpdateConversationProfileRequest request = new UpdateConversationProfileRequest
{
    ConversationProfile = new ConversationProfile(),
    UpdateMask = new FieldMask(),
};
// Make the request
ConversationProfile response = conversationProfilesClient.UpdateConversationProfile(request);

UpdateConversationProfileAsync(ConversationProfile, FieldMask, CallSettings)

public virtual Task<ConversationProfile> UpdateConversationProfileAsync(ConversationProfile conversationProfile, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified conversation profile.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
conversationProfileConversationProfile

Required. The conversation profile to update.

updateMaskFieldMask

Required. The mask to control which fields to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfile conversationProfile = new ConversationProfile();
FieldMask updateMask = new FieldMask();
// Make the request
ConversationProfile response = await conversationProfilesClient.UpdateConversationProfileAsync(conversationProfile, updateMask);

UpdateConversationProfileAsync(ConversationProfile, FieldMask, CancellationToken)

public virtual Task<ConversationProfile> UpdateConversationProfileAsync(ConversationProfile conversationProfile, FieldMask updateMask, CancellationToken cancellationToken)

Updates the specified conversation profile.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
conversationProfileConversationProfile

Required. The conversation profile to update.

updateMaskFieldMask

Required. The mask to control which fields to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfile conversationProfile = new ConversationProfile();
FieldMask updateMask = new FieldMask();
// Make the request
ConversationProfile response = await conversationProfilesClient.UpdateConversationProfileAsync(conversationProfile, updateMask);

UpdateConversationProfileAsync(UpdateConversationProfileRequest, CallSettings)

public virtual Task<ConversationProfile> UpdateConversationProfileAsync(UpdateConversationProfileRequest request, CallSettings callSettings = null)

Updates the specified conversation profile.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
requestUpdateConversationProfileRequest

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

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
UpdateConversationProfileRequest request = new UpdateConversationProfileRequest
{
    ConversationProfile = new ConversationProfile(),
    UpdateMask = new FieldMask(),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.UpdateConversationProfileAsync(request);

UpdateConversationProfileAsync(UpdateConversationProfileRequest, CancellationToken)

public virtual Task<ConversationProfile> UpdateConversationProfileAsync(UpdateConversationProfileRequest request, CancellationToken cancellationToken)

Updates the specified conversation profile.

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

Parameters
NameDescription
requestUpdateConversationProfileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ConversationProfile>

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
UpdateConversationProfileRequest request = new UpdateConversationProfileRequest
{
    ConversationProfile = new ConversationProfile(),
    UpdateMask = new FieldMask(),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.UpdateConversationProfileAsync(request);