public class AssistantService.AssistantServiceClient : ClientBase<AssistantService.AssistantServiceClient>Reference documentation and code samples for the Discovery Engine v1beta API class AssistantService.AssistantServiceClient.
Client for AssistantService
Inheritance
object > ClientBase > ClientBaseAssistantServiceAssistantServiceClient > AssistantService.AssistantServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.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 |
CallInvokerThe callInvoker to use to make remote calls. |
AssistantServiceClient(ChannelBase)
public AssistantServiceClient(ChannelBase channel)Creates a new client for AssistantService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
CreateAssistant(CreateAssistantRequest, CallOptions)
public virtual Assistant CreateAssistant(CreateAssistantRequest request, CallOptions options)Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Assistant |
The response received from the server. |
CreateAssistant(CreateAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual Assistant CreateAssistant(CreateAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Assistant |
The response received from the server. |
CreateAssistantAsync(CreateAssistantRequest, CallOptions)
public virtual AsyncUnaryCall<Assistant> CreateAssistantAsync(CreateAssistantRequest request, CallOptions options)Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistant |
The call object. |
CreateAssistantAsync(CreateAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Assistant> CreateAssistantAsync(CreateAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistant |
The call object. |
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. |
DeleteAssistant(DeleteAssistantRequest, CallOptions)
public virtual Empty DeleteAssistant(DeleteAssistantRequest request, CallOptions options)Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Empty |
The response received from the server. |
DeleteAssistant(DeleteAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual Empty DeleteAssistant(DeleteAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Empty |
The response received from the server. |
DeleteAssistantAsync(DeleteAssistantRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteAssistantAsync(DeleteAssistantRequest request, CallOptions options)Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallEmpty |
The call object. |
DeleteAssistantAsync(DeleteAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteAssistantAsync(DeleteAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallEmpty |
The call object. |
GetAssistant(GetAssistantRequest, CallOptions)
public virtual Assistant GetAssistant(GetAssistantRequest request, CallOptions options)Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Assistant |
The response received from the server. |
GetAssistant(GetAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual Assistant GetAssistant(GetAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Assistant |
The response received from the server. |
GetAssistantAsync(GetAssistantRequest, CallOptions)
public virtual AsyncUnaryCall<Assistant> GetAssistantAsync(GetAssistantRequest request, CallOptions options)Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistant |
The call object. |
GetAssistantAsync(GetAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Assistant> GetAssistantAsync(GetAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistant |
The call object. |
ListAssistants(ListAssistantsRequest, CallOptions)
public virtual ListAssistantsResponse ListAssistants(ListAssistantsRequest request, CallOptions options)Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an [Engine][google.cloud.discoveryengine.v1beta.Engine].
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssistantsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ListAssistantsResponse |
The response received from the server. |
ListAssistants(ListAssistantsRequest, Metadata, DateTime?, CancellationToken)
public virtual ListAssistantsResponse ListAssistants(ListAssistantsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an [Engine][google.cloud.discoveryengine.v1beta.Engine].
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssistantsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ListAssistantsResponse |
The response received from the server. |
ListAssistantsAsync(ListAssistantsRequest, CallOptions)
public virtual AsyncUnaryCall<ListAssistantsResponse> ListAssistantsAsync(ListAssistantsRequest request, CallOptions options)Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an [Engine][google.cloud.discoveryengine.v1beta.Engine].
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssistantsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListAssistantsResponse |
The call object. |
ListAssistantsAsync(ListAssistantsRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListAssistantsResponse> ListAssistantsAsync(ListAssistantsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an [Engine][google.cloud.discoveryengine.v1beta.Engine].
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssistantsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListAssistantsResponse |
The call object. |
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 |
StreamAssistRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
StreamAssistRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncServerStreamingCallStreamAssistResponse |
The call object. |
UpdateAssistant(UpdateAssistantRequest, CallOptions)
public virtual Assistant UpdateAssistant(UpdateAssistantRequest request, CallOptions options)Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Assistant |
The response received from the server. |
UpdateAssistant(UpdateAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual Assistant UpdateAssistant(UpdateAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Assistant |
The response received from the server. |
UpdateAssistantAsync(UpdateAssistantRequest, CallOptions)
public virtual AsyncUnaryCall<Assistant> UpdateAssistantAsync(UpdateAssistantRequest request, CallOptions options)Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistant |
The call object. |
UpdateAssistantAsync(UpdateAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Assistant> UpdateAssistantAsync(UpdateAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistant |
The call object. |