Google Cloud Dialogflow v2 API - Class ConversationProfilesClient (4.19.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
Type Description
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
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ConversationProfiles scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

GrpcClient

public virtual ConversationProfiles.ConversationProfilesClient GrpcClient { get; }

The underlying gRPC ConversationProfiles client

Property Value
Type Description
ConversationProfilesConversationProfilesClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

SetSuggestionFeatureConfigOperationsClient

public virtual OperationsClient SetSuggestionFeatureConfigOperationsClient { get; }

The long-running operations client for SetSuggestionFeatureConfig.

Property Value
Type Description
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
Name Description
request ClearSuggestionFeatureConfigRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

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
Name Description
conversationProfile string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

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;
}

ClearSuggestionFeatureConfig(string, Role, Type, CallSettings)

public virtual Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> ClearSuggestionFeatureConfig(string conversationProfile, Participant.Types.Role participantRole, SuggestionFeature.Types.Type suggestionFeatureType, 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
Name Description
conversationProfile string

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

participantRole ParticipantTypesRole

Required. The participant role to remove the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.

suggestionFeatureType SuggestionFeatureTypesType

Required. The type of the suggestion feature to remove.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

The RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string conversationProfile = "";
Participant.Types.Role participantRole = Participant.Types.Role.Unspecified;
SuggestionFeature.Types.Type suggestionFeatureType = SuggestionFeature.Types.Type.Unspecified;
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = conversationProfilesClient.ClearSuggestionFeatureConfig(conversationProfile, participantRole, suggestionFeatureType);

// 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
Name Description
request ClearSuggestionFeatureConfigRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

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
Name Description
request ClearSuggestionFeatureConfigRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

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
Name Description
conversationProfile string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

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, Role, Type, CallSettings)

public virtual Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>> ClearSuggestionFeatureConfigAsync(string conversationProfile, Participant.Types.Role participantRole, SuggestionFeature.Types.Type suggestionFeatureType, 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
Name Description
conversationProfile string

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

participantRole ParticipantTypesRole

Required. The participant role to remove the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.

suggestionFeatureType SuggestionFeatureTypesType

Required. The type of the suggestion feature to remove.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string conversationProfile = "";
Participant.Types.Role participantRole = Participant.Types.Role.Unspecified;
SuggestionFeature.Types.Type suggestionFeatureType = SuggestionFeature.Types.Type.Unspecified;
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.ClearSuggestionFeatureConfigAsync(conversationProfile, participantRole, suggestionFeatureType);

// 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, Role, Type, CancellationToken)

public virtual Task<Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata>> ClearSuggestionFeatureConfigAsync(string conversationProfile, Participant.Types.Role participantRole, SuggestionFeature.Types.Type suggestionFeatureType, 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
Name Description
conversationProfile string

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

participantRole ParticipantTypesRole

Required. The participant role to remove the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.

suggestionFeatureType SuggestionFeatureTypesType

Required. The type of the suggestion feature to remove.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string conversationProfile = "";
Participant.Types.Role participantRole = Participant.Types.Role.Unspecified;
SuggestionFeature.Types.Type suggestionFeatureType = SuggestionFeature.Types.Type.Unspecified;
// Make the request
Operation<ConversationProfile, ClearSuggestionFeatureConfigOperationMetadata> response = await conversationProfilesClient.ClearSuggestionFeatureConfigAsync(conversationProfile, participantRole, suggestionFeatureType);

// 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
Name Description
conversationProfile string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

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
Type Description
ConversationProfilesClient

The created ConversationProfilesClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskConversationProfilesClient

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
Name Description
parent LocationName

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent ProjectName

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request CreateConversationProfileRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent string

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent LocationName

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
parent LocationName

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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
Name Description
parent ProjectName

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
parent ProjectName

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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
Name Description
request CreateConversationProfileRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
request CreateConversationProfileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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
Name Description
parent string

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
parent string

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

conversationProfile ConversationProfile

Required. The conversation profile to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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
Name Description
name ConversationProfileName

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

callSettings CallSettings

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
Name Description
request DeleteConversationProfileRequest

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

callSettings CallSettings

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
Name Description
name string

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

callSettings CallSettings

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
Name Description
name ConversationProfileName

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
name ConversationProfileName

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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
Name Description
request DeleteConversationProfileRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request DeleteConversationProfileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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
Name Description
name string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
name string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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
Name Description
name ConversationProfileName

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request GetConversationProfileRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
name string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
name ConversationProfileName

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
name ConversationProfileName

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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
Name Description
request GetConversationProfileRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
request GetConversationProfileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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
Name Description
name string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
name string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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, int?, 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
Name Description
parent LocationName

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

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConversationProfilesResponseConversationProfile

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, int?, 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
Name Description
parent ProjectName

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

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConversationProfilesResponseConversationProfile

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
Name Description
request ListConversationProfilesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConversationProfilesResponseConversationProfile

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, int?, 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
Name Description
parent string

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

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConversationProfilesResponseConversationProfile

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, int?, 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
Name Description
parent LocationName

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

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConversationProfilesResponseConversationProfile

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, int?, 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
Name Description
parent ProjectName

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

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConversationProfilesResponseConversationProfile

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
Name Description
request ListConversationProfilesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConversationProfilesResponseConversationProfile

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, int?, 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
Name Description
parent string

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

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConversationProfilesResponseConversationProfile

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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversationProfileClearSuggestionFeatureConfigOperationMetadata

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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

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
Name Description
request SetSuggestionFeatureConfigRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

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
Name Description
conversationProfile string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

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;
}

SetSuggestionFeatureConfig(string, Role, SuggestionFeatureConfig, CallSettings)

public virtual Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata> SetSuggestionFeatureConfig(string conversationProfile, Participant.Types.Role participantRole, HumanAgentAssistantConfig.Types.SuggestionFeatureConfig suggestionFeatureConfig, 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
Name Description
conversationProfile string

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

participantRole ParticipantTypesRole

Required. The participant role to add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.

suggestionFeatureConfig HumanAgentAssistantConfigTypesSuggestionFeatureConfig

Required. The suggestion feature config to add or update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

The RPC response.

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

// 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
Name Description
request SetSuggestionFeatureConfigRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

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
Name Description
request SetSuggestionFeatureConfigRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

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
Name Description
conversationProfile string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

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, Role, SuggestionFeatureConfig, CallSettings)

public virtual Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>> SetSuggestionFeatureConfigAsync(string conversationProfile, Participant.Types.Role participantRole, HumanAgentAssistantConfig.Types.SuggestionFeatureConfig suggestionFeatureConfig, 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
Name Description
conversationProfile string

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

participantRole ParticipantTypesRole

Required. The participant role to add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.

suggestionFeatureConfig HumanAgentAssistantConfigTypesSuggestionFeatureConfig

Required. The suggestion feature config to add or update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

A Task containing the RPC response.

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

// 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, Role, SuggestionFeatureConfig, CancellationToken)

public virtual Task<Operation<ConversationProfile, SetSuggestionFeatureConfigOperationMetadata>> SetSuggestionFeatureConfigAsync(string conversationProfile, Participant.Types.Role participantRole, HumanAgentAssistantConfig.Types.SuggestionFeatureConfig suggestionFeatureConfig, 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
Name Description
conversationProfile string

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

participantRole ParticipantTypesRole

Required. The participant role to add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.

suggestionFeatureConfig HumanAgentAssistantConfigTypesSuggestionFeatureConfig

Required. The suggestion feature config to add or update.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

A Task containing the RPC response.

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

// 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
Name Description
conversationProfile string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConversationProfileSetSuggestionFeatureConfigOperationMetadata

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
Type Description
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
Name Description
conversationProfile ConversationProfile

Required. The conversation profile to update.

updateMask FieldMask

Required. The mask to control which fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request UpdateConversationProfileRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
conversationProfile ConversationProfile

Required. The conversation profile to update.

updateMask FieldMask

Required. The mask to control which fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
conversationProfile ConversationProfile

Required. The conversation profile to update.

updateMask FieldMask

Required. The mask to control which fields to update.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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
Name Description
request UpdateConversationProfileRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConversationProfile

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
Name Description
request UpdateConversationProfileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConversationProfile

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