/// <summary>
        /// Creates a <see cref="DeploymentsClient"/> which uses the specified call invoker for remote operations.
        /// </summary>
        /// <param name="callInvoker">
        /// The <see cref="grpccore::CallInvoker"/> for remote operations. Must not be null.
        /// </param>
        /// <param name="settings">Optional <see cref="DeploymentsSettings"/>.</param>
        /// <returns>The created <see cref="DeploymentsClient"/>.</returns>
        internal static DeploymentsClient Create(grpccore::CallInvoker callInvoker, DeploymentsSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            Deployments.DeploymentsClient grpcClient = new Deployments.DeploymentsClient(callInvoker);
            return(new DeploymentsClientImpl(grpcClient, settings));
        }
        /// <summary>
        /// Constructs a client wrapper for the Deployments service, with the specified gRPC client and settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="DeploymentsSettings"/> used within this client.</param>
        public DeploymentsClientImpl(Deployments.DeploymentsClient grpcClient, DeploymentsSettings settings)
        {
            GrpcClient = grpcClient;
            DeploymentsSettings   effectiveSettings = settings ?? DeploymentsSettings.GetDefault();
            gaxgrpc::ClientHelper clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            _callListDeployments = clientHelper.BuildApiCall <ListDeploymentsRequest, ListDeploymentsResponse>(grpcClient.ListDeploymentsAsync, grpcClient.ListDeployments, effectiveSettings.ListDeploymentsSettings).WithGoogleRequestParam("parent", request => request.Parent);
            Modify_ApiCall(ref _callListDeployments);
            Modify_ListDeploymentsApiCall(ref _callListDeployments);
            _callGetDeployment = clientHelper.BuildApiCall <GetDeploymentRequest, Deployment>(grpcClient.GetDeploymentAsync, grpcClient.GetDeployment, effectiveSettings.GetDeploymentSettings).WithGoogleRequestParam("name", request => request.Name);
            Modify_ApiCall(ref _callGetDeployment);
            Modify_GetDeploymentApiCall(ref _callGetDeployment);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnConstruction(Deployments.DeploymentsClient grpcClient, DeploymentsSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);