new RPCMethod(buildernon-null, svcnon-null, name, request, response, request_stream, response_stream, optionsopt)
RPC service method.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
builder |
ProtoBuf.Builder | Builder reference |
|
svc |
ProtoBuf.Reflect.Service | Service |
|
name |
string | Method name |
|
request |
string | Request message name |
|
response |
string | Response message name |
|
request_stream |
boolean | Whether requests are streamed |
|
response_stream |
boolean | Whether responses are streamed |
|
options |
Object.<string, *> |
<optional> |
Options |
- Source:
Extends
Members
(non-null) builder :ProtoBuf.Builder
Builder reference.
Type:
- Inherited From:
- Source:
className :string
Fully qualified class name
Type:
- string
- Overrides:
- Source:
name :string
Object name in namespace.
Type:
- string
- Inherited From:
- Source:
options :Object.<string, *>
Options.
Type:
- Object.<string, *>
- Inherited From:
- Source:
(nullable) parent :ProtoBuf.Reflect.T
Parent object.
Type:
- Inherited From:
- Source:
requestName :string
Request message name.
Type:
- string
- Source:
requestStream :bool
Whether requests are streamed
Type:
- bool
- Source:
resolvedRequestType :ProtoBuf.Reflect.Message
Resolved request message type.
Type:
- Source:
resolvedResponseType :ProtoBuf.Reflect.Message
Resolved response message type.
Type:
- Source:
responseName :string
Response message name.
Type:
- string
- Source:
responseStream :bool
Whether responses are streamed
Type:
- bool
- Source:
Methods
build()
Builds this type.
- Inherited From:
- Source:
Throws:
-
If this type cannot be built directly
- Type
- Error
buildOpt() → {Object.<string, *>}
Builds the method's '$options' property.
- Inherited From:
- Source:
Returns:
- Type
- Object.<string, *>
fqn() → {string}
Returns the fully qualified name of this object.
- Inherited From:
- Source:
Returns:
Fully qualified name as of ".PATH.TO.THIS"
- Type
- string
toString(includeClassopt)
Returns a string representation of this Reflect object (its fully qualified name).
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
includeClass |
boolean |
<optional> |
Set to true to include the class name. Defaults to false. |
- Inherited From:
- Source:
Returns:
String representation