Class ConversationProfiles.ConversationProfilesBase (4.0.0)

[BindServiceMethod(typeof(ConversationProfiles), "BindService")]
public abstract class ConversationProfilesBase

Base class for server-side implementations of ConversationProfiles

Inheritance

System.Object > ConversationProfiles.ConversationProfilesBase

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Methods

ClearSuggestionFeatureConfig(ClearSuggestionFeatureConfigRequest, ServerCallContext)

public virtual Task<Operation> ClearSuggestionFeatureConfig(ClearSuggestionFeatureConfigRequest request, ServerCallContext context)

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

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

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateConversationProfile(CreateConversationProfileRequest, ServerCallContext)

public virtual Task<ConversationProfile> CreateConversationProfile(CreateConversationProfileRequest request, ServerCallContext context)

Creates a conversation profile in the specified project.

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

Parameters
NameDescription
requestCreateConversationProfileRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ConversationProfile>

The response to send back to the client (wrapped by a task).

DeleteConversationProfile(DeleteConversationProfileRequest, ServerCallContext)

public virtual Task<Empty> DeleteConversationProfile(DeleteConversationProfileRequest request, ServerCallContext context)

Deletes the specified conversation profile.

Parameters
NameDescription
requestDeleteConversationProfileRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetConversationProfile(GetConversationProfileRequest, ServerCallContext)

public virtual Task<ConversationProfile> GetConversationProfile(GetConversationProfileRequest request, ServerCallContext context)

Retrieves the specified conversation profile.

Parameters
NameDescription
requestGetConversationProfileRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ConversationProfile>

The response to send back to the client (wrapped by a task).

ListConversationProfiles(ListConversationProfilesRequest, ServerCallContext)

public virtual Task<ListConversationProfilesResponse> ListConversationProfiles(ListConversationProfilesRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListConversationProfilesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListConversationProfilesResponse>

The response to send back to the client (wrapped by a task).

SetSuggestionFeatureConfig(SetSuggestionFeatureConfigRequest, ServerCallContext)

public virtual Task<Operation> SetSuggestionFeatureConfig(SetSuggestionFeatureConfigRequest request, ServerCallContext context)

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

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

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

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

Parameters
NameDescription
requestSetSuggestionFeatureConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdateConversationProfile(UpdateConversationProfileRequest, ServerCallContext)

public virtual Task<ConversationProfile> UpdateConversationProfile(UpdateConversationProfileRequest request, ServerCallContext context)

Updates the specified conversation profile.

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

Parameters
NameDescription
requestUpdateConversationProfileRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ConversationProfile>

The response to send back to the client (wrapped by a task).