node_modules/@google-cloud/firestore/build/src/index.js
/**
     * A funnel for all non-streaming API requests, assigning a project ID where
     * necessary within the request options.
     *
     * @private
     * @param methodName Name of the Veneer API endpoint that takes a request
     * and GAX options.
     * @param request The Protobuf request to send.
     * @param requestTag A unique client-assigned identifier for this request.
     * @returns A Promise with the request result.
     */
A funnel for all non-streaming API requests, assigning a project ID where
necessary within the request options.

@private
@param methodName Name of the Veneer API endpoint that takes a request
and GAX options.
@param request The Protobuf request to send.
@param requestTag A unique client-assigned identifier for this request.
@returns A Promise with the request result.
A funnel for all non - streaming API requests assigning a project ID where necessary within the request options . @private @param methodName Name of the Veneer API endpoint that takes a request and GAX options . @param request The Protobuf request to send . @param requestTag A unique client - assigned identifier for this request . @returns A Promise with the request result .
request(methodName, request, requestTag) {
        const callOptions = this.createCallOptions();
        return this._clientPool.run(requestTag, async (gapicClient) => {
            try {
                logger_1.logger('Firestore.request', requestTag, 'Sending request: %j', request);
                const [result] = await gapicClient[methodName](request, callOptions);
                logger_1.logger('Firestore.request', requestTag, 'Received response: %j', result);
                this._lastSuccessfulRequest = new Date().getTime();
                return result;
            }
            catch (err) {
                logger_1.logger('Firestore.request', requestTag, 'Received error:', err);
                return Promise.reject(err);
            }
        });
    }
request ( methodName , request , requestTag ) { const callOptions = this . createCallOptions ( ) ; return this . _clientPool . run ( requestTag , async ( gapicClient ) => { try { logger_1 . logger ( 'Firestore.request' , requestTag , 'Sending request: %j' , request ) ; const [ result ] = await gapicClient [ methodName ] ( request , callOptions ) ; logger_1 . logger ( 'Firestore.request' , requestTag , 'Received response: %j' , result ) ; this . _lastSuccessfulRequest = new Date ( ) . getTime ( ) ; return result ; } catch ( err ) { logger_1 . logger ( 'Firestore.request' , requestTag , 'Received error:' , err ) ; return Promise . reject ( err ) ; } } ) ; }
A funnel for all non-streaming API requests, assigning a project ID where
 necessary within the request options.
A funnel for all non - streaming API requests assigning a project ID where necessary within the request options .