Class protos.google.cloud.dialogflow.v2beta1.Documents (3.5.0)

Represents a Documents

Inheritance

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

Calls CreateDocument.

Parameters
NameDescription
request ICreateDocumentRequest

CreateDocumentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Documents.CreateDocumentCallback

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

Returns
TypeDescription
void

createDocument(request)

public createDocument(request: google.cloud.dialogflow.v2beta1.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.v2beta1.IDeleteDocumentRequest, callback: google.cloud.dialogflow.v2beta1.Documents.DeleteDocumentCallback): void;

Calls DeleteDocument.

Parameters
NameDescription
request IDeleteDocumentRequest

DeleteDocumentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Documents.DeleteDocumentCallback

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

Returns
TypeDescription
void

deleteDocument(request)

public deleteDocument(request: google.cloud.dialogflow.v2beta1.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.v2beta1.IGetDocumentRequest, callback: google.cloud.dialogflow.v2beta1.Documents.GetDocumentCallback): void;

Calls GetDocument.

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

GetDocumentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Documents.GetDocumentCallback

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

Returns
TypeDescription
void

getDocument(request)

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

Calls GetDocument.

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

GetDocumentRequest message or plain object

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

Promise

importDocuments(request, callback)

public importDocuments(request: google.cloud.dialogflow.v2beta1.IImportDocumentsRequest, callback: google.cloud.dialogflow.v2beta1.Documents.ImportDocumentsCallback): void;

Calls ImportDocuments.

Parameters
NameDescription
request IImportDocumentsRequest

ImportDocumentsRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Documents.ImportDocumentsCallback

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

Returns
TypeDescription
void

importDocuments(request)

public importDocuments(request: google.cloud.dialogflow.v2beta1.IImportDocumentsRequest): Promise<google.longrunning.Operation>;

Calls ImportDocuments.

Parameter
NameDescription
request IImportDocumentsRequest

ImportDocumentsRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listDocuments(request, callback)

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

Calls ListDocuments.

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

ListDocumentsRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Documents.ListDocumentsCallback

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

Returns
TypeDescription
void

listDocuments(request)

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

Calls ListDocuments.

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

ListDocumentsRequest message or plain object

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

Promise

reloadDocument(request, callback)

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

Calls ReloadDocument.

Parameters
NameDescription
request IReloadDocumentRequest

ReloadDocumentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Documents.ReloadDocumentCallback

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

Returns
TypeDescription
void

reloadDocument(request)

public reloadDocument(request: google.cloud.dialogflow.v2beta1.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.v2beta1.IUpdateDocumentRequest, callback: google.cloud.dialogflow.v2beta1.Documents.UpdateDocumentCallback): void;

Calls UpdateDocument.

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

UpdateDocumentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Documents.UpdateDocumentCallback

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

Returns
TypeDescription
void

updateDocument(request)

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

Calls UpdateDocument.

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

UpdateDocumentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise