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

            _callListAuthorizedDomains = clientHelper.BuildApiCall <ListAuthorizedDomainsRequest, ListAuthorizedDomainsResponse>(grpcClient.ListAuthorizedDomainsAsync, grpcClient.ListAuthorizedDomains, effectiveSettings.ListAuthorizedDomainsSettings).WithGoogleRequestParam("parent", request => request.Parent);
            Modify_ApiCall(ref _callListAuthorizedDomains);
            Modify_ListAuthorizedDomainsApiCall(ref _callListAuthorizedDomains);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnCopy(AuthorizedDomainsSettings existing);
 private AuthorizedDomainsSettings(AuthorizedDomainsSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     ListAuthorizedDomainsSettings = existing.ListAuthorizedDomainsSettings;
     OnCopy(existing);
 }
 partial void OnConstruction(AuthorizedDomains.AuthorizedDomainsClient grpcClient, AuthorizedDomainsSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
        /// <summary>
        /// Creates a <see cref="AuthorizedDomainsClient"/> 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="AuthorizedDomainsSettings"/>.</param>
        /// <returns>The created <see cref="AuthorizedDomainsClient"/>.</returns>
        internal static AuthorizedDomainsClient Create(grpccore::CallInvoker callInvoker, AuthorizedDomainsSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            AuthorizedDomains.AuthorizedDomainsClient grpcClient = new AuthorizedDomains.AuthorizedDomainsClient(callInvoker);
            return(new AuthorizedDomainsClientImpl(grpcClient, settings));
        }