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

            _callListJobMessages = clientHelper.BuildApiCall <ListJobMessagesRequest, ListJobMessagesResponse>(grpcClient.ListJobMessagesAsync, grpcClient.ListJobMessages, effectiveSettings.ListJobMessagesSettings);
            Modify_ApiCall(ref _callListJobMessages);
            Modify_ListJobMessagesApiCall(ref _callListJobMessages);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnCopy(MessagesV1Beta3Settings existing);
 private MessagesV1Beta3Settings(MessagesV1Beta3Settings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     ListJobMessagesSettings = existing.ListJobMessagesSettings;
     OnCopy(existing);
 }
 partial void OnConstruction(MessagesV1Beta3.MessagesV1Beta3Client grpcClient, MessagesV1Beta3Settings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
        /// <summary>
        /// Creates a <see cref="MessagesV1Beta3Client"/> 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="MessagesV1Beta3Settings"/>.</param>
        /// <returns>The created <see cref="MessagesV1Beta3Client"/>.</returns>
        internal static MessagesV1Beta3Client Create(grpccore::CallInvoker callInvoker, MessagesV1Beta3Settings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            MessagesV1Beta3.MessagesV1Beta3Client grpcClient = new MessagesV1Beta3.MessagesV1Beta3Client(callInvoker);
            return(new MessagesV1Beta3ClientImpl(grpcClient, settings));
        }