function Method(
        name,
        type,
        requestType,
        responseType,
        requestStream,
        responseStream,
        options,
        comment,
        parsedOptions
      ) {
        /* istanbul ignore next */
        if (util.isObject(requestStream)) {
          options = requestStream;
          requestStream = responseStream = undefined;
        } else if (util.isObject(responseStream)) {
          options = responseStream;
          responseStream = undefined;
        }

        /* istanbul ignore if */
        if (!(type === undefined || util.isString(type)))
          throw TypeError("type must be a string");

        /* istanbul ignore if */
        if (!util.isString(requestType))
          throw TypeError("requestType must be a string");

        /* istanbul ignore if */
        if (!util.isString(responseType))
          throw TypeError("responseType must be a string");

        ReflectionObject.call(this, name, options);

        /**
         * Method type.
         * @type {string}
         */
        this.type = type || "rpc"; // toJSON

        /**
         * Request type.
         * @type {string}
         */
        this.requestType = requestType; // toJSON, marker

        /**
         * Whether requests are streamed or not.
         * @type {boolean|undefined}
         */
        this.requestStream = requestStream ? true : undefined; // toJSON

        /**
         * Response type.
         * @type {string}
         */
        this.responseType = responseType; // toJSON

        /**
         * Whether responses are streamed or not.
         * @type {boolean|undefined}
         */
        this.responseStream = responseStream ? true : undefined; // toJSON

        /**
         * Resolved request type.
         * @type {Type|null}
         */
        this.resolvedRequestType = null;

        /**
         * Resolved response type.
         * @type {Type|null}
         */
        this.resolvedResponseType = null;

        /**
         * Comment for this method
         * @type {string|null}
         */
        this.comment = comment;

        /**
         * Options properly parsed into an object
         */
        this.parsedOptions = parsedOptions;
      }
/**
       * Constructs a new service method instance.
       * @classdesc Reflected service method.
       * @extends ReflectionObject
       * @constructor
       * @param {string} name Method name
       * @param {string|undefined} type Method type, usually `"rpc"`
       * @param {string} requestType Request message type
       * @param {string} responseType Response message type
       * @param {boolean|Object.<string,*>} [requestStream] Whether the request is streamed
       * @param {boolean|Object.<string,*>} [responseStream] Whether the response is streamed
       * @param {Object.<string,*>} [options] Declared options
       * @param {string} [comment] The comment for this method
       * @param {Object.<string,*>} [parsedOptions] Declared options, properly parsed into an object
       */
Constructs a new service method instance.
@classdesc Reflected service method.
Constructs a new service method instance . @classdesc Reflected service method .
function Method(
        name,
        type,
        requestType,
        responseType,
        requestStream,
        responseStream,
        options,
        comment,
        parsedOptions
      ) {
        if (util.isObject(requestStream)) {
          options = requestStream;
          requestStream = responseStream = undefined;
        } else if (util.isObject(responseStream)) {
          options = responseStream;
          responseStream = undefined;
        }
        if (!(type === undefined || util.isString(type)))
          throw TypeError("type must be a string");
        if (!util.isString(requestType))
          throw TypeError("requestType must be a string");
        if (!util.isString(responseType))
          throw TypeError("responseType must be a string");
        ReflectionObject.call(this, name, options);
        this.type = type || "rpc"; 
        this.requestType = requestType; , marker
        this.requestStream = requestStream ? true : undefined; 
        this.responseType = responseType; 
        this.responseStream = responseStream ? true : undefined; 
        this.resolvedRequestType = null;
        this.resolvedResponseType = null;
        this.comment = comment;
        this.parsedOptions = parsedOptions;
      }
function Method ( name , type , requestType , responseType , requestStream , responseStream , options , comment , parsedOptions ) { if ( util . isObject ( requestStream ) ) { options = requestStream ; requestStream = responseStream = undefined ; } else if ( util . isObject ( responseStream ) ) { options = responseStream ; responseStream = undefined ; } if ( ! ( type === undefined || util . isString ( type ) ) ) throw TypeError ( "type must be a string" ) ; if ( ! util . isString ( requestType ) ) throw TypeError ( "requestType must be a string" ) ; if ( ! util . isString ( responseType ) ) throw TypeError ( "responseType must be a string" ) ; ReflectionObject . call ( this , name , options ) ; this . type = type || "rpc" ; this . requestType = requestType ; this . requestStream = requestStream ? true : undefined ; this . responseType = responseType ; this . responseStream = responseStream ? true : undefined ; this . resolvedRequestType = null ; this . resolvedResponseType = null ; this . comment = comment ; this . parsedOptions = parsedOptions ; }
Constructs a new service method instance.
Constructs a new service method instance .
/* istanbul ignore next */ /* istanbul ignore if */ /* istanbul ignore if */ /* istanbul ignore if */ /**
         * Method type.
         * @type {string}
         */ // toJSON /**
         * Request type.
         * @type {string}
         */ // toJSON, marker /**
         * Whether requests are streamed or not.
         * @type {boolean|undefined}
         */ // toJSON /**
         * Response type.
         * @type {string}
         */ // toJSON /**
         * Whether responses are streamed or not.
         * @type {boolean|undefined}
         */ // toJSON /**
         * Resolved request type.
         * @type {Type|null}
         */ /**
         * Resolved response type.
         * @type {Type|null}
         */ /**
         * Comment for this method
         * @type {string|null}
         */ /**
         * Options properly parsed into an object
         */