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

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

            _callListCatalogs = clientHelper.BuildApiCall <ListCatalogsRequest, ListCatalogsResponse>(grpcClient.ListCatalogsAsync, grpcClient.ListCatalogs, effectiveSettings.ListCatalogsSettings).WithGoogleRequestParam("parent", request => request.Parent);
            Modify_ApiCall(ref _callListCatalogs);
            Modify_ListCatalogsApiCall(ref _callListCatalogs);
            _callUpdateCatalog = clientHelper.BuildApiCall <UpdateCatalogRequest, Catalog>(grpcClient.UpdateCatalogAsync, grpcClient.UpdateCatalog, effectiveSettings.UpdateCatalogSettings).WithGoogleRequestParam("catalog.name", request => request.Catalog?.Name);
            Modify_ApiCall(ref _callUpdateCatalog);
            Modify_UpdateCatalogApiCall(ref _callUpdateCatalog);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnConstruction(CatalogService.CatalogServiceClient grpcClient, CatalogServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);