Environments

google.cloud.dialogflow.v2. Environments

Represents an Environments

Constructor

new Environments(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Environments 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) → {Environments}

Creates new Environments 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
Environments

RPC service. Useful where requests and/or responses are streamed.

createEnvironment(request, callback) → {undefined}

Calls CreateEnvironment.

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

CreateEnvironmentRequest message or plain object

callback google.cloud.dialogflow.v2.Environments.CreateEnvironmentCallback

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

Returns:
Type Description
undefined

createEnvironment(request) → {Promise.<google.cloud.dialogflow.v2.Environment>}

Calls CreateEnvironment.

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

CreateEnvironmentRequest message or plain object

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

Promise

deleteEnvironment(request, callback) → {undefined}

Calls DeleteEnvironment.

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

DeleteEnvironmentRequest message or plain object

callback google.cloud.dialogflow.v2.Environments.DeleteEnvironmentCallback

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

Returns:
Type Description
undefined

deleteEnvironment(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteEnvironment.

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

DeleteEnvironmentRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getEnvironment(request, callback) → {undefined}

Calls GetEnvironment.

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

GetEnvironmentRequest message or plain object

callback google.cloud.dialogflow.v2.Environments.GetEnvironmentCallback

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

Returns:
Type Description
undefined

getEnvironment(request) → {Promise.<google.cloud.dialogflow.v2.Environment>}

Calls GetEnvironment.

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

GetEnvironmentRequest message or plain object

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

Promise

getEnvironmentHistory(request, callback) → {undefined}

Calls GetEnvironmentHistory.

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

GetEnvironmentHistoryRequest message or plain object

callback google.cloud.dialogflow.v2.Environments.GetEnvironmentHistoryCallback

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

Returns:
Type Description
undefined

getEnvironmentHistory(request) → {Promise.<google.cloud.dialogflow.v2.EnvironmentHistory>}

Calls GetEnvironmentHistory.

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

GetEnvironmentHistoryRequest message or plain object

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

Promise

listEnvironments(request, callback) → {undefined}

Calls ListEnvironments.

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

ListEnvironmentsRequest message or plain object

callback google.cloud.dialogflow.v2.Environments.ListEnvironmentsCallback

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

Returns:
Type Description
undefined

listEnvironments(request) → {Promise.<google.cloud.dialogflow.v2.ListEnvironmentsResponse>}

Calls ListEnvironments.

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

ListEnvironmentsRequest message or plain object

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

Promise

updateEnvironment(request, callback) → {undefined}

Calls UpdateEnvironment.

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

UpdateEnvironmentRequest message or plain object

callback google.cloud.dialogflow.v2.Environments.UpdateEnvironmentCallback

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

Returns:
Type Description
undefined

updateEnvironment(request) → {Promise.<google.cloud.dialogflow.v2.Environment>}

Calls UpdateEnvironment.

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

UpdateEnvironmentRequest message or plain object

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

Promise

Type Definitions

CreateEnvironmentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Environments#createEnvironment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Environment

DeleteEnvironmentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Environments#deleteEnvironment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetEnvironmentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Environments#getEnvironment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Environment

GetEnvironmentHistoryCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Environments#getEnvironmentHistory.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

EnvironmentHistory

ListEnvironmentsCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Environments#listEnvironments.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListEnvironmentsResponse

UpdateEnvironmentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Environments#updateEnvironment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Environment