@aldiokta/protocgen 1.1.19 → 1.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +199 -0
  3. package/prisca/v1/account_assignment/account_assignment_pb.js +2674 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2937 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +173 -0
  7. package/prisca/v1/bidding/bidding_pb.js +5616 -0
  8. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
  9. package/prisca/v1/chart_of_account/chart_of_account_pb.js +2907 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
  13. package/prisca/v1/core/auth/auth_pb.js +4497 -0
  14. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
  15. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1531 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3048 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  20. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  21. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4283 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +872 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +144 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2497 -0
  28. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
  29. package/prisca/v1/core/item_transaction/item_transaction_pb.js +3880 -0
  30. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  31. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  32. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  33. package/prisca/v1/core/job_position/job_position_pb.js +3762 -0
  34. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  35. package/prisca/v1/core/job_title/job_title_pb.js +2958 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1188 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3191 -0
  40. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  41. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +10879 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4180 -0
  46. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  47. package/prisca/v1/core/material_group/material_group_pb.js +2776 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  54. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  55. package/prisca/v1/core/number_range/number_range_pb.js +2926 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3032 -0
  58. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  59. package/prisca/v1/core/organization_level/organization_level_pb.js +2545 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +146 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +2654 -0
  62. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  63. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  64. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  65. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  66. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  67. package/prisca/v1/core/report/report_pb.js +2822 -0
  68. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  69. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  70. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  71. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +144 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2105 -0
  74. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
  75. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
  76. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  77. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  79. package/prisca/v1/core/users/users_pb.js +1246 -0
  80. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  81. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7525 -0
  84. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  85. package/prisca/v1/document_type/document_type_pb.js +2746 -0
  86. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  87. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3276 -0
  88. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  89. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  90. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  91. package/prisca/v1/purchase_order/purchase_order_pb.js +4989 -0
  92. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +512 -0
  93. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  94. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  95. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2875 -0
  96. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +145 -0
  97. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2139 -0
  98. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +146 -0
  99. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2183 -0
  100. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  101. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  102. package/prisca/v1/quotation/quotation_grpc_pb.js +152 -0
  103. package/prisca/v1/quotation/quotation_pb.js +2319 -0
  104. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +192 -0
  105. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5703 -0
  106. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  107. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6333 -0
  108. package/prisca/v1/account_assignment/account_assignment.proto +0 -79
  109. package/prisca/v1/account_group/account_group.proto +0 -86
  110. package/prisca/v1/bidding/bidding.proto +0 -159
  111. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -87
  112. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  113. package/prisca/v1/core/auth/auth.proto +0 -150
  114. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  115. package/prisca/v1/core/company/company.proto +0 -92
  116. package/prisca/v1/core/currency/currency.proto +0 -76
  117. package/prisca/v1/core/department_material/department_material.proto +0 -69
  118. package/prisca/v1/core/employee/employee.proto +0 -129
  119. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  120. package/prisca/v1/core/incoterm/incoterm.proto +0 -76
  121. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -120
  122. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  123. package/prisca/v1/core/job_position/job_position.proto +0 -113
  124. package/prisca/v1/core/job_title/job_title.proto +0 -89
  125. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  126. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -94
  127. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  128. package/prisca/v1/core/location/location.proto +0 -289
  129. package/prisca/v1/core/material/material.proto +0 -131
  130. package/prisca/v1/core/material_group/material_group.proto +0 -85
  131. package/prisca/v1/core/material_type/material_type.proto +0 -86
  132. package/prisca/v1/core/messaging/email_template.proto +0 -75
  133. package/prisca/v1/core/messaging/messaging.proto +0 -29
  134. package/prisca/v1/core/number_range/number_range.proto +0 -89
  135. package/prisca/v1/core/organization/organization.proto +0 -94
  136. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  137. package/prisca/v1/core/price_condition/price_condition.proto +0 -83
  138. package/prisca/v1/core/procurement/procurement.proto +0 -54
  139. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  140. package/prisca/v1/core/report/report.proto +0 -90
  141. package/prisca/v1/core/report/user_report.proto +0 -74
  142. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  143. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -64
  144. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  145. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  146. package/prisca/v1/core/users/users.proto +0 -45
  147. package/prisca/v1/core/work_location/work_location.proto +0 -122
  148. package/prisca/v1/core/workflow/workflow.proto +0 -216
  149. package/prisca/v1/document_type/document_type.proto +0 -80
  150. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -98
  151. package/prisca/v1/global/meta/meta.proto +0 -57
  152. package/prisca/v1/purchase_order/purchase_order.proto +0 -155
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -304
  154. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -87
  155. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -68
  156. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -70
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  158. package/prisca/v1/quotation/quotation.proto +0 -82
  159. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -166
  160. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -225
@@ -0,0 +1,1531 @@
1
+ // source: prisca/v1/core/chat_messaging/chat_messaging.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ goog.exportSymbol('proto.ListRoomChatRequest', null, global);
27
+ goog.exportSymbol('proto.ListRoomChatResponse', null, global);
28
+ goog.exportSymbol('proto.Message', null, global);
29
+ goog.exportSymbol('proto.ReceiveChatRequest', null, global);
30
+ goog.exportSymbol('proto.ReceiveChatResponse', null, global);
31
+ goog.exportSymbol('proto.Room', null, global);
32
+ goog.exportSymbol('proto.SendChatRequest', null, global);
33
+ /**
34
+ * Generated by JsPbCodeGenerator.
35
+ * @param {Array=} opt_data Optional initial data array, typically from a
36
+ * server response, or constructed directly in Javascript. The array is used
37
+ * in place and becomes part of the constructed object. It is not cloned.
38
+ * If no data is provided, the constructed object will be empty, but still
39
+ * valid.
40
+ * @extends {jspb.Message}
41
+ * @constructor
42
+ */
43
+ proto.Message = function(opt_data) {
44
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
+ };
46
+ goog.inherits(proto.Message, jspb.Message);
47
+ if (goog.DEBUG && !COMPILED) {
48
+ /**
49
+ * @public
50
+ * @override
51
+ */
52
+ proto.Message.displayName = 'proto.Message';
53
+ }
54
+ /**
55
+ * Generated by JsPbCodeGenerator.
56
+ * @param {Array=} opt_data Optional initial data array, typically from a
57
+ * server response, or constructed directly in Javascript. The array is used
58
+ * in place and becomes part of the constructed object. It is not cloned.
59
+ * If no data is provided, the constructed object will be empty, but still
60
+ * valid.
61
+ * @extends {jspb.Message}
62
+ * @constructor
63
+ */
64
+ proto.Room = function(opt_data) {
65
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
+ };
67
+ goog.inherits(proto.Room, jspb.Message);
68
+ if (goog.DEBUG && !COMPILED) {
69
+ /**
70
+ * @public
71
+ * @override
72
+ */
73
+ proto.Room.displayName = 'proto.Room';
74
+ }
75
+ /**
76
+ * Generated by JsPbCodeGenerator.
77
+ * @param {Array=} opt_data Optional initial data array, typically from a
78
+ * server response, or constructed directly in Javascript. The array is used
79
+ * in place and becomes part of the constructed object. It is not cloned.
80
+ * If no data is provided, the constructed object will be empty, but still
81
+ * valid.
82
+ * @extends {jspb.Message}
83
+ * @constructor
84
+ */
85
+ proto.SendChatRequest = function(opt_data) {
86
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
87
+ };
88
+ goog.inherits(proto.SendChatRequest, jspb.Message);
89
+ if (goog.DEBUG && !COMPILED) {
90
+ /**
91
+ * @public
92
+ * @override
93
+ */
94
+ proto.SendChatRequest.displayName = 'proto.SendChatRequest';
95
+ }
96
+ /**
97
+ * Generated by JsPbCodeGenerator.
98
+ * @param {Array=} opt_data Optional initial data array, typically from a
99
+ * server response, or constructed directly in Javascript. The array is used
100
+ * in place and becomes part of the constructed object. It is not cloned.
101
+ * If no data is provided, the constructed object will be empty, but still
102
+ * valid.
103
+ * @extends {jspb.Message}
104
+ * @constructor
105
+ */
106
+ proto.ReceiveChatRequest = function(opt_data) {
107
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
108
+ };
109
+ goog.inherits(proto.ReceiveChatRequest, jspb.Message);
110
+ if (goog.DEBUG && !COMPILED) {
111
+ /**
112
+ * @public
113
+ * @override
114
+ */
115
+ proto.ReceiveChatRequest.displayName = 'proto.ReceiveChatRequest';
116
+ }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.ListRoomChatRequest = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.ListRoomChatRequest, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.ListRoomChatRequest.displayName = 'proto.ListRoomChatRequest';
137
+ }
138
+ /**
139
+ * Generated by JsPbCodeGenerator.
140
+ * @param {Array=} opt_data Optional initial data array, typically from a
141
+ * server response, or constructed directly in Javascript. The array is used
142
+ * in place and becomes part of the constructed object. It is not cloned.
143
+ * If no data is provided, the constructed object will be empty, but still
144
+ * valid.
145
+ * @extends {jspb.Message}
146
+ * @constructor
147
+ */
148
+ proto.ReceiveChatResponse = function(opt_data) {
149
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ReceiveChatResponse.repeatedFields_, null);
150
+ };
151
+ goog.inherits(proto.ReceiveChatResponse, jspb.Message);
152
+ if (goog.DEBUG && !COMPILED) {
153
+ /**
154
+ * @public
155
+ * @override
156
+ */
157
+ proto.ReceiveChatResponse.displayName = 'proto.ReceiveChatResponse';
158
+ }
159
+ /**
160
+ * Generated by JsPbCodeGenerator.
161
+ * @param {Array=} opt_data Optional initial data array, typically from a
162
+ * server response, or constructed directly in Javascript. The array is used
163
+ * in place and becomes part of the constructed object. It is not cloned.
164
+ * If no data is provided, the constructed object will be empty, but still
165
+ * valid.
166
+ * @extends {jspb.Message}
167
+ * @constructor
168
+ */
169
+ proto.ListRoomChatResponse = function(opt_data) {
170
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ListRoomChatResponse.repeatedFields_, null);
171
+ };
172
+ goog.inherits(proto.ListRoomChatResponse, jspb.Message);
173
+ if (goog.DEBUG && !COMPILED) {
174
+ /**
175
+ * @public
176
+ * @override
177
+ */
178
+ proto.ListRoomChatResponse.displayName = 'proto.ListRoomChatResponse';
179
+ }
180
+
181
+
182
+
183
+ if (jspb.Message.GENERATE_TO_OBJECT) {
184
+ /**
185
+ * Creates an object representation of this proto.
186
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
187
+ * Optional fields that are not set will be set to undefined.
188
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
189
+ * For the list of reserved names please see:
190
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
191
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
192
+ * JSPB instance for transitional soy proto support:
193
+ * http://goto/soy-param-migration
194
+ * @return {!Object}
195
+ */
196
+ proto.Message.prototype.toObject = function(opt_includeInstance) {
197
+ return proto.Message.toObject(opt_includeInstance, this);
198
+ };
199
+
200
+
201
+ /**
202
+ * Static version of the {@see toObject} method.
203
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
204
+ * the JSPB instance for transitional soy proto support:
205
+ * http://goto/soy-param-migration
206
+ * @param {!proto.Message} msg The msg instance to transform.
207
+ * @return {!Object}
208
+ * @suppress {unusedLocalVariables} f is only used for nested messages
209
+ */
210
+ proto.Message.toObject = function(includeInstance, msg) {
211
+ var f, obj = {
212
+ roomId: jspb.Message.getFieldWithDefault(msg, 1, ""),
213
+ message: jspb.Message.getFieldWithDefault(msg, 2, ""),
214
+ sender: jspb.Message.getFieldWithDefault(msg, 3, ""),
215
+ receiver: jspb.Message.getFieldWithDefault(msg, 4, ""),
216
+ createdAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
217
+ documentReferencesId: jspb.Message.getFieldWithDefault(msg, 6, "")
218
+ };
219
+
220
+ if (includeInstance) {
221
+ obj.$jspbMessageInstance = msg;
222
+ }
223
+ return obj;
224
+ };
225
+ }
226
+
227
+
228
+ /**
229
+ * Deserializes binary data (in protobuf wire format).
230
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
231
+ * @return {!proto.Message}
232
+ */
233
+ proto.Message.deserializeBinary = function(bytes) {
234
+ var reader = new jspb.BinaryReader(bytes);
235
+ var msg = new proto.Message;
236
+ return proto.Message.deserializeBinaryFromReader(msg, reader);
237
+ };
238
+
239
+
240
+ /**
241
+ * Deserializes binary data (in protobuf wire format) from the
242
+ * given reader into the given message object.
243
+ * @param {!proto.Message} msg The message object to deserialize into.
244
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
245
+ * @return {!proto.Message}
246
+ */
247
+ proto.Message.deserializeBinaryFromReader = function(msg, reader) {
248
+ while (reader.nextField()) {
249
+ if (reader.isEndGroup()) {
250
+ break;
251
+ }
252
+ var field = reader.getFieldNumber();
253
+ switch (field) {
254
+ case 1:
255
+ var value = /** @type {string} */ (reader.readString());
256
+ msg.setRoomId(value);
257
+ break;
258
+ case 2:
259
+ var value = /** @type {string} */ (reader.readString());
260
+ msg.setMessage(value);
261
+ break;
262
+ case 3:
263
+ var value = /** @type {string} */ (reader.readString());
264
+ msg.setSender(value);
265
+ break;
266
+ case 4:
267
+ var value = /** @type {string} */ (reader.readString());
268
+ msg.setReceiver(value);
269
+ break;
270
+ case 5:
271
+ var value = /** @type {string} */ (reader.readString());
272
+ msg.setCreatedAt(value);
273
+ break;
274
+ case 6:
275
+ var value = /** @type {string} */ (reader.readString());
276
+ msg.setDocumentReferencesId(value);
277
+ break;
278
+ default:
279
+ reader.skipField();
280
+ break;
281
+ }
282
+ }
283
+ return msg;
284
+ };
285
+
286
+
287
+ /**
288
+ * Serializes the message to binary data (in protobuf wire format).
289
+ * @return {!Uint8Array}
290
+ */
291
+ proto.Message.prototype.serializeBinary = function() {
292
+ var writer = new jspb.BinaryWriter();
293
+ proto.Message.serializeBinaryToWriter(this, writer);
294
+ return writer.getResultBuffer();
295
+ };
296
+
297
+
298
+ /**
299
+ * Serializes the given message to binary data (in protobuf wire
300
+ * format), writing to the given BinaryWriter.
301
+ * @param {!proto.Message} message
302
+ * @param {!jspb.BinaryWriter} writer
303
+ * @suppress {unusedLocalVariables} f is only used for nested messages
304
+ */
305
+ proto.Message.serializeBinaryToWriter = function(message, writer) {
306
+ var f = undefined;
307
+ f = message.getRoomId();
308
+ if (f.length > 0) {
309
+ writer.writeString(
310
+ 1,
311
+ f
312
+ );
313
+ }
314
+ f = message.getMessage();
315
+ if (f.length > 0) {
316
+ writer.writeString(
317
+ 2,
318
+ f
319
+ );
320
+ }
321
+ f = message.getSender();
322
+ if (f.length > 0) {
323
+ writer.writeString(
324
+ 3,
325
+ f
326
+ );
327
+ }
328
+ f = message.getReceiver();
329
+ if (f.length > 0) {
330
+ writer.writeString(
331
+ 4,
332
+ f
333
+ );
334
+ }
335
+ f = message.getCreatedAt();
336
+ if (f.length > 0) {
337
+ writer.writeString(
338
+ 5,
339
+ f
340
+ );
341
+ }
342
+ f = message.getDocumentReferencesId();
343
+ if (f.length > 0) {
344
+ writer.writeString(
345
+ 6,
346
+ f
347
+ );
348
+ }
349
+ };
350
+
351
+
352
+ /**
353
+ * optional string room_id = 1;
354
+ * @return {string}
355
+ */
356
+ proto.Message.prototype.getRoomId = function() {
357
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
358
+ };
359
+
360
+
361
+ /**
362
+ * @param {string} value
363
+ * @return {!proto.Message} returns this
364
+ */
365
+ proto.Message.prototype.setRoomId = function(value) {
366
+ return jspb.Message.setProto3StringField(this, 1, value);
367
+ };
368
+
369
+
370
+ /**
371
+ * optional string message = 2;
372
+ * @return {string}
373
+ */
374
+ proto.Message.prototype.getMessage = function() {
375
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
376
+ };
377
+
378
+
379
+ /**
380
+ * @param {string} value
381
+ * @return {!proto.Message} returns this
382
+ */
383
+ proto.Message.prototype.setMessage = function(value) {
384
+ return jspb.Message.setProto3StringField(this, 2, value);
385
+ };
386
+
387
+
388
+ /**
389
+ * optional string sender = 3;
390
+ * @return {string}
391
+ */
392
+ proto.Message.prototype.getSender = function() {
393
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
394
+ };
395
+
396
+
397
+ /**
398
+ * @param {string} value
399
+ * @return {!proto.Message} returns this
400
+ */
401
+ proto.Message.prototype.setSender = function(value) {
402
+ return jspb.Message.setProto3StringField(this, 3, value);
403
+ };
404
+
405
+
406
+ /**
407
+ * optional string receiver = 4;
408
+ * @return {string}
409
+ */
410
+ proto.Message.prototype.getReceiver = function() {
411
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
412
+ };
413
+
414
+
415
+ /**
416
+ * @param {string} value
417
+ * @return {!proto.Message} returns this
418
+ */
419
+ proto.Message.prototype.setReceiver = function(value) {
420
+ return jspb.Message.setProto3StringField(this, 4, value);
421
+ };
422
+
423
+
424
+ /**
425
+ * optional string created_at = 5;
426
+ * @return {string}
427
+ */
428
+ proto.Message.prototype.getCreatedAt = function() {
429
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
430
+ };
431
+
432
+
433
+ /**
434
+ * @param {string} value
435
+ * @return {!proto.Message} returns this
436
+ */
437
+ proto.Message.prototype.setCreatedAt = function(value) {
438
+ return jspb.Message.setProto3StringField(this, 5, value);
439
+ };
440
+
441
+
442
+ /**
443
+ * optional string document_references_id = 6;
444
+ * @return {string}
445
+ */
446
+ proto.Message.prototype.getDocumentReferencesId = function() {
447
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
448
+ };
449
+
450
+
451
+ /**
452
+ * @param {string} value
453
+ * @return {!proto.Message} returns this
454
+ */
455
+ proto.Message.prototype.setDocumentReferencesId = function(value) {
456
+ return jspb.Message.setProto3StringField(this, 6, value);
457
+ };
458
+
459
+
460
+
461
+
462
+
463
+ if (jspb.Message.GENERATE_TO_OBJECT) {
464
+ /**
465
+ * Creates an object representation of this proto.
466
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
467
+ * Optional fields that are not set will be set to undefined.
468
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
469
+ * For the list of reserved names please see:
470
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
471
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
472
+ * JSPB instance for transitional soy proto support:
473
+ * http://goto/soy-param-migration
474
+ * @return {!Object}
475
+ */
476
+ proto.Room.prototype.toObject = function(opt_includeInstance) {
477
+ return proto.Room.toObject(opt_includeInstance, this);
478
+ };
479
+
480
+
481
+ /**
482
+ * Static version of the {@see toObject} method.
483
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
484
+ * the JSPB instance for transitional soy proto support:
485
+ * http://goto/soy-param-migration
486
+ * @param {!proto.Room} msg The msg instance to transform.
487
+ * @return {!Object}
488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
489
+ */
490
+ proto.Room.toObject = function(includeInstance, msg) {
491
+ var f, obj = {
492
+ roomId: jspb.Message.getFieldWithDefault(msg, 1, ""),
493
+ documentReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
494
+ documentType: jspb.Message.getFieldWithDefault(msg, 3, "")
495
+ };
496
+
497
+ if (includeInstance) {
498
+ obj.$jspbMessageInstance = msg;
499
+ }
500
+ return obj;
501
+ };
502
+ }
503
+
504
+
505
+ /**
506
+ * Deserializes binary data (in protobuf wire format).
507
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
508
+ * @return {!proto.Room}
509
+ */
510
+ proto.Room.deserializeBinary = function(bytes) {
511
+ var reader = new jspb.BinaryReader(bytes);
512
+ var msg = new proto.Room;
513
+ return proto.Room.deserializeBinaryFromReader(msg, reader);
514
+ };
515
+
516
+
517
+ /**
518
+ * Deserializes binary data (in protobuf wire format) from the
519
+ * given reader into the given message object.
520
+ * @param {!proto.Room} msg The message object to deserialize into.
521
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
522
+ * @return {!proto.Room}
523
+ */
524
+ proto.Room.deserializeBinaryFromReader = function(msg, reader) {
525
+ while (reader.nextField()) {
526
+ if (reader.isEndGroup()) {
527
+ break;
528
+ }
529
+ var field = reader.getFieldNumber();
530
+ switch (field) {
531
+ case 1:
532
+ var value = /** @type {string} */ (reader.readString());
533
+ msg.setRoomId(value);
534
+ break;
535
+ case 2:
536
+ var value = /** @type {string} */ (reader.readString());
537
+ msg.setDocumentReferencesId(value);
538
+ break;
539
+ case 3:
540
+ var value = /** @type {string} */ (reader.readString());
541
+ msg.setDocumentType(value);
542
+ break;
543
+ default:
544
+ reader.skipField();
545
+ break;
546
+ }
547
+ }
548
+ return msg;
549
+ };
550
+
551
+
552
+ /**
553
+ * Serializes the message to binary data (in protobuf wire format).
554
+ * @return {!Uint8Array}
555
+ */
556
+ proto.Room.prototype.serializeBinary = function() {
557
+ var writer = new jspb.BinaryWriter();
558
+ proto.Room.serializeBinaryToWriter(this, writer);
559
+ return writer.getResultBuffer();
560
+ };
561
+
562
+
563
+ /**
564
+ * Serializes the given message to binary data (in protobuf wire
565
+ * format), writing to the given BinaryWriter.
566
+ * @param {!proto.Room} message
567
+ * @param {!jspb.BinaryWriter} writer
568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
569
+ */
570
+ proto.Room.serializeBinaryToWriter = function(message, writer) {
571
+ var f = undefined;
572
+ f = message.getRoomId();
573
+ if (f.length > 0) {
574
+ writer.writeString(
575
+ 1,
576
+ f
577
+ );
578
+ }
579
+ f = message.getDocumentReferencesId();
580
+ if (f.length > 0) {
581
+ writer.writeString(
582
+ 2,
583
+ f
584
+ );
585
+ }
586
+ f = message.getDocumentType();
587
+ if (f.length > 0) {
588
+ writer.writeString(
589
+ 3,
590
+ f
591
+ );
592
+ }
593
+ };
594
+
595
+
596
+ /**
597
+ * optional string room_id = 1;
598
+ * @return {string}
599
+ */
600
+ proto.Room.prototype.getRoomId = function() {
601
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
602
+ };
603
+
604
+
605
+ /**
606
+ * @param {string} value
607
+ * @return {!proto.Room} returns this
608
+ */
609
+ proto.Room.prototype.setRoomId = function(value) {
610
+ return jspb.Message.setProto3StringField(this, 1, value);
611
+ };
612
+
613
+
614
+ /**
615
+ * optional string document_references_id = 2;
616
+ * @return {string}
617
+ */
618
+ proto.Room.prototype.getDocumentReferencesId = function() {
619
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
620
+ };
621
+
622
+
623
+ /**
624
+ * @param {string} value
625
+ * @return {!proto.Room} returns this
626
+ */
627
+ proto.Room.prototype.setDocumentReferencesId = function(value) {
628
+ return jspb.Message.setProto3StringField(this, 2, value);
629
+ };
630
+
631
+
632
+ /**
633
+ * optional string document_type = 3;
634
+ * @return {string}
635
+ */
636
+ proto.Room.prototype.getDocumentType = function() {
637
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
638
+ };
639
+
640
+
641
+ /**
642
+ * @param {string} value
643
+ * @return {!proto.Room} returns this
644
+ */
645
+ proto.Room.prototype.setDocumentType = function(value) {
646
+ return jspb.Message.setProto3StringField(this, 3, value);
647
+ };
648
+
649
+
650
+
651
+
652
+
653
+ if (jspb.Message.GENERATE_TO_OBJECT) {
654
+ /**
655
+ * Creates an object representation of this proto.
656
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
657
+ * Optional fields that are not set will be set to undefined.
658
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
659
+ * For the list of reserved names please see:
660
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
661
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
662
+ * JSPB instance for transitional soy proto support:
663
+ * http://goto/soy-param-migration
664
+ * @return {!Object}
665
+ */
666
+ proto.SendChatRequest.prototype.toObject = function(opt_includeInstance) {
667
+ return proto.SendChatRequest.toObject(opt_includeInstance, this);
668
+ };
669
+
670
+
671
+ /**
672
+ * Static version of the {@see toObject} method.
673
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
674
+ * the JSPB instance for transitional soy proto support:
675
+ * http://goto/soy-param-migration
676
+ * @param {!proto.SendChatRequest} msg The msg instance to transform.
677
+ * @return {!Object}
678
+ * @suppress {unusedLocalVariables} f is only used for nested messages
679
+ */
680
+ proto.SendChatRequest.toObject = function(includeInstance, msg) {
681
+ var f, obj = {
682
+ message: jspb.Message.getFieldWithDefault(msg, 1, ""),
683
+ receiver: jspb.Message.getFieldWithDefault(msg, 2, ""),
684
+ documentReferencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
685
+ };
686
+
687
+ if (includeInstance) {
688
+ obj.$jspbMessageInstance = msg;
689
+ }
690
+ return obj;
691
+ };
692
+ }
693
+
694
+
695
+ /**
696
+ * Deserializes binary data (in protobuf wire format).
697
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
698
+ * @return {!proto.SendChatRequest}
699
+ */
700
+ proto.SendChatRequest.deserializeBinary = function(bytes) {
701
+ var reader = new jspb.BinaryReader(bytes);
702
+ var msg = new proto.SendChatRequest;
703
+ return proto.SendChatRequest.deserializeBinaryFromReader(msg, reader);
704
+ };
705
+
706
+
707
+ /**
708
+ * Deserializes binary data (in protobuf wire format) from the
709
+ * given reader into the given message object.
710
+ * @param {!proto.SendChatRequest} msg The message object to deserialize into.
711
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
712
+ * @return {!proto.SendChatRequest}
713
+ */
714
+ proto.SendChatRequest.deserializeBinaryFromReader = function(msg, reader) {
715
+ while (reader.nextField()) {
716
+ if (reader.isEndGroup()) {
717
+ break;
718
+ }
719
+ var field = reader.getFieldNumber();
720
+ switch (field) {
721
+ case 1:
722
+ var value = /** @type {string} */ (reader.readString());
723
+ msg.setMessage(value);
724
+ break;
725
+ case 2:
726
+ var value = /** @type {string} */ (reader.readString());
727
+ msg.setReceiver(value);
728
+ break;
729
+ case 3:
730
+ var value = /** @type {string} */ (reader.readString());
731
+ msg.setDocumentReferencesId(value);
732
+ break;
733
+ default:
734
+ reader.skipField();
735
+ break;
736
+ }
737
+ }
738
+ return msg;
739
+ };
740
+
741
+
742
+ /**
743
+ * Serializes the message to binary data (in protobuf wire format).
744
+ * @return {!Uint8Array}
745
+ */
746
+ proto.SendChatRequest.prototype.serializeBinary = function() {
747
+ var writer = new jspb.BinaryWriter();
748
+ proto.SendChatRequest.serializeBinaryToWriter(this, writer);
749
+ return writer.getResultBuffer();
750
+ };
751
+
752
+
753
+ /**
754
+ * Serializes the given message to binary data (in protobuf wire
755
+ * format), writing to the given BinaryWriter.
756
+ * @param {!proto.SendChatRequest} message
757
+ * @param {!jspb.BinaryWriter} writer
758
+ * @suppress {unusedLocalVariables} f is only used for nested messages
759
+ */
760
+ proto.SendChatRequest.serializeBinaryToWriter = function(message, writer) {
761
+ var f = undefined;
762
+ f = message.getMessage();
763
+ if (f.length > 0) {
764
+ writer.writeString(
765
+ 1,
766
+ f
767
+ );
768
+ }
769
+ f = message.getReceiver();
770
+ if (f.length > 0) {
771
+ writer.writeString(
772
+ 2,
773
+ f
774
+ );
775
+ }
776
+ f = message.getDocumentReferencesId();
777
+ if (f.length > 0) {
778
+ writer.writeString(
779
+ 3,
780
+ f
781
+ );
782
+ }
783
+ };
784
+
785
+
786
+ /**
787
+ * optional string message = 1;
788
+ * @return {string}
789
+ */
790
+ proto.SendChatRequest.prototype.getMessage = function() {
791
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
792
+ };
793
+
794
+
795
+ /**
796
+ * @param {string} value
797
+ * @return {!proto.SendChatRequest} returns this
798
+ */
799
+ proto.SendChatRequest.prototype.setMessage = function(value) {
800
+ return jspb.Message.setProto3StringField(this, 1, value);
801
+ };
802
+
803
+
804
+ /**
805
+ * optional string receiver = 2;
806
+ * @return {string}
807
+ */
808
+ proto.SendChatRequest.prototype.getReceiver = function() {
809
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
810
+ };
811
+
812
+
813
+ /**
814
+ * @param {string} value
815
+ * @return {!proto.SendChatRequest} returns this
816
+ */
817
+ proto.SendChatRequest.prototype.setReceiver = function(value) {
818
+ return jspb.Message.setProto3StringField(this, 2, value);
819
+ };
820
+
821
+
822
+ /**
823
+ * optional string document_references_id = 3;
824
+ * @return {string}
825
+ */
826
+ proto.SendChatRequest.prototype.getDocumentReferencesId = function() {
827
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
828
+ };
829
+
830
+
831
+ /**
832
+ * @param {string} value
833
+ * @return {!proto.SendChatRequest} returns this
834
+ */
835
+ proto.SendChatRequest.prototype.setDocumentReferencesId = function(value) {
836
+ return jspb.Message.setProto3StringField(this, 3, value);
837
+ };
838
+
839
+
840
+
841
+
842
+
843
+ if (jspb.Message.GENERATE_TO_OBJECT) {
844
+ /**
845
+ * Creates an object representation of this proto.
846
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
847
+ * Optional fields that are not set will be set to undefined.
848
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
849
+ * For the list of reserved names please see:
850
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
851
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
852
+ * JSPB instance for transitional soy proto support:
853
+ * http://goto/soy-param-migration
854
+ * @return {!Object}
855
+ */
856
+ proto.ReceiveChatRequest.prototype.toObject = function(opt_includeInstance) {
857
+ return proto.ReceiveChatRequest.toObject(opt_includeInstance, this);
858
+ };
859
+
860
+
861
+ /**
862
+ * Static version of the {@see toObject} method.
863
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
864
+ * the JSPB instance for transitional soy proto support:
865
+ * http://goto/soy-param-migration
866
+ * @param {!proto.ReceiveChatRequest} msg The msg instance to transform.
867
+ * @return {!Object}
868
+ * @suppress {unusedLocalVariables} f is only used for nested messages
869
+ */
870
+ proto.ReceiveChatRequest.toObject = function(includeInstance, msg) {
871
+ var f, obj = {
872
+ roomId: jspb.Message.getFieldWithDefault(msg, 1, ""),
873
+ receiver: jspb.Message.getFieldWithDefault(msg, 2, "")
874
+ };
875
+
876
+ if (includeInstance) {
877
+ obj.$jspbMessageInstance = msg;
878
+ }
879
+ return obj;
880
+ };
881
+ }
882
+
883
+
884
+ /**
885
+ * Deserializes binary data (in protobuf wire format).
886
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
887
+ * @return {!proto.ReceiveChatRequest}
888
+ */
889
+ proto.ReceiveChatRequest.deserializeBinary = function(bytes) {
890
+ var reader = new jspb.BinaryReader(bytes);
891
+ var msg = new proto.ReceiveChatRequest;
892
+ return proto.ReceiveChatRequest.deserializeBinaryFromReader(msg, reader);
893
+ };
894
+
895
+
896
+ /**
897
+ * Deserializes binary data (in protobuf wire format) from the
898
+ * given reader into the given message object.
899
+ * @param {!proto.ReceiveChatRequest} msg The message object to deserialize into.
900
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
901
+ * @return {!proto.ReceiveChatRequest}
902
+ */
903
+ proto.ReceiveChatRequest.deserializeBinaryFromReader = function(msg, reader) {
904
+ while (reader.nextField()) {
905
+ if (reader.isEndGroup()) {
906
+ break;
907
+ }
908
+ var field = reader.getFieldNumber();
909
+ switch (field) {
910
+ case 1:
911
+ var value = /** @type {string} */ (reader.readString());
912
+ msg.setRoomId(value);
913
+ break;
914
+ case 2:
915
+ var value = /** @type {string} */ (reader.readString());
916
+ msg.setReceiver(value);
917
+ break;
918
+ default:
919
+ reader.skipField();
920
+ break;
921
+ }
922
+ }
923
+ return msg;
924
+ };
925
+
926
+
927
+ /**
928
+ * Serializes the message to binary data (in protobuf wire format).
929
+ * @return {!Uint8Array}
930
+ */
931
+ proto.ReceiveChatRequest.prototype.serializeBinary = function() {
932
+ var writer = new jspb.BinaryWriter();
933
+ proto.ReceiveChatRequest.serializeBinaryToWriter(this, writer);
934
+ return writer.getResultBuffer();
935
+ };
936
+
937
+
938
+ /**
939
+ * Serializes the given message to binary data (in protobuf wire
940
+ * format), writing to the given BinaryWriter.
941
+ * @param {!proto.ReceiveChatRequest} message
942
+ * @param {!jspb.BinaryWriter} writer
943
+ * @suppress {unusedLocalVariables} f is only used for nested messages
944
+ */
945
+ proto.ReceiveChatRequest.serializeBinaryToWriter = function(message, writer) {
946
+ var f = undefined;
947
+ f = message.getRoomId();
948
+ if (f.length > 0) {
949
+ writer.writeString(
950
+ 1,
951
+ f
952
+ );
953
+ }
954
+ f = message.getReceiver();
955
+ if (f.length > 0) {
956
+ writer.writeString(
957
+ 2,
958
+ f
959
+ );
960
+ }
961
+ };
962
+
963
+
964
+ /**
965
+ * optional string room_id = 1;
966
+ * @return {string}
967
+ */
968
+ proto.ReceiveChatRequest.prototype.getRoomId = function() {
969
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
970
+ };
971
+
972
+
973
+ /**
974
+ * @param {string} value
975
+ * @return {!proto.ReceiveChatRequest} returns this
976
+ */
977
+ proto.ReceiveChatRequest.prototype.setRoomId = function(value) {
978
+ return jspb.Message.setProto3StringField(this, 1, value);
979
+ };
980
+
981
+
982
+ /**
983
+ * optional string receiver = 2;
984
+ * @return {string}
985
+ */
986
+ proto.ReceiveChatRequest.prototype.getReceiver = function() {
987
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
988
+ };
989
+
990
+
991
+ /**
992
+ * @param {string} value
993
+ * @return {!proto.ReceiveChatRequest} returns this
994
+ */
995
+ proto.ReceiveChatRequest.prototype.setReceiver = function(value) {
996
+ return jspb.Message.setProto3StringField(this, 2, value);
997
+ };
998
+
999
+
1000
+
1001
+
1002
+
1003
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1004
+ /**
1005
+ * Creates an object representation of this proto.
1006
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1007
+ * Optional fields that are not set will be set to undefined.
1008
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1009
+ * For the list of reserved names please see:
1010
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1011
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1012
+ * JSPB instance for transitional soy proto support:
1013
+ * http://goto/soy-param-migration
1014
+ * @return {!Object}
1015
+ */
1016
+ proto.ListRoomChatRequest.prototype.toObject = function(opt_includeInstance) {
1017
+ return proto.ListRoomChatRequest.toObject(opt_includeInstance, this);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Static version of the {@see toObject} method.
1023
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1024
+ * the JSPB instance for transitional soy proto support:
1025
+ * http://goto/soy-param-migration
1026
+ * @param {!proto.ListRoomChatRequest} msg The msg instance to transform.
1027
+ * @return {!Object}
1028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1029
+ */
1030
+ proto.ListRoomChatRequest.toObject = function(includeInstance, msg) {
1031
+ var f, obj = {
1032
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1033
+ userReferencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
1034
+ };
1035
+
1036
+ if (includeInstance) {
1037
+ obj.$jspbMessageInstance = msg;
1038
+ }
1039
+ return obj;
1040
+ };
1041
+ }
1042
+
1043
+
1044
+ /**
1045
+ * Deserializes binary data (in protobuf wire format).
1046
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1047
+ * @return {!proto.ListRoomChatRequest}
1048
+ */
1049
+ proto.ListRoomChatRequest.deserializeBinary = function(bytes) {
1050
+ var reader = new jspb.BinaryReader(bytes);
1051
+ var msg = new proto.ListRoomChatRequest;
1052
+ return proto.ListRoomChatRequest.deserializeBinaryFromReader(msg, reader);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * Deserializes binary data (in protobuf wire format) from the
1058
+ * given reader into the given message object.
1059
+ * @param {!proto.ListRoomChatRequest} msg The message object to deserialize into.
1060
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1061
+ * @return {!proto.ListRoomChatRequest}
1062
+ */
1063
+ proto.ListRoomChatRequest.deserializeBinaryFromReader = function(msg, reader) {
1064
+ while (reader.nextField()) {
1065
+ if (reader.isEndGroup()) {
1066
+ break;
1067
+ }
1068
+ var field = reader.getFieldNumber();
1069
+ switch (field) {
1070
+ case 1:
1071
+ var value = /** @type {string} */ (reader.readString());
1072
+ msg.setCompaniesReferencesId(value);
1073
+ break;
1074
+ case 2:
1075
+ var value = /** @type {string} */ (reader.readString());
1076
+ msg.setUserReferencesId(value);
1077
+ break;
1078
+ default:
1079
+ reader.skipField();
1080
+ break;
1081
+ }
1082
+ }
1083
+ return msg;
1084
+ };
1085
+
1086
+
1087
+ /**
1088
+ * Serializes the message to binary data (in protobuf wire format).
1089
+ * @return {!Uint8Array}
1090
+ */
1091
+ proto.ListRoomChatRequest.prototype.serializeBinary = function() {
1092
+ var writer = new jspb.BinaryWriter();
1093
+ proto.ListRoomChatRequest.serializeBinaryToWriter(this, writer);
1094
+ return writer.getResultBuffer();
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * Serializes the given message to binary data (in protobuf wire
1100
+ * format), writing to the given BinaryWriter.
1101
+ * @param {!proto.ListRoomChatRequest} message
1102
+ * @param {!jspb.BinaryWriter} writer
1103
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1104
+ */
1105
+ proto.ListRoomChatRequest.serializeBinaryToWriter = function(message, writer) {
1106
+ var f = undefined;
1107
+ f = message.getCompaniesReferencesId();
1108
+ if (f.length > 0) {
1109
+ writer.writeString(
1110
+ 1,
1111
+ f
1112
+ );
1113
+ }
1114
+ f = message.getUserReferencesId();
1115
+ if (f.length > 0) {
1116
+ writer.writeString(
1117
+ 2,
1118
+ f
1119
+ );
1120
+ }
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * optional string companies_references_id = 1;
1126
+ * @return {string}
1127
+ */
1128
+ proto.ListRoomChatRequest.prototype.getCompaniesReferencesId = function() {
1129
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * @param {string} value
1135
+ * @return {!proto.ListRoomChatRequest} returns this
1136
+ */
1137
+ proto.ListRoomChatRequest.prototype.setCompaniesReferencesId = function(value) {
1138
+ return jspb.Message.setProto3StringField(this, 1, value);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * optional string user_references_id = 2;
1144
+ * @return {string}
1145
+ */
1146
+ proto.ListRoomChatRequest.prototype.getUserReferencesId = function() {
1147
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * @param {string} value
1153
+ * @return {!proto.ListRoomChatRequest} returns this
1154
+ */
1155
+ proto.ListRoomChatRequest.prototype.setUserReferencesId = function(value) {
1156
+ return jspb.Message.setProto3StringField(this, 2, value);
1157
+ };
1158
+
1159
+
1160
+
1161
+ /**
1162
+ * List of repeated fields within this message type.
1163
+ * @private {!Array<number>}
1164
+ * @const
1165
+ */
1166
+ proto.ReceiveChatResponse.repeatedFields_ = [1];
1167
+
1168
+
1169
+
1170
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1171
+ /**
1172
+ * Creates an object representation of this proto.
1173
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1174
+ * Optional fields that are not set will be set to undefined.
1175
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1176
+ * For the list of reserved names please see:
1177
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1178
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1179
+ * JSPB instance for transitional soy proto support:
1180
+ * http://goto/soy-param-migration
1181
+ * @return {!Object}
1182
+ */
1183
+ proto.ReceiveChatResponse.prototype.toObject = function(opt_includeInstance) {
1184
+ return proto.ReceiveChatResponse.toObject(opt_includeInstance, this);
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * Static version of the {@see toObject} method.
1190
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1191
+ * the JSPB instance for transitional soy proto support:
1192
+ * http://goto/soy-param-migration
1193
+ * @param {!proto.ReceiveChatResponse} msg The msg instance to transform.
1194
+ * @return {!Object}
1195
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1196
+ */
1197
+ proto.ReceiveChatResponse.toObject = function(includeInstance, msg) {
1198
+ var f, obj = {
1199
+ messageList: jspb.Message.toObjectList(msg.getMessageList(),
1200
+ proto.Message.toObject, includeInstance),
1201
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1202
+ };
1203
+
1204
+ if (includeInstance) {
1205
+ obj.$jspbMessageInstance = msg;
1206
+ }
1207
+ return obj;
1208
+ };
1209
+ }
1210
+
1211
+
1212
+ /**
1213
+ * Deserializes binary data (in protobuf wire format).
1214
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1215
+ * @return {!proto.ReceiveChatResponse}
1216
+ */
1217
+ proto.ReceiveChatResponse.deserializeBinary = function(bytes) {
1218
+ var reader = new jspb.BinaryReader(bytes);
1219
+ var msg = new proto.ReceiveChatResponse;
1220
+ return proto.ReceiveChatResponse.deserializeBinaryFromReader(msg, reader);
1221
+ };
1222
+
1223
+
1224
+ /**
1225
+ * Deserializes binary data (in protobuf wire format) from the
1226
+ * given reader into the given message object.
1227
+ * @param {!proto.ReceiveChatResponse} msg The message object to deserialize into.
1228
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1229
+ * @return {!proto.ReceiveChatResponse}
1230
+ */
1231
+ proto.ReceiveChatResponse.deserializeBinaryFromReader = function(msg, reader) {
1232
+ while (reader.nextField()) {
1233
+ if (reader.isEndGroup()) {
1234
+ break;
1235
+ }
1236
+ var field = reader.getFieldNumber();
1237
+ switch (field) {
1238
+ case 1:
1239
+ var value = new proto.Message;
1240
+ reader.readMessage(value,proto.Message.deserializeBinaryFromReader);
1241
+ msg.addMessage(value);
1242
+ break;
1243
+ case 2:
1244
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1245
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1246
+ msg.setMeta(value);
1247
+ break;
1248
+ default:
1249
+ reader.skipField();
1250
+ break;
1251
+ }
1252
+ }
1253
+ return msg;
1254
+ };
1255
+
1256
+
1257
+ /**
1258
+ * Serializes the message to binary data (in protobuf wire format).
1259
+ * @return {!Uint8Array}
1260
+ */
1261
+ proto.ReceiveChatResponse.prototype.serializeBinary = function() {
1262
+ var writer = new jspb.BinaryWriter();
1263
+ proto.ReceiveChatResponse.serializeBinaryToWriter(this, writer);
1264
+ return writer.getResultBuffer();
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * Serializes the given message to binary data (in protobuf wire
1270
+ * format), writing to the given BinaryWriter.
1271
+ * @param {!proto.ReceiveChatResponse} message
1272
+ * @param {!jspb.BinaryWriter} writer
1273
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1274
+ */
1275
+ proto.ReceiveChatResponse.serializeBinaryToWriter = function(message, writer) {
1276
+ var f = undefined;
1277
+ f = message.getMessageList();
1278
+ if (f.length > 0) {
1279
+ writer.writeRepeatedMessage(
1280
+ 1,
1281
+ f,
1282
+ proto.Message.serializeBinaryToWriter
1283
+ );
1284
+ }
1285
+ f = message.getMeta();
1286
+ if (f != null) {
1287
+ writer.writeMessage(
1288
+ 2,
1289
+ f,
1290
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1291
+ );
1292
+ }
1293
+ };
1294
+
1295
+
1296
+ /**
1297
+ * repeated Message message = 1;
1298
+ * @return {!Array<!proto.Message>}
1299
+ */
1300
+ proto.ReceiveChatResponse.prototype.getMessageList = function() {
1301
+ return /** @type{!Array<!proto.Message>} */ (
1302
+ jspb.Message.getRepeatedWrapperField(this, proto.Message, 1));
1303
+ };
1304
+
1305
+
1306
+ /**
1307
+ * @param {!Array<!proto.Message>} value
1308
+ * @return {!proto.ReceiveChatResponse} returns this
1309
+ */
1310
+ proto.ReceiveChatResponse.prototype.setMessageList = function(value) {
1311
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1312
+ };
1313
+
1314
+
1315
+ /**
1316
+ * @param {!proto.Message=} opt_value
1317
+ * @param {number=} opt_index
1318
+ * @return {!proto.Message}
1319
+ */
1320
+ proto.ReceiveChatResponse.prototype.addMessage = function(opt_value, opt_index) {
1321
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Message, opt_index);
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * Clears the list making it empty but non-null.
1327
+ * @return {!proto.ReceiveChatResponse} returns this
1328
+ */
1329
+ proto.ReceiveChatResponse.prototype.clearMessageList = function() {
1330
+ return this.setMessageList([]);
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * optional prisca.v1.global.meta.Meta meta = 2;
1336
+ * @return {?proto.prisca.v1.global.meta.Meta}
1337
+ */
1338
+ proto.ReceiveChatResponse.prototype.getMeta = function() {
1339
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1340
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1341
+ };
1342
+
1343
+
1344
+ /**
1345
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1346
+ * @return {!proto.ReceiveChatResponse} returns this
1347
+ */
1348
+ proto.ReceiveChatResponse.prototype.setMeta = function(value) {
1349
+ return jspb.Message.setWrapperField(this, 2, value);
1350
+ };
1351
+
1352
+
1353
+ /**
1354
+ * Clears the message field making it undefined.
1355
+ * @return {!proto.ReceiveChatResponse} returns this
1356
+ */
1357
+ proto.ReceiveChatResponse.prototype.clearMeta = function() {
1358
+ return this.setMeta(undefined);
1359
+ };
1360
+
1361
+
1362
+ /**
1363
+ * Returns whether this field is set.
1364
+ * @return {boolean}
1365
+ */
1366
+ proto.ReceiveChatResponse.prototype.hasMeta = function() {
1367
+ return jspb.Message.getField(this, 2) != null;
1368
+ };
1369
+
1370
+
1371
+
1372
+ /**
1373
+ * List of repeated fields within this message type.
1374
+ * @private {!Array<number>}
1375
+ * @const
1376
+ */
1377
+ proto.ListRoomChatResponse.repeatedFields_ = [1];
1378
+
1379
+
1380
+
1381
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1382
+ /**
1383
+ * Creates an object representation of this proto.
1384
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1385
+ * Optional fields that are not set will be set to undefined.
1386
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1387
+ * For the list of reserved names please see:
1388
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1389
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1390
+ * JSPB instance for transitional soy proto support:
1391
+ * http://goto/soy-param-migration
1392
+ * @return {!Object}
1393
+ */
1394
+ proto.ListRoomChatResponse.prototype.toObject = function(opt_includeInstance) {
1395
+ return proto.ListRoomChatResponse.toObject(opt_includeInstance, this);
1396
+ };
1397
+
1398
+
1399
+ /**
1400
+ * Static version of the {@see toObject} method.
1401
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1402
+ * the JSPB instance for transitional soy proto support:
1403
+ * http://goto/soy-param-migration
1404
+ * @param {!proto.ListRoomChatResponse} msg The msg instance to transform.
1405
+ * @return {!Object}
1406
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1407
+ */
1408
+ proto.ListRoomChatResponse.toObject = function(includeInstance, msg) {
1409
+ var f, obj = {
1410
+ roomList: jspb.Message.toObjectList(msg.getRoomList(),
1411
+ proto.Room.toObject, includeInstance)
1412
+ };
1413
+
1414
+ if (includeInstance) {
1415
+ obj.$jspbMessageInstance = msg;
1416
+ }
1417
+ return obj;
1418
+ };
1419
+ }
1420
+
1421
+
1422
+ /**
1423
+ * Deserializes binary data (in protobuf wire format).
1424
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1425
+ * @return {!proto.ListRoomChatResponse}
1426
+ */
1427
+ proto.ListRoomChatResponse.deserializeBinary = function(bytes) {
1428
+ var reader = new jspb.BinaryReader(bytes);
1429
+ var msg = new proto.ListRoomChatResponse;
1430
+ return proto.ListRoomChatResponse.deserializeBinaryFromReader(msg, reader);
1431
+ };
1432
+
1433
+
1434
+ /**
1435
+ * Deserializes binary data (in protobuf wire format) from the
1436
+ * given reader into the given message object.
1437
+ * @param {!proto.ListRoomChatResponse} msg The message object to deserialize into.
1438
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1439
+ * @return {!proto.ListRoomChatResponse}
1440
+ */
1441
+ proto.ListRoomChatResponse.deserializeBinaryFromReader = function(msg, reader) {
1442
+ while (reader.nextField()) {
1443
+ if (reader.isEndGroup()) {
1444
+ break;
1445
+ }
1446
+ var field = reader.getFieldNumber();
1447
+ switch (field) {
1448
+ case 1:
1449
+ var value = new proto.Room;
1450
+ reader.readMessage(value,proto.Room.deserializeBinaryFromReader);
1451
+ msg.addRoom(value);
1452
+ break;
1453
+ default:
1454
+ reader.skipField();
1455
+ break;
1456
+ }
1457
+ }
1458
+ return msg;
1459
+ };
1460
+
1461
+
1462
+ /**
1463
+ * Serializes the message to binary data (in protobuf wire format).
1464
+ * @return {!Uint8Array}
1465
+ */
1466
+ proto.ListRoomChatResponse.prototype.serializeBinary = function() {
1467
+ var writer = new jspb.BinaryWriter();
1468
+ proto.ListRoomChatResponse.serializeBinaryToWriter(this, writer);
1469
+ return writer.getResultBuffer();
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * Serializes the given message to binary data (in protobuf wire
1475
+ * format), writing to the given BinaryWriter.
1476
+ * @param {!proto.ListRoomChatResponse} message
1477
+ * @param {!jspb.BinaryWriter} writer
1478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1479
+ */
1480
+ proto.ListRoomChatResponse.serializeBinaryToWriter = function(message, writer) {
1481
+ var f = undefined;
1482
+ f = message.getRoomList();
1483
+ if (f.length > 0) {
1484
+ writer.writeRepeatedMessage(
1485
+ 1,
1486
+ f,
1487
+ proto.Room.serializeBinaryToWriter
1488
+ );
1489
+ }
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * repeated Room room = 1;
1495
+ * @return {!Array<!proto.Room>}
1496
+ */
1497
+ proto.ListRoomChatResponse.prototype.getRoomList = function() {
1498
+ return /** @type{!Array<!proto.Room>} */ (
1499
+ jspb.Message.getRepeatedWrapperField(this, proto.Room, 1));
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * @param {!Array<!proto.Room>} value
1505
+ * @return {!proto.ListRoomChatResponse} returns this
1506
+ */
1507
+ proto.ListRoomChatResponse.prototype.setRoomList = function(value) {
1508
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1509
+ };
1510
+
1511
+
1512
+ /**
1513
+ * @param {!proto.Room=} opt_value
1514
+ * @param {number=} opt_index
1515
+ * @return {!proto.Room}
1516
+ */
1517
+ proto.ListRoomChatResponse.prototype.addRoom = function(opt_value, opt_index) {
1518
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Room, opt_index);
1519
+ };
1520
+
1521
+
1522
+ /**
1523
+ * Clears the list making it empty but non-null.
1524
+ * @return {!proto.ListRoomChatResponse} returns this
1525
+ */
1526
+ proto.ListRoomChatResponse.prototype.clearRoomList = function() {
1527
+ return this.setRoomList([]);
1528
+ };
1529
+
1530
+
1531
+ goog.object.extend(exports, proto);