# Class: RPCMethod

## ProtoBuf.Reflect.Service. RPCMethod

#### new RPCMethod(svc, name, request, response, options)

  RPC service method.

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `svc` | ProtoBuf.Reflect.Service |  | Service
  `name` | string |  | Method name
  `request` | string |  | Request message name
  `response` | string |  | Response message name
  `options` | Object.<string,*> | <optional> | Options

### Extends

- ProtoBuf.Reflect.Service.Method

### Members

#### name :string

  Object name in namespace.

  Inherited From:
    - ProtoBuf.Reflect.Service.Method#name

#### options :Object.<string, *>

  Options.

  Inherited From:
    - ProtoBuf.Reflect.Service.Method#options

#### parent :ProtoBuf.Reflect.T|null

  Parent object.

  Inherited From:
    - ProtoBuf.Reflect.Service.Method#parent

#### requestName :string

  Request message name.

#### resolvedRequestType :ProtoBuf.Reflect.Message

  Resolved request message type.

#### resolvedResponseType :ProtoBuf.Reflect.Message

  Resolved response message type.

#### responseName :string

  Response message name.

### Methods

#### build()

  Builds this type.

  Inherited From:
    - ProtoBuf.Reflect.Service.Method#build

  ##### Throws:

  If this type cannot be built directly
  Type
    Error

#### buildOpt() → {Object.<string,*>}

  Builds the method's '$options' property.

  Inherited From:
    - ProtoBuf.Reflect.Service.Method#buildOpt

  ##### Returns:

  Type
    Object.<string,*>

#### fqn() → {string}

  Returns the fully qualified name of this object.

  Inherited From:
    - ProtoBuf.Reflect.Service.Method#fqn

  ##### Returns:

  Fully qualified name as of ".PATH.TO.THIS"

  Type
    string

#### toString(includeClass)

  Returns a string representation of this Reflect object (its fully qualified name).

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `includeClass` | boolean | <optional> | Set to true to include the class name. Defaults to false.

  Inherited From:
    - ProtoBuf.Reflect.Service.Method#toString

  ##### Returns:

  String representation