public class AssistantService.AssistantServiceClient : ClientBase<AssistantService.AssistantServiceClient>
Reference documentation and code samples for the Discovery Engine v1 API class AssistantService.AssistantServiceClient.
Client for AssistantService
Inheritance
object > ClientBase > ClientBaseAssistantServiceAssistantServiceClient > AssistantService.AssistantServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
AssistantServiceClient()
protected AssistantServiceClient()
Protected parameterless constructor to allow creation of test doubles.
AssistantServiceClient(CallInvoker)
public AssistantServiceClient(CallInvoker callInvoker)
Creates a new client for AssistantService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
AssistantServiceClient(ChannelBase)
public AssistantServiceClient(ChannelBase channel)
Creates a new client for AssistantService
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
AssistantServiceClient(ClientBaseConfiguration)
protected AssistantServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
CreateLocationsClient()
public virtual Locations.LocationsClient CreateLocationsClient()
Creates a new instance of Locations.LocationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient for the same target as this client. |
NewInstance(ClientBaseConfiguration)
protected override AssistantService.AssistantServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
AssistantServiceAssistantServiceClient |
StreamAssist(StreamAssistRequest, CallOptions)
public virtual AsyncServerStreamingCall<StreamAssistResponse> StreamAssist(StreamAssistRequest request, CallOptions options)
Assists the user with a query in a streaming fashion.
Parameters | |
---|---|
Name | Description |
request |
StreamAssistRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncServerStreamingCallStreamAssistResponse |
The call object. |
StreamAssist(StreamAssistRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncServerStreamingCall<StreamAssistResponse> StreamAssist(StreamAssistRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Assists the user with a query in a streaming fashion.
Parameters | |
---|---|
Name | Description |
request |
StreamAssistRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncServerStreamingCallStreamAssistResponse |
The call object. |