#pragma warning restore CS0612

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

            _callDeprecatedFieldMethod = clientHelper.BuildApiCall <DeprecatedFieldRequest, Response>(grpcClient.DeprecatedFieldMethodAsync, grpcClient.DeprecatedFieldMethod, effectiveSettings.DeprecatedFieldMethodSettings);
            Modify_ApiCall(ref _callDeprecatedFieldMethod);
            Modify_DeprecatedFieldMethodApiCall(ref _callDeprecatedFieldMethod);
#pragma warning disable CS0612
            _callDeprecatedMessageMethod = clientHelper.BuildApiCall <DeprecatedMessageRequest, Response>(grpcClient.DeprecatedMessageMethodAsync, grpcClient.DeprecatedMessageMethod, effectiveSettings.DeprecatedMessageMethodSettings);
#pragma warning restore CS0612
            Modify_ApiCall(ref _callDeprecatedMessageMethod);
            Modify_DeprecatedMessageMethodApiCall(ref _callDeprecatedMessageMethod);
#pragma warning disable CS0612
            _callDeprecatedMethod = clientHelper.BuildApiCall <Request, Response>(grpcClient.DeprecatedMethodAsync, grpcClient.DeprecatedMethod, effectiveSettings.DeprecatedMethodSettings);
#pragma warning restore CS0612
            Modify_ApiCall(ref _callDeprecatedMethod);
            Modify_DeprecatedMethodApiCall(ref _callDeprecatedMethod);
#pragma warning disable CS0612
            _callDeprecatedResponseMethod = clientHelper.BuildApiCall <Request, DeprecatedMessageResponse>(grpcClient.DeprecatedResponseMethodAsync, grpcClient.DeprecatedResponseMethod, effectiveSettings.DeprecatedResponseMethodSettings);
#pragma warning restore CS0612
            Modify_ApiCall(ref _callDeprecatedResponseMethod);
            Modify_DeprecatedResponseMethodApiCall(ref _callDeprecatedResponseMethod);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 private DeprecatedSettings(DeprecatedSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     DeprecatedFieldMethodSettings    = existing.DeprecatedFieldMethodSettings;
     DeprecatedMessageMethodSettings  = existing.DeprecatedMessageMethodSettings;
     DeprecatedMethodSettings         = existing.DeprecatedMethodSettings;
     DeprecatedResponseMethodSettings = existing.DeprecatedResponseMethodSettings;
     OnCopy(existing);
 }
        /// <summary>
        /// Creates a <see cref="DeprecatedClient"/> 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="DeprecatedSettings"/>.</param>
        /// <returns>The created <see cref="DeprecatedClient"/>.</returns>
        internal static DeprecatedClient Create(grpccore::CallInvoker callInvoker, DeprecatedSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            Deprecated.DeprecatedClient grpcClient = new Deprecated.DeprecatedClient(callInvoker);
            return(new DeprecatedClientImpl(grpcClient, settings));
        }
 partial void OnCopy(DeprecatedSettings existing);
#pragma warning restore CS0612

        partial void OnConstruction(Deprecated.DeprecatedClient grpcClient, DeprecatedSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);