Represents a Deployments
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.DeploymentsPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Deployments service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetDeploymentRequest
GetDeploymentRequest message or plain object |
callback |
GetDeploymentCallback
Node-style callback called with the error, if any, and Deployment |
Returns | |
---|---|
Type | Description |
void |
getDeployment(request)
public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): Promise<google.cloud.dialogflow.cx.v3.Deployment>;
Calls GetDeployment.
Parameter | |
---|---|
Name | Description |
request |
IGetDeploymentRequest
GetDeploymentRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListDeploymentsRequest
ListDeploymentsRequest message or plain object |
callback |
ListDeploymentsCallback
Node-style callback called with the error, if any, and ListDeploymentsResponse |
Returns | |
---|---|
Type | Description |
void |
listDeployments(request)
public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): Promise<google.cloud.dialogflow.cx.v3.ListDeploymentsResponse>;
Calls ListDeployments.
Parameter | |
---|---|
Name | Description |
request |
IListDeploymentsRequest
ListDeploymentsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.ListDeploymentsResponse> |
Promise |