Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc / node_modules / protobufjs / src / ProtoBuf / Reflect / Service / RPCMethod.js
1 /**\r
2  * RPC service method.\r
3  * @exports ProtoBuf.Reflect.Service.RPCMethod\r
4  * @param {!ProtoBuf.Builder} builder Builder reference\r
5  * @param {!ProtoBuf.Reflect.Service} svc Service\r
6  * @param {string} name Method name\r
7  * @param {string} request Request message name\r
8  * @param {string} response Response message name\r
9  * @param {boolean} request_stream Whether requests are streamed\r
10  * @param {boolean} response_stream Whether responses are streamed\r
11  * @param {Object.<string,*>=} options Options\r
12  * @constructor\r
13  * @extends ProtoBuf.Reflect.Service.Method\r
14  */\r
15 var RPCMethod = function(builder, svc, name, request, response, request_stream, response_stream, options) {\r
16     Method.call(this, builder, svc, name, options);\r
17 \r
18     /**\r
19      * @override\r
20      */\r
21     this.className = "Service.RPCMethod";\r
22 \r
23     /**\r
24      * Request message name.\r
25      * @type {string}\r
26      * @expose\r
27      */\r
28     this.requestName = request;\r
29 \r
30     /**\r
31      * Response message name.\r
32      * @type {string}\r
33      * @expose\r
34      */\r
35     this.responseName = response;\r
36 \r
37     /**\r
38      * Whether requests are streamed\r
39      * @type {bool}\r
40      * @expose\r
41      */\r
42     this.requestStream = request_stream;\r
43 \r
44     /**\r
45      * Whether responses are streamed\r
46      * @type {bool}\r
47      * @expose\r
48      */\r
49     this.responseStream = response_stream;\r
50 \r
51     /**\r
52      * Resolved request message type.\r
53      * @type {ProtoBuf.Reflect.Message}\r
54      * @expose\r
55      */\r
56     this.resolvedRequestType = null;\r
57 \r
58     /**\r
59      * Resolved response message type.\r
60      * @type {ProtoBuf.Reflect.Message}\r
61      * @expose\r
62      */\r
63     this.resolvedResponseType = null;\r
64 };\r
65 \r
66 // Extends Method\r
67 RPCMethod.prototype = Object.create(Method.prototype);\r