Class protos.google.cloud.dialogflow.v2beta1.KnowledgeBases (5.2.0)

Represents a KnowledgeBases

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.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.v2beta1.ICreateKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBaseCallback): void;

Calls CreateKnowledgeBase.

Parameters
NameDescription
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

Returns
TypeDescription
void

createKnowledgeBase(request)

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

Calls CreateKnowledgeBase.

Parameter
NameDescription
request ICreateKnowledgeBaseRequest

CreateKnowledgeBaseRequest message or plain object

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

Returns
TypeDescription
void

deleteKnowledgeBase(request)

public deleteKnowledgeBase(request: google.cloud.dialogflow.v2beta1.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.v2beta1.IGetKnowledgeBaseRequest, callback: google.cloud.dialogflow.v2beta1.KnowledgeBases.GetKnowledgeBaseCallback): void;

Calls GetKnowledgeBase.

Parameters
NameDescription
request google.cloud.dialogflow.v2beta1.IGetKnowledgeBaseRequest

GetKnowledgeBaseRequest message or plain object

callback google.cloud.dialogflow.v2beta1.KnowledgeBases.GetKnowledgeBaseCallback

Node-style callback called with the error, if any, and KnowledgeBase

Returns
TypeDescription
void

getKnowledgeBase(request)

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

Calls GetKnowledgeBase.

Parameter
NameDescription
request google.cloud.dialogflow.v2beta1.IGetKnowledgeBaseRequest

GetKnowledgeBaseRequest message or plain object

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

Returns
TypeDescription
void

listKnowledgeBases(request)

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

Calls ListKnowledgeBases.

Parameter
NameDescription
request IListKnowledgeBasesRequest

ListKnowledgeBasesRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.dialogflow.v2beta1.IUpdateKnowledgeBaseRequest

UpdateKnowledgeBaseRequest message or plain object

callback google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBaseCallback

Node-style callback called with the error, if any, and KnowledgeBase

Returns
TypeDescription
void

updateKnowledgeBase(request)

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

Calls UpdateKnowledgeBase.

Parameter
NameDescription
request google.cloud.dialogflow.v2beta1.IUpdateKnowledgeBaseRequest

UpdateKnowledgeBaseRequest message or plain object

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

Promise