function Service(rpcImpl, requestDelimited, responseDelimited) {
        if (typeof rpcImpl !== "function")
          throw TypeError("rpcImpl must be a function");

        util.EventEmitter.call(this);

        /**
         * RPC implementation. Becomes `null` once the service is ended.
         * @type {RPCImpl|null}
         */
        this.rpcImpl = rpcImpl;

        /**
         * Whether requests are length-delimited.
         * @type {boolean}
         */
        this.requestDelimited = Boolean(requestDelimited);

        /**
         * Whether responses are length-delimited.
         * @type {boolean}
         */
        this.responseDelimited = Boolean(responseDelimited);
      }
/**
       * Constructs a new RPC service instance.
       * @classdesc An RPC service as returned by {@link Service#create}.
       * @exports rpc.Service
       * @extends util.EventEmitter
       * @constructor
       * @param {RPCImpl} rpcImpl RPC implementation
       * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
       * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
       */
Constructs a new RPC service instance.
@classdesc An RPC service as returned by  Service#create.
Constructs a new RPC service instance . @classdesc An RPC service as returned by Service#create .
function Service(rpcImpl, requestDelimited, responseDelimited) {
        if (typeof rpcImpl !== "function")
          throw TypeError("rpcImpl must be a function");
        util.EventEmitter.call(this);
        this.rpcImpl = rpcImpl;
        this.requestDelimited = Boolean(requestDelimited);
        this.responseDelimited = Boolean(responseDelimited);
      }
function Service ( rpcImpl , requestDelimited , responseDelimited ) { if ( typeof rpcImpl !== "function" ) throw TypeError ( "rpcImpl must be a function" ) ; util . EventEmitter . call ( this ) ; this . rpcImpl = rpcImpl ; this . requestDelimited = Boolean ( requestDelimited ) ; this . responseDelimited = Boolean ( responseDelimited ) ; }
Constructs a new RPC service instance.
Constructs a new RPC service instance .
/**
         * RPC implementation. Becomes `null` once the service is ended.
         * @type {RPCImpl|null}
         */ /**
         * Whether requests are length-delimited.
         * @type {boolean}
         */ /**
         * Whether responses are length-delimited.
         * @type {boolean}
         */