public class KnowledgeBasesClient : ClientBase<KnowledgeBases.KnowledgeBasesClient>Client for KnowledgeBases
Inheritance
Object > ClientBase > ClientBase<KnowledgeBases.KnowledgeBasesClient> > KnowledgeBases.KnowledgeBasesClientNamespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Constructors
KnowledgeBasesClient()
protected KnowledgeBasesClient()Protected parameterless constructor to allow creation of test doubles.
KnowledgeBasesClient(CallInvoker)
public KnowledgeBasesClient(CallInvoker callInvoker)Creates a new client for KnowledgeBases that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description | 
callInvoker | 
        CallInvokerThe callInvoker to use to make remote calls.  | 
      
KnowledgeBasesClient(ChannelBase)
public KnowledgeBasesClient(ChannelBase channel)Creates a new client for KnowledgeBases
| Parameter | |
|---|---|
| Name | Description | 
channel | 
        ChannelBaseThe channel to use to make remote calls.  | 
      
KnowledgeBasesClient(ClientBase.ClientBaseConfiguration)
protected KnowledgeBasesClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description | 
configuration | 
        ClientBase.ClientBaseConfigurationThe client configuration.  | 
      
Methods
CreateKnowledgeBase(CreateKnowledgeBaseRequest, CallOptions)
public virtual KnowledgeBase CreateKnowledgeBase(CreateKnowledgeBaseRequest request, CallOptions options)Creates a knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CreateKnowledgeBaseRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
KnowledgeBase | 
        The response received from the server.  | 
      
CreateKnowledgeBase(CreateKnowledgeBaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual KnowledgeBase CreateKnowledgeBase(CreateKnowledgeBaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Creates a knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CreateKnowledgeBaseRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
KnowledgeBase | 
        The response received from the server.  | 
      
CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest, CallOptions)
public virtual AsyncUnaryCall<KnowledgeBase> CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest request, CallOptions options)Creates a knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CreateKnowledgeBaseRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<KnowledgeBase> | 
        The call object.  | 
      
CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<KnowledgeBase> CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Creates a knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CreateKnowledgeBaseRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
AsyncUnaryCall<KnowledgeBase> | 
        The call object.  | 
      
DeleteKnowledgeBase(DeleteKnowledgeBaseRequest, CallOptions)
public virtual Empty DeleteKnowledgeBase(DeleteKnowledgeBaseRequest request, CallOptions options)Deletes the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        DeleteKnowledgeBaseRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Empty | 
        The response received from the server.  | 
      
DeleteKnowledgeBase(DeleteKnowledgeBaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty DeleteKnowledgeBase(DeleteKnowledgeBaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Deletes the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        DeleteKnowledgeBaseRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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.  | 
      
DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request, CallOptions options)Deletes the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        DeleteKnowledgeBaseRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Empty> | 
        The call object.  | 
      
DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Deletes the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        DeleteKnowledgeBaseRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
AsyncUnaryCall<Empty> | 
        The call object.  | 
      
GetKnowledgeBase(GetKnowledgeBaseRequest, CallOptions)
public virtual KnowledgeBase GetKnowledgeBase(GetKnowledgeBaseRequest request, CallOptions options)Retrieves the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetKnowledgeBaseRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
KnowledgeBase | 
        The response received from the server.  | 
      
GetKnowledgeBase(GetKnowledgeBaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual KnowledgeBase GetKnowledgeBase(GetKnowledgeBaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetKnowledgeBaseRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
KnowledgeBase | 
        The response received from the server.  | 
      
GetKnowledgeBaseAsync(GetKnowledgeBaseRequest, CallOptions)
public virtual AsyncUnaryCall<KnowledgeBase> GetKnowledgeBaseAsync(GetKnowledgeBaseRequest request, CallOptions options)Retrieves the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetKnowledgeBaseRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<KnowledgeBase> | 
        The call object.  | 
      
GetKnowledgeBaseAsync(GetKnowledgeBaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<KnowledgeBase> GetKnowledgeBaseAsync(GetKnowledgeBaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetKnowledgeBaseRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
AsyncUnaryCall<KnowledgeBase> | 
        The call object.  | 
      
ListKnowledgeBases(ListKnowledgeBasesRequest, CallOptions)
public virtual ListKnowledgeBasesResponse ListKnowledgeBases(ListKnowledgeBasesRequest request, CallOptions options)Returns the list of all knowledge bases of the specified agent.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListKnowledgeBasesRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ListKnowledgeBasesResponse | 
        The response received from the server.  | 
      
ListKnowledgeBases(ListKnowledgeBasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListKnowledgeBasesResponse ListKnowledgeBases(ListKnowledgeBasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns the list of all knowledge bases of the specified agent.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListKnowledgeBasesRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
ListKnowledgeBasesResponse | 
        The response received from the server.  | 
      
ListKnowledgeBasesAsync(ListKnowledgeBasesRequest, CallOptions)
public virtual AsyncUnaryCall<ListKnowledgeBasesResponse> ListKnowledgeBasesAsync(ListKnowledgeBasesRequest request, CallOptions options)Returns the list of all knowledge bases of the specified agent.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListKnowledgeBasesRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<ListKnowledgeBasesResponse> | 
        The call object.  | 
      
ListKnowledgeBasesAsync(ListKnowledgeBasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListKnowledgeBasesResponse> ListKnowledgeBasesAsync(ListKnowledgeBasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns the list of all knowledge bases of the specified agent.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListKnowledgeBasesRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
AsyncUnaryCall<ListKnowledgeBasesResponse> | 
        The call object.  | 
      
NewInstance(ClientBase.ClientBaseConfiguration)
protected override KnowledgeBases.KnowledgeBasesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description | 
configuration | 
        ClientBase.ClientBaseConfiguration | 
      
| Returns | |
|---|---|
| Type | Description | 
KnowledgeBases.KnowledgeBasesClient | 
        |
UpdateKnowledgeBase(UpdateKnowledgeBaseRequest, CallOptions)
public virtual KnowledgeBase UpdateKnowledgeBase(UpdateKnowledgeBaseRequest request, CallOptions options)Updates the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateKnowledgeBaseRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
KnowledgeBase | 
        The response received from the server.  | 
      
UpdateKnowledgeBase(UpdateKnowledgeBaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual KnowledgeBase UpdateKnowledgeBase(UpdateKnowledgeBaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Updates the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateKnowledgeBaseRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
KnowledgeBase | 
        The response received from the server.  | 
      
UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest, CallOptions)
public virtual AsyncUnaryCall<KnowledgeBase> UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request, CallOptions options)Updates the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateKnowledgeBaseRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<KnowledgeBase> | 
        The call object.  | 
      
UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<KnowledgeBase> UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Updates the specified knowledge base.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateKnowledgeBaseRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An 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 | 
AsyncUnaryCall<KnowledgeBase> | 
        The call object.  |