Versions

google.cloud.dialogflow.v2. Versions

Represents a Versions

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

(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.

createVersion(request, callback) → {undefined}

Calls CreateVersion.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.ICreateVersionRequest

CreateVersionRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.CreateVersionCallback

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

Returns:
Type Description
undefined

createVersion(request) → {Promise.<google.cloud.dialogflow.v2.Version>}

Calls CreateVersion.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.ICreateVersionRequest

CreateVersionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.Version>

Promise

deleteVersion(request, callback) → {undefined}

Calls DeleteVersion.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IDeleteVersionRequest

DeleteVersionRequest message or plain object

callback google.cloud.dialogflow.v2.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.v2.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.v2.IGetVersionRequest

GetVersionRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.GetVersionCallback

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

Returns:
Type Description
undefined

getVersion(request) → {Promise.<google.cloud.dialogflow.v2.Version>}

Calls GetVersion.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IGetVersionRequest

GetVersionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.Version>

Promise

listVersions(request, callback) → {undefined}

Calls ListVersions.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IListVersionsRequest

ListVersionsRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.ListVersionsCallback

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

Returns:
Type Description
undefined

listVersions(request) → {Promise.<google.cloud.dialogflow.v2.ListVersionsResponse>}

Calls ListVersions.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IListVersionsRequest

ListVersionsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.ListVersionsResponse>

Promise

updateVersion(request, callback) → {undefined}

Calls UpdateVersion.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IUpdateVersionRequest

UpdateVersionRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.UpdateVersionCallback

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

Returns:
Type Description
undefined

updateVersion(request) → {Promise.<google.cloud.dialogflow.v2.Version>}

Calls UpdateVersion.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IUpdateVersionRequest

UpdateVersionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2.Version>

Promise

Type Definitions

CreateVersionCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Versions#createVersion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Version <optional>

Version

DeleteVersionCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Versions#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 google.cloud.dialogflow.v2.Versions#getVersion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Version <optional>

Version

ListVersionsCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Versions#listVersions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.ListVersionsResponse <optional>

ListVersionsResponse

UpdateVersionCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Versions#updateVersion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Version <optional>

Version