/// <summary> /// Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. /// </summary> /// <param name="name"> /// Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. /// Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent /// ID&gt;/environments/&lt;Environment ID&gt;/deployments/&lt;Deployment ID&gt;`. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <Deployment> GetDeploymentAsync(DeploymentName name, st::CancellationToken cancellationToken) => GetDeploymentAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. /// </summary> /// <param name="name"> /// Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. /// Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent /// ID&gt;/environments/&lt;Environment ID&gt;/deployments/&lt;Deployment ID&gt;`. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <Deployment> GetDeploymentAsync(DeploymentName name, gaxgrpc::CallSettings callSettings = null) => GetDeploymentAsync(new GetDeploymentRequest { DeploymentName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), }, callSettings);