public sealed class ConversationalSearchServiceClientImpl : ConversationalSearchServiceClient
Reference documentation and code samples for the Discovery Engine v1 API class ConversationalSearchServiceClientImpl.
ConversationalSearchService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Remarks
Service for conversational search.
Constructors
ConversationalSearchServiceClientImpl(ConversationalSearchServiceClient, ConversationalSearchServiceSettings, ILogger)
public ConversationalSearchServiceClientImpl(ConversationalSearchService.ConversationalSearchServiceClient grpcClient, ConversationalSearchServiceSettings settings, ILogger logger)
Constructs a client wrapper for the ConversationalSearchService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | ConversationalSearchServiceConversationalSearchServiceClient The underlying gRPC client. |
settings | ConversationalSearchServiceSettings The base ConversationalSearchServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override ConversationalSearchService.ConversationalSearchServiceClient GrpcClient { get; }
The underlying gRPC ConversationalSearchService client
Property Value | |
---|---|
Type | Description |
ConversationalSearchServiceConversationalSearchServiceClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
ConverseConversation(ConverseConversationRequest, CallSettings)
public override ConverseConversationResponse ConverseConversation(ConverseConversationRequest request, CallSettings callSettings = null)
Converses a conversation.
Parameters | |
---|---|
Name | Description |
request | ConverseConversationRequest 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 |
ConverseConversationResponse | The RPC response. |
ConverseConversationAsync(ConverseConversationRequest, CallSettings)
public override Task<ConverseConversationResponse> ConverseConversationAsync(ConverseConversationRequest request, CallSettings callSettings = null)
Converses a conversation.
Parameters | |
---|---|
Name | Description |
request | ConverseConversationRequest 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 |
TaskConverseConversationResponse | A Task containing the RPC response. |
CreateConversation(CreateConversationRequest, CallSettings)
public override Conversation CreateConversation(CreateConversationRequest request, CallSettings callSettings = null)
Creates a Conversation.
If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to create already exists, an ALREADY_EXISTS error is returned.
Parameters | |
---|---|
Name | Description |
request | CreateConversationRequest 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 |
Conversation | The RPC response. |
CreateConversationAsync(CreateConversationRequest, CallSettings)
public override Task<Conversation> CreateConversationAsync(CreateConversationRequest request, CallSettings callSettings = null)
Creates a Conversation.
If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to create already exists, an ALREADY_EXISTS error is returned.
Parameters | |
---|---|
Name | Description |
request | CreateConversationRequest 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 |
TaskConversation | A Task containing the RPC response. |
DeleteConversation(DeleteConversationRequest, CallSettings)
public override void DeleteConversation(DeleteConversationRequest request, CallSettings callSettings = null)
Deletes a Conversation.
If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to delete does not exist, a NOT_FOUND error is returned.
Parameters | |
---|---|
Name | Description |
request | DeleteConversationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteConversationAsync(DeleteConversationRequest, CallSettings)
public override Task DeleteConversationAsync(DeleteConversationRequest request, CallSettings callSettings = null)
Deletes a Conversation.
If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to delete does not exist, a NOT_FOUND error is returned.
Parameters | |
---|---|
Name | Description |
request | DeleteConversationRequest 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. |
GetConversation(GetConversationRequest, CallSettings)
public override Conversation GetConversation(GetConversationRequest request, CallSettings callSettings = null)
Gets a Conversation.
Parameters | |
---|---|
Name | Description |
request | GetConversationRequest 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 |
Conversation | The RPC response. |
GetConversationAsync(GetConversationRequest, CallSettings)
public override Task<Conversation> GetConversationAsync(GetConversationRequest request, CallSettings callSettings = null)
Gets a Conversation.
Parameters | |
---|---|
Name | Description |
request | GetConversationRequest 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 |
TaskConversation | A Task containing the RPC response. |
ListConversations(ListConversationsRequest, CallSettings)
public override PagedEnumerable<ListConversationsResponse, Conversation> ListConversations(ListConversationsRequest request, CallSettings callSettings = null)
Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].
Parameters | |
---|---|
Name | Description |
request | ListConversationsRequest 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 |
PagedEnumerableListConversationsResponseConversation | A pageable sequence of Conversation resources. |
ListConversationsAsync(ListConversationsRequest, CallSettings)
public override PagedAsyncEnumerable<ListConversationsResponse, Conversation> ListConversationsAsync(ListConversationsRequest request, CallSettings callSettings = null)
Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].
Parameters | |
---|---|
Name | Description |
request | ListConversationsRequest 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 |
PagedAsyncEnumerableListConversationsResponseConversation | A pageable asynchronous sequence of Conversation resources. |
UpdateConversation(UpdateConversationRequest, CallSettings)
public override Conversation UpdateConversation(UpdateConversationRequest request, CallSettings callSettings = null)
Updates a Conversation.
[Conversation][google.cloud.discoveryengine.v1.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does not exist, a NOT_FOUND error is returned.
Parameters | |
---|---|
Name | Description |
request | UpdateConversationRequest 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 |
Conversation | The RPC response. |
UpdateConversationAsync(UpdateConversationRequest, CallSettings)
public override Task<Conversation> UpdateConversationAsync(UpdateConversationRequest request, CallSettings callSettings = null)
Updates a Conversation.
[Conversation][google.cloud.discoveryengine.v1.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does not exist, a NOT_FOUND error is returned.
Parameters | |
---|---|
Name | Description |
request | UpdateConversationRequest 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 |
TaskConversation | A Task containing the RPC response. |