/// <summary>
        /// Constructs a client wrapper for the JobsV1Beta3 service, with the specified gRPC client and settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="JobsV1Beta3Settings"/> used within this client.</param>
        public JobsV1Beta3ClientImpl(JobsV1Beta3.JobsV1Beta3Client grpcClient, JobsV1Beta3Settings settings)
        {
            GrpcClient = grpcClient;
            JobsV1Beta3Settings   effectiveSettings = settings ?? JobsV1Beta3Settings.GetDefault();
            gaxgrpc::ClientHelper clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            _callCreateJob = clientHelper.BuildApiCall <CreateJobRequest, Job>(grpcClient.CreateJobAsync, grpcClient.CreateJob, effectiveSettings.CreateJobSettings);
            Modify_ApiCall(ref _callCreateJob);
            Modify_CreateJobApiCall(ref _callCreateJob);
            _callGetJob = clientHelper.BuildApiCall <GetJobRequest, Job>(grpcClient.GetJobAsync, grpcClient.GetJob, effectiveSettings.GetJobSettings);
            Modify_ApiCall(ref _callGetJob);
            Modify_GetJobApiCall(ref _callGetJob);
            _callUpdateJob = clientHelper.BuildApiCall <UpdateJobRequest, Job>(grpcClient.UpdateJobAsync, grpcClient.UpdateJob, effectiveSettings.UpdateJobSettings);
            Modify_ApiCall(ref _callUpdateJob);
            Modify_UpdateJobApiCall(ref _callUpdateJob);
            _callListJobs = clientHelper.BuildApiCall <ListJobsRequest, ListJobsResponse>(grpcClient.ListJobsAsync, grpcClient.ListJobs, effectiveSettings.ListJobsSettings);
            Modify_ApiCall(ref _callListJobs);
            Modify_ListJobsApiCall(ref _callListJobs);
            _callAggregatedListJobs = clientHelper.BuildApiCall <ListJobsRequest, ListJobsResponse>(grpcClient.AggregatedListJobsAsync, grpcClient.AggregatedListJobs, effectiveSettings.AggregatedListJobsSettings);
            Modify_ApiCall(ref _callAggregatedListJobs);
            Modify_AggregatedListJobsApiCall(ref _callAggregatedListJobs);
            _callCheckActiveJobs = clientHelper.BuildApiCall <CheckActiveJobsRequest, CheckActiveJobsResponse>(grpcClient.CheckActiveJobsAsync, grpcClient.CheckActiveJobs, effectiveSettings.CheckActiveJobsSettings);
            Modify_ApiCall(ref _callCheckActiveJobs);
            Modify_CheckActiveJobsApiCall(ref _callCheckActiveJobs);
            _callSnapshotJob = clientHelper.BuildApiCall <SnapshotJobRequest, Snapshot>(grpcClient.SnapshotJobAsync, grpcClient.SnapshotJob, effectiveSettings.SnapshotJobSettings);
            Modify_ApiCall(ref _callSnapshotJob);
            Modify_SnapshotJobApiCall(ref _callSnapshotJob);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 private JobsV1Beta3Settings(JobsV1Beta3Settings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     CreateJobSettings          = existing.CreateJobSettings;
     GetJobSettings             = existing.GetJobSettings;
     UpdateJobSettings          = existing.UpdateJobSettings;
     ListJobsSettings           = existing.ListJobsSettings;
     AggregatedListJobsSettings = existing.AggregatedListJobsSettings;
     CheckActiveJobsSettings    = existing.CheckActiveJobsSettings;
     SnapshotJobSettings        = existing.SnapshotJobSettings;
     OnCopy(existing);
 }
        /// <summary>
        /// Creates a <see cref="JobsV1Beta3Client"/> 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="JobsV1Beta3Settings"/>.</param>
        /// <returns>The created <see cref="JobsV1Beta3Client"/>.</returns>
        internal static JobsV1Beta3Client Create(grpccore::CallInvoker callInvoker, JobsV1Beta3Settings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            JobsV1Beta3.JobsV1Beta3Client grpcClient = new JobsV1Beta3.JobsV1Beta3Client(callInvoker);
            return(new JobsV1Beta3ClientImpl(grpcClient, settings));
        }
 partial void OnConstruction(JobsV1Beta3.JobsV1Beta3Client grpcClient, JobsV1Beta3Settings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
 partial void OnCopy(JobsV1Beta3Settings existing);