Environments

google.cloud.dialogflow.v2beta1. 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

createEnvironment(request, callback) → {undefined}

Calls CreateEnvironment.

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

CreateEnvironmentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Environments.CreateEnvironmentCallback

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

Returns:
Type Description
undefined

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

Calls CreateEnvironment.

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

CreateEnvironmentRequest message or plain object

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

Promise

deleteEnvironment(request, callback) → {undefined}

Calls DeleteEnvironment.

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

DeleteEnvironmentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.IGetEnvironmentRequest

GetEnvironmentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Environments.GetEnvironmentCallback

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

Returns:
Type Description
undefined

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

Calls GetEnvironment.

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

GetEnvironmentRequest message or plain object

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

Promise

getEnvironmentHistory(request, callback) → {undefined}

Calls GetEnvironmentHistory.

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

GetEnvironmentHistoryRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Environments.GetEnvironmentHistoryCallback

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

Returns:
Type Description
undefined

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

Calls GetEnvironmentHistory.

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

GetEnvironmentHistoryRequest message or plain object

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

Promise

listEnvironments(request, callback) → {undefined}

Calls ListEnvironments.

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

ListEnvironmentsRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Environments.ListEnvironmentsCallback

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

Returns:
Type Description
undefined

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

Calls ListEnvironments.

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

ListEnvironmentsRequest message or plain object

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

Promise

updateEnvironment(request, callback) → {undefined}

Calls UpdateEnvironment.

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

UpdateEnvironmentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Environments.UpdateEnvironmentCallback

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

Returns:
Type Description
undefined

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

Calls UpdateEnvironment.

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

UpdateEnvironmentRequest message or plain object

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

Promise

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

Type Definitions

CreateEnvironmentCallback(error, responseopt)

Callback as used by createEnvironment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Environment

DeleteEnvironmentCallback(error, responseopt)

Callback as used by 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 getEnvironment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Environment

GetEnvironmentHistoryCallback(error, responseopt)

Callback as used by getEnvironmentHistory.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

EnvironmentHistory

ListEnvironmentsCallback(error, responseopt)

Callback as used by listEnvironments.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListEnvironmentsResponse

UpdateEnvironmentCallback(error, responseopt)

Callback as used by updateEnvironment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Environment