@aldiokta/protocgen 1.1.22 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +221 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +37 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +134 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +66 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +93 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +55 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +218 -0
  43. package/prisca/v1/delivery_order/delivery_order.proto +147 -0
  44. package/prisca/v1/document_type/document_type.proto +82 -0
  45. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  46. package/prisca/v1/global/meta/meta.proto +57 -0
  47. package/prisca/v1/good_receipt/good_receipt.proto +11 -0
  48. package/prisca/v1/purchase_order/purchase_order.proto +157 -0
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
  50. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  51. package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
  52. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  53. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  54. package/prisca/v1/quotation/quotation.proto +118 -0
  55. package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
  56. package/prisca/v1/valuation/valuation.proto +223 -0
  57. package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
  58. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  59. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  60. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  61. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  62. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -262
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6944
  64. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  65. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  66. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  67. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  68. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  69. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  70. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  71. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  72. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  73. package/prisca/v1/core/company/company_pb.js +0 -3100
  74. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  75. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  76. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  77. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  78. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  79. package/prisca/v1/core/employee/employee_pb.js +0 -4335
  80. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  81. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
  82. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2904
  84. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  85. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -4180
  86. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  87. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2657
  88. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  89. package/prisca/v1/core/job_position/job_position_pb.js +0 -3814
  90. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  91. package/prisca/v1/core/job_title/job_title_pb.js +0 -3010
  92. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  93. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  94. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  95. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3251
  96. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  97. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  98. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  99. package/prisca/v1/core/location/location_pb.js +0 -10879
  100. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  101. package/prisca/v1/core/material/material_pb.js +0 -4232
  102. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  103. package/prisca/v1/core/material_group/material_group_pb.js +0 -2828
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -3104
  106. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  107. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  108. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  109. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  110. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  111. package/prisca/v1/core/number_range/number_range_pb.js +0 -2978
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3084
  114. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  115. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2597
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3061
  118. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  119. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  120. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  121. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  122. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  123. package/prisca/v1/core/report/report_pb.js +0 -2822
  124. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  125. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  126. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  127. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2732
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2512
  130. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  131. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  133. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  134. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  135. package/prisca/v1/core/users/users_pb.js +0 -1653
  136. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  137. package/prisca/v1/core/work_location/work_location_pb.js +0 -4024
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7577
  140. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  141. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -4661
  142. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  143. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  144. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  145. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  146. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  147. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  148. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -1
  149. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -35
  150. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  151. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -5049
  152. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  154. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  155. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2927
  156. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  157. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2546
  158. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  159. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2590
  160. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  161. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  162. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -163
  163. package/prisca/v1/quotation/quotation_pb.js +0 -2796
  164. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -193
  165. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5961
  166. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  167. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  168. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  169. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6363
@@ -1,1179 +0,0 @@
1
- // source: prisca/v1/global/meta/meta.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
25
- goog.object.extend(proto, google_protobuf_any_pb);
26
- goog.exportSymbol('proto.prisca.v1.global.meta.FilterRequest', null, global);
27
- goog.exportSymbol('proto.prisca.v1.global.meta.Meta', null, global);
28
- goog.exportSymbol('proto.prisca.v1.global.meta.PaginationRequest', null, global);
29
- goog.exportSymbol('proto.prisca.v1.global.meta.PaginationResponse', null, global);
30
- goog.exportSymbol('proto.prisca.v1.global.meta.ResponseJson', null, global);
31
- /**
32
- * Generated by JsPbCodeGenerator.
33
- * @param {Array=} opt_data Optional initial data array, typically from a
34
- * server response, or constructed directly in Javascript. The array is used
35
- * in place and becomes part of the constructed object. It is not cloned.
36
- * If no data is provided, the constructed object will be empty, but still
37
- * valid.
38
- * @extends {jspb.Message}
39
- * @constructor
40
- */
41
- proto.prisca.v1.global.meta.PaginationRequest = function(opt_data) {
42
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
- };
44
- goog.inherits(proto.prisca.v1.global.meta.PaginationRequest, jspb.Message);
45
- if (goog.DEBUG && !COMPILED) {
46
- /**
47
- * @public
48
- * @override
49
- */
50
- proto.prisca.v1.global.meta.PaginationRequest.displayName = 'proto.prisca.v1.global.meta.PaginationRequest';
51
- }
52
- /**
53
- * Generated by JsPbCodeGenerator.
54
- * @param {Array=} opt_data Optional initial data array, typically from a
55
- * server response, or constructed directly in Javascript. The array is used
56
- * in place and becomes part of the constructed object. It is not cloned.
57
- * If no data is provided, the constructed object will be empty, but still
58
- * valid.
59
- * @extends {jspb.Message}
60
- * @constructor
61
- */
62
- proto.prisca.v1.global.meta.FilterRequest = function(opt_data) {
63
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
- };
65
- goog.inherits(proto.prisca.v1.global.meta.FilterRequest, jspb.Message);
66
- if (goog.DEBUG && !COMPILED) {
67
- /**
68
- * @public
69
- * @override
70
- */
71
- proto.prisca.v1.global.meta.FilterRequest.displayName = 'proto.prisca.v1.global.meta.FilterRequest';
72
- }
73
- /**
74
- * Generated by JsPbCodeGenerator.
75
- * @param {Array=} opt_data Optional initial data array, typically from a
76
- * server response, or constructed directly in Javascript. The array is used
77
- * in place and becomes part of the constructed object. It is not cloned.
78
- * If no data is provided, the constructed object will be empty, but still
79
- * valid.
80
- * @extends {jspb.Message}
81
- * @constructor
82
- */
83
- proto.prisca.v1.global.meta.PaginationResponse = function(opt_data) {
84
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
- };
86
- goog.inherits(proto.prisca.v1.global.meta.PaginationResponse, jspb.Message);
87
- if (goog.DEBUG && !COMPILED) {
88
- /**
89
- * @public
90
- * @override
91
- */
92
- proto.prisca.v1.global.meta.PaginationResponse.displayName = 'proto.prisca.v1.global.meta.PaginationResponse';
93
- }
94
- /**
95
- * Generated by JsPbCodeGenerator.
96
- * @param {Array=} opt_data Optional initial data array, typically from a
97
- * server response, or constructed directly in Javascript. The array is used
98
- * in place and becomes part of the constructed object. It is not cloned.
99
- * If no data is provided, the constructed object will be empty, but still
100
- * valid.
101
- * @extends {jspb.Message}
102
- * @constructor
103
- */
104
- proto.prisca.v1.global.meta.Meta = function(opt_data) {
105
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
- };
107
- goog.inherits(proto.prisca.v1.global.meta.Meta, jspb.Message);
108
- if (goog.DEBUG && !COMPILED) {
109
- /**
110
- * @public
111
- * @override
112
- */
113
- proto.prisca.v1.global.meta.Meta.displayName = 'proto.prisca.v1.global.meta.Meta';
114
- }
115
- /**
116
- * Generated by JsPbCodeGenerator.
117
- * @param {Array=} opt_data Optional initial data array, typically from a
118
- * server response, or constructed directly in Javascript. The array is used
119
- * in place and becomes part of the constructed object. It is not cloned.
120
- * If no data is provided, the constructed object will be empty, but still
121
- * valid.
122
- * @extends {jspb.Message}
123
- * @constructor
124
- */
125
- proto.prisca.v1.global.meta.ResponseJson = function(opt_data) {
126
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
127
- };
128
- goog.inherits(proto.prisca.v1.global.meta.ResponseJson, jspb.Message);
129
- if (goog.DEBUG && !COMPILED) {
130
- /**
131
- * @public
132
- * @override
133
- */
134
- proto.prisca.v1.global.meta.ResponseJson.displayName = 'proto.prisca.v1.global.meta.ResponseJson';
135
- }
136
-
137
-
138
-
139
- if (jspb.Message.GENERATE_TO_OBJECT) {
140
- /**
141
- * Creates an object representation of this proto.
142
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
143
- * Optional fields that are not set will be set to undefined.
144
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
145
- * For the list of reserved names please see:
146
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
147
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
148
- * JSPB instance for transitional soy proto support:
149
- * http://goto/soy-param-migration
150
- * @return {!Object}
151
- */
152
- proto.prisca.v1.global.meta.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
153
- return proto.prisca.v1.global.meta.PaginationRequest.toObject(opt_includeInstance, this);
154
- };
155
-
156
-
157
- /**
158
- * Static version of the {@see toObject} method.
159
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
160
- * the JSPB instance for transitional soy proto support:
161
- * http://goto/soy-param-migration
162
- * @param {!proto.prisca.v1.global.meta.PaginationRequest} msg The msg instance to transform.
163
- * @return {!Object}
164
- * @suppress {unusedLocalVariables} f is only used for nested messages
165
- */
166
- proto.prisca.v1.global.meta.PaginationRequest.toObject = function(includeInstance, msg) {
167
- var f, obj = {
168
- offset: jspb.Message.getFieldWithDefault(msg, 1, 0),
169
- limit: jspb.Message.getFieldWithDefault(msg, 2, 0)
170
- };
171
-
172
- if (includeInstance) {
173
- obj.$jspbMessageInstance = msg;
174
- }
175
- return obj;
176
- };
177
- }
178
-
179
-
180
- /**
181
- * Deserializes binary data (in protobuf wire format).
182
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
183
- * @return {!proto.prisca.v1.global.meta.PaginationRequest}
184
- */
185
- proto.prisca.v1.global.meta.PaginationRequest.deserializeBinary = function(bytes) {
186
- var reader = new jspb.BinaryReader(bytes);
187
- var msg = new proto.prisca.v1.global.meta.PaginationRequest;
188
- return proto.prisca.v1.global.meta.PaginationRequest.deserializeBinaryFromReader(msg, reader);
189
- };
190
-
191
-
192
- /**
193
- * Deserializes binary data (in protobuf wire format) from the
194
- * given reader into the given message object.
195
- * @param {!proto.prisca.v1.global.meta.PaginationRequest} msg The message object to deserialize into.
196
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
197
- * @return {!proto.prisca.v1.global.meta.PaginationRequest}
198
- */
199
- proto.prisca.v1.global.meta.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
200
- while (reader.nextField()) {
201
- if (reader.isEndGroup()) {
202
- break;
203
- }
204
- var field = reader.getFieldNumber();
205
- switch (field) {
206
- case 1:
207
- var value = /** @type {number} */ (reader.readInt32());
208
- msg.setOffset(value);
209
- break;
210
- case 2:
211
- var value = /** @type {number} */ (reader.readInt32());
212
- msg.setLimit(value);
213
- break;
214
- default:
215
- reader.skipField();
216
- break;
217
- }
218
- }
219
- return msg;
220
- };
221
-
222
-
223
- /**
224
- * Serializes the message to binary data (in protobuf wire format).
225
- * @return {!Uint8Array}
226
- */
227
- proto.prisca.v1.global.meta.PaginationRequest.prototype.serializeBinary = function() {
228
- var writer = new jspb.BinaryWriter();
229
- proto.prisca.v1.global.meta.PaginationRequest.serializeBinaryToWriter(this, writer);
230
- return writer.getResultBuffer();
231
- };
232
-
233
-
234
- /**
235
- * Serializes the given message to binary data (in protobuf wire
236
- * format), writing to the given BinaryWriter.
237
- * @param {!proto.prisca.v1.global.meta.PaginationRequest} message
238
- * @param {!jspb.BinaryWriter} writer
239
- * @suppress {unusedLocalVariables} f is only used for nested messages
240
- */
241
- proto.prisca.v1.global.meta.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
242
- var f = undefined;
243
- f = message.getOffset();
244
- if (f !== 0) {
245
- writer.writeInt32(
246
- 1,
247
- f
248
- );
249
- }
250
- f = message.getLimit();
251
- if (f !== 0) {
252
- writer.writeInt32(
253
- 2,
254
- f
255
- );
256
- }
257
- };
258
-
259
-
260
- /**
261
- * optional int32 offset = 1;
262
- * @return {number}
263
- */
264
- proto.prisca.v1.global.meta.PaginationRequest.prototype.getOffset = function() {
265
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
266
- };
267
-
268
-
269
- /**
270
- * @param {number} value
271
- * @return {!proto.prisca.v1.global.meta.PaginationRequest} returns this
272
- */
273
- proto.prisca.v1.global.meta.PaginationRequest.prototype.setOffset = function(value) {
274
- return jspb.Message.setProto3IntField(this, 1, value);
275
- };
276
-
277
-
278
- /**
279
- * optional int32 limit = 2;
280
- * @return {number}
281
- */
282
- proto.prisca.v1.global.meta.PaginationRequest.prototype.getLimit = function() {
283
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
284
- };
285
-
286
-
287
- /**
288
- * @param {number} value
289
- * @return {!proto.prisca.v1.global.meta.PaginationRequest} returns this
290
- */
291
- proto.prisca.v1.global.meta.PaginationRequest.prototype.setLimit = function(value) {
292
- return jspb.Message.setProto3IntField(this, 2, value);
293
- };
294
-
295
-
296
-
297
-
298
-
299
- if (jspb.Message.GENERATE_TO_OBJECT) {
300
- /**
301
- * Creates an object representation of this proto.
302
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
303
- * Optional fields that are not set will be set to undefined.
304
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
305
- * For the list of reserved names please see:
306
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
307
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
308
- * JSPB instance for transitional soy proto support:
309
- * http://goto/soy-param-migration
310
- * @return {!Object}
311
- */
312
- proto.prisca.v1.global.meta.FilterRequest.prototype.toObject = function(opt_includeInstance) {
313
- return proto.prisca.v1.global.meta.FilterRequest.toObject(opt_includeInstance, this);
314
- };
315
-
316
-
317
- /**
318
- * Static version of the {@see toObject} method.
319
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
320
- * the JSPB instance for transitional soy proto support:
321
- * http://goto/soy-param-migration
322
- * @param {!proto.prisca.v1.global.meta.FilterRequest} msg The msg instance to transform.
323
- * @return {!Object}
324
- * @suppress {unusedLocalVariables} f is only used for nested messages
325
- */
326
- proto.prisca.v1.global.meta.FilterRequest.toObject = function(includeInstance, msg) {
327
- var f, obj = {
328
- filter: jspb.Message.getFieldWithDefault(msg, 1, ""),
329
- order: jspb.Message.getFieldWithDefault(msg, 2, ""),
330
- keyword: jspb.Message.getFieldWithDefault(msg, 3, "")
331
- };
332
-
333
- if (includeInstance) {
334
- obj.$jspbMessageInstance = msg;
335
- }
336
- return obj;
337
- };
338
- }
339
-
340
-
341
- /**
342
- * Deserializes binary data (in protobuf wire format).
343
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
344
- * @return {!proto.prisca.v1.global.meta.FilterRequest}
345
- */
346
- proto.prisca.v1.global.meta.FilterRequest.deserializeBinary = function(bytes) {
347
- var reader = new jspb.BinaryReader(bytes);
348
- var msg = new proto.prisca.v1.global.meta.FilterRequest;
349
- return proto.prisca.v1.global.meta.FilterRequest.deserializeBinaryFromReader(msg, reader);
350
- };
351
-
352
-
353
- /**
354
- * Deserializes binary data (in protobuf wire format) from the
355
- * given reader into the given message object.
356
- * @param {!proto.prisca.v1.global.meta.FilterRequest} msg The message object to deserialize into.
357
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
358
- * @return {!proto.prisca.v1.global.meta.FilterRequest}
359
- */
360
- proto.prisca.v1.global.meta.FilterRequest.deserializeBinaryFromReader = function(msg, reader) {
361
- while (reader.nextField()) {
362
- if (reader.isEndGroup()) {
363
- break;
364
- }
365
- var field = reader.getFieldNumber();
366
- switch (field) {
367
- case 1:
368
- var value = /** @type {string} */ (reader.readString());
369
- msg.setFilter(value);
370
- break;
371
- case 2:
372
- var value = /** @type {string} */ (reader.readString());
373
- msg.setOrder(value);
374
- break;
375
- case 3:
376
- var value = /** @type {string} */ (reader.readString());
377
- msg.setKeyword(value);
378
- break;
379
- default:
380
- reader.skipField();
381
- break;
382
- }
383
- }
384
- return msg;
385
- };
386
-
387
-
388
- /**
389
- * Serializes the message to binary data (in protobuf wire format).
390
- * @return {!Uint8Array}
391
- */
392
- proto.prisca.v1.global.meta.FilterRequest.prototype.serializeBinary = function() {
393
- var writer = new jspb.BinaryWriter();
394
- proto.prisca.v1.global.meta.FilterRequest.serializeBinaryToWriter(this, writer);
395
- return writer.getResultBuffer();
396
- };
397
-
398
-
399
- /**
400
- * Serializes the given message to binary data (in protobuf wire
401
- * format), writing to the given BinaryWriter.
402
- * @param {!proto.prisca.v1.global.meta.FilterRequest} message
403
- * @param {!jspb.BinaryWriter} writer
404
- * @suppress {unusedLocalVariables} f is only used for nested messages
405
- */
406
- proto.prisca.v1.global.meta.FilterRequest.serializeBinaryToWriter = function(message, writer) {
407
- var f = undefined;
408
- f = message.getFilter();
409
- if (f.length > 0) {
410
- writer.writeString(
411
- 1,
412
- f
413
- );
414
- }
415
- f = message.getOrder();
416
- if (f.length > 0) {
417
- writer.writeString(
418
- 2,
419
- f
420
- );
421
- }
422
- f = message.getKeyword();
423
- if (f.length > 0) {
424
- writer.writeString(
425
- 3,
426
- f
427
- );
428
- }
429
- };
430
-
431
-
432
- /**
433
- * optional string filter = 1;
434
- * @return {string}
435
- */
436
- proto.prisca.v1.global.meta.FilterRequest.prototype.getFilter = function() {
437
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
438
- };
439
-
440
-
441
- /**
442
- * @param {string} value
443
- * @return {!proto.prisca.v1.global.meta.FilterRequest} returns this
444
- */
445
- proto.prisca.v1.global.meta.FilterRequest.prototype.setFilter = function(value) {
446
- return jspb.Message.setProto3StringField(this, 1, value);
447
- };
448
-
449
-
450
- /**
451
- * optional string order = 2;
452
- * @return {string}
453
- */
454
- proto.prisca.v1.global.meta.FilterRequest.prototype.getOrder = function() {
455
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
456
- };
457
-
458
-
459
- /**
460
- * @param {string} value
461
- * @return {!proto.prisca.v1.global.meta.FilterRequest} returns this
462
- */
463
- proto.prisca.v1.global.meta.FilterRequest.prototype.setOrder = function(value) {
464
- return jspb.Message.setProto3StringField(this, 2, value);
465
- };
466
-
467
-
468
- /**
469
- * optional string keyword = 3;
470
- * @return {string}
471
- */
472
- proto.prisca.v1.global.meta.FilterRequest.prototype.getKeyword = function() {
473
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
474
- };
475
-
476
-
477
- /**
478
- * @param {string} value
479
- * @return {!proto.prisca.v1.global.meta.FilterRequest} returns this
480
- */
481
- proto.prisca.v1.global.meta.FilterRequest.prototype.setKeyword = function(value) {
482
- return jspb.Message.setProto3StringField(this, 3, value);
483
- };
484
-
485
-
486
-
487
-
488
-
489
- if (jspb.Message.GENERATE_TO_OBJECT) {
490
- /**
491
- * Creates an object representation of this proto.
492
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
493
- * Optional fields that are not set will be set to undefined.
494
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
495
- * For the list of reserved names please see:
496
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
497
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
498
- * JSPB instance for transitional soy proto support:
499
- * http://goto/soy-param-migration
500
- * @return {!Object}
501
- */
502
- proto.prisca.v1.global.meta.PaginationResponse.prototype.toObject = function(opt_includeInstance) {
503
- return proto.prisca.v1.global.meta.PaginationResponse.toObject(opt_includeInstance, this);
504
- };
505
-
506
-
507
- /**
508
- * Static version of the {@see toObject} method.
509
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
510
- * the JSPB instance for transitional soy proto support:
511
- * http://goto/soy-param-migration
512
- * @param {!proto.prisca.v1.global.meta.PaginationResponse} msg The msg instance to transform.
513
- * @return {!Object}
514
- * @suppress {unusedLocalVariables} f is only used for nested messages
515
- */
516
- proto.prisca.v1.global.meta.PaginationResponse.toObject = function(includeInstance, msg) {
517
- var f, obj = {
518
- offset: jspb.Message.getFieldWithDefault(msg, 1, 0),
519
- limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
520
- totalPages: jspb.Message.getFieldWithDefault(msg, 3, 0),
521
- totalRows: jspb.Message.getFieldWithDefault(msg, 4, 0),
522
- totalRowPerPage: jspb.Message.getFieldWithDefault(msg, 5, 0)
523
- };
524
-
525
- if (includeInstance) {
526
- obj.$jspbMessageInstance = msg;
527
- }
528
- return obj;
529
- };
530
- }
531
-
532
-
533
- /**
534
- * Deserializes binary data (in protobuf wire format).
535
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
536
- * @return {!proto.prisca.v1.global.meta.PaginationResponse}
537
- */
538
- proto.prisca.v1.global.meta.PaginationResponse.deserializeBinary = function(bytes) {
539
- var reader = new jspb.BinaryReader(bytes);
540
- var msg = new proto.prisca.v1.global.meta.PaginationResponse;
541
- return proto.prisca.v1.global.meta.PaginationResponse.deserializeBinaryFromReader(msg, reader);
542
- };
543
-
544
-
545
- /**
546
- * Deserializes binary data (in protobuf wire format) from the
547
- * given reader into the given message object.
548
- * @param {!proto.prisca.v1.global.meta.PaginationResponse} msg The message object to deserialize into.
549
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
550
- * @return {!proto.prisca.v1.global.meta.PaginationResponse}
551
- */
552
- proto.prisca.v1.global.meta.PaginationResponse.deserializeBinaryFromReader = function(msg, reader) {
553
- while (reader.nextField()) {
554
- if (reader.isEndGroup()) {
555
- break;
556
- }
557
- var field = reader.getFieldNumber();
558
- switch (field) {
559
- case 1:
560
- var value = /** @type {number} */ (reader.readInt32());
561
- msg.setOffset(value);
562
- break;
563
- case 2:
564
- var value = /** @type {number} */ (reader.readInt32());
565
- msg.setLimit(value);
566
- break;
567
- case 3:
568
- var value = /** @type {number} */ (reader.readInt64());
569
- msg.setTotalPages(value);
570
- break;
571
- case 4:
572
- var value = /** @type {number} */ (reader.readInt64());
573
- msg.setTotalRows(value);
574
- break;
575
- case 5:
576
- var value = /** @type {number} */ (reader.readInt64());
577
- msg.setTotalRowPerPage(value);
578
- break;
579
- default:
580
- reader.skipField();
581
- break;
582
- }
583
- }
584
- return msg;
585
- };
586
-
587
-
588
- /**
589
- * Serializes the message to binary data (in protobuf wire format).
590
- * @return {!Uint8Array}
591
- */
592
- proto.prisca.v1.global.meta.PaginationResponse.prototype.serializeBinary = function() {
593
- var writer = new jspb.BinaryWriter();
594
- proto.prisca.v1.global.meta.PaginationResponse.serializeBinaryToWriter(this, writer);
595
- return writer.getResultBuffer();
596
- };
597
-
598
-
599
- /**
600
- * Serializes the given message to binary data (in protobuf wire
601
- * format), writing to the given BinaryWriter.
602
- * @param {!proto.prisca.v1.global.meta.PaginationResponse} message
603
- * @param {!jspb.BinaryWriter} writer
604
- * @suppress {unusedLocalVariables} f is only used for nested messages
605
- */
606
- proto.prisca.v1.global.meta.PaginationResponse.serializeBinaryToWriter = function(message, writer) {
607
- var f = undefined;
608
- f = message.getOffset();
609
- if (f !== 0) {
610
- writer.writeInt32(
611
- 1,
612
- f
613
- );
614
- }
615
- f = message.getLimit();
616
- if (f !== 0) {
617
- writer.writeInt32(
618
- 2,
619
- f
620
- );
621
- }
622
- f = message.getTotalPages();
623
- if (f !== 0) {
624
- writer.writeInt64(
625
- 3,
626
- f
627
- );
628
- }
629
- f = message.getTotalRows();
630
- if (f !== 0) {
631
- writer.writeInt64(
632
- 4,
633
- f
634
- );
635
- }
636
- f = message.getTotalRowPerPage();
637
- if (f !== 0) {
638
- writer.writeInt64(
639
- 5,
640
- f
641
- );
642
- }
643
- };
644
-
645
-
646
- /**
647
- * optional int32 offset = 1;
648
- * @return {number}
649
- */
650
- proto.prisca.v1.global.meta.PaginationResponse.prototype.getOffset = function() {
651
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
652
- };
653
-
654
-
655
- /**
656
- * @param {number} value
657
- * @return {!proto.prisca.v1.global.meta.PaginationResponse} returns this
658
- */
659
- proto.prisca.v1.global.meta.PaginationResponse.prototype.setOffset = function(value) {
660
- return jspb.Message.setProto3IntField(this, 1, value);
661
- };
662
-
663
-
664
- /**
665
- * optional int32 limit = 2;
666
- * @return {number}
667
- */
668
- proto.prisca.v1.global.meta.PaginationResponse.prototype.getLimit = function() {
669
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
670
- };
671
-
672
-
673
- /**
674
- * @param {number} value
675
- * @return {!proto.prisca.v1.global.meta.PaginationResponse} returns this
676
- */
677
- proto.prisca.v1.global.meta.PaginationResponse.prototype.setLimit = function(value) {
678
- return jspb.Message.setProto3IntField(this, 2, value);
679
- };
680
-
681
-
682
- /**
683
- * optional int64 total_pages = 3;
684
- * @return {number}
685
- */
686
- proto.prisca.v1.global.meta.PaginationResponse.prototype.getTotalPages = function() {
687
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
688
- };
689
-
690
-
691
- /**
692
- * @param {number} value
693
- * @return {!proto.prisca.v1.global.meta.PaginationResponse} returns this
694
- */
695
- proto.prisca.v1.global.meta.PaginationResponse.prototype.setTotalPages = function(value) {
696
- return jspb.Message.setProto3IntField(this, 3, value);
697
- };
698
-
699
-
700
- /**
701
- * optional int64 total_rows = 4;
702
- * @return {number}
703
- */
704
- proto.prisca.v1.global.meta.PaginationResponse.prototype.getTotalRows = function() {
705
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
706
- };
707
-
708
-
709
- /**
710
- * @param {number} value
711
- * @return {!proto.prisca.v1.global.meta.PaginationResponse} returns this
712
- */
713
- proto.prisca.v1.global.meta.PaginationResponse.prototype.setTotalRows = function(value) {
714
- return jspb.Message.setProto3IntField(this, 4, value);
715
- };
716
-
717
-
718
- /**
719
- * optional int64 total_row_per_page = 5;
720
- * @return {number}
721
- */
722
- proto.prisca.v1.global.meta.PaginationResponse.prototype.getTotalRowPerPage = function() {
723
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
724
- };
725
-
726
-
727
- /**
728
- * @param {number} value
729
- * @return {!proto.prisca.v1.global.meta.PaginationResponse} returns this
730
- */
731
- proto.prisca.v1.global.meta.PaginationResponse.prototype.setTotalRowPerPage = function(value) {
732
- return jspb.Message.setProto3IntField(this, 5, value);
733
- };
734
-
735
-
736
-
737
-
738
-
739
- if (jspb.Message.GENERATE_TO_OBJECT) {
740
- /**
741
- * Creates an object representation of this proto.
742
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
743
- * Optional fields that are not set will be set to undefined.
744
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
745
- * For the list of reserved names please see:
746
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
747
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
748
- * JSPB instance for transitional soy proto support:
749
- * http://goto/soy-param-migration
750
- * @return {!Object}
751
- */
752
- proto.prisca.v1.global.meta.Meta.prototype.toObject = function(opt_includeInstance) {
753
- return proto.prisca.v1.global.meta.Meta.toObject(opt_includeInstance, this);
754
- };
755
-
756
-
757
- /**
758
- * Static version of the {@see toObject} method.
759
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
760
- * the JSPB instance for transitional soy proto support:
761
- * http://goto/soy-param-migration
762
- * @param {!proto.prisca.v1.global.meta.Meta} msg The msg instance to transform.
763
- * @return {!Object}
764
- * @suppress {unusedLocalVariables} f is only used for nested messages
765
- */
766
- proto.prisca.v1.global.meta.Meta.toObject = function(includeInstance, msg) {
767
- var f, obj = {
768
- statusCode: jspb.Message.getFieldWithDefault(msg, 1, 0),
769
- messageCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
770
- message: jspb.Message.getFieldWithDefault(msg, 3, ""),
771
- pagination: (f = msg.getPagination()) && proto.prisca.v1.global.meta.PaginationResponse.toObject(includeInstance, f)
772
- };
773
-
774
- if (includeInstance) {
775
- obj.$jspbMessageInstance = msg;
776
- }
777
- return obj;
778
- };
779
- }
780
-
781
-
782
- /**
783
- * Deserializes binary data (in protobuf wire format).
784
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
785
- * @return {!proto.prisca.v1.global.meta.Meta}
786
- */
787
- proto.prisca.v1.global.meta.Meta.deserializeBinary = function(bytes) {
788
- var reader = new jspb.BinaryReader(bytes);
789
- var msg = new proto.prisca.v1.global.meta.Meta;
790
- return proto.prisca.v1.global.meta.Meta.deserializeBinaryFromReader(msg, reader);
791
- };
792
-
793
-
794
- /**
795
- * Deserializes binary data (in protobuf wire format) from the
796
- * given reader into the given message object.
797
- * @param {!proto.prisca.v1.global.meta.Meta} msg The message object to deserialize into.
798
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
799
- * @return {!proto.prisca.v1.global.meta.Meta}
800
- */
801
- proto.prisca.v1.global.meta.Meta.deserializeBinaryFromReader = function(msg, reader) {
802
- while (reader.nextField()) {
803
- if (reader.isEndGroup()) {
804
- break;
805
- }
806
- var field = reader.getFieldNumber();
807
- switch (field) {
808
- case 1:
809
- var value = /** @type {number} */ (reader.readInt64());
810
- msg.setStatusCode(value);
811
- break;
812
- case 2:
813
- var value = /** @type {string} */ (reader.readString());
814
- msg.setMessageCode(value);
815
- break;
816
- case 3:
817
- var value = /** @type {string} */ (reader.readString());
818
- msg.setMessage(value);
819
- break;
820
- case 4:
821
- var value = new proto.prisca.v1.global.meta.PaginationResponse;
822
- reader.readMessage(value,proto.prisca.v1.global.meta.PaginationResponse.deserializeBinaryFromReader);
823
- msg.setPagination(value);
824
- break;
825
- default:
826
- reader.skipField();
827
- break;
828
- }
829
- }
830
- return msg;
831
- };
832
-
833
-
834
- /**
835
- * Serializes the message to binary data (in protobuf wire format).
836
- * @return {!Uint8Array}
837
- */
838
- proto.prisca.v1.global.meta.Meta.prototype.serializeBinary = function() {
839
- var writer = new jspb.BinaryWriter();
840
- proto.prisca.v1.global.meta.Meta.serializeBinaryToWriter(this, writer);
841
- return writer.getResultBuffer();
842
- };
843
-
844
-
845
- /**
846
- * Serializes the given message to binary data (in protobuf wire
847
- * format), writing to the given BinaryWriter.
848
- * @param {!proto.prisca.v1.global.meta.Meta} message
849
- * @param {!jspb.BinaryWriter} writer
850
- * @suppress {unusedLocalVariables} f is only used for nested messages
851
- */
852
- proto.prisca.v1.global.meta.Meta.serializeBinaryToWriter = function(message, writer) {
853
- var f = undefined;
854
- f = message.getStatusCode();
855
- if (f !== 0) {
856
- writer.writeInt64(
857
- 1,
858
- f
859
- );
860
- }
861
- f = message.getMessageCode();
862
- if (f.length > 0) {
863
- writer.writeString(
864
- 2,
865
- f
866
- );
867
- }
868
- f = message.getMessage();
869
- if (f.length > 0) {
870
- writer.writeString(
871
- 3,
872
- f
873
- );
874
- }
875
- f = message.getPagination();
876
- if (f != null) {
877
- writer.writeMessage(
878
- 4,
879
- f,
880
- proto.prisca.v1.global.meta.PaginationResponse.serializeBinaryToWriter
881
- );
882
- }
883
- };
884
-
885
-
886
- /**
887
- * optional int64 status_code = 1;
888
- * @return {number}
889
- */
890
- proto.prisca.v1.global.meta.Meta.prototype.getStatusCode = function() {
891
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
892
- };
893
-
894
-
895
- /**
896
- * @param {number} value
897
- * @return {!proto.prisca.v1.global.meta.Meta} returns this
898
- */
899
- proto.prisca.v1.global.meta.Meta.prototype.setStatusCode = function(value) {
900
- return jspb.Message.setProto3IntField(this, 1, value);
901
- };
902
-
903
-
904
- /**
905
- * optional string message_code = 2;
906
- * @return {string}
907
- */
908
- proto.prisca.v1.global.meta.Meta.prototype.getMessageCode = function() {
909
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
910
- };
911
-
912
-
913
- /**
914
- * @param {string} value
915
- * @return {!proto.prisca.v1.global.meta.Meta} returns this
916
- */
917
- proto.prisca.v1.global.meta.Meta.prototype.setMessageCode = function(value) {
918
- return jspb.Message.setProto3StringField(this, 2, value);
919
- };
920
-
921
-
922
- /**
923
- * optional string message = 3;
924
- * @return {string}
925
- */
926
- proto.prisca.v1.global.meta.Meta.prototype.getMessage = function() {
927
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
928
- };
929
-
930
-
931
- /**
932
- * @param {string} value
933
- * @return {!proto.prisca.v1.global.meta.Meta} returns this
934
- */
935
- proto.prisca.v1.global.meta.Meta.prototype.setMessage = function(value) {
936
- return jspb.Message.setProto3StringField(this, 3, value);
937
- };
938
-
939
-
940
- /**
941
- * optional PaginationResponse pagination = 4;
942
- * @return {?proto.prisca.v1.global.meta.PaginationResponse}
943
- */
944
- proto.prisca.v1.global.meta.Meta.prototype.getPagination = function() {
945
- return /** @type{?proto.prisca.v1.global.meta.PaginationResponse} */ (
946
- jspb.Message.getWrapperField(this, proto.prisca.v1.global.meta.PaginationResponse, 4));
947
- };
948
-
949
-
950
- /**
951
- * @param {?proto.prisca.v1.global.meta.PaginationResponse|undefined} value
952
- * @return {!proto.prisca.v1.global.meta.Meta} returns this
953
- */
954
- proto.prisca.v1.global.meta.Meta.prototype.setPagination = function(value) {
955
- return jspb.Message.setWrapperField(this, 4, value);
956
- };
957
-
958
-
959
- /**
960
- * Clears the message field making it undefined.
961
- * @return {!proto.prisca.v1.global.meta.Meta} returns this
962
- */
963
- proto.prisca.v1.global.meta.Meta.prototype.clearPagination = function() {
964
- return this.setPagination(undefined);
965
- };
966
-
967
-
968
- /**
969
- * Returns whether this field is set.
970
- * @return {boolean}
971
- */
972
- proto.prisca.v1.global.meta.Meta.prototype.hasPagination = function() {
973
- return jspb.Message.getField(this, 4) != null;
974
- };
975
-
976
-
977
-
978
-
979
-
980
- if (jspb.Message.GENERATE_TO_OBJECT) {
981
- /**
982
- * Creates an object representation of this proto.
983
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
984
- * Optional fields that are not set will be set to undefined.
985
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
986
- * For the list of reserved names please see:
987
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
988
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
989
- * JSPB instance for transitional soy proto support:
990
- * http://goto/soy-param-migration
991
- * @return {!Object}
992
- */
993
- proto.prisca.v1.global.meta.ResponseJson.prototype.toObject = function(opt_includeInstance) {
994
- return proto.prisca.v1.global.meta.ResponseJson.toObject(opt_includeInstance, this);
995
- };
996
-
997
-
998
- /**
999
- * Static version of the {@see toObject} method.
1000
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1001
- * the JSPB instance for transitional soy proto support:
1002
- * http://goto/soy-param-migration
1003
- * @param {!proto.prisca.v1.global.meta.ResponseJson} msg The msg instance to transform.
1004
- * @return {!Object}
1005
- * @suppress {unusedLocalVariables} f is only used for nested messages
1006
- */
1007
- proto.prisca.v1.global.meta.ResponseJson.toObject = function(includeInstance, msg) {
1008
- var f, obj = {
1009
- meta: (f = msg.getMeta()) && proto.prisca.v1.global.meta.Meta.toObject(includeInstance, f),
1010
- data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
1011
- };
1012
-
1013
- if (includeInstance) {
1014
- obj.$jspbMessageInstance = msg;
1015
- }
1016
- return obj;
1017
- };
1018
- }
1019
-
1020
-
1021
- /**
1022
- * Deserializes binary data (in protobuf wire format).
1023
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1024
- * @return {!proto.prisca.v1.global.meta.ResponseJson}
1025
- */
1026
- proto.prisca.v1.global.meta.ResponseJson.deserializeBinary = function(bytes) {
1027
- var reader = new jspb.BinaryReader(bytes);
1028
- var msg = new proto.prisca.v1.global.meta.ResponseJson;
1029
- return proto.prisca.v1.global.meta.ResponseJson.deserializeBinaryFromReader(msg, reader);
1030
- };
1031
-
1032
-
1033
- /**
1034
- * Deserializes binary data (in protobuf wire format) from the
1035
- * given reader into the given message object.
1036
- * @param {!proto.prisca.v1.global.meta.ResponseJson} msg The message object to deserialize into.
1037
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1038
- * @return {!proto.prisca.v1.global.meta.ResponseJson}
1039
- */
1040
- proto.prisca.v1.global.meta.ResponseJson.deserializeBinaryFromReader = function(msg, reader) {
1041
- while (reader.nextField()) {
1042
- if (reader.isEndGroup()) {
1043
- break;
1044
- }
1045
- var field = reader.getFieldNumber();
1046
- switch (field) {
1047
- case 1:
1048
- var value = new proto.prisca.v1.global.meta.Meta;
1049
- reader.readMessage(value,proto.prisca.v1.global.meta.Meta.deserializeBinaryFromReader);
1050
- msg.setMeta(value);
1051
- break;
1052
- case 2:
1053
- var value = new google_protobuf_any_pb.Any;
1054
- reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
1055
- msg.setData(value);
1056
- break;
1057
- default:
1058
- reader.skipField();
1059
- break;
1060
- }
1061
- }
1062
- return msg;
1063
- };
1064
-
1065
-
1066
- /**
1067
- * Serializes the message to binary data (in protobuf wire format).
1068
- * @return {!Uint8Array}
1069
- */
1070
- proto.prisca.v1.global.meta.ResponseJson.prototype.serializeBinary = function() {
1071
- var writer = new jspb.BinaryWriter();
1072
- proto.prisca.v1.global.meta.ResponseJson.serializeBinaryToWriter(this, writer);
1073
- return writer.getResultBuffer();
1074
- };
1075
-
1076
-
1077
- /**
1078
- * Serializes the given message to binary data (in protobuf wire
1079
- * format), writing to the given BinaryWriter.
1080
- * @param {!proto.prisca.v1.global.meta.ResponseJson} message
1081
- * @param {!jspb.BinaryWriter} writer
1082
- * @suppress {unusedLocalVariables} f is only used for nested messages
1083
- */
1084
- proto.prisca.v1.global.meta.ResponseJson.serializeBinaryToWriter = function(message, writer) {
1085
- var f = undefined;
1086
- f = message.getMeta();
1087
- if (f != null) {
1088
- writer.writeMessage(
1089
- 1,
1090
- f,
1091
- proto.prisca.v1.global.meta.Meta.serializeBinaryToWriter
1092
- );
1093
- }
1094
- f = message.getData();
1095
- if (f != null) {
1096
- writer.writeMessage(
1097
- 2,
1098
- f,
1099
- google_protobuf_any_pb.Any.serializeBinaryToWriter
1100
- );
1101
- }
1102
- };
1103
-
1104
-
1105
- /**
1106
- * optional Meta meta = 1;
1107
- * @return {?proto.prisca.v1.global.meta.Meta}
1108
- */
1109
- proto.prisca.v1.global.meta.ResponseJson.prototype.getMeta = function() {
1110
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1111
- jspb.Message.getWrapperField(this, proto.prisca.v1.global.meta.Meta, 1));
1112
- };
1113
-
1114
-
1115
- /**
1116
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1117
- * @return {!proto.prisca.v1.global.meta.ResponseJson} returns this
1118
- */
1119
- proto.prisca.v1.global.meta.ResponseJson.prototype.setMeta = function(value) {
1120
- return jspb.Message.setWrapperField(this, 1, value);
1121
- };
1122
-
1123
-
1124
- /**
1125
- * Clears the message field making it undefined.
1126
- * @return {!proto.prisca.v1.global.meta.ResponseJson} returns this
1127
- */
1128
- proto.prisca.v1.global.meta.ResponseJson.prototype.clearMeta = function() {
1129
- return this.setMeta(undefined);
1130
- };
1131
-
1132
-
1133
- /**
1134
- * Returns whether this field is set.
1135
- * @return {boolean}
1136
- */
1137
- proto.prisca.v1.global.meta.ResponseJson.prototype.hasMeta = function() {
1138
- return jspb.Message.getField(this, 1) != null;
1139
- };
1140
-
1141
-
1142
- /**
1143
- * optional google.protobuf.Any data = 2;
1144
- * @return {?proto.google.protobuf.Any}
1145
- */
1146
- proto.prisca.v1.global.meta.ResponseJson.prototype.getData = function() {
1147
- return /** @type{?proto.google.protobuf.Any} */ (
1148
- jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2));
1149
- };
1150
-
1151
-
1152
- /**
1153
- * @param {?proto.google.protobuf.Any|undefined} value
1154
- * @return {!proto.prisca.v1.global.meta.ResponseJson} returns this
1155
- */
1156
- proto.prisca.v1.global.meta.ResponseJson.prototype.setData = function(value) {
1157
- return jspb.Message.setWrapperField(this, 2, value);
1158
- };
1159
-
1160
-
1161
- /**
1162
- * Clears the message field making it undefined.
1163
- * @return {!proto.prisca.v1.global.meta.ResponseJson} returns this
1164
- */
1165
- proto.prisca.v1.global.meta.ResponseJson.prototype.clearData = function() {
1166
- return this.setData(undefined);
1167
- };
1168
-
1169
-
1170
- /**
1171
- * Returns whether this field is set.
1172
- * @return {boolean}
1173
- */
1174
- proto.prisca.v1.global.meta.ResponseJson.prototype.hasData = function() {
1175
- return jspb.Message.getField(this, 2) != null;
1176
- };
1177
-
1178
-
1179
- goog.object.extend(exports, proto.prisca.v1.global.meta);