Google Cloud Dialogflow v2 API - Class ConversationProfilesClientImpl (4.25.0)

public sealed class ConversationProfilesClientImpl : ConversationProfilesClient

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

ConversationProfiles client wrapper implementation, for convenient use.

Inheritance

object > ConversationProfilesClient > ConversationProfilesClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

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

Constructors

ConversationProfilesClientImpl(ConversationProfilesClient, ConversationProfilesSettings, ILogger)

public ConversationProfilesClientImpl(ConversationProfiles.ConversationProfilesClient grpcClient, ConversationProfilesSettings settings, ILogger logger)

Constructs a client wrapper for the ConversationProfiles service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient ConversationProfilesConversationProfilesClient

The underlying gRPC client.

settings ConversationProfilesSettings

The base ConversationProfilesSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

ClearSuggestionFeatureConfigOperationsClient

public override OperationsClient ClearSuggestionFeatureConfigOperationsClient { get; }

The long-running operations client for ClearSuggestionFeatureConfig.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override ConversationProfiles.ConversationProfilesClient GrpcClient { get; }

The underlying gRPC ConversationProfiles client

Property Value
Type Description
ConversationProfilesConversationProfilesClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

SetSuggestionFeatureConfigOperationsClient

public override OperationsClient SetSuggestionFeatureConfigOperationsClient { get; }

The long-running operations client for SetSuggestionFeatureConfig.

Property Value
Type Description
OperationsClient
Overrides

Methods

ClearSuggestionFeatureConfig(ClearSuggestionFeatureConfigRequest, CallSettings)

public override 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.

Overrides

ClearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest, CallSettings)

public override 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.

Overrides

CreateConversationProfile(CreateConversationProfileRequest, CallSettings)

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

Creates a conversation profile in the specified project.

[ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] and [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] 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.

Overrides

CreateConversationProfileAsync(CreateConversationProfileRequest, CallSettings)

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

Creates a conversation profile in the specified project.

[ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] and [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] 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.

Overrides

DeleteConversationProfile(DeleteConversationProfileRequest, CallSettings)

public override 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.

Overrides

DeleteConversationProfileAsync(DeleteConversationProfileRequest, CallSettings)

public override 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.

Overrides

GetConversationProfile(GetConversationProfileRequest, CallSettings)

public override 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.

Overrides

GetConversationProfileAsync(GetConversationProfileRequest, CallSettings)

public override 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.

Overrides

ListConversationProfiles(ListConversationProfilesRequest, CallSettings)

public override 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.

Overrides

ListConversationProfilesAsync(ListConversationProfilesRequest, CallSettings)

public override 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.

Overrides

SetSuggestionFeatureConfig(SetSuggestionFeatureConfigRequest, CallSettings)

public override 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.

Overrides

SetSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest, CallSettings)

public override 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.

Overrides

UpdateConversationProfile(UpdateConversationProfileRequest, CallSettings)

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

Updates the specified conversation profile.

[ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] and [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] 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.

Overrides

UpdateConversationProfileAsync(UpdateConversationProfileRequest, CallSettings)

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

Updates the specified conversation profile.

[ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] and [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] 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.

Overrides