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