Class protos.google.cloud.dialogflow.cx.v3.Pages (3.4.2)

Represents a Pages

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.Pages

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createPage(request, callback)

public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.CreatePageCallback): void;

Calls CreatePage.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.ICreatePageRequest

CreatePageRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Pages.CreatePageCallback

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

Returns
TypeDescription
void

createPage(request)

public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest): Promise<google.cloud.dialogflow.cx.v3.Page>;

Calls CreatePage.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.ICreatePageRequest

CreatePageRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.Page>

Promise

deletePage(request, callback)

public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.DeletePageCallback): void;

Calls DeletePage.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IDeletePageRequest

DeletePageRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Pages.DeletePageCallback

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

Returns
TypeDescription
void

deletePage(request)

public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest): Promise<google.protobuf.Empty>;

Calls DeletePage.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IDeletePageRequest

DeletePageRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getPage(request, callback)

public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.GetPageCallback): void;

Calls GetPage.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IGetPageRequest

GetPageRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Pages.GetPageCallback

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

Returns
TypeDescription
void

getPage(request)

public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest): Promise<google.cloud.dialogflow.cx.v3.Page>;

Calls GetPage.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IGetPageRequest

GetPageRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.Page>

Promise

listPages(request, callback)

public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3.Pages.ListPagesCallback): void;

Calls ListPages.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IListPagesRequest

ListPagesRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Pages.ListPagesCallback

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

Returns
TypeDescription
void

listPages(request)

public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest): Promise<google.cloud.dialogflow.cx.v3.ListPagesResponse>;

Calls ListPages.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IListPagesRequest

ListPagesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.ListPagesResponse>

Promise

updatePage(request, callback)

public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.UpdatePageCallback): void;

Calls UpdatePage.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IUpdatePageRequest

UpdatePageRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Pages.UpdatePageCallback

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

Returns
TypeDescription
void

updatePage(request)

public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest): Promise<google.cloud.dialogflow.cx.v3.Page>;

Calls UpdatePage.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IUpdatePageRequest

UpdatePageRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.Page>

Promise