/// <summary>
        /// Creates a <see cref="MetricsV1Beta3Client"/> 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="MetricsV1Beta3Settings"/>.</param>
        /// <returns>The created <see cref="MetricsV1Beta3Client"/>.</returns>
        internal static MetricsV1Beta3Client Create(grpccore::CallInvoker callInvoker, MetricsV1Beta3Settings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

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

            _callGetJobMetrics = clientHelper.BuildApiCall <GetJobMetricsRequest, JobMetrics>(grpcClient.GetJobMetricsAsync, grpcClient.GetJobMetrics, effectiveSettings.GetJobMetricsSettings);
            Modify_ApiCall(ref _callGetJobMetrics);
            Modify_GetJobMetricsApiCall(ref _callGetJobMetrics);
            _callGetJobExecutionDetails = clientHelper.BuildApiCall <GetJobExecutionDetailsRequest, JobExecutionDetails>(grpcClient.GetJobExecutionDetailsAsync, grpcClient.GetJobExecutionDetails, effectiveSettings.GetJobExecutionDetailsSettings);
            Modify_ApiCall(ref _callGetJobExecutionDetails);
            Modify_GetJobExecutionDetailsApiCall(ref _callGetJobExecutionDetails);
            _callGetStageExecutionDetails = clientHelper.BuildApiCall <GetStageExecutionDetailsRequest, StageExecutionDetails>(grpcClient.GetStageExecutionDetailsAsync, grpcClient.GetStageExecutionDetails, effectiveSettings.GetStageExecutionDetailsSettings);
            Modify_ApiCall(ref _callGetStageExecutionDetails);
            Modify_GetStageExecutionDetailsApiCall(ref _callGetStageExecutionDetails);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnConstruction(MetricsV1Beta3.MetricsV1Beta3Client grpcClient, MetricsV1Beta3Settings effectiveSettings, gaxgrpc::ClientHelper clientHelper);