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

            _callQueryDriveActivity = clientHelper.BuildApiCall <QueryDriveActivityRequest, QueryDriveActivityResponse>(grpcClient.QueryDriveActivityAsync, grpcClient.QueryDriveActivity, effectiveSettings.QueryDriveActivitySettings);
            Modify_ApiCall(ref _callQueryDriveActivity);
            Modify_QueryDriveActivityApiCall(ref _callQueryDriveActivity);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
        /// <summary>
        /// Creates a <see cref="DriveActivityServiceClient"/> 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="DriveActivityServiceSettings"/>.</param>
        /// <returns>The created <see cref="DriveActivityServiceClient"/>.</returns>
        internal static DriveActivityServiceClient Create(grpccore::CallInvoker callInvoker, DriveActivityServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            DriveActivityService.DriveActivityServiceClient grpcClient = new DriveActivityService.DriveActivityServiceClient(callInvoker);
            return(new DriveActivityServiceClientImpl(grpcClient, settings));
        }
 partial void OnConstruction(DriveActivityService.DriveActivityServiceClient grpcClient, DriveActivityServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);