@aldiokta/protocgen 1.1.43 → 1.1.45

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