Represents a Pages
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback): void;
Calls CreatePage.
Parameters | |
---|---|
Name | Description |
request |
ICreatePageRequest
CreatePageRequest message or plain object |
callback |
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.v3beta1.ICreatePageRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Page>;
Calls CreatePage.
Parameter | |
---|---|
Name | Description |
request |
ICreatePageRequest
CreatePageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Page> | Promise |
deletePage(request, callback)
public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback): void;
Calls DeletePage.
Parameters | |
---|---|
Name | Description |
request |
IDeletePageRequest
DeletePageRequest message or plain object |
callback |
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.v3beta1.IDeletePageRequest): Promise<google.protobuf.Empty>;
Calls DeletePage.
Parameter | |
---|---|
Name | Description |
request |
IDeletePageRequest
DeletePageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getPage(request, callback)
public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback): void;
Calls GetPage.
Parameters | |
---|---|
Name | Description |
request |
IGetPageRequest
GetPageRequest message or plain object |
callback |
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.v3beta1.IGetPageRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Page>;
Calls GetPage.
Parameter | |
---|---|
Name | Description |
request |
IGetPageRequest
GetPageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Page> | Promise |
listPages(request, callback)
public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback): void;
Calls ListPages.
Parameters | |
---|---|
Name | Description |
request |
IListPagesRequest
ListPagesRequest message or plain object |
callback |
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.v3beta1.IListPagesRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListPagesResponse>;
Calls ListPages.
Parameter | |
---|---|
Name | Description |
request |
IListPagesRequest
ListPagesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.ListPagesResponse> | Promise |
updatePage(request, callback)
public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback): void;
Calls UpdatePage.
Parameters | |
---|---|
Name | Description |
request |
IUpdatePageRequest
UpdatePageRequest message or plain object |
callback |
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.v3beta1.IUpdatePageRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Page>;
Calls UpdatePage.
Parameter | |
---|---|
Name | Description |
request |
IUpdatePageRequest
UpdatePageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Page> | Promise |