Represents a Pages
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.PagesPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Pages service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
createPage(request)
public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest): Promise<google.cloud.dialogflow.cx.v3.Page>;
Calls CreatePage.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3.ICreatePageRequest
CreatePageRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
deletePage(request)
public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest): Promise<google.protobuf.Empty>;
Calls DeletePage.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IDeletePageRequest
DeletePageRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getPage(request)
public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest): Promise<google.cloud.dialogflow.cx.v3.Page>;
Calls GetPage.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IGetPageRequest
GetPageRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
listPages(request)
public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest): Promise<google.cloud.dialogflow.cx.v3.ListPagesResponse>;
Calls ListPages.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IListPagesRequest
ListPagesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
updatePage(request)
public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest): Promise<google.cloud.dialogflow.cx.v3.Page>;
Calls UpdatePage.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IUpdatePageRequest
UpdatePageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Page> | Promise |