@aldiokta/protocgen 1.1.22 → 1.1.23

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 (169) 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 +221 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -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 +37 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +134 -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 +66 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -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 +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +93 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +55 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +218 -0
  43. package/prisca/v1/delivery_order/delivery_order.proto +147 -0
  44. package/prisca/v1/document_type/document_type.proto +82 -0
  45. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  46. package/prisca/v1/global/meta/meta.proto +57 -0
  47. package/prisca/v1/good_receipt/good_receipt.proto +11 -0
  48. package/prisca/v1/purchase_order/purchase_order.proto +157 -0
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
  50. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  51. package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
  52. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  53. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  54. package/prisca/v1/quotation/quotation.proto +118 -0
  55. package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
  56. package/prisca/v1/valuation/valuation.proto +223 -0
  57. package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
  58. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  59. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  60. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  61. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  62. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -262
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6944
  64. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  65. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  66. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  67. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  68. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  69. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  70. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  71. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  72. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  73. package/prisca/v1/core/company/company_pb.js +0 -3100
  74. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  75. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  76. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  77. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  78. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  79. package/prisca/v1/core/employee/employee_pb.js +0 -4335
  80. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  81. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
  82. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2904
  84. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  85. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -4180
  86. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  87. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2657
  88. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  89. package/prisca/v1/core/job_position/job_position_pb.js +0 -3814
  90. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  91. package/prisca/v1/core/job_title/job_title_pb.js +0 -3010
  92. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  93. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  94. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  95. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3251
  96. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  97. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  98. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  99. package/prisca/v1/core/location/location_pb.js +0 -10879
  100. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  101. package/prisca/v1/core/material/material_pb.js +0 -4232
  102. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  103. package/prisca/v1/core/material_group/material_group_pb.js +0 -2828
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -3104
  106. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  107. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  108. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  109. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  110. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  111. package/prisca/v1/core/number_range/number_range_pb.js +0 -2978
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3084
  114. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  115. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2597
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3061
  118. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  119. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  120. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  121. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  122. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  123. package/prisca/v1/core/report/report_pb.js +0 -2822
  124. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  125. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  126. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  127. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2732
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2512
  130. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  131. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  133. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  134. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  135. package/prisca/v1/core/users/users_pb.js +0 -1653
  136. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  137. package/prisca/v1/core/work_location/work_location_pb.js +0 -4024
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7577
  140. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  141. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -4661
  142. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  143. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  144. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  145. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  146. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  147. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  148. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -1
  149. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -35
  150. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  151. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -5049
  152. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  154. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  155. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2927
  156. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  157. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2546
  158. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  159. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2590
  160. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  161. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  162. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -163
  163. package/prisca/v1/quotation/quotation_pb.js +0 -2796
  164. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -193
  165. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5961
  166. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  167. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  168. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  169. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6363
@@ -1,2452 +0,0 @@
1
- // source: prisca/v1/core/report/user_report.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
- var prisca_v1_core_report_report_pb = require('../../../../prisca/v1/core/report/report_pb.js');
27
- goog.object.extend(proto, prisca_v1_core_report_report_pb);
28
- goog.exportSymbol('proto.BaseUserReportRequest', null, global);
29
- goog.exportSymbol('proto.CreateUserReportRequest', null, global);
30
- goog.exportSymbol('proto.CreateUserReportResponse', null, global);
31
- goog.exportSymbol('proto.DeleteUserReportRequest', null, global);
32
- goog.exportSymbol('proto.DeleteUserReportResponse', null, global);
33
- goog.exportSymbol('proto.GetListUserReportRequest', null, global);
34
- goog.exportSymbol('proto.GetListUserReportResponse', null, global);
35
- goog.exportSymbol('proto.GetUserReportByIdRequest', null, global);
36
- goog.exportSymbol('proto.GetUserReportByIdResponse', null, global);
37
- goog.exportSymbol('proto.UpdateUserReportRequest', null, global);
38
- goog.exportSymbol('proto.UpdateUserReportResponse', null, global);
39
- goog.exportSymbol('proto.UserReport', null, global);
40
- /**
41
- * Generated by JsPbCodeGenerator.
42
- * @param {Array=} opt_data Optional initial data array, typically from a
43
- * server response, or constructed directly in Javascript. The array is used
44
- * in place and becomes part of the constructed object. It is not cloned.
45
- * If no data is provided, the constructed object will be empty, but still
46
- * valid.
47
- * @extends {jspb.Message}
48
- * @constructor
49
- */
50
- proto.UserReport = function(opt_data) {
51
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
- };
53
- goog.inherits(proto.UserReport, jspb.Message);
54
- if (goog.DEBUG && !COMPILED) {
55
- /**
56
- * @public
57
- * @override
58
- */
59
- proto.UserReport.displayName = 'proto.UserReport';
60
- }
61
- /**
62
- * Generated by JsPbCodeGenerator.
63
- * @param {Array=} opt_data Optional initial data array, typically from a
64
- * server response, or constructed directly in Javascript. The array is used
65
- * in place and becomes part of the constructed object. It is not cloned.
66
- * If no data is provided, the constructed object will be empty, but still
67
- * valid.
68
- * @extends {jspb.Message}
69
- * @constructor
70
- */
71
- proto.BaseUserReportRequest = function(opt_data) {
72
- jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseUserReportRequest.repeatedFields_, null);
73
- };
74
- goog.inherits(proto.BaseUserReportRequest, jspb.Message);
75
- if (goog.DEBUG && !COMPILED) {
76
- /**
77
- * @public
78
- * @override
79
- */
80
- proto.BaseUserReportRequest.displayName = 'proto.BaseUserReportRequest';
81
- }
82
- /**
83
- * Generated by JsPbCodeGenerator.
84
- * @param {Array=} opt_data Optional initial data array, typically from a
85
- * server response, or constructed directly in Javascript. The array is used
86
- * in place and becomes part of the constructed object. It is not cloned.
87
- * If no data is provided, the constructed object will be empty, but still
88
- * valid.
89
- * @extends {jspb.Message}
90
- * @constructor
91
- */
92
- proto.CreateUserReportRequest = function(opt_data) {
93
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
- };
95
- goog.inherits(proto.CreateUserReportRequest, jspb.Message);
96
- if (goog.DEBUG && !COMPILED) {
97
- /**
98
- * @public
99
- * @override
100
- */
101
- proto.CreateUserReportRequest.displayName = 'proto.CreateUserReportRequest';
102
- }
103
- /**
104
- * Generated by JsPbCodeGenerator.
105
- * @param {Array=} opt_data Optional initial data array, typically from a
106
- * server response, or constructed directly in Javascript. The array is used
107
- * in place and becomes part of the constructed object. It is not cloned.
108
- * If no data is provided, the constructed object will be empty, but still
109
- * valid.
110
- * @extends {jspb.Message}
111
- * @constructor
112
- */
113
- proto.UpdateUserReportRequest = function(opt_data) {
114
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
- };
116
- goog.inherits(proto.UpdateUserReportRequest, jspb.Message);
117
- if (goog.DEBUG && !COMPILED) {
118
- /**
119
- * @public
120
- * @override
121
- */
122
- proto.UpdateUserReportRequest.displayName = 'proto.UpdateUserReportRequest';
123
- }
124
- /**
125
- * Generated by JsPbCodeGenerator.
126
- * @param {Array=} opt_data Optional initial data array, typically from a
127
- * server response, or constructed directly in Javascript. The array is used
128
- * in place and becomes part of the constructed object. It is not cloned.
129
- * If no data is provided, the constructed object will be empty, but still
130
- * valid.
131
- * @extends {jspb.Message}
132
- * @constructor
133
- */
134
- proto.GetListUserReportRequest = function(opt_data) {
135
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
- };
137
- goog.inherits(proto.GetListUserReportRequest, jspb.Message);
138
- if (goog.DEBUG && !COMPILED) {
139
- /**
140
- * @public
141
- * @override
142
- */
143
- proto.GetListUserReportRequest.displayName = 'proto.GetListUserReportRequest';
144
- }
145
- /**
146
- * Generated by JsPbCodeGenerator.
147
- * @param {Array=} opt_data Optional initial data array, typically from a
148
- * server response, or constructed directly in Javascript. The array is used
149
- * in place and becomes part of the constructed object. It is not cloned.
150
- * If no data is provided, the constructed object will be empty, but still
151
- * valid.
152
- * @extends {jspb.Message}
153
- * @constructor
154
- */
155
- proto.GetUserReportByIdRequest = function(opt_data) {
156
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
- };
158
- goog.inherits(proto.GetUserReportByIdRequest, jspb.Message);
159
- if (goog.DEBUG && !COMPILED) {
160
- /**
161
- * @public
162
- * @override
163
- */
164
- proto.GetUserReportByIdRequest.displayName = 'proto.GetUserReportByIdRequest';
165
- }
166
- /**
167
- * Generated by JsPbCodeGenerator.
168
- * @param {Array=} opt_data Optional initial data array, typically from a
169
- * server response, or constructed directly in Javascript. The array is used
170
- * in place and becomes part of the constructed object. It is not cloned.
171
- * If no data is provided, the constructed object will be empty, but still
172
- * valid.
173
- * @extends {jspb.Message}
174
- * @constructor
175
- */
176
- proto.DeleteUserReportRequest = function(opt_data) {
177
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
- };
179
- goog.inherits(proto.DeleteUserReportRequest, jspb.Message);
180
- if (goog.DEBUG && !COMPILED) {
181
- /**
182
- * @public
183
- * @override
184
- */
185
- proto.DeleteUserReportRequest.displayName = 'proto.DeleteUserReportRequest';
186
- }
187
- /**
188
- * Generated by JsPbCodeGenerator.
189
- * @param {Array=} opt_data Optional initial data array, typically from a
190
- * server response, or constructed directly in Javascript. The array is used
191
- * in place and becomes part of the constructed object. It is not cloned.
192
- * If no data is provided, the constructed object will be empty, but still
193
- * valid.
194
- * @extends {jspb.Message}
195
- * @constructor
196
- */
197
- proto.CreateUserReportResponse = function(opt_data) {
198
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
- };
200
- goog.inherits(proto.CreateUserReportResponse, jspb.Message);
201
- if (goog.DEBUG && !COMPILED) {
202
- /**
203
- * @public
204
- * @override
205
- */
206
- proto.CreateUserReportResponse.displayName = 'proto.CreateUserReportResponse';
207
- }
208
- /**
209
- * Generated by JsPbCodeGenerator.
210
- * @param {Array=} opt_data Optional initial data array, typically from a
211
- * server response, or constructed directly in Javascript. The array is used
212
- * in place and becomes part of the constructed object. It is not cloned.
213
- * If no data is provided, the constructed object will be empty, but still
214
- * valid.
215
- * @extends {jspb.Message}
216
- * @constructor
217
- */
218
- proto.UpdateUserReportResponse = function(opt_data) {
219
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
- };
221
- goog.inherits(proto.UpdateUserReportResponse, jspb.Message);
222
- if (goog.DEBUG && !COMPILED) {
223
- /**
224
- * @public
225
- * @override
226
- */
227
- proto.UpdateUserReportResponse.displayName = 'proto.UpdateUserReportResponse';
228
- }
229
- /**
230
- * Generated by JsPbCodeGenerator.
231
- * @param {Array=} opt_data Optional initial data array, typically from a
232
- * server response, or constructed directly in Javascript. The array is used
233
- * in place and becomes part of the constructed object. It is not cloned.
234
- * If no data is provided, the constructed object will be empty, but still
235
- * valid.
236
- * @extends {jspb.Message}
237
- * @constructor
238
- */
239
- proto.GetListUserReportResponse = function(opt_data) {
240
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListUserReportResponse.repeatedFields_, null);
241
- };
242
- goog.inherits(proto.GetListUserReportResponse, jspb.Message);
243
- if (goog.DEBUG && !COMPILED) {
244
- /**
245
- * @public
246
- * @override
247
- */
248
- proto.GetListUserReportResponse.displayName = 'proto.GetListUserReportResponse';
249
- }
250
- /**
251
- * Generated by JsPbCodeGenerator.
252
- * @param {Array=} opt_data Optional initial data array, typically from a
253
- * server response, or constructed directly in Javascript. The array is used
254
- * in place and becomes part of the constructed object. It is not cloned.
255
- * If no data is provided, the constructed object will be empty, but still
256
- * valid.
257
- * @extends {jspb.Message}
258
- * @constructor
259
- */
260
- proto.GetUserReportByIdResponse = function(opt_data) {
261
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetUserReportByIdResponse.repeatedFields_, null);
262
- };
263
- goog.inherits(proto.GetUserReportByIdResponse, jspb.Message);
264
- if (goog.DEBUG && !COMPILED) {
265
- /**
266
- * @public
267
- * @override
268
- */
269
- proto.GetUserReportByIdResponse.displayName = 'proto.GetUserReportByIdResponse';
270
- }
271
- /**
272
- * Generated by JsPbCodeGenerator.
273
- * @param {Array=} opt_data Optional initial data array, typically from a
274
- * server response, or constructed directly in Javascript. The array is used
275
- * in place and becomes part of the constructed object. It is not cloned.
276
- * If no data is provided, the constructed object will be empty, but still
277
- * valid.
278
- * @extends {jspb.Message}
279
- * @constructor
280
- */
281
- proto.DeleteUserReportResponse = function(opt_data) {
282
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
283
- };
284
- goog.inherits(proto.DeleteUserReportResponse, jspb.Message);
285
- if (goog.DEBUG && !COMPILED) {
286
- /**
287
- * @public
288
- * @override
289
- */
290
- proto.DeleteUserReportResponse.displayName = 'proto.DeleteUserReportResponse';
291
- }
292
-
293
-
294
-
295
- if (jspb.Message.GENERATE_TO_OBJECT) {
296
- /**
297
- * Creates an object representation of this proto.
298
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
299
- * Optional fields that are not set will be set to undefined.
300
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
301
- * For the list of reserved names please see:
302
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
303
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
304
- * JSPB instance for transitional soy proto support:
305
- * http://goto/soy-param-migration
306
- * @return {!Object}
307
- */
308
- proto.UserReport.prototype.toObject = function(opt_includeInstance) {
309
- return proto.UserReport.toObject(opt_includeInstance, this);
310
- };
311
-
312
-
313
- /**
314
- * Static version of the {@see toObject} method.
315
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
316
- * the JSPB instance for transitional soy proto support:
317
- * http://goto/soy-param-migration
318
- * @param {!proto.UserReport} msg The msg instance to transform.
319
- * @return {!Object}
320
- * @suppress {unusedLocalVariables} f is only used for nested messages
321
- */
322
- proto.UserReport.toObject = function(includeInstance, msg) {
323
- var f, obj = {
324
- reportReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
325
- userReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
326
- createdAt: jspb.Message.getFieldWithDefault(msg, 3, ""),
327
- report: (f = msg.getReport()) && prisca_v1_core_report_report_pb.Report.toObject(includeInstance, f)
328
- };
329
-
330
- if (includeInstance) {
331
- obj.$jspbMessageInstance = msg;
332
- }
333
- return obj;
334
- };
335
- }
336
-
337
-
338
- /**
339
- * Deserializes binary data (in protobuf wire format).
340
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
341
- * @return {!proto.UserReport}
342
- */
343
- proto.UserReport.deserializeBinary = function(bytes) {
344
- var reader = new jspb.BinaryReader(bytes);
345
- var msg = new proto.UserReport;
346
- return proto.UserReport.deserializeBinaryFromReader(msg, reader);
347
- };
348
-
349
-
350
- /**
351
- * Deserializes binary data (in protobuf wire format) from the
352
- * given reader into the given message object.
353
- * @param {!proto.UserReport} msg The message object to deserialize into.
354
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
355
- * @return {!proto.UserReport}
356
- */
357
- proto.UserReport.deserializeBinaryFromReader = function(msg, reader) {
358
- while (reader.nextField()) {
359
- if (reader.isEndGroup()) {
360
- break;
361
- }
362
- var field = reader.getFieldNumber();
363
- switch (field) {
364
- case 1:
365
- var value = /** @type {string} */ (reader.readString());
366
- msg.setReportReferencesId(value);
367
- break;
368
- case 2:
369
- var value = /** @type {string} */ (reader.readString());
370
- msg.setUserReferencesId(value);
371
- break;
372
- case 3:
373
- var value = /** @type {string} */ (reader.readString());
374
- msg.setCreatedAt(value);
375
- break;
376
- case 4:
377
- var value = new prisca_v1_core_report_report_pb.Report;
378
- reader.readMessage(value,prisca_v1_core_report_report_pb.Report.deserializeBinaryFromReader);
379
- msg.setReport(value);
380
- break;
381
- default:
382
- reader.skipField();
383
- break;
384
- }
385
- }
386
- return msg;
387
- };
388
-
389
-
390
- /**
391
- * Serializes the message to binary data (in protobuf wire format).
392
- * @return {!Uint8Array}
393
- */
394
- proto.UserReport.prototype.serializeBinary = function() {
395
- var writer = new jspb.BinaryWriter();
396
- proto.UserReport.serializeBinaryToWriter(this, writer);
397
- return writer.getResultBuffer();
398
- };
399
-
400
-
401
- /**
402
- * Serializes the given message to binary data (in protobuf wire
403
- * format), writing to the given BinaryWriter.
404
- * @param {!proto.UserReport} message
405
- * @param {!jspb.BinaryWriter} writer
406
- * @suppress {unusedLocalVariables} f is only used for nested messages
407
- */
408
- proto.UserReport.serializeBinaryToWriter = function(message, writer) {
409
- var f = undefined;
410
- f = message.getReportReferencesId();
411
- if (f.length > 0) {
412
- writer.writeString(
413
- 1,
414
- f
415
- );
416
- }
417
- f = message.getUserReferencesId();
418
- if (f.length > 0) {
419
- writer.writeString(
420
- 2,
421
- f
422
- );
423
- }
424
- f = message.getCreatedAt();
425
- if (f.length > 0) {
426
- writer.writeString(
427
- 3,
428
- f
429
- );
430
- }
431
- f = message.getReport();
432
- if (f != null) {
433
- writer.writeMessage(
434
- 4,
435
- f,
436
- prisca_v1_core_report_report_pb.Report.serializeBinaryToWriter
437
- );
438
- }
439
- };
440
-
441
-
442
- /**
443
- * optional string report_references_id = 1;
444
- * @return {string}
445
- */
446
- proto.UserReport.prototype.getReportReferencesId = function() {
447
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
448
- };
449
-
450
-
451
- /**
452
- * @param {string} value
453
- * @return {!proto.UserReport} returns this
454
- */
455
- proto.UserReport.prototype.setReportReferencesId = function(value) {
456
- return jspb.Message.setProto3StringField(this, 1, value);
457
- };
458
-
459
-
460
- /**
461
- * optional string user_references_id = 2;
462
- * @return {string}
463
- */
464
- proto.UserReport.prototype.getUserReferencesId = function() {
465
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
466
- };
467
-
468
-
469
- /**
470
- * @param {string} value
471
- * @return {!proto.UserReport} returns this
472
- */
473
- proto.UserReport.prototype.setUserReferencesId = function(value) {
474
- return jspb.Message.setProto3StringField(this, 2, value);
475
- };
476
-
477
-
478
- /**
479
- * optional string created_at = 3;
480
- * @return {string}
481
- */
482
- proto.UserReport.prototype.getCreatedAt = function() {
483
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
484
- };
485
-
486
-
487
- /**
488
- * @param {string} value
489
- * @return {!proto.UserReport} returns this
490
- */
491
- proto.UserReport.prototype.setCreatedAt = function(value) {
492
- return jspb.Message.setProto3StringField(this, 3, value);
493
- };
494
-
495
-
496
- /**
497
- * optional Report report = 4;
498
- * @return {?proto.Report}
499
- */
500
- proto.UserReport.prototype.getReport = function() {
501
- return /** @type{?proto.Report} */ (
502
- jspb.Message.getWrapperField(this, prisca_v1_core_report_report_pb.Report, 4));
503
- };
504
-
505
-
506
- /**
507
- * @param {?proto.Report|undefined} value
508
- * @return {!proto.UserReport} returns this
509
- */
510
- proto.UserReport.prototype.setReport = function(value) {
511
- return jspb.Message.setWrapperField(this, 4, value);
512
- };
513
-
514
-
515
- /**
516
- * Clears the message field making it undefined.
517
- * @return {!proto.UserReport} returns this
518
- */
519
- proto.UserReport.prototype.clearReport = function() {
520
- return this.setReport(undefined);
521
- };
522
-
523
-
524
- /**
525
- * Returns whether this field is set.
526
- * @return {boolean}
527
- */
528
- proto.UserReport.prototype.hasReport = function() {
529
- return jspb.Message.getField(this, 4) != null;
530
- };
531
-
532
-
533
-
534
- /**
535
- * List of repeated fields within this message type.
536
- * @private {!Array<number>}
537
- * @const
538
- */
539
- proto.BaseUserReportRequest.repeatedFields_ = [1];
540
-
541
-
542
-
543
- if (jspb.Message.GENERATE_TO_OBJECT) {
544
- /**
545
- * Creates an object representation of this proto.
546
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
547
- * Optional fields that are not set will be set to undefined.
548
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
549
- * For the list of reserved names please see:
550
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
551
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
552
- * JSPB instance for transitional soy proto support:
553
- * http://goto/soy-param-migration
554
- * @return {!Object}
555
- */
556
- proto.BaseUserReportRequest.prototype.toObject = function(opt_includeInstance) {
557
- return proto.BaseUserReportRequest.toObject(opt_includeInstance, this);
558
- };
559
-
560
-
561
- /**
562
- * Static version of the {@see toObject} method.
563
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
564
- * the JSPB instance for transitional soy proto support:
565
- * http://goto/soy-param-migration
566
- * @param {!proto.BaseUserReportRequest} msg The msg instance to transform.
567
- * @return {!Object}
568
- * @suppress {unusedLocalVariables} f is only used for nested messages
569
- */
570
- proto.BaseUserReportRequest.toObject = function(includeInstance, msg) {
571
- var f, obj = {
572
- reportReferencesIdList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
573
- };
574
-
575
- if (includeInstance) {
576
- obj.$jspbMessageInstance = msg;
577
- }
578
- return obj;
579
- };
580
- }
581
-
582
-
583
- /**
584
- * Deserializes binary data (in protobuf wire format).
585
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
586
- * @return {!proto.BaseUserReportRequest}
587
- */
588
- proto.BaseUserReportRequest.deserializeBinary = function(bytes) {
589
- var reader = new jspb.BinaryReader(bytes);
590
- var msg = new proto.BaseUserReportRequest;
591
- return proto.BaseUserReportRequest.deserializeBinaryFromReader(msg, reader);
592
- };
593
-
594
-
595
- /**
596
- * Deserializes binary data (in protobuf wire format) from the
597
- * given reader into the given message object.
598
- * @param {!proto.BaseUserReportRequest} msg The message object to deserialize into.
599
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
600
- * @return {!proto.BaseUserReportRequest}
601
- */
602
- proto.BaseUserReportRequest.deserializeBinaryFromReader = function(msg, reader) {
603
- while (reader.nextField()) {
604
- if (reader.isEndGroup()) {
605
- break;
606
- }
607
- var field = reader.getFieldNumber();
608
- switch (field) {
609
- case 1:
610
- var value = /** @type {string} */ (reader.readString());
611
- msg.addReportReferencesId(value);
612
- break;
613
- default:
614
- reader.skipField();
615
- break;
616
- }
617
- }
618
- return msg;
619
- };
620
-
621
-
622
- /**
623
- * Serializes the message to binary data (in protobuf wire format).
624
- * @return {!Uint8Array}
625
- */
626
- proto.BaseUserReportRequest.prototype.serializeBinary = function() {
627
- var writer = new jspb.BinaryWriter();
628
- proto.BaseUserReportRequest.serializeBinaryToWriter(this, writer);
629
- return writer.getResultBuffer();
630
- };
631
-
632
-
633
- /**
634
- * Serializes the given message to binary data (in protobuf wire
635
- * format), writing to the given BinaryWriter.
636
- * @param {!proto.BaseUserReportRequest} message
637
- * @param {!jspb.BinaryWriter} writer
638
- * @suppress {unusedLocalVariables} f is only used for nested messages
639
- */
640
- proto.BaseUserReportRequest.serializeBinaryToWriter = function(message, writer) {
641
- var f = undefined;
642
- f = message.getReportReferencesIdList();
643
- if (f.length > 0) {
644
- writer.writeRepeatedString(
645
- 1,
646
- f
647
- );
648
- }
649
- };
650
-
651
-
652
- /**
653
- * repeated string report_references_id = 1;
654
- * @return {!Array<string>}
655
- */
656
- proto.BaseUserReportRequest.prototype.getReportReferencesIdList = function() {
657
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
658
- };
659
-
660
-
661
- /**
662
- * @param {!Array<string>} value
663
- * @return {!proto.BaseUserReportRequest} returns this
664
- */
665
- proto.BaseUserReportRequest.prototype.setReportReferencesIdList = function(value) {
666
- return jspb.Message.setField(this, 1, value || []);
667
- };
668
-
669
-
670
- /**
671
- * @param {string} value
672
- * @param {number=} opt_index
673
- * @return {!proto.BaseUserReportRequest} returns this
674
- */
675
- proto.BaseUserReportRequest.prototype.addReportReferencesId = function(value, opt_index) {
676
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
677
- };
678
-
679
-
680
- /**
681
- * Clears the list making it empty but non-null.
682
- * @return {!proto.BaseUserReportRequest} returns this
683
- */
684
- proto.BaseUserReportRequest.prototype.clearReportReferencesIdList = function() {
685
- return this.setReportReferencesIdList([]);
686
- };
687
-
688
-
689
-
690
-
691
-
692
- if (jspb.Message.GENERATE_TO_OBJECT) {
693
- /**
694
- * Creates an object representation of this proto.
695
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
696
- * Optional fields that are not set will be set to undefined.
697
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
698
- * For the list of reserved names please see:
699
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
700
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
701
- * JSPB instance for transitional soy proto support:
702
- * http://goto/soy-param-migration
703
- * @return {!Object}
704
- */
705
- proto.CreateUserReportRequest.prototype.toObject = function(opt_includeInstance) {
706
- return proto.CreateUserReportRequest.toObject(opt_includeInstance, this);
707
- };
708
-
709
-
710
- /**
711
- * Static version of the {@see toObject} method.
712
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
713
- * the JSPB instance for transitional soy proto support:
714
- * http://goto/soy-param-migration
715
- * @param {!proto.CreateUserReportRequest} msg The msg instance to transform.
716
- * @return {!Object}
717
- * @suppress {unusedLocalVariables} f is only used for nested messages
718
- */
719
- proto.CreateUserReportRequest.toObject = function(includeInstance, msg) {
720
- var f, obj = {
721
- baseReport: (f = msg.getBaseReport()) && proto.BaseUserReportRequest.toObject(includeInstance, f)
722
- };
723
-
724
- if (includeInstance) {
725
- obj.$jspbMessageInstance = msg;
726
- }
727
- return obj;
728
- };
729
- }
730
-
731
-
732
- /**
733
- * Deserializes binary data (in protobuf wire format).
734
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
735
- * @return {!proto.CreateUserReportRequest}
736
- */
737
- proto.CreateUserReportRequest.deserializeBinary = function(bytes) {
738
- var reader = new jspb.BinaryReader(bytes);
739
- var msg = new proto.CreateUserReportRequest;
740
- return proto.CreateUserReportRequest.deserializeBinaryFromReader(msg, reader);
741
- };
742
-
743
-
744
- /**
745
- * Deserializes binary data (in protobuf wire format) from the
746
- * given reader into the given message object.
747
- * @param {!proto.CreateUserReportRequest} msg The message object to deserialize into.
748
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
749
- * @return {!proto.CreateUserReportRequest}
750
- */
751
- proto.CreateUserReportRequest.deserializeBinaryFromReader = function(msg, reader) {
752
- while (reader.nextField()) {
753
- if (reader.isEndGroup()) {
754
- break;
755
- }
756
- var field = reader.getFieldNumber();
757
- switch (field) {
758
- case 1:
759
- var value = new proto.BaseUserReportRequest;
760
- reader.readMessage(value,proto.BaseUserReportRequest.deserializeBinaryFromReader);
761
- msg.setBaseReport(value);
762
- break;
763
- default:
764
- reader.skipField();
765
- break;
766
- }
767
- }
768
- return msg;
769
- };
770
-
771
-
772
- /**
773
- * Serializes the message to binary data (in protobuf wire format).
774
- * @return {!Uint8Array}
775
- */
776
- proto.CreateUserReportRequest.prototype.serializeBinary = function() {
777
- var writer = new jspb.BinaryWriter();
778
- proto.CreateUserReportRequest.serializeBinaryToWriter(this, writer);
779
- return writer.getResultBuffer();
780
- };
781
-
782
-
783
- /**
784
- * Serializes the given message to binary data (in protobuf wire
785
- * format), writing to the given BinaryWriter.
786
- * @param {!proto.CreateUserReportRequest} message
787
- * @param {!jspb.BinaryWriter} writer
788
- * @suppress {unusedLocalVariables} f is only used for nested messages
789
- */
790
- proto.CreateUserReportRequest.serializeBinaryToWriter = function(message, writer) {
791
- var f = undefined;
792
- f = message.getBaseReport();
793
- if (f != null) {
794
- writer.writeMessage(
795
- 1,
796
- f,
797
- proto.BaseUserReportRequest.serializeBinaryToWriter
798
- );
799
- }
800
- };
801
-
802
-
803
- /**
804
- * optional BaseUserReportRequest base_report = 1;
805
- * @return {?proto.BaseUserReportRequest}
806
- */
807
- proto.CreateUserReportRequest.prototype.getBaseReport = function() {
808
- return /** @type{?proto.BaseUserReportRequest} */ (
809
- jspb.Message.getWrapperField(this, proto.BaseUserReportRequest, 1));
810
- };
811
-
812
-
813
- /**
814
- * @param {?proto.BaseUserReportRequest|undefined} value
815
- * @return {!proto.CreateUserReportRequest} returns this
816
- */
817
- proto.CreateUserReportRequest.prototype.setBaseReport = function(value) {
818
- return jspb.Message.setWrapperField(this, 1, value);
819
- };
820
-
821
-
822
- /**
823
- * Clears the message field making it undefined.
824
- * @return {!proto.CreateUserReportRequest} returns this
825
- */
826
- proto.CreateUserReportRequest.prototype.clearBaseReport = function() {
827
- return this.setBaseReport(undefined);
828
- };
829
-
830
-
831
- /**
832
- * Returns whether this field is set.
833
- * @return {boolean}
834
- */
835
- proto.CreateUserReportRequest.prototype.hasBaseReport = function() {
836
- return jspb.Message.getField(this, 1) != null;
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.UpdateUserReportRequest.prototype.toObject = function(opt_includeInstance) {
857
- return proto.UpdateUserReportRequest.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.UpdateUserReportRequest} msg The msg instance to transform.
867
- * @return {!Object}
868
- * @suppress {unusedLocalVariables} f is only used for nested messages
869
- */
870
- proto.UpdateUserReportRequest.toObject = function(includeInstance, msg) {
871
- var f, obj = {
872
- baseReport: (f = msg.getBaseReport()) && proto.BaseUserReportRequest.toObject(includeInstance, f)
873
- };
874
-
875
- if (includeInstance) {
876
- obj.$jspbMessageInstance = msg;
877
- }
878
- return obj;
879
- };
880
- }
881
-
882
-
883
- /**
884
- * Deserializes binary data (in protobuf wire format).
885
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
886
- * @return {!proto.UpdateUserReportRequest}
887
- */
888
- proto.UpdateUserReportRequest.deserializeBinary = function(bytes) {
889
- var reader = new jspb.BinaryReader(bytes);
890
- var msg = new proto.UpdateUserReportRequest;
891
- return proto.UpdateUserReportRequest.deserializeBinaryFromReader(msg, reader);
892
- };
893
-
894
-
895
- /**
896
- * Deserializes binary data (in protobuf wire format) from the
897
- * given reader into the given message object.
898
- * @param {!proto.UpdateUserReportRequest} msg The message object to deserialize into.
899
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
900
- * @return {!proto.UpdateUserReportRequest}
901
- */
902
- proto.UpdateUserReportRequest.deserializeBinaryFromReader = function(msg, reader) {
903
- while (reader.nextField()) {
904
- if (reader.isEndGroup()) {
905
- break;
906
- }
907
- var field = reader.getFieldNumber();
908
- switch (field) {
909
- case 1:
910
- var value = new proto.BaseUserReportRequest;
911
- reader.readMessage(value,proto.BaseUserReportRequest.deserializeBinaryFromReader);
912
- msg.setBaseReport(value);
913
- break;
914
- default:
915
- reader.skipField();
916
- break;
917
- }
918
- }
919
- return msg;
920
- };
921
-
922
-
923
- /**
924
- * Serializes the message to binary data (in protobuf wire format).
925
- * @return {!Uint8Array}
926
- */
927
- proto.UpdateUserReportRequest.prototype.serializeBinary = function() {
928
- var writer = new jspb.BinaryWriter();
929
- proto.UpdateUserReportRequest.serializeBinaryToWriter(this, writer);
930
- return writer.getResultBuffer();
931
- };
932
-
933
-
934
- /**
935
- * Serializes the given message to binary data (in protobuf wire
936
- * format), writing to the given BinaryWriter.
937
- * @param {!proto.UpdateUserReportRequest} message
938
- * @param {!jspb.BinaryWriter} writer
939
- * @suppress {unusedLocalVariables} f is only used for nested messages
940
- */
941
- proto.UpdateUserReportRequest.serializeBinaryToWriter = function(message, writer) {
942
- var f = undefined;
943
- f = message.getBaseReport();
944
- if (f != null) {
945
- writer.writeMessage(
946
- 1,
947
- f,
948
- proto.BaseUserReportRequest.serializeBinaryToWriter
949
- );
950
- }
951
- };
952
-
953
-
954
- /**
955
- * optional BaseUserReportRequest base_report = 1;
956
- * @return {?proto.BaseUserReportRequest}
957
- */
958
- proto.UpdateUserReportRequest.prototype.getBaseReport = function() {
959
- return /** @type{?proto.BaseUserReportRequest} */ (
960
- jspb.Message.getWrapperField(this, proto.BaseUserReportRequest, 1));
961
- };
962
-
963
-
964
- /**
965
- * @param {?proto.BaseUserReportRequest|undefined} value
966
- * @return {!proto.UpdateUserReportRequest} returns this
967
- */
968
- proto.UpdateUserReportRequest.prototype.setBaseReport = function(value) {
969
- return jspb.Message.setWrapperField(this, 1, value);
970
- };
971
-
972
-
973
- /**
974
- * Clears the message field making it undefined.
975
- * @return {!proto.UpdateUserReportRequest} returns this
976
- */
977
- proto.UpdateUserReportRequest.prototype.clearBaseReport = function() {
978
- return this.setBaseReport(undefined);
979
- };
980
-
981
-
982
- /**
983
- * Returns whether this field is set.
984
- * @return {boolean}
985
- */
986
- proto.UpdateUserReportRequest.prototype.hasBaseReport = function() {
987
- return jspb.Message.getField(this, 1) != null;
988
- };
989
-
990
-
991
-
992
-
993
-
994
- if (jspb.Message.GENERATE_TO_OBJECT) {
995
- /**
996
- * Creates an object representation of this proto.
997
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
998
- * Optional fields that are not set will be set to undefined.
999
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1000
- * For the list of reserved names please see:
1001
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1002
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1003
- * JSPB instance for transitional soy proto support:
1004
- * http://goto/soy-param-migration
1005
- * @return {!Object}
1006
- */
1007
- proto.GetListUserReportRequest.prototype.toObject = function(opt_includeInstance) {
1008
- return proto.GetListUserReportRequest.toObject(opt_includeInstance, this);
1009
- };
1010
-
1011
-
1012
- /**
1013
- * Static version of the {@see toObject} method.
1014
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1015
- * the JSPB instance for transitional soy proto support:
1016
- * http://goto/soy-param-migration
1017
- * @param {!proto.GetListUserReportRequest} msg The msg instance to transform.
1018
- * @return {!Object}
1019
- * @suppress {unusedLocalVariables} f is only used for nested messages
1020
- */
1021
- proto.GetListUserReportRequest.toObject = function(includeInstance, msg) {
1022
- var f, obj = {
1023
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1024
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1025
- };
1026
-
1027
- if (includeInstance) {
1028
- obj.$jspbMessageInstance = msg;
1029
- }
1030
- return obj;
1031
- };
1032
- }
1033
-
1034
-
1035
- /**
1036
- * Deserializes binary data (in protobuf wire format).
1037
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1038
- * @return {!proto.GetListUserReportRequest}
1039
- */
1040
- proto.GetListUserReportRequest.deserializeBinary = function(bytes) {
1041
- var reader = new jspb.BinaryReader(bytes);
1042
- var msg = new proto.GetListUserReportRequest;
1043
- return proto.GetListUserReportRequest.deserializeBinaryFromReader(msg, reader);
1044
- };
1045
-
1046
-
1047
- /**
1048
- * Deserializes binary data (in protobuf wire format) from the
1049
- * given reader into the given message object.
1050
- * @param {!proto.GetListUserReportRequest} msg The message object to deserialize into.
1051
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1052
- * @return {!proto.GetListUserReportRequest}
1053
- */
1054
- proto.GetListUserReportRequest.deserializeBinaryFromReader = function(msg, reader) {
1055
- while (reader.nextField()) {
1056
- if (reader.isEndGroup()) {
1057
- break;
1058
- }
1059
- var field = reader.getFieldNumber();
1060
- switch (field) {
1061
- case 1:
1062
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1063
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1064
- msg.setPagination(value);
1065
- break;
1066
- case 2:
1067
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1068
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1069
- msg.setQuery(value);
1070
- break;
1071
- default:
1072
- reader.skipField();
1073
- break;
1074
- }
1075
- }
1076
- return msg;
1077
- };
1078
-
1079
-
1080
- /**
1081
- * Serializes the message to binary data (in protobuf wire format).
1082
- * @return {!Uint8Array}
1083
- */
1084
- proto.GetListUserReportRequest.prototype.serializeBinary = function() {
1085
- var writer = new jspb.BinaryWriter();
1086
- proto.GetListUserReportRequest.serializeBinaryToWriter(this, writer);
1087
- return writer.getResultBuffer();
1088
- };
1089
-
1090
-
1091
- /**
1092
- * Serializes the given message to binary data (in protobuf wire
1093
- * format), writing to the given BinaryWriter.
1094
- * @param {!proto.GetListUserReportRequest} message
1095
- * @param {!jspb.BinaryWriter} writer
1096
- * @suppress {unusedLocalVariables} f is only used for nested messages
1097
- */
1098
- proto.GetListUserReportRequest.serializeBinaryToWriter = function(message, writer) {
1099
- var f = undefined;
1100
- f = message.getPagination();
1101
- if (f != null) {
1102
- writer.writeMessage(
1103
- 1,
1104
- f,
1105
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1106
- );
1107
- }
1108
- f = message.getQuery();
1109
- if (f != null) {
1110
- writer.writeMessage(
1111
- 2,
1112
- f,
1113
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1114
- );
1115
- }
1116
- };
1117
-
1118
-
1119
- /**
1120
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1121
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1122
- */
1123
- proto.GetListUserReportRequest.prototype.getPagination = function() {
1124
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1125
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1126
- };
1127
-
1128
-
1129
- /**
1130
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1131
- * @return {!proto.GetListUserReportRequest} returns this
1132
- */
1133
- proto.GetListUserReportRequest.prototype.setPagination = function(value) {
1134
- return jspb.Message.setWrapperField(this, 1, value);
1135
- };
1136
-
1137
-
1138
- /**
1139
- * Clears the message field making it undefined.
1140
- * @return {!proto.GetListUserReportRequest} returns this
1141
- */
1142
- proto.GetListUserReportRequest.prototype.clearPagination = function() {
1143
- return this.setPagination(undefined);
1144
- };
1145
-
1146
-
1147
- /**
1148
- * Returns whether this field is set.
1149
- * @return {boolean}
1150
- */
1151
- proto.GetListUserReportRequest.prototype.hasPagination = function() {
1152
- return jspb.Message.getField(this, 1) != null;
1153
- };
1154
-
1155
-
1156
- /**
1157
- * optional prisca.v1.global.meta.FilterRequest query = 2;
1158
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
1159
- */
1160
- proto.GetListUserReportRequest.prototype.getQuery = function() {
1161
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1162
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1163
- };
1164
-
1165
-
1166
- /**
1167
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1168
- * @return {!proto.GetListUserReportRequest} returns this
1169
- */
1170
- proto.GetListUserReportRequest.prototype.setQuery = function(value) {
1171
- return jspb.Message.setWrapperField(this, 2, value);
1172
- };
1173
-
1174
-
1175
- /**
1176
- * Clears the message field making it undefined.
1177
- * @return {!proto.GetListUserReportRequest} returns this
1178
- */
1179
- proto.GetListUserReportRequest.prototype.clearQuery = function() {
1180
- return this.setQuery(undefined);
1181
- };
1182
-
1183
-
1184
- /**
1185
- * Returns whether this field is set.
1186
- * @return {boolean}
1187
- */
1188
- proto.GetListUserReportRequest.prototype.hasQuery = function() {
1189
- return jspb.Message.getField(this, 2) != null;
1190
- };
1191
-
1192
-
1193
-
1194
-
1195
-
1196
- if (jspb.Message.GENERATE_TO_OBJECT) {
1197
- /**
1198
- * Creates an object representation of this proto.
1199
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1200
- * Optional fields that are not set will be set to undefined.
1201
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1202
- * For the list of reserved names please see:
1203
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1204
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1205
- * JSPB instance for transitional soy proto support:
1206
- * http://goto/soy-param-migration
1207
- * @return {!Object}
1208
- */
1209
- proto.GetUserReportByIdRequest.prototype.toObject = function(opt_includeInstance) {
1210
- return proto.GetUserReportByIdRequest.toObject(opt_includeInstance, this);
1211
- };
1212
-
1213
-
1214
- /**
1215
- * Static version of the {@see toObject} method.
1216
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1217
- * the JSPB instance for transitional soy proto support:
1218
- * http://goto/soy-param-migration
1219
- * @param {!proto.GetUserReportByIdRequest} msg The msg instance to transform.
1220
- * @return {!Object}
1221
- * @suppress {unusedLocalVariables} f is only used for nested messages
1222
- */
1223
- proto.GetUserReportByIdRequest.toObject = function(includeInstance, msg) {
1224
- var f, obj = {
1225
-
1226
- };
1227
-
1228
- if (includeInstance) {
1229
- obj.$jspbMessageInstance = msg;
1230
- }
1231
- return obj;
1232
- };
1233
- }
1234
-
1235
-
1236
- /**
1237
- * Deserializes binary data (in protobuf wire format).
1238
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1239
- * @return {!proto.GetUserReportByIdRequest}
1240
- */
1241
- proto.GetUserReportByIdRequest.deserializeBinary = function(bytes) {
1242
- var reader = new jspb.BinaryReader(bytes);
1243
- var msg = new proto.GetUserReportByIdRequest;
1244
- return proto.GetUserReportByIdRequest.deserializeBinaryFromReader(msg, reader);
1245
- };
1246
-
1247
-
1248
- /**
1249
- * Deserializes binary data (in protobuf wire format) from the
1250
- * given reader into the given message object.
1251
- * @param {!proto.GetUserReportByIdRequest} msg The message object to deserialize into.
1252
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1253
- * @return {!proto.GetUserReportByIdRequest}
1254
- */
1255
- proto.GetUserReportByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1256
- while (reader.nextField()) {
1257
- if (reader.isEndGroup()) {
1258
- break;
1259
- }
1260
- var field = reader.getFieldNumber();
1261
- switch (field) {
1262
- default:
1263
- reader.skipField();
1264
- break;
1265
- }
1266
- }
1267
- return msg;
1268
- };
1269
-
1270
-
1271
- /**
1272
- * Serializes the message to binary data (in protobuf wire format).
1273
- * @return {!Uint8Array}
1274
- */
1275
- proto.GetUserReportByIdRequest.prototype.serializeBinary = function() {
1276
- var writer = new jspb.BinaryWriter();
1277
- proto.GetUserReportByIdRequest.serializeBinaryToWriter(this, writer);
1278
- return writer.getResultBuffer();
1279
- };
1280
-
1281
-
1282
- /**
1283
- * Serializes the given message to binary data (in protobuf wire
1284
- * format), writing to the given BinaryWriter.
1285
- * @param {!proto.GetUserReportByIdRequest} message
1286
- * @param {!jspb.BinaryWriter} writer
1287
- * @suppress {unusedLocalVariables} f is only used for nested messages
1288
- */
1289
- proto.GetUserReportByIdRequest.serializeBinaryToWriter = function(message, writer) {
1290
- var f = undefined;
1291
- };
1292
-
1293
-
1294
-
1295
-
1296
-
1297
- if (jspb.Message.GENERATE_TO_OBJECT) {
1298
- /**
1299
- * Creates an object representation of this proto.
1300
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1301
- * Optional fields that are not set will be set to undefined.
1302
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1303
- * For the list of reserved names please see:
1304
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1305
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1306
- * JSPB instance for transitional soy proto support:
1307
- * http://goto/soy-param-migration
1308
- * @return {!Object}
1309
- */
1310
- proto.DeleteUserReportRequest.prototype.toObject = function(opt_includeInstance) {
1311
- return proto.DeleteUserReportRequest.toObject(opt_includeInstance, this);
1312
- };
1313
-
1314
-
1315
- /**
1316
- * Static version of the {@see toObject} method.
1317
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1318
- * the JSPB instance for transitional soy proto support:
1319
- * http://goto/soy-param-migration
1320
- * @param {!proto.DeleteUserReportRequest} msg The msg instance to transform.
1321
- * @return {!Object}
1322
- * @suppress {unusedLocalVariables} f is only used for nested messages
1323
- */
1324
- proto.DeleteUserReportRequest.toObject = function(includeInstance, msg) {
1325
- var f, obj = {
1326
- baseReport: (f = msg.getBaseReport()) && proto.BaseUserReportRequest.toObject(includeInstance, f)
1327
- };
1328
-
1329
- if (includeInstance) {
1330
- obj.$jspbMessageInstance = msg;
1331
- }
1332
- return obj;
1333
- };
1334
- }
1335
-
1336
-
1337
- /**
1338
- * Deserializes binary data (in protobuf wire format).
1339
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1340
- * @return {!proto.DeleteUserReportRequest}
1341
- */
1342
- proto.DeleteUserReportRequest.deserializeBinary = function(bytes) {
1343
- var reader = new jspb.BinaryReader(bytes);
1344
- var msg = new proto.DeleteUserReportRequest;
1345
- return proto.DeleteUserReportRequest.deserializeBinaryFromReader(msg, reader);
1346
- };
1347
-
1348
-
1349
- /**
1350
- * Deserializes binary data (in protobuf wire format) from the
1351
- * given reader into the given message object.
1352
- * @param {!proto.DeleteUserReportRequest} msg The message object to deserialize into.
1353
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1354
- * @return {!proto.DeleteUserReportRequest}
1355
- */
1356
- proto.DeleteUserReportRequest.deserializeBinaryFromReader = function(msg, reader) {
1357
- while (reader.nextField()) {
1358
- if (reader.isEndGroup()) {
1359
- break;
1360
- }
1361
- var field = reader.getFieldNumber();
1362
- switch (field) {
1363
- case 1:
1364
- var value = new proto.BaseUserReportRequest;
1365
- reader.readMessage(value,proto.BaseUserReportRequest.deserializeBinaryFromReader);
1366
- msg.setBaseReport(value);
1367
- break;
1368
- default:
1369
- reader.skipField();
1370
- break;
1371
- }
1372
- }
1373
- return msg;
1374
- };
1375
-
1376
-
1377
- /**
1378
- * Serializes the message to binary data (in protobuf wire format).
1379
- * @return {!Uint8Array}
1380
- */
1381
- proto.DeleteUserReportRequest.prototype.serializeBinary = function() {
1382
- var writer = new jspb.BinaryWriter();
1383
- proto.DeleteUserReportRequest.serializeBinaryToWriter(this, writer);
1384
- return writer.getResultBuffer();
1385
- };
1386
-
1387
-
1388
- /**
1389
- * Serializes the given message to binary data (in protobuf wire
1390
- * format), writing to the given BinaryWriter.
1391
- * @param {!proto.DeleteUserReportRequest} message
1392
- * @param {!jspb.BinaryWriter} writer
1393
- * @suppress {unusedLocalVariables} f is only used for nested messages
1394
- */
1395
- proto.DeleteUserReportRequest.serializeBinaryToWriter = function(message, writer) {
1396
- var f = undefined;
1397
- f = message.getBaseReport();
1398
- if (f != null) {
1399
- writer.writeMessage(
1400
- 1,
1401
- f,
1402
- proto.BaseUserReportRequest.serializeBinaryToWriter
1403
- );
1404
- }
1405
- };
1406
-
1407
-
1408
- /**
1409
- * optional BaseUserReportRequest base_report = 1;
1410
- * @return {?proto.BaseUserReportRequest}
1411
- */
1412
- proto.DeleteUserReportRequest.prototype.getBaseReport = function() {
1413
- return /** @type{?proto.BaseUserReportRequest} */ (
1414
- jspb.Message.getWrapperField(this, proto.BaseUserReportRequest, 1));
1415
- };
1416
-
1417
-
1418
- /**
1419
- * @param {?proto.BaseUserReportRequest|undefined} value
1420
- * @return {!proto.DeleteUserReportRequest} returns this
1421
- */
1422
- proto.DeleteUserReportRequest.prototype.setBaseReport = function(value) {
1423
- return jspb.Message.setWrapperField(this, 1, value);
1424
- };
1425
-
1426
-
1427
- /**
1428
- * Clears the message field making it undefined.
1429
- * @return {!proto.DeleteUserReportRequest} returns this
1430
- */
1431
- proto.DeleteUserReportRequest.prototype.clearBaseReport = function() {
1432
- return this.setBaseReport(undefined);
1433
- };
1434
-
1435
-
1436
- /**
1437
- * Returns whether this field is set.
1438
- * @return {boolean}
1439
- */
1440
- proto.DeleteUserReportRequest.prototype.hasBaseReport = function() {
1441
- return jspb.Message.getField(this, 1) != null;
1442
- };
1443
-
1444
-
1445
-
1446
-
1447
-
1448
- if (jspb.Message.GENERATE_TO_OBJECT) {
1449
- /**
1450
- * Creates an object representation of this proto.
1451
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1452
- * Optional fields that are not set will be set to undefined.
1453
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1454
- * For the list of reserved names please see:
1455
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1456
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1457
- * JSPB instance for transitional soy proto support:
1458
- * http://goto/soy-param-migration
1459
- * @return {!Object}
1460
- */
1461
- proto.CreateUserReportResponse.prototype.toObject = function(opt_includeInstance) {
1462
- return proto.CreateUserReportResponse.toObject(opt_includeInstance, this);
1463
- };
1464
-
1465
-
1466
- /**
1467
- * Static version of the {@see toObject} method.
1468
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1469
- * the JSPB instance for transitional soy proto support:
1470
- * http://goto/soy-param-migration
1471
- * @param {!proto.CreateUserReportResponse} msg The msg instance to transform.
1472
- * @return {!Object}
1473
- * @suppress {unusedLocalVariables} f is only used for nested messages
1474
- */
1475
- proto.CreateUserReportResponse.toObject = function(includeInstance, msg) {
1476
- var f, obj = {
1477
- userReport: (f = msg.getUserReport()) && proto.BaseUserReportRequest.toObject(includeInstance, f),
1478
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1479
- };
1480
-
1481
- if (includeInstance) {
1482
- obj.$jspbMessageInstance = msg;
1483
- }
1484
- return obj;
1485
- };
1486
- }
1487
-
1488
-
1489
- /**
1490
- * Deserializes binary data (in protobuf wire format).
1491
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1492
- * @return {!proto.CreateUserReportResponse}
1493
- */
1494
- proto.CreateUserReportResponse.deserializeBinary = function(bytes) {
1495
- var reader = new jspb.BinaryReader(bytes);
1496
- var msg = new proto.CreateUserReportResponse;
1497
- return proto.CreateUserReportResponse.deserializeBinaryFromReader(msg, reader);
1498
- };
1499
-
1500
-
1501
- /**
1502
- * Deserializes binary data (in protobuf wire format) from the
1503
- * given reader into the given message object.
1504
- * @param {!proto.CreateUserReportResponse} msg The message object to deserialize into.
1505
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1506
- * @return {!proto.CreateUserReportResponse}
1507
- */
1508
- proto.CreateUserReportResponse.deserializeBinaryFromReader = function(msg, reader) {
1509
- while (reader.nextField()) {
1510
- if (reader.isEndGroup()) {
1511
- break;
1512
- }
1513
- var field = reader.getFieldNumber();
1514
- switch (field) {
1515
- case 1:
1516
- var value = new proto.BaseUserReportRequest;
1517
- reader.readMessage(value,proto.BaseUserReportRequest.deserializeBinaryFromReader);
1518
- msg.setUserReport(value);
1519
- break;
1520
- case 2:
1521
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1522
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1523
- msg.setMeta(value);
1524
- break;
1525
- default:
1526
- reader.skipField();
1527
- break;
1528
- }
1529
- }
1530
- return msg;
1531
- };
1532
-
1533
-
1534
- /**
1535
- * Serializes the message to binary data (in protobuf wire format).
1536
- * @return {!Uint8Array}
1537
- */
1538
- proto.CreateUserReportResponse.prototype.serializeBinary = function() {
1539
- var writer = new jspb.BinaryWriter();
1540
- proto.CreateUserReportResponse.serializeBinaryToWriter(this, writer);
1541
- return writer.getResultBuffer();
1542
- };
1543
-
1544
-
1545
- /**
1546
- * Serializes the given message to binary data (in protobuf wire
1547
- * format), writing to the given BinaryWriter.
1548
- * @param {!proto.CreateUserReportResponse} message
1549
- * @param {!jspb.BinaryWriter} writer
1550
- * @suppress {unusedLocalVariables} f is only used for nested messages
1551
- */
1552
- proto.CreateUserReportResponse.serializeBinaryToWriter = function(message, writer) {
1553
- var f = undefined;
1554
- f = message.getUserReport();
1555
- if (f != null) {
1556
- writer.writeMessage(
1557
- 1,
1558
- f,
1559
- proto.BaseUserReportRequest.serializeBinaryToWriter
1560
- );
1561
- }
1562
- f = message.getMeta();
1563
- if (f != null) {
1564
- writer.writeMessage(
1565
- 2,
1566
- f,
1567
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1568
- );
1569
- }
1570
- };
1571
-
1572
-
1573
- /**
1574
- * optional BaseUserReportRequest user_report = 1;
1575
- * @return {?proto.BaseUserReportRequest}
1576
- */
1577
- proto.CreateUserReportResponse.prototype.getUserReport = function() {
1578
- return /** @type{?proto.BaseUserReportRequest} */ (
1579
- jspb.Message.getWrapperField(this, proto.BaseUserReportRequest, 1));
1580
- };
1581
-
1582
-
1583
- /**
1584
- * @param {?proto.BaseUserReportRequest|undefined} value
1585
- * @return {!proto.CreateUserReportResponse} returns this
1586
- */
1587
- proto.CreateUserReportResponse.prototype.setUserReport = function(value) {
1588
- return jspb.Message.setWrapperField(this, 1, value);
1589
- };
1590
-
1591
-
1592
- /**
1593
- * Clears the message field making it undefined.
1594
- * @return {!proto.CreateUserReportResponse} returns this
1595
- */
1596
- proto.CreateUserReportResponse.prototype.clearUserReport = function() {
1597
- return this.setUserReport(undefined);
1598
- };
1599
-
1600
-
1601
- /**
1602
- * Returns whether this field is set.
1603
- * @return {boolean}
1604
- */
1605
- proto.CreateUserReportResponse.prototype.hasUserReport = function() {
1606
- return jspb.Message.getField(this, 1) != null;
1607
- };
1608
-
1609
-
1610
- /**
1611
- * optional prisca.v1.global.meta.Meta meta = 2;
1612
- * @return {?proto.prisca.v1.global.meta.Meta}
1613
- */
1614
- proto.CreateUserReportResponse.prototype.getMeta = function() {
1615
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1616
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1617
- };
1618
-
1619
-
1620
- /**
1621
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1622
- * @return {!proto.CreateUserReportResponse} returns this
1623
- */
1624
- proto.CreateUserReportResponse.prototype.setMeta = function(value) {
1625
- return jspb.Message.setWrapperField(this, 2, value);
1626
- };
1627
-
1628
-
1629
- /**
1630
- * Clears the message field making it undefined.
1631
- * @return {!proto.CreateUserReportResponse} returns this
1632
- */
1633
- proto.CreateUserReportResponse.prototype.clearMeta = function() {
1634
- return this.setMeta(undefined);
1635
- };
1636
-
1637
-
1638
- /**
1639
- * Returns whether this field is set.
1640
- * @return {boolean}
1641
- */
1642
- proto.CreateUserReportResponse.prototype.hasMeta = function() {
1643
- return jspb.Message.getField(this, 2) != null;
1644
- };
1645
-
1646
-
1647
-
1648
-
1649
-
1650
- if (jspb.Message.GENERATE_TO_OBJECT) {
1651
- /**
1652
- * Creates an object representation of this proto.
1653
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1654
- * Optional fields that are not set will be set to undefined.
1655
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1656
- * For the list of reserved names please see:
1657
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1658
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1659
- * JSPB instance for transitional soy proto support:
1660
- * http://goto/soy-param-migration
1661
- * @return {!Object}
1662
- */
1663
- proto.UpdateUserReportResponse.prototype.toObject = function(opt_includeInstance) {
1664
- return proto.UpdateUserReportResponse.toObject(opt_includeInstance, this);
1665
- };
1666
-
1667
-
1668
- /**
1669
- * Static version of the {@see toObject} method.
1670
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1671
- * the JSPB instance for transitional soy proto support:
1672
- * http://goto/soy-param-migration
1673
- * @param {!proto.UpdateUserReportResponse} msg The msg instance to transform.
1674
- * @return {!Object}
1675
- * @suppress {unusedLocalVariables} f is only used for nested messages
1676
- */
1677
- proto.UpdateUserReportResponse.toObject = function(includeInstance, msg) {
1678
- var f, obj = {
1679
- userReport: (f = msg.getUserReport()) && proto.BaseUserReportRequest.toObject(includeInstance, f),
1680
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1681
- };
1682
-
1683
- if (includeInstance) {
1684
- obj.$jspbMessageInstance = msg;
1685
- }
1686
- return obj;
1687
- };
1688
- }
1689
-
1690
-
1691
- /**
1692
- * Deserializes binary data (in protobuf wire format).
1693
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1694
- * @return {!proto.UpdateUserReportResponse}
1695
- */
1696
- proto.UpdateUserReportResponse.deserializeBinary = function(bytes) {
1697
- var reader = new jspb.BinaryReader(bytes);
1698
- var msg = new proto.UpdateUserReportResponse;
1699
- return proto.UpdateUserReportResponse.deserializeBinaryFromReader(msg, reader);
1700
- };
1701
-
1702
-
1703
- /**
1704
- * Deserializes binary data (in protobuf wire format) from the
1705
- * given reader into the given message object.
1706
- * @param {!proto.UpdateUserReportResponse} msg The message object to deserialize into.
1707
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1708
- * @return {!proto.UpdateUserReportResponse}
1709
- */
1710
- proto.UpdateUserReportResponse.deserializeBinaryFromReader = function(msg, reader) {
1711
- while (reader.nextField()) {
1712
- if (reader.isEndGroup()) {
1713
- break;
1714
- }
1715
- var field = reader.getFieldNumber();
1716
- switch (field) {
1717
- case 1:
1718
- var value = new proto.BaseUserReportRequest;
1719
- reader.readMessage(value,proto.BaseUserReportRequest.deserializeBinaryFromReader);
1720
- msg.setUserReport(value);
1721
- break;
1722
- case 2:
1723
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1724
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1725
- msg.setMeta(value);
1726
- break;
1727
- default:
1728
- reader.skipField();
1729
- break;
1730
- }
1731
- }
1732
- return msg;
1733
- };
1734
-
1735
-
1736
- /**
1737
- * Serializes the message to binary data (in protobuf wire format).
1738
- * @return {!Uint8Array}
1739
- */
1740
- proto.UpdateUserReportResponse.prototype.serializeBinary = function() {
1741
- var writer = new jspb.BinaryWriter();
1742
- proto.UpdateUserReportResponse.serializeBinaryToWriter(this, writer);
1743
- return writer.getResultBuffer();
1744
- };
1745
-
1746
-
1747
- /**
1748
- * Serializes the given message to binary data (in protobuf wire
1749
- * format), writing to the given BinaryWriter.
1750
- * @param {!proto.UpdateUserReportResponse} message
1751
- * @param {!jspb.BinaryWriter} writer
1752
- * @suppress {unusedLocalVariables} f is only used for nested messages
1753
- */
1754
- proto.UpdateUserReportResponse.serializeBinaryToWriter = function(message, writer) {
1755
- var f = undefined;
1756
- f = message.getUserReport();
1757
- if (f != null) {
1758
- writer.writeMessage(
1759
- 1,
1760
- f,
1761
- proto.BaseUserReportRequest.serializeBinaryToWriter
1762
- );
1763
- }
1764
- f = message.getMeta();
1765
- if (f != null) {
1766
- writer.writeMessage(
1767
- 2,
1768
- f,
1769
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1770
- );
1771
- }
1772
- };
1773
-
1774
-
1775
- /**
1776
- * optional BaseUserReportRequest user_report = 1;
1777
- * @return {?proto.BaseUserReportRequest}
1778
- */
1779
- proto.UpdateUserReportResponse.prototype.getUserReport = function() {
1780
- return /** @type{?proto.BaseUserReportRequest} */ (
1781
- jspb.Message.getWrapperField(this, proto.BaseUserReportRequest, 1));
1782
- };
1783
-
1784
-
1785
- /**
1786
- * @param {?proto.BaseUserReportRequest|undefined} value
1787
- * @return {!proto.UpdateUserReportResponse} returns this
1788
- */
1789
- proto.UpdateUserReportResponse.prototype.setUserReport = function(value) {
1790
- return jspb.Message.setWrapperField(this, 1, value);
1791
- };
1792
-
1793
-
1794
- /**
1795
- * Clears the message field making it undefined.
1796
- * @return {!proto.UpdateUserReportResponse} returns this
1797
- */
1798
- proto.UpdateUserReportResponse.prototype.clearUserReport = function() {
1799
- return this.setUserReport(undefined);
1800
- };
1801
-
1802
-
1803
- /**
1804
- * Returns whether this field is set.
1805
- * @return {boolean}
1806
- */
1807
- proto.UpdateUserReportResponse.prototype.hasUserReport = function() {
1808
- return jspb.Message.getField(this, 1) != null;
1809
- };
1810
-
1811
-
1812
- /**
1813
- * optional prisca.v1.global.meta.Meta meta = 2;
1814
- * @return {?proto.prisca.v1.global.meta.Meta}
1815
- */
1816
- proto.UpdateUserReportResponse.prototype.getMeta = function() {
1817
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1818
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1819
- };
1820
-
1821
-
1822
- /**
1823
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1824
- * @return {!proto.UpdateUserReportResponse} returns this
1825
- */
1826
- proto.UpdateUserReportResponse.prototype.setMeta = function(value) {
1827
- return jspb.Message.setWrapperField(this, 2, value);
1828
- };
1829
-
1830
-
1831
- /**
1832
- * Clears the message field making it undefined.
1833
- * @return {!proto.UpdateUserReportResponse} returns this
1834
- */
1835
- proto.UpdateUserReportResponse.prototype.clearMeta = function() {
1836
- return this.setMeta(undefined);
1837
- };
1838
-
1839
-
1840
- /**
1841
- * Returns whether this field is set.
1842
- * @return {boolean}
1843
- */
1844
- proto.UpdateUserReportResponse.prototype.hasMeta = function() {
1845
- return jspb.Message.getField(this, 2) != null;
1846
- };
1847
-
1848
-
1849
-
1850
- /**
1851
- * List of repeated fields within this message type.
1852
- * @private {!Array<number>}
1853
- * @const
1854
- */
1855
- proto.GetListUserReportResponse.repeatedFields_ = [1];
1856
-
1857
-
1858
-
1859
- if (jspb.Message.GENERATE_TO_OBJECT) {
1860
- /**
1861
- * Creates an object representation of this proto.
1862
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1863
- * Optional fields that are not set will be set to undefined.
1864
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1865
- * For the list of reserved names please see:
1866
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1867
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1868
- * JSPB instance for transitional soy proto support:
1869
- * http://goto/soy-param-migration
1870
- * @return {!Object}
1871
- */
1872
- proto.GetListUserReportResponse.prototype.toObject = function(opt_includeInstance) {
1873
- return proto.GetListUserReportResponse.toObject(opt_includeInstance, this);
1874
- };
1875
-
1876
-
1877
- /**
1878
- * Static version of the {@see toObject} method.
1879
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1880
- * the JSPB instance for transitional soy proto support:
1881
- * http://goto/soy-param-migration
1882
- * @param {!proto.GetListUserReportResponse} msg The msg instance to transform.
1883
- * @return {!Object}
1884
- * @suppress {unusedLocalVariables} f is only used for nested messages
1885
- */
1886
- proto.GetListUserReportResponse.toObject = function(includeInstance, msg) {
1887
- var f, obj = {
1888
- reportsList: jspb.Message.toObjectList(msg.getReportsList(),
1889
- proto.UserReport.toObject, includeInstance),
1890
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1891
- };
1892
-
1893
- if (includeInstance) {
1894
- obj.$jspbMessageInstance = msg;
1895
- }
1896
- return obj;
1897
- };
1898
- }
1899
-
1900
-
1901
- /**
1902
- * Deserializes binary data (in protobuf wire format).
1903
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1904
- * @return {!proto.GetListUserReportResponse}
1905
- */
1906
- proto.GetListUserReportResponse.deserializeBinary = function(bytes) {
1907
- var reader = new jspb.BinaryReader(bytes);
1908
- var msg = new proto.GetListUserReportResponse;
1909
- return proto.GetListUserReportResponse.deserializeBinaryFromReader(msg, reader);
1910
- };
1911
-
1912
-
1913
- /**
1914
- * Deserializes binary data (in protobuf wire format) from the
1915
- * given reader into the given message object.
1916
- * @param {!proto.GetListUserReportResponse} msg The message object to deserialize into.
1917
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1918
- * @return {!proto.GetListUserReportResponse}
1919
- */
1920
- proto.GetListUserReportResponse.deserializeBinaryFromReader = function(msg, reader) {
1921
- while (reader.nextField()) {
1922
- if (reader.isEndGroup()) {
1923
- break;
1924
- }
1925
- var field = reader.getFieldNumber();
1926
- switch (field) {
1927
- case 1:
1928
- var value = new proto.UserReport;
1929
- reader.readMessage(value,proto.UserReport.deserializeBinaryFromReader);
1930
- msg.addReports(value);
1931
- break;
1932
- case 2:
1933
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1934
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1935
- msg.setMeta(value);
1936
- break;
1937
- default:
1938
- reader.skipField();
1939
- break;
1940
- }
1941
- }
1942
- return msg;
1943
- };
1944
-
1945
-
1946
- /**
1947
- * Serializes the message to binary data (in protobuf wire format).
1948
- * @return {!Uint8Array}
1949
- */
1950
- proto.GetListUserReportResponse.prototype.serializeBinary = function() {
1951
- var writer = new jspb.BinaryWriter();
1952
- proto.GetListUserReportResponse.serializeBinaryToWriter(this, writer);
1953
- return writer.getResultBuffer();
1954
- };
1955
-
1956
-
1957
- /**
1958
- * Serializes the given message to binary data (in protobuf wire
1959
- * format), writing to the given BinaryWriter.
1960
- * @param {!proto.GetListUserReportResponse} message
1961
- * @param {!jspb.BinaryWriter} writer
1962
- * @suppress {unusedLocalVariables} f is only used for nested messages
1963
- */
1964
- proto.GetListUserReportResponse.serializeBinaryToWriter = function(message, writer) {
1965
- var f = undefined;
1966
- f = message.getReportsList();
1967
- if (f.length > 0) {
1968
- writer.writeRepeatedMessage(
1969
- 1,
1970
- f,
1971
- proto.UserReport.serializeBinaryToWriter
1972
- );
1973
- }
1974
- f = message.getMeta();
1975
- if (f != null) {
1976
- writer.writeMessage(
1977
- 2,
1978
- f,
1979
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1980
- );
1981
- }
1982
- };
1983
-
1984
-
1985
- /**
1986
- * repeated UserReport reports = 1;
1987
- * @return {!Array<!proto.UserReport>}
1988
- */
1989
- proto.GetListUserReportResponse.prototype.getReportsList = function() {
1990
- return /** @type{!Array<!proto.UserReport>} */ (
1991
- jspb.Message.getRepeatedWrapperField(this, proto.UserReport, 1));
1992
- };
1993
-
1994
-
1995
- /**
1996
- * @param {!Array<!proto.UserReport>} value
1997
- * @return {!proto.GetListUserReportResponse} returns this
1998
- */
1999
- proto.GetListUserReportResponse.prototype.setReportsList = function(value) {
2000
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2001
- };
2002
-
2003
-
2004
- /**
2005
- * @param {!proto.UserReport=} opt_value
2006
- * @param {number=} opt_index
2007
- * @return {!proto.UserReport}
2008
- */
2009
- proto.GetListUserReportResponse.prototype.addReports = function(opt_value, opt_index) {
2010
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.UserReport, opt_index);
2011
- };
2012
-
2013
-
2014
- /**
2015
- * Clears the list making it empty but non-null.
2016
- * @return {!proto.GetListUserReportResponse} returns this
2017
- */
2018
- proto.GetListUserReportResponse.prototype.clearReportsList = function() {
2019
- return this.setReportsList([]);
2020
- };
2021
-
2022
-
2023
- /**
2024
- * optional prisca.v1.global.meta.Meta meta = 2;
2025
- * @return {?proto.prisca.v1.global.meta.Meta}
2026
- */
2027
- proto.GetListUserReportResponse.prototype.getMeta = function() {
2028
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2029
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2030
- };
2031
-
2032
-
2033
- /**
2034
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2035
- * @return {!proto.GetListUserReportResponse} returns this
2036
- */
2037
- proto.GetListUserReportResponse.prototype.setMeta = function(value) {
2038
- return jspb.Message.setWrapperField(this, 2, value);
2039
- };
2040
-
2041
-
2042
- /**
2043
- * Clears the message field making it undefined.
2044
- * @return {!proto.GetListUserReportResponse} returns this
2045
- */
2046
- proto.GetListUserReportResponse.prototype.clearMeta = function() {
2047
- return this.setMeta(undefined);
2048
- };
2049
-
2050
-
2051
- /**
2052
- * Returns whether this field is set.
2053
- * @return {boolean}
2054
- */
2055
- proto.GetListUserReportResponse.prototype.hasMeta = function() {
2056
- return jspb.Message.getField(this, 2) != null;
2057
- };
2058
-
2059
-
2060
-
2061
- /**
2062
- * List of repeated fields within this message type.
2063
- * @private {!Array<number>}
2064
- * @const
2065
- */
2066
- proto.GetUserReportByIdResponse.repeatedFields_ = [1];
2067
-
2068
-
2069
-
2070
- if (jspb.Message.GENERATE_TO_OBJECT) {
2071
- /**
2072
- * Creates an object representation of this proto.
2073
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2074
- * Optional fields that are not set will be set to undefined.
2075
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2076
- * For the list of reserved names please see:
2077
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2078
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2079
- * JSPB instance for transitional soy proto support:
2080
- * http://goto/soy-param-migration
2081
- * @return {!Object}
2082
- */
2083
- proto.GetUserReportByIdResponse.prototype.toObject = function(opt_includeInstance) {
2084
- return proto.GetUserReportByIdResponse.toObject(opt_includeInstance, this);
2085
- };
2086
-
2087
-
2088
- /**
2089
- * Static version of the {@see toObject} method.
2090
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2091
- * the JSPB instance for transitional soy proto support:
2092
- * http://goto/soy-param-migration
2093
- * @param {!proto.GetUserReportByIdResponse} msg The msg instance to transform.
2094
- * @return {!Object}
2095
- * @suppress {unusedLocalVariables} f is only used for nested messages
2096
- */
2097
- proto.GetUserReportByIdResponse.toObject = function(includeInstance, msg) {
2098
- var f, obj = {
2099
- reportsList: jspb.Message.toObjectList(msg.getReportsList(),
2100
- proto.UserReport.toObject, includeInstance),
2101
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2102
- };
2103
-
2104
- if (includeInstance) {
2105
- obj.$jspbMessageInstance = msg;
2106
- }
2107
- return obj;
2108
- };
2109
- }
2110
-
2111
-
2112
- /**
2113
- * Deserializes binary data (in protobuf wire format).
2114
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2115
- * @return {!proto.GetUserReportByIdResponse}
2116
- */
2117
- proto.GetUserReportByIdResponse.deserializeBinary = function(bytes) {
2118
- var reader = new jspb.BinaryReader(bytes);
2119
- var msg = new proto.GetUserReportByIdResponse;
2120
- return proto.GetUserReportByIdResponse.deserializeBinaryFromReader(msg, reader);
2121
- };
2122
-
2123
-
2124
- /**
2125
- * Deserializes binary data (in protobuf wire format) from the
2126
- * given reader into the given message object.
2127
- * @param {!proto.GetUserReportByIdResponse} msg The message object to deserialize into.
2128
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2129
- * @return {!proto.GetUserReportByIdResponse}
2130
- */
2131
- proto.GetUserReportByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2132
- while (reader.nextField()) {
2133
- if (reader.isEndGroup()) {
2134
- break;
2135
- }
2136
- var field = reader.getFieldNumber();
2137
- switch (field) {
2138
- case 1:
2139
- var value = new proto.UserReport;
2140
- reader.readMessage(value,proto.UserReport.deserializeBinaryFromReader);
2141
- msg.addReports(value);
2142
- break;
2143
- case 2:
2144
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2145
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2146
- msg.setMeta(value);
2147
- break;
2148
- default:
2149
- reader.skipField();
2150
- break;
2151
- }
2152
- }
2153
- return msg;
2154
- };
2155
-
2156
-
2157
- /**
2158
- * Serializes the message to binary data (in protobuf wire format).
2159
- * @return {!Uint8Array}
2160
- */
2161
- proto.GetUserReportByIdResponse.prototype.serializeBinary = function() {
2162
- var writer = new jspb.BinaryWriter();
2163
- proto.GetUserReportByIdResponse.serializeBinaryToWriter(this, writer);
2164
- return writer.getResultBuffer();
2165
- };
2166
-
2167
-
2168
- /**
2169
- * Serializes the given message to binary data (in protobuf wire
2170
- * format), writing to the given BinaryWriter.
2171
- * @param {!proto.GetUserReportByIdResponse} message
2172
- * @param {!jspb.BinaryWriter} writer
2173
- * @suppress {unusedLocalVariables} f is only used for nested messages
2174
- */
2175
- proto.GetUserReportByIdResponse.serializeBinaryToWriter = function(message, writer) {
2176
- var f = undefined;
2177
- f = message.getReportsList();
2178
- if (f.length > 0) {
2179
- writer.writeRepeatedMessage(
2180
- 1,
2181
- f,
2182
- proto.UserReport.serializeBinaryToWriter
2183
- );
2184
- }
2185
- f = message.getMeta();
2186
- if (f != null) {
2187
- writer.writeMessage(
2188
- 2,
2189
- f,
2190
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2191
- );
2192
- }
2193
- };
2194
-
2195
-
2196
- /**
2197
- * repeated UserReport reports = 1;
2198
- * @return {!Array<!proto.UserReport>}
2199
- */
2200
- proto.GetUserReportByIdResponse.prototype.getReportsList = function() {
2201
- return /** @type{!Array<!proto.UserReport>} */ (
2202
- jspb.Message.getRepeatedWrapperField(this, proto.UserReport, 1));
2203
- };
2204
-
2205
-
2206
- /**
2207
- * @param {!Array<!proto.UserReport>} value
2208
- * @return {!proto.GetUserReportByIdResponse} returns this
2209
- */
2210
- proto.GetUserReportByIdResponse.prototype.setReportsList = function(value) {
2211
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2212
- };
2213
-
2214
-
2215
- /**
2216
- * @param {!proto.UserReport=} opt_value
2217
- * @param {number=} opt_index
2218
- * @return {!proto.UserReport}
2219
- */
2220
- proto.GetUserReportByIdResponse.prototype.addReports = function(opt_value, opt_index) {
2221
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.UserReport, opt_index);
2222
- };
2223
-
2224
-
2225
- /**
2226
- * Clears the list making it empty but non-null.
2227
- * @return {!proto.GetUserReportByIdResponse} returns this
2228
- */
2229
- proto.GetUserReportByIdResponse.prototype.clearReportsList = function() {
2230
- return this.setReportsList([]);
2231
- };
2232
-
2233
-
2234
- /**
2235
- * optional prisca.v1.global.meta.Meta meta = 2;
2236
- * @return {?proto.prisca.v1.global.meta.Meta}
2237
- */
2238
- proto.GetUserReportByIdResponse.prototype.getMeta = function() {
2239
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2240
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2241
- };
2242
-
2243
-
2244
- /**
2245
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2246
- * @return {!proto.GetUserReportByIdResponse} returns this
2247
- */
2248
- proto.GetUserReportByIdResponse.prototype.setMeta = function(value) {
2249
- return jspb.Message.setWrapperField(this, 2, value);
2250
- };
2251
-
2252
-
2253
- /**
2254
- * Clears the message field making it undefined.
2255
- * @return {!proto.GetUserReportByIdResponse} returns this
2256
- */
2257
- proto.GetUserReportByIdResponse.prototype.clearMeta = function() {
2258
- return this.setMeta(undefined);
2259
- };
2260
-
2261
-
2262
- /**
2263
- * Returns whether this field is set.
2264
- * @return {boolean}
2265
- */
2266
- proto.GetUserReportByIdResponse.prototype.hasMeta = function() {
2267
- return jspb.Message.getField(this, 2) != null;
2268
- };
2269
-
2270
-
2271
-
2272
-
2273
-
2274
- if (jspb.Message.GENERATE_TO_OBJECT) {
2275
- /**
2276
- * Creates an object representation of this proto.
2277
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2278
- * Optional fields that are not set will be set to undefined.
2279
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2280
- * For the list of reserved names please see:
2281
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2282
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2283
- * JSPB instance for transitional soy proto support:
2284
- * http://goto/soy-param-migration
2285
- * @return {!Object}
2286
- */
2287
- proto.DeleteUserReportResponse.prototype.toObject = function(opt_includeInstance) {
2288
- return proto.DeleteUserReportResponse.toObject(opt_includeInstance, this);
2289
- };
2290
-
2291
-
2292
- /**
2293
- * Static version of the {@see toObject} method.
2294
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2295
- * the JSPB instance for transitional soy proto support:
2296
- * http://goto/soy-param-migration
2297
- * @param {!proto.DeleteUserReportResponse} msg The msg instance to transform.
2298
- * @return {!Object}
2299
- * @suppress {unusedLocalVariables} f is only used for nested messages
2300
- */
2301
- proto.DeleteUserReportResponse.toObject = function(includeInstance, msg) {
2302
- var f, obj = {
2303
- userReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2304
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2305
- };
2306
-
2307
- if (includeInstance) {
2308
- obj.$jspbMessageInstance = msg;
2309
- }
2310
- return obj;
2311
- };
2312
- }
2313
-
2314
-
2315
- /**
2316
- * Deserializes binary data (in protobuf wire format).
2317
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2318
- * @return {!proto.DeleteUserReportResponse}
2319
- */
2320
- proto.DeleteUserReportResponse.deserializeBinary = function(bytes) {
2321
- var reader = new jspb.BinaryReader(bytes);
2322
- var msg = new proto.DeleteUserReportResponse;
2323
- return proto.DeleteUserReportResponse.deserializeBinaryFromReader(msg, reader);
2324
- };
2325
-
2326
-
2327
- /**
2328
- * Deserializes binary data (in protobuf wire format) from the
2329
- * given reader into the given message object.
2330
- * @param {!proto.DeleteUserReportResponse} msg The message object to deserialize into.
2331
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2332
- * @return {!proto.DeleteUserReportResponse}
2333
- */
2334
- proto.DeleteUserReportResponse.deserializeBinaryFromReader = function(msg, reader) {
2335
- while (reader.nextField()) {
2336
- if (reader.isEndGroup()) {
2337
- break;
2338
- }
2339
- var field = reader.getFieldNumber();
2340
- switch (field) {
2341
- case 1:
2342
- var value = /** @type {string} */ (reader.readString());
2343
- msg.setUserReferencesId(value);
2344
- break;
2345
- case 2:
2346
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2347
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2348
- msg.setMeta(value);
2349
- break;
2350
- default:
2351
- reader.skipField();
2352
- break;
2353
- }
2354
- }
2355
- return msg;
2356
- };
2357
-
2358
-
2359
- /**
2360
- * Serializes the message to binary data (in protobuf wire format).
2361
- * @return {!Uint8Array}
2362
- */
2363
- proto.DeleteUserReportResponse.prototype.serializeBinary = function() {
2364
- var writer = new jspb.BinaryWriter();
2365
- proto.DeleteUserReportResponse.serializeBinaryToWriter(this, writer);
2366
- return writer.getResultBuffer();
2367
- };
2368
-
2369
-
2370
- /**
2371
- * Serializes the given message to binary data (in protobuf wire
2372
- * format), writing to the given BinaryWriter.
2373
- * @param {!proto.DeleteUserReportResponse} message
2374
- * @param {!jspb.BinaryWriter} writer
2375
- * @suppress {unusedLocalVariables} f is only used for nested messages
2376
- */
2377
- proto.DeleteUserReportResponse.serializeBinaryToWriter = function(message, writer) {
2378
- var f = undefined;
2379
- f = message.getUserReferencesId();
2380
- if (f.length > 0) {
2381
- writer.writeString(
2382
- 1,
2383
- f
2384
- );
2385
- }
2386
- f = message.getMeta();
2387
- if (f != null) {
2388
- writer.writeMessage(
2389
- 2,
2390
- f,
2391
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2392
- );
2393
- }
2394
- };
2395
-
2396
-
2397
- /**
2398
- * optional string user_references_id = 1;
2399
- * @return {string}
2400
- */
2401
- proto.DeleteUserReportResponse.prototype.getUserReferencesId = function() {
2402
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2403
- };
2404
-
2405
-
2406
- /**
2407
- * @param {string} value
2408
- * @return {!proto.DeleteUserReportResponse} returns this
2409
- */
2410
- proto.DeleteUserReportResponse.prototype.setUserReferencesId = function(value) {
2411
- return jspb.Message.setProto3StringField(this, 1, value);
2412
- };
2413
-
2414
-
2415
- /**
2416
- * optional prisca.v1.global.meta.Meta meta = 2;
2417
- * @return {?proto.prisca.v1.global.meta.Meta}
2418
- */
2419
- proto.DeleteUserReportResponse.prototype.getMeta = function() {
2420
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2421
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2422
- };
2423
-
2424
-
2425
- /**
2426
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2427
- * @return {!proto.DeleteUserReportResponse} returns this
2428
- */
2429
- proto.DeleteUserReportResponse.prototype.setMeta = function(value) {
2430
- return jspb.Message.setWrapperField(this, 2, value);
2431
- };
2432
-
2433
-
2434
- /**
2435
- * Clears the message field making it undefined.
2436
- * @return {!proto.DeleteUserReportResponse} returns this
2437
- */
2438
- proto.DeleteUserReportResponse.prototype.clearMeta = function() {
2439
- return this.setMeta(undefined);
2440
- };
2441
-
2442
-
2443
- /**
2444
- * Returns whether this field is set.
2445
- * @return {boolean}
2446
- */
2447
- proto.DeleteUserReportResponse.prototype.hasMeta = function() {
2448
- return jspb.Message.getField(this, 2) != null;
2449
- };
2450
-
2451
-
2452
- goog.object.extend(exports, proto);