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