private WorkflowsServiceV2BetaSettings(WorkflowsServiceV2BetaSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     RunPipelineSettings           = existing.RunPipelineSettings;
     RunPipelineOperationsSettings = existing.RunPipelineOperationsSettings.Clone();
     OnCopy(existing);
 }
        /// <summary>
        /// Constructs a client wrapper for the WorkflowsServiceV2Beta service, with the specified gRPC client and
        /// settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">
        /// The base <see cref="WorkflowsServiceV2BetaSettings"/> used within this client.
        /// </param>
        public WorkflowsServiceV2BetaClientImpl(WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient grpcClient, WorkflowsServiceV2BetaSettings settings)
        {
            GrpcClient = grpcClient;
            WorkflowsServiceV2BetaSettings effectiveSettings = settings ?? WorkflowsServiceV2BetaSettings.GetDefault();
            gaxgrpc::ClientHelper          clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            RunPipelineOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.RunPipelineOperationsSettings);
            _callRunPipeline            = clientHelper.BuildApiCall <RunPipelineRequest, lro::Operation>(grpcClient.RunPipelineAsync, grpcClient.RunPipeline, effectiveSettings.RunPipelineSettings).WithGoogleRequestParam("parent", request => request.Parent);
            Modify_ApiCall(ref _callRunPipeline);
            Modify_RunPipelineApiCall(ref _callRunPipeline);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnCopy(WorkflowsServiceV2BetaSettings existing);
 partial void OnConstruction(WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient grpcClient, WorkflowsServiceV2BetaSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
        /// <summary>
        /// Creates a <see cref="WorkflowsServiceV2BetaClient"/> 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="WorkflowsServiceV2BetaSettings"/>.</param>
        /// <returns>The created <see cref="WorkflowsServiceV2BetaClient"/>.</returns>
        internal static WorkflowsServiceV2BetaClient Create(grpccore::CallInvoker callInvoker, WorkflowsServiceV2BetaSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient grpcClient = new WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient(callInvoker);
            return(new WorkflowsServiceV2BetaClientImpl(grpcClient, settings));
        }