Constructor
new Versions(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Versions 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
compareVersions(request, callback) → {undefined}
Calls CompareVersions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest |
CompareVersionsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersionsCallback |
Node-style callback called with the error, if any, and CompareVersionsResponse |
Returns:
Type | Description |
---|---|
undefined |
compareVersions(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse>}
Calls CompareVersions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest |
CompareVersionsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> |
Promise |
createVersion(request, callback) → {undefined}
Calls CreateVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest |
CreateVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
createVersion(request) → {Promise.<google.longrunning.Operation>}
Calls CreateVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest |
CreateVersionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
deleteVersion(request, callback) → {undefined}
Calls DeleteVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest |
DeleteVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
deleteVersion(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest |
DeleteVersionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
getVersion(request, callback) → {undefined}
Calls GetVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest |
GetVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback |
Node-style callback called with the error, if any, and Version |
Returns:
Type | Description |
---|---|
undefined |
getVersion(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Version>}
Calls GetVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest |
GetVersionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.Version> |
Promise |
listVersions(request, callback) → {undefined}
Calls ListVersions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest |
ListVersionsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback |
Node-style callback called with the error, if any, and ListVersionsResponse |
Returns:
Type | Description |
---|---|
undefined |
listVersions(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse>}
Calls ListVersions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest |
ListVersionsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse> |
Promise |
loadVersion(request, callback) → {undefined}
Calls LoadVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest |
LoadVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
loadVersion(request) → {Promise.<google.longrunning.Operation>}
Calls LoadVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest |
LoadVersionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
updateVersion(request, callback) → {undefined}
Calls UpdateVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest |
UpdateVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback |
Node-style callback called with the error, if any, and Version |
Returns:
Type | Description |
---|---|
undefined |
updateVersion(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Version>}
Calls UpdateVersion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest |
UpdateVersionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.Version> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Versions}
Creates new Versions 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 |
---|---|
Versions |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CompareVersionsCallback(error, responseopt)
Callback as used by compareVersions.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse |
<optional> |
CompareVersionsResponse |
CreateVersionCallback(error, responseopt)
Callback as used by createVersion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
DeleteVersionCallback(error, responseopt)
Callback as used by deleteVersion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
GetVersionCallback(error, responseopt)
Callback as used by getVersion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.Version |
<optional> |
Version |
ListVersionsCallback(error, responseopt)
Callback as used by listVersions.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse |
<optional> |
ListVersionsResponse |
LoadVersionCallback(error, responseopt)
Callback as used by loadVersion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
UpdateVersionCallback(error, responseopt)
Callback as used by updateVersion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.Version |
<optional> |
Version |