Class protos.google.cloud.dialogflow.cx.v3.Deployments (4.3.1)

Represents a Deployments

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.Deployments

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Deployments service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Deployments;

Creates new Deployments service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Deployments

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

getDeployment(request, callback)

public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, callback: google.cloud.dialogflow.cx.v3.Deployments.GetDeploymentCallback): void;

Calls GetDeployment.

Parameters
NameDescription
request IGetDeploymentRequest

GetDeploymentRequest message or plain object

callback GetDeploymentCallback

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

Returns
TypeDescription
void

getDeployment(request)

public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): Promise<google.cloud.dialogflow.cx.v3.Deployment>;

Calls GetDeployment.

Parameter
NameDescription
request IGetDeploymentRequest

GetDeploymentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.Deployment>

Promise

listDeployments(request, callback)

public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, callback: google.cloud.dialogflow.cx.v3.Deployments.ListDeploymentsCallback): void;

Calls ListDeployments.

Parameters
NameDescription
request IListDeploymentsRequest

ListDeploymentsRequest message or plain object

callback ListDeploymentsCallback

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

Returns
TypeDescription
void

listDeployments(request)

public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): Promise<google.cloud.dialogflow.cx.v3.ListDeploymentsResponse>;

Calls ListDeployments.

Parameter
NameDescription
request IListDeploymentsRequest

ListDeploymentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.ListDeploymentsResponse>

Promise