Represents a KnowledgeBases
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.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.v2.ICreateKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBaseCallback): void;
Calls CreateKnowledgeBase.
Parameters | |
---|---|
Name | Description |
request |
ICreateKnowledgeBaseRequest
CreateKnowledgeBaseRequest message or plain object |
callback |
google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBaseCallback
Node-style callback called with the error, if any, and KnowledgeBase |
Returns | |
---|---|
Type | Description |
void |
createKnowledgeBase(request)
public createKnowledgeBase(request: google.cloud.dialogflow.v2.ICreateKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2.KnowledgeBase>;
Calls CreateKnowledgeBase.
Parameter | |
---|---|
Name | Description |
request |
ICreateKnowledgeBaseRequest
CreateKnowledgeBaseRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.KnowledgeBase> | Promise |
deleteKnowledgeBase(request, callback)
public deleteKnowledgeBase(request: google.cloud.dialogflow.v2.IDeleteKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBaseCallback): void;
Calls DeleteKnowledgeBase.
Parameters | |
---|---|
Name | Description |
request |
IDeleteKnowledgeBaseRequest
DeleteKnowledgeBaseRequest message or plain object |
callback |
google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBaseCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteKnowledgeBase(request)
public deleteKnowledgeBase(request: google.cloud.dialogflow.v2.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.v2.IGetKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBaseCallback): void;
Calls GetKnowledgeBase.
Parameters | |
---|---|
Name | Description |
request |
IGetKnowledgeBaseRequest
GetKnowledgeBaseRequest message or plain object |
callback |
google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBaseCallback
Node-style callback called with the error, if any, and KnowledgeBase |
Returns | |
---|---|
Type | Description |
void |
getKnowledgeBase(request)
public getKnowledgeBase(request: google.cloud.dialogflow.v2.IGetKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2.KnowledgeBase>;
Calls GetKnowledgeBase.
Parameter | |
---|---|
Name | Description |
request |
IGetKnowledgeBaseRequest
GetKnowledgeBaseRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.KnowledgeBase> | Promise |
listKnowledgeBases(request, callback)
public listKnowledgeBases(request: google.cloud.dialogflow.v2.IListKnowledgeBasesRequest, callback: google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBasesCallback): void;
Calls ListKnowledgeBases.
Parameters | |
---|---|
Name | Description |
request |
IListKnowledgeBasesRequest
ListKnowledgeBasesRequest message or plain object |
callback |
google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBasesCallback
Node-style callback called with the error, if any, and ListKnowledgeBasesResponse |
Returns | |
---|---|
Type | Description |
void |
listKnowledgeBases(request)
public listKnowledgeBases(request: google.cloud.dialogflow.v2.IListKnowledgeBasesRequest): Promise<google.cloud.dialogflow.v2.ListKnowledgeBasesResponse>;
Calls ListKnowledgeBases.
Parameter | |
---|---|
Name | Description |
request |
IListKnowledgeBasesRequest
ListKnowledgeBasesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.ListKnowledgeBasesResponse> | Promise |
updateKnowledgeBase(request, callback)
public updateKnowledgeBase(request: google.cloud.dialogflow.v2.IUpdateKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2.KnowledgeBases.UpdateKnowledgeBaseCallback): void;
Calls UpdateKnowledgeBase.
Parameters | |
---|---|
Name | Description |
request |
IUpdateKnowledgeBaseRequest
UpdateKnowledgeBaseRequest message or plain object |
callback |
google.cloud.dialogflow.v2.KnowledgeBases.UpdateKnowledgeBaseCallback
Node-style callback called with the error, if any, and KnowledgeBase |
Returns | |
---|---|
Type | Description |
void |
updateKnowledgeBase(request)
public updateKnowledgeBase(request: google.cloud.dialogflow.v2.IUpdateKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2.KnowledgeBase>;
Calls UpdateKnowledgeBase.
Parameter | |
---|---|
Name | Description |
request |
IUpdateKnowledgeBaseRequest
UpdateKnowledgeBaseRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.KnowledgeBase> | Promise |