Class protos.google.cloud.dialogflow.v2.Documents

Represents a Documents

Inheritance

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

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Documents 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): Documents;

Creates new Documents 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
Documents

RPC service. Useful where requests and/or responses are streamed.

createDocument(request, callback)

public createDocument(request: google.cloud.dialogflow.v2.ICreateDocumentRequest, callback: google.cloud.dialogflow.v2.Documents.CreateDocumentCallback): void;

Calls CreateDocument.

Parameters
NameDescription
request ICreateDocumentRequest

CreateDocumentRequest message or plain object

callback google.cloud.dialogflow.v2.Documents.CreateDocumentCallback

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

Returns
TypeDescription
void

createDocument(request)

public createDocument(request: google.cloud.dialogflow.v2.ICreateDocumentRequest): Promise<google.longrunning.Operation>;

Calls CreateDocument.

Parameter
NameDescription
request ICreateDocumentRequest

CreateDocumentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteDocument(request, callback)

public deleteDocument(request: google.cloud.dialogflow.v2.IDeleteDocumentRequest, callback: google.cloud.dialogflow.v2.Documents.DeleteDocumentCallback): void;

Calls DeleteDocument.

Parameters
NameDescription
request IDeleteDocumentRequest

DeleteDocumentRequest message or plain object

callback google.cloud.dialogflow.v2.Documents.DeleteDocumentCallback

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

Returns
TypeDescription
void

deleteDocument(request)

public deleteDocument(request: google.cloud.dialogflow.v2.IDeleteDocumentRequest): Promise<google.longrunning.Operation>;

Calls DeleteDocument.

Parameter
NameDescription
request IDeleteDocumentRequest

DeleteDocumentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getDocument(request, callback)

public getDocument(request: google.cloud.dialogflow.v2.IGetDocumentRequest, callback: google.cloud.dialogflow.v2.Documents.GetDocumentCallback): void;

Calls GetDocument.

Parameters
NameDescription
request IGetDocumentRequest

GetDocumentRequest message or plain object

callback google.cloud.dialogflow.v2.Documents.GetDocumentCallback

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

Returns
TypeDescription
void

getDocument(request)

public getDocument(request: google.cloud.dialogflow.v2.IGetDocumentRequest): Promise<google.cloud.dialogflow.v2.Document>;

Calls GetDocument.

Parameter
NameDescription
request IGetDocumentRequest

GetDocumentRequest message or plain object

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

Promise

listDocuments(request, callback)

public listDocuments(request: google.cloud.dialogflow.v2.IListDocumentsRequest, callback: google.cloud.dialogflow.v2.Documents.ListDocumentsCallback): void;

Calls ListDocuments.

Parameters
NameDescription
request IListDocumentsRequest

ListDocumentsRequest message or plain object

callback google.cloud.dialogflow.v2.Documents.ListDocumentsCallback

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

Returns
TypeDescription
void

listDocuments(request)

public listDocuments(request: google.cloud.dialogflow.v2.IListDocumentsRequest): Promise<google.cloud.dialogflow.v2.ListDocumentsResponse>;

Calls ListDocuments.

Parameter
NameDescription
request IListDocumentsRequest

ListDocumentsRequest message or plain object

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

Promise

reloadDocument(request, callback)

public reloadDocument(request: google.cloud.dialogflow.v2.IReloadDocumentRequest, callback: google.cloud.dialogflow.v2.Documents.ReloadDocumentCallback): void;

Calls ReloadDocument.

Parameters
NameDescription
request IReloadDocumentRequest

ReloadDocumentRequest message or plain object

callback google.cloud.dialogflow.v2.Documents.ReloadDocumentCallback

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

Returns
TypeDescription
void

reloadDocument(request)

public reloadDocument(request: google.cloud.dialogflow.v2.IReloadDocumentRequest): Promise<google.longrunning.Operation>;

Calls ReloadDocument.

Parameter
NameDescription
request IReloadDocumentRequest

ReloadDocumentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateDocument(request, callback)

public updateDocument(request: google.cloud.dialogflow.v2.IUpdateDocumentRequest, callback: google.cloud.dialogflow.v2.Documents.UpdateDocumentCallback): void;

Calls UpdateDocument.

Parameters
NameDescription
request IUpdateDocumentRequest

UpdateDocumentRequest message or plain object

callback google.cloud.dialogflow.v2.Documents.UpdateDocumentCallback

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

Returns
TypeDescription
void

updateDocument(request)

public updateDocument(request: google.cloud.dialogflow.v2.IUpdateDocumentRequest): Promise<google.longrunning.Operation>;

Calls UpdateDocument.

Parameter
NameDescription
request IUpdateDocumentRequest

UpdateDocumentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise