@aldiokta/protocgen 1.1.43 → 1.1.45

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