Represents a KnowledgeBases
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.KnowledgeBasesPackage
@google-cloud/dialogflow!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new KnowledgeBases service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): KnowledgeBases;
Creates new KnowledgeBases service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
KnowledgeBases | RPC service. Useful where requests and/or responses are streamed. |
createKnowledgeBase(request, callback)
public createKnowledgeBase(request: google.cloud.dialogflow.v2beta1.ICreateKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBaseCallback): void;
Calls CreateKnowledgeBase.
Name | Description |
request |
ICreateKnowledgeBaseRequest
CreateKnowledgeBaseRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBaseCallback
Node-style callback called with the error, if any, and KnowledgeBase |
Type | Description |
void |
createKnowledgeBase(request)
public createKnowledgeBase(request: google.cloud.dialogflow.v2beta1.ICreateKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2beta1.KnowledgeBase>;
Calls CreateKnowledgeBase.
Name | Description |
request |
ICreateKnowledgeBaseRequest
CreateKnowledgeBaseRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.KnowledgeBase> | Promise |
deleteKnowledgeBase(request, callback)
public deleteKnowledgeBase(request: google.cloud.dialogflow.v2beta1.IDeleteKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBaseCallback): void;
Calls DeleteKnowledgeBase.
Name | Description |
request |
IDeleteKnowledgeBaseRequest
DeleteKnowledgeBaseRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBaseCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteKnowledgeBase(request)
public deleteKnowledgeBase(request: google.cloud.dialogflow.v2beta1.IDeleteKnowledgeBaseRequest): Promise<google.protobuf.Empty>;
Calls DeleteKnowledgeBase.
Name | Description |
request |
IDeleteKnowledgeBaseRequest
DeleteKnowledgeBaseRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getKnowledgeBase(request, callback)
public getKnowledgeBase(request: google.cloud.dialogflow.v2beta1.IGetKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2beta1.KnowledgeBases.GetKnowledgeBaseCallback): void;
Calls GetKnowledgeBase.
Name | Description |
request |
IGetKnowledgeBaseRequest
GetKnowledgeBaseRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.KnowledgeBases.GetKnowledgeBaseCallback
Node-style callback called with the error, if any, and KnowledgeBase |
Type | Description |
void |
getKnowledgeBase(request)
public getKnowledgeBase(request: google.cloud.dialogflow.v2beta1.IGetKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2beta1.KnowledgeBase>;
Calls GetKnowledgeBase.
Name | Description |
request |
IGetKnowledgeBaseRequest
GetKnowledgeBaseRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.KnowledgeBase> | Promise |
listKnowledgeBases(request, callback)
public listKnowledgeBases(request: google.cloud.dialogflow.v2beta1.IListKnowledgeBasesRequest, callback: google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBasesCallback): void;
Calls ListKnowledgeBases.
Name | Description |
request |
IListKnowledgeBasesRequest
ListKnowledgeBasesRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBasesCallback
Node-style callback called with the error, if any, and ListKnowledgeBasesResponse |
Type | Description |
void |
listKnowledgeBases(request)
public listKnowledgeBases(request: google.cloud.dialogflow.v2beta1.IListKnowledgeBasesRequest): Promise<google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse>;
Calls ListKnowledgeBases.
Name | Description |
request |
IListKnowledgeBasesRequest
ListKnowledgeBasesRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse> | Promise |
updateKnowledgeBase(request, callback)
public updateKnowledgeBase(request: google.cloud.dialogflow.v2beta1.IUpdateKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBaseCallback): void;
Calls UpdateKnowledgeBase.
Name | Description |
request |
IUpdateKnowledgeBaseRequest
UpdateKnowledgeBaseRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBaseCallback
Node-style callback called with the error, if any, and KnowledgeBase |
Type | Description |
void |
updateKnowledgeBase(request)
public updateKnowledgeBase(request: google.cloud.dialogflow.v2beta1.IUpdateKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2beta1.KnowledgeBase>;
Calls UpdateKnowledgeBase.
Name | Description |
request |
IUpdateKnowledgeBaseRequest
UpdateKnowledgeBaseRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.KnowledgeBase> | Promise |