Constructor
new Pages(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Pages service.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| rpcImpl | $protobuf.RPCImpl | RPC implementation | ||
| requestDelimited | boolean | <optional> | false | Whether requests are length-delimited | 
| responseDelimited | boolean | <optional> | false | Whether responses are length-delimited | 
Extends
- $protobuf.rpc.Service
Methods
createPage(request, callback) → {undefined}
Calls CreatePage.
Parameters:
| Name | Type | 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 | 
|---|---|
| undefined | 
createPage(request) → {Promise.<google.cloud.dialogflow.cx.v3.Page>}
Calls CreatePage.
Parameters:
| Name | Type | 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) → {undefined}
Calls DeletePage.
Parameters:
| Name | Type | 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 | 
|---|---|
| undefined | 
deletePage(request) → {Promise.<google.protobuf.Empty>}
Calls DeletePage.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IDeletePageRequest | DeletePageRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.protobuf.Empty> | Promise | 
getPage(request, callback) → {undefined}
Calls GetPage.
Parameters:
| Name | Type | 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 | 
|---|---|
| undefined | 
getPage(request) → {Promise.<google.cloud.dialogflow.cx.v3.Page>}
Calls GetPage.
Parameters:
| Name | Type | 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) → {undefined}
Calls ListPages.
Parameters:
| Name | Type | 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 | 
|---|---|
| undefined | 
listPages(request) → {Promise.<google.cloud.dialogflow.cx.v3.ListPagesResponse>}
Calls ListPages.
Parameters:
| Name | Type | 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) → {undefined}
Calls UpdatePage.
Parameters:
| Name | Type | 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 | 
|---|---|
| undefined | 
updatePage(request) → {Promise.<google.cloud.dialogflow.cx.v3.Page>}
Calls UpdatePage.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IUpdatePageRequest | UpdatePageRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3.Page> | Promise | 
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Pages}
Creates new Pages service using the specified rpc implementation.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| rpcImpl | $protobuf.RPCImpl | RPC implementation | ||
| requestDelimited | boolean | <optional> | false | Whether requests are length-delimited | 
| responseDelimited | boolean | <optional> | false | Whether responses are length-delimited | 
Returns:
| Type | Description | 
|---|---|
| Pages | RPC service. Useful where requests and/or responses are streamed. | 
Type Definitions
CreatePageCallback(error, responseopt)
Callback as used by createPage.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.Page | <optional> | Page | 
DeletePageCallback(error, responseopt)
Callback as used by deletePage.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.protobuf.Empty | <optional> | Empty | 
GetPageCallback(error, responseopt)
Callback as used by getPage.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.Page | <optional> | Page | 
ListPagesCallback(error, responseopt)
Callback as used by listPages.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.ListPagesResponse | <optional> | ListPagesResponse | 
UpdatePageCallback(error, responseopt)
Callback as used by updatePage.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.Page | <optional> | Page |