Class protos.google.cloud.dialogflow.v2.KnowledgeBases (5.7.1)

Represents a KnowledgeBases

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.KnowledgeBases

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new KnowledgeBases service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

createKnowledgeBase(request)

public createKnowledgeBase(request: google.cloud.dialogflow.v2.ICreateKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2.KnowledgeBase>;

Calls CreateKnowledgeBase.

Parameter
NameDescription
request ICreateKnowledgeBaseRequest

CreateKnowledgeBaseRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

deleteKnowledgeBase(request)

public deleteKnowledgeBase(request: google.cloud.dialogflow.v2.IDeleteKnowledgeBaseRequest): Promise<google.protobuf.Empty>;

Calls DeleteKnowledgeBase.

Parameter
NameDescription
request IDeleteKnowledgeBaseRequest

DeleteKnowledgeBaseRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

getKnowledgeBase(request)

public getKnowledgeBase(request: google.cloud.dialogflow.v2.IGetKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2.KnowledgeBase>;

Calls GetKnowledgeBase.

Parameter
NameDescription
request IGetKnowledgeBaseRequest

GetKnowledgeBaseRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

listKnowledgeBases(request)

public listKnowledgeBases(request: google.cloud.dialogflow.v2.IListKnowledgeBasesRequest): Promise<google.cloud.dialogflow.v2.ListKnowledgeBasesResponse>;

Calls ListKnowledgeBases.

Parameter
NameDescription
request IListKnowledgeBasesRequest

ListKnowledgeBasesRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

updateKnowledgeBase(request)

public updateKnowledgeBase(request: google.cloud.dialogflow.v2.IUpdateKnowledgeBaseRequest): Promise<google.cloud.dialogflow.v2.KnowledgeBase>;

Calls UpdateKnowledgeBase.

Parameter
NameDescription
request IUpdateKnowledgeBaseRequest

UpdateKnowledgeBaseRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.KnowledgeBase>

Promise