@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,4661 +0,0 @@
1
- // source: prisca/v1/delivery_order/delivery_order.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
- var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
27
- goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
28
- var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
29
- goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
30
- var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
31
- goog.object.extend(proto, prisca_v1_core_item_transaction_item_transaction_pb);
32
- var prisca_v1_vendor_domain_vendor_domain_pb = require('../../../prisca/v1/vendor_domain/vendor_domain_pb.js');
33
- goog.object.extend(proto, prisca_v1_vendor_domain_vendor_domain_pb);
34
- var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
35
- goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
36
- var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
37
- goog.object.extend(proto, prisca_v1_core_company_company_pb);
38
- var prisca_v1_purchase_order_purchase_order_pb = require('../../../prisca/v1/purchase_order/purchase_order_pb.js');
39
- goog.object.extend(proto, prisca_v1_purchase_order_purchase_order_pb);
40
- goog.exportSymbol('proto.BaseDeliveryOrderRequest', null, global);
41
- goog.exportSymbol('proto.CreateDeliveryOrderRequest', null, global);
42
- goog.exportSymbol('proto.CreateDeliveryOrderResponse', null, global);
43
- goog.exportSymbol('proto.DeleteDeliveryOrderRequest', null, global);
44
- goog.exportSymbol('proto.DeleteDeliveryOrderResponse', null, global);
45
- goog.exportSymbol('proto.DeliveryOrder', null, global);
46
- goog.exportSymbol('proto.GetDeliveryOrderByIdRequest', null, global);
47
- goog.exportSymbol('proto.GetDeliveryOrderByIdResponse', null, global);
48
- goog.exportSymbol('proto.GetDeliveryOrderDetailResponse', null, global);
49
- goog.exportSymbol('proto.GetDeliveryOrderItemDetailPreload', null, global);
50
- goog.exportSymbol('proto.GetDeliveryOrderItemPreload', null, global);
51
- goog.exportSymbol('proto.GetListDeliveryOrderRequest', null, global);
52
- goog.exportSymbol('proto.GetListDeliveryOrderResponse', null, global);
53
- goog.exportSymbol('proto.UpdateDeliveryOrderRequest', null, global);
54
- goog.exportSymbol('proto.UpdateDeliveryOrderResponse', null, global);
55
- goog.exportSymbol('proto.UpdateDeliveryOrderStatusRequest', null, global);
56
- /**
57
- * Generated by JsPbCodeGenerator.
58
- * @param {Array=} opt_data Optional initial data array, typically from a
59
- * server response, or constructed directly in Javascript. The array is used
60
- * in place and becomes part of the constructed object. It is not cloned.
61
- * If no data is provided, the constructed object will be empty, but still
62
- * valid.
63
- * @extends {jspb.Message}
64
- * @constructor
65
- */
66
- proto.DeliveryOrder = function(opt_data) {
67
- jspb.Message.initialize(this, opt_data, 0, -1, proto.DeliveryOrder.repeatedFields_, null);
68
- };
69
- goog.inherits(proto.DeliveryOrder, jspb.Message);
70
- if (goog.DEBUG && !COMPILED) {
71
- /**
72
- * @public
73
- * @override
74
- */
75
- proto.DeliveryOrder.displayName = 'proto.DeliveryOrder';
76
- }
77
- /**
78
- * Generated by JsPbCodeGenerator.
79
- * @param {Array=} opt_data Optional initial data array, typically from a
80
- * server response, or constructed directly in Javascript. The array is used
81
- * in place and becomes part of the constructed object. It is not cloned.
82
- * If no data is provided, the constructed object will be empty, but still
83
- * valid.
84
- * @extends {jspb.Message}
85
- * @constructor
86
- */
87
- proto.BaseDeliveryOrderRequest = function(opt_data) {
88
- jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseDeliveryOrderRequest.repeatedFields_, null);
89
- };
90
- goog.inherits(proto.BaseDeliveryOrderRequest, jspb.Message);
91
- if (goog.DEBUG && !COMPILED) {
92
- /**
93
- * @public
94
- * @override
95
- */
96
- proto.BaseDeliveryOrderRequest.displayName = 'proto.BaseDeliveryOrderRequest';
97
- }
98
- /**
99
- * Generated by JsPbCodeGenerator.
100
- * @param {Array=} opt_data Optional initial data array, typically from a
101
- * server response, or constructed directly in Javascript. The array is used
102
- * in place and becomes part of the constructed object. It is not cloned.
103
- * If no data is provided, the constructed object will be empty, but still
104
- * valid.
105
- * @extends {jspb.Message}
106
- * @constructor
107
- */
108
- proto.CreateDeliveryOrderRequest = function(opt_data) {
109
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
- };
111
- goog.inherits(proto.CreateDeliveryOrderRequest, jspb.Message);
112
- if (goog.DEBUG && !COMPILED) {
113
- /**
114
- * @public
115
- * @override
116
- */
117
- proto.CreateDeliveryOrderRequest.displayName = 'proto.CreateDeliveryOrderRequest';
118
- }
119
- /**
120
- * Generated by JsPbCodeGenerator.
121
- * @param {Array=} opt_data Optional initial data array, typically from a
122
- * server response, or constructed directly in Javascript. The array is used
123
- * in place and becomes part of the constructed object. It is not cloned.
124
- * If no data is provided, the constructed object will be empty, but still
125
- * valid.
126
- * @extends {jspb.Message}
127
- * @constructor
128
- */
129
- proto.UpdateDeliveryOrderStatusRequest = function(opt_data) {
130
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
- };
132
- goog.inherits(proto.UpdateDeliveryOrderStatusRequest, jspb.Message);
133
- if (goog.DEBUG && !COMPILED) {
134
- /**
135
- * @public
136
- * @override
137
- */
138
- proto.UpdateDeliveryOrderStatusRequest.displayName = 'proto.UpdateDeliveryOrderStatusRequest';
139
- }
140
- /**
141
- * Generated by JsPbCodeGenerator.
142
- * @param {Array=} opt_data Optional initial data array, typically from a
143
- * server response, or constructed directly in Javascript. The array is used
144
- * in place and becomes part of the constructed object. It is not cloned.
145
- * If no data is provided, the constructed object will be empty, but still
146
- * valid.
147
- * @extends {jspb.Message}
148
- * @constructor
149
- */
150
- proto.UpdateDeliveryOrderRequest = function(opt_data) {
151
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
- };
153
- goog.inherits(proto.UpdateDeliveryOrderRequest, jspb.Message);
154
- if (goog.DEBUG && !COMPILED) {
155
- /**
156
- * @public
157
- * @override
158
- */
159
- proto.UpdateDeliveryOrderRequest.displayName = 'proto.UpdateDeliveryOrderRequest';
160
- }
161
- /**
162
- * Generated by JsPbCodeGenerator.
163
- * @param {Array=} opt_data Optional initial data array, typically from a
164
- * server response, or constructed directly in Javascript. The array is used
165
- * in place and becomes part of the constructed object. It is not cloned.
166
- * If no data is provided, the constructed object will be empty, but still
167
- * valid.
168
- * @extends {jspb.Message}
169
- * @constructor
170
- */
171
- proto.GetDeliveryOrderByIdRequest = function(opt_data) {
172
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
173
- };
174
- goog.inherits(proto.GetDeliveryOrderByIdRequest, jspb.Message);
175
- if (goog.DEBUG && !COMPILED) {
176
- /**
177
- * @public
178
- * @override
179
- */
180
- proto.GetDeliveryOrderByIdRequest.displayName = 'proto.GetDeliveryOrderByIdRequest';
181
- }
182
- /**
183
- * Generated by JsPbCodeGenerator.
184
- * @param {Array=} opt_data Optional initial data array, typically from a
185
- * server response, or constructed directly in Javascript. The array is used
186
- * in place and becomes part of the constructed object. It is not cloned.
187
- * If no data is provided, the constructed object will be empty, but still
188
- * valid.
189
- * @extends {jspb.Message}
190
- * @constructor
191
- */
192
- proto.GetListDeliveryOrderRequest = function(opt_data) {
193
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
194
- };
195
- goog.inherits(proto.GetListDeliveryOrderRequest, jspb.Message);
196
- if (goog.DEBUG && !COMPILED) {
197
- /**
198
- * @public
199
- * @override
200
- */
201
- proto.GetListDeliveryOrderRequest.displayName = 'proto.GetListDeliveryOrderRequest';
202
- }
203
- /**
204
- * Generated by JsPbCodeGenerator.
205
- * @param {Array=} opt_data Optional initial data array, typically from a
206
- * server response, or constructed directly in Javascript. The array is used
207
- * in place and becomes part of the constructed object. It is not cloned.
208
- * If no data is provided, the constructed object will be empty, but still
209
- * valid.
210
- * @extends {jspb.Message}
211
- * @constructor
212
- */
213
- proto.DeleteDeliveryOrderRequest = function(opt_data) {
214
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
215
- };
216
- goog.inherits(proto.DeleteDeliveryOrderRequest, jspb.Message);
217
- if (goog.DEBUG && !COMPILED) {
218
- /**
219
- * @public
220
- * @override
221
- */
222
- proto.DeleteDeliveryOrderRequest.displayName = 'proto.DeleteDeliveryOrderRequest';
223
- }
224
- /**
225
- * Generated by JsPbCodeGenerator.
226
- * @param {Array=} opt_data Optional initial data array, typically from a
227
- * server response, or constructed directly in Javascript. The array is used
228
- * in place and becomes part of the constructed object. It is not cloned.
229
- * If no data is provided, the constructed object will be empty, but still
230
- * valid.
231
- * @extends {jspb.Message}
232
- * @constructor
233
- */
234
- proto.CreateDeliveryOrderResponse = function(opt_data) {
235
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
236
- };
237
- goog.inherits(proto.CreateDeliveryOrderResponse, jspb.Message);
238
- if (goog.DEBUG && !COMPILED) {
239
- /**
240
- * @public
241
- * @override
242
- */
243
- proto.CreateDeliveryOrderResponse.displayName = 'proto.CreateDeliveryOrderResponse';
244
- }
245
- /**
246
- * Generated by JsPbCodeGenerator.
247
- * @param {Array=} opt_data Optional initial data array, typically from a
248
- * server response, or constructed directly in Javascript. The array is used
249
- * in place and becomes part of the constructed object. It is not cloned.
250
- * If no data is provided, the constructed object will be empty, but still
251
- * valid.
252
- * @extends {jspb.Message}
253
- * @constructor
254
- */
255
- proto.UpdateDeliveryOrderResponse = function(opt_data) {
256
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
257
- };
258
- goog.inherits(proto.UpdateDeliveryOrderResponse, jspb.Message);
259
- if (goog.DEBUG && !COMPILED) {
260
- /**
261
- * @public
262
- * @override
263
- */
264
- proto.UpdateDeliveryOrderResponse.displayName = 'proto.UpdateDeliveryOrderResponse';
265
- }
266
- /**
267
- * Generated by JsPbCodeGenerator.
268
- * @param {Array=} opt_data Optional initial data array, typically from a
269
- * server response, or constructed directly in Javascript. The array is used
270
- * in place and becomes part of the constructed object. It is not cloned.
271
- * If no data is provided, the constructed object will be empty, but still
272
- * valid.
273
- * @extends {jspb.Message}
274
- * @constructor
275
- */
276
- proto.GetDeliveryOrderByIdResponse = function(opt_data) {
277
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
278
- };
279
- goog.inherits(proto.GetDeliveryOrderByIdResponse, jspb.Message);
280
- if (goog.DEBUG && !COMPILED) {
281
- /**
282
- * @public
283
- * @override
284
- */
285
- proto.GetDeliveryOrderByIdResponse.displayName = 'proto.GetDeliveryOrderByIdResponse';
286
- }
287
- /**
288
- * Generated by JsPbCodeGenerator.
289
- * @param {Array=} opt_data Optional initial data array, typically from a
290
- * server response, or constructed directly in Javascript. The array is used
291
- * in place and becomes part of the constructed object. It is not cloned.
292
- * If no data is provided, the constructed object will be empty, but still
293
- * valid.
294
- * @extends {jspb.Message}
295
- * @constructor
296
- */
297
- proto.GetDeliveryOrderDetailResponse = function(opt_data) {
298
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetDeliveryOrderDetailResponse.repeatedFields_, null);
299
- };
300
- goog.inherits(proto.GetDeliveryOrderDetailResponse, jspb.Message);
301
- if (goog.DEBUG && !COMPILED) {
302
- /**
303
- * @public
304
- * @override
305
- */
306
- proto.GetDeliveryOrderDetailResponse.displayName = 'proto.GetDeliveryOrderDetailResponse';
307
- }
308
- /**
309
- * Generated by JsPbCodeGenerator.
310
- * @param {Array=} opt_data Optional initial data array, typically from a
311
- * server response, or constructed directly in Javascript. The array is used
312
- * in place and becomes part of the constructed object. It is not cloned.
313
- * If no data is provided, the constructed object will be empty, but still
314
- * valid.
315
- * @extends {jspb.Message}
316
- * @constructor
317
- */
318
- proto.GetDeliveryOrderItemPreload = function(opt_data) {
319
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetDeliveryOrderItemPreload.repeatedFields_, null);
320
- };
321
- goog.inherits(proto.GetDeliveryOrderItemPreload, jspb.Message);
322
- if (goog.DEBUG && !COMPILED) {
323
- /**
324
- * @public
325
- * @override
326
- */
327
- proto.GetDeliveryOrderItemPreload.displayName = 'proto.GetDeliveryOrderItemPreload';
328
- }
329
- /**
330
- * Generated by JsPbCodeGenerator.
331
- * @param {Array=} opt_data Optional initial data array, typically from a
332
- * server response, or constructed directly in Javascript. The array is used
333
- * in place and becomes part of the constructed object. It is not cloned.
334
- * If no data is provided, the constructed object will be empty, but still
335
- * valid.
336
- * @extends {jspb.Message}
337
- * @constructor
338
- */
339
- proto.GetDeliveryOrderItemDetailPreload = function(opt_data) {
340
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetDeliveryOrderItemDetailPreload.repeatedFields_, null);
341
- };
342
- goog.inherits(proto.GetDeliveryOrderItemDetailPreload, jspb.Message);
343
- if (goog.DEBUG && !COMPILED) {
344
- /**
345
- * @public
346
- * @override
347
- */
348
- proto.GetDeliveryOrderItemDetailPreload.displayName = 'proto.GetDeliveryOrderItemDetailPreload';
349
- }
350
- /**
351
- * Generated by JsPbCodeGenerator.
352
- * @param {Array=} opt_data Optional initial data array, typically from a
353
- * server response, or constructed directly in Javascript. The array is used
354
- * in place and becomes part of the constructed object. It is not cloned.
355
- * If no data is provided, the constructed object will be empty, but still
356
- * valid.
357
- * @extends {jspb.Message}
358
- * @constructor
359
- */
360
- proto.GetListDeliveryOrderResponse = function(opt_data) {
361
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListDeliveryOrderResponse.repeatedFields_, null);
362
- };
363
- goog.inherits(proto.GetListDeliveryOrderResponse, jspb.Message);
364
- if (goog.DEBUG && !COMPILED) {
365
- /**
366
- * @public
367
- * @override
368
- */
369
- proto.GetListDeliveryOrderResponse.displayName = 'proto.GetListDeliveryOrderResponse';
370
- }
371
- /**
372
- * Generated by JsPbCodeGenerator.
373
- * @param {Array=} opt_data Optional initial data array, typically from a
374
- * server response, or constructed directly in Javascript. The array is used
375
- * in place and becomes part of the constructed object. It is not cloned.
376
- * If no data is provided, the constructed object will be empty, but still
377
- * valid.
378
- * @extends {jspb.Message}
379
- * @constructor
380
- */
381
- proto.DeleteDeliveryOrderResponse = function(opt_data) {
382
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
383
- };
384
- goog.inherits(proto.DeleteDeliveryOrderResponse, jspb.Message);
385
- if (goog.DEBUG && !COMPILED) {
386
- /**
387
- * @public
388
- * @override
389
- */
390
- proto.DeleteDeliveryOrderResponse.displayName = 'proto.DeleteDeliveryOrderResponse';
391
- }
392
-
393
- /**
394
- * List of repeated fields within this message type.
395
- * @private {!Array<number>}
396
- * @const
397
- */
398
- proto.DeliveryOrder.repeatedFields_ = [21,25];
399
-
400
-
401
-
402
- if (jspb.Message.GENERATE_TO_OBJECT) {
403
- /**
404
- * Creates an object representation of this proto.
405
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
406
- * Optional fields that are not set will be set to undefined.
407
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
408
- * For the list of reserved names please see:
409
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
410
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
411
- * JSPB instance for transitional soy proto support:
412
- * http://goto/soy-param-migration
413
- * @return {!Object}
414
- */
415
- proto.DeliveryOrder.prototype.toObject = function(opt_includeInstance) {
416
- return proto.DeliveryOrder.toObject(opt_includeInstance, this);
417
- };
418
-
419
-
420
- /**
421
- * Static version of the {@see toObject} method.
422
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
423
- * the JSPB instance for transitional soy proto support:
424
- * http://goto/soy-param-migration
425
- * @param {!proto.DeliveryOrder} msg The msg instance to transform.
426
- * @return {!Object}
427
- * @suppress {unusedLocalVariables} f is only used for nested messages
428
- */
429
- proto.DeliveryOrder.toObject = function(includeInstance, msg) {
430
- var f, obj = {
431
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
432
- department: jspb.Message.getFieldWithDefault(msg, 2, ""),
433
- title: jspb.Message.getFieldWithDefault(msg, 3, ""),
434
- purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
435
- vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
436
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
437
- shippingAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
438
- shippingDate: jspb.Message.getFieldWithDefault(msg, 8, ""),
439
- remarks: jspb.Message.getFieldWithDefault(msg, 9, ""),
440
- referencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
441
- status: jspb.Message.getFieldWithDefault(msg, 11, ""),
442
- createdAt: jspb.Message.getFieldWithDefault(msg, 12, ""),
443
- updatedAt: jspb.Message.getFieldWithDefault(msg, 13, ""),
444
- createdBy: jspb.Message.getFieldWithDefault(msg, 14, ""),
445
- updatedBy: jspb.Message.getFieldWithDefault(msg, 15, ""),
446
- groupReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
447
- isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
448
- purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 18, ""),
449
- salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 19, ""),
450
- fileIds: jspb.Message.getFieldWithDefault(msg, 20, ""),
451
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
452
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
453
- purchaseOrder: (f = msg.getPurchaseOrder()) && prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.toObject(includeInstance, f),
454
- companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompany.toObject(includeInstance, f),
455
- vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
456
- itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
457
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
458
- createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
459
- updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
460
- };
461
-
462
- if (includeInstance) {
463
- obj.$jspbMessageInstance = msg;
464
- }
465
- return obj;
466
- };
467
- }
468
-
469
-
470
- /**
471
- * Deserializes binary data (in protobuf wire format).
472
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
473
- * @return {!proto.DeliveryOrder}
474
- */
475
- proto.DeliveryOrder.deserializeBinary = function(bytes) {
476
- var reader = new jspb.BinaryReader(bytes);
477
- var msg = new proto.DeliveryOrder;
478
- return proto.DeliveryOrder.deserializeBinaryFromReader(msg, reader);
479
- };
480
-
481
-
482
- /**
483
- * Deserializes binary data (in protobuf wire format) from the
484
- * given reader into the given message object.
485
- * @param {!proto.DeliveryOrder} msg The message object to deserialize into.
486
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
487
- * @return {!proto.DeliveryOrder}
488
- */
489
- proto.DeliveryOrder.deserializeBinaryFromReader = function(msg, reader) {
490
- while (reader.nextField()) {
491
- if (reader.isEndGroup()) {
492
- break;
493
- }
494
- var field = reader.getFieldNumber();
495
- switch (field) {
496
- case 1:
497
- var value = /** @type {number} */ (reader.readInt64());
498
- msg.setId(value);
499
- break;
500
- case 2:
501
- var value = /** @type {string} */ (reader.readString());
502
- msg.setDepartment(value);
503
- break;
504
- case 3:
505
- var value = /** @type {string} */ (reader.readString());
506
- msg.setTitle(value);
507
- break;
508
- case 4:
509
- var value = /** @type {string} */ (reader.readString());
510
- msg.setPurchaseOrderReferencesId(value);
511
- break;
512
- case 5:
513
- var value = /** @type {string} */ (reader.readString());
514
- msg.setVendorReferencesId(value);
515
- break;
516
- case 6:
517
- var value = /** @type {string} */ (reader.readString());
518
- msg.setCompaniesReferencesId(value);
519
- break;
520
- case 7:
521
- var value = /** @type {string} */ (reader.readString());
522
- msg.setShippingAddress(value);
523
- break;
524
- case 8:
525
- var value = /** @type {string} */ (reader.readString());
526
- msg.setShippingDate(value);
527
- break;
528
- case 9:
529
- var value = /** @type {string} */ (reader.readString());
530
- msg.setRemarks(value);
531
- break;
532
- case 10:
533
- var value = /** @type {string} */ (reader.readString());
534
- msg.setReferencesId(value);
535
- break;
536
- case 11:
537
- var value = /** @type {string} */ (reader.readString());
538
- msg.setStatus(value);
539
- break;
540
- case 12:
541
- var value = /** @type {string} */ (reader.readString());
542
- msg.setCreatedAt(value);
543
- break;
544
- case 13:
545
- var value = /** @type {string} */ (reader.readString());
546
- msg.setUpdatedAt(value);
547
- break;
548
- case 14:
549
- var value = /** @type {string} */ (reader.readString());
550
- msg.setCreatedBy(value);
551
- break;
552
- case 15:
553
- var value = /** @type {string} */ (reader.readString());
554
- msg.setUpdatedBy(value);
555
- break;
556
- case 16:
557
- var value = /** @type {string} */ (reader.readString());
558
- msg.setGroupReferences(value);
559
- break;
560
- case 17:
561
- var value = /** @type {boolean} */ (reader.readBool());
562
- msg.setIsExpired(value);
563
- break;
564
- case 18:
565
- var value = /** @type {string} */ (reader.readString());
566
- msg.setPurchaseOrderNumber(value);
567
- break;
568
- case 19:
569
- var value = /** @type {string} */ (reader.readString());
570
- msg.setSalesOrderNumber(value);
571
- break;
572
- case 20:
573
- var value = /** @type {string} */ (reader.readString());
574
- msg.setFileIds(value);
575
- break;
576
- case 21:
577
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
578
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
579
- msg.addFiles(value);
580
- break;
581
- case 22:
582
- var value = new prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder;
583
- reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.deserializeBinaryFromReader);
584
- msg.setPurchaseOrder(value);
585
- break;
586
- case 23:
587
- var value = new prisca_v1_core_company_company_pb.BaseCompany;
588
- reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompany.deserializeBinaryFromReader);
589
- msg.setCompanies(value);
590
- break;
591
- case 24:
592
- var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
593
- reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
594
- msg.setVendor(value);
595
- break;
596
- case 25:
597
- var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
598
- reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
599
- msg.addItemTransactions(value);
600
- break;
601
- case 26:
602
- var value = new prisca_v1_core_employee_employee_pb.Employee;
603
- reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
604
- msg.setCreatedByEmployee(value);
605
- break;
606
- case 27:
607
- var value = new prisca_v1_core_employee_employee_pb.Employee;
608
- reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
609
- msg.setUpdatedByEmployee(value);
610
- break;
611
- default:
612
- reader.skipField();
613
- break;
614
- }
615
- }
616
- return msg;
617
- };
618
-
619
-
620
- /**
621
- * Serializes the message to binary data (in protobuf wire format).
622
- * @return {!Uint8Array}
623
- */
624
- proto.DeliveryOrder.prototype.serializeBinary = function() {
625
- var writer = new jspb.BinaryWriter();
626
- proto.DeliveryOrder.serializeBinaryToWriter(this, writer);
627
- return writer.getResultBuffer();
628
- };
629
-
630
-
631
- /**
632
- * Serializes the given message to binary data (in protobuf wire
633
- * format), writing to the given BinaryWriter.
634
- * @param {!proto.DeliveryOrder} message
635
- * @param {!jspb.BinaryWriter} writer
636
- * @suppress {unusedLocalVariables} f is only used for nested messages
637
- */
638
- proto.DeliveryOrder.serializeBinaryToWriter = function(message, writer) {
639
- var f = undefined;
640
- f = message.getId();
641
- if (f !== 0) {
642
- writer.writeInt64(
643
- 1,
644
- f
645
- );
646
- }
647
- f = message.getDepartment();
648
- if (f.length > 0) {
649
- writer.writeString(
650
- 2,
651
- f
652
- );
653
- }
654
- f = message.getTitle();
655
- if (f.length > 0) {
656
- writer.writeString(
657
- 3,
658
- f
659
- );
660
- }
661
- f = message.getPurchaseOrderReferencesId();
662
- if (f.length > 0) {
663
- writer.writeString(
664
- 4,
665
- f
666
- );
667
- }
668
- f = message.getVendorReferencesId();
669
- if (f.length > 0) {
670
- writer.writeString(
671
- 5,
672
- f
673
- );
674
- }
675
- f = message.getCompaniesReferencesId();
676
- if (f.length > 0) {
677
- writer.writeString(
678
- 6,
679
- f
680
- );
681
- }
682
- f = message.getShippingAddress();
683
- if (f.length > 0) {
684
- writer.writeString(
685
- 7,
686
- f
687
- );
688
- }
689
- f = message.getShippingDate();
690
- if (f.length > 0) {
691
- writer.writeString(
692
- 8,
693
- f
694
- );
695
- }
696
- f = message.getRemarks();
697
- if (f.length > 0) {
698
- writer.writeString(
699
- 9,
700
- f
701
- );
702
- }
703
- f = message.getReferencesId();
704
- if (f.length > 0) {
705
- writer.writeString(
706
- 10,
707
- f
708
- );
709
- }
710
- f = message.getStatus();
711
- if (f.length > 0) {
712
- writer.writeString(
713
- 11,
714
- f
715
- );
716
- }
717
- f = message.getCreatedAt();
718
- if (f.length > 0) {
719
- writer.writeString(
720
- 12,
721
- f
722
- );
723
- }
724
- f = message.getUpdatedAt();
725
- if (f.length > 0) {
726
- writer.writeString(
727
- 13,
728
- f
729
- );
730
- }
731
- f = message.getCreatedBy();
732
- if (f.length > 0) {
733
- writer.writeString(
734
- 14,
735
- f
736
- );
737
- }
738
- f = message.getUpdatedBy();
739
- if (f.length > 0) {
740
- writer.writeString(
741
- 15,
742
- f
743
- );
744
- }
745
- f = message.getGroupReferences();
746
- if (f.length > 0) {
747
- writer.writeString(
748
- 16,
749
- f
750
- );
751
- }
752
- f = message.getIsExpired();
753
- if (f) {
754
- writer.writeBool(
755
- 17,
756
- f
757
- );
758
- }
759
- f = message.getPurchaseOrderNumber();
760
- if (f.length > 0) {
761
- writer.writeString(
762
- 18,
763
- f
764
- );
765
- }
766
- f = message.getSalesOrderNumber();
767
- if (f.length > 0) {
768
- writer.writeString(
769
- 19,
770
- f
771
- );
772
- }
773
- f = message.getFileIds();
774
- if (f.length > 0) {
775
- writer.writeString(
776
- 20,
777
- f
778
- );
779
- }
780
- f = message.getFilesList();
781
- if (f.length > 0) {
782
- writer.writeRepeatedMessage(
783
- 21,
784
- f,
785
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
786
- );
787
- }
788
- f = message.getPurchaseOrder();
789
- if (f != null) {
790
- writer.writeMessage(
791
- 22,
792
- f,
793
- prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.serializeBinaryToWriter
794
- );
795
- }
796
- f = message.getCompanies();
797
- if (f != null) {
798
- writer.writeMessage(
799
- 23,
800
- f,
801
- prisca_v1_core_company_company_pb.BaseCompany.serializeBinaryToWriter
802
- );
803
- }
804
- f = message.getVendor();
805
- if (f != null) {
806
- writer.writeMessage(
807
- 24,
808
- f,
809
- prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
810
- );
811
- }
812
- f = message.getItemTransactionsList();
813
- if (f.length > 0) {
814
- writer.writeRepeatedMessage(
815
- 25,
816
- f,
817
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
818
- );
819
- }
820
- f = message.getCreatedByEmployee();
821
- if (f != null) {
822
- writer.writeMessage(
823
- 26,
824
- f,
825
- prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
826
- );
827
- }
828
- f = message.getUpdatedByEmployee();
829
- if (f != null) {
830
- writer.writeMessage(
831
- 27,
832
- f,
833
- prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
834
- );
835
- }
836
- };
837
-
838
-
839
- /**
840
- * optional int64 id = 1;
841
- * @return {number}
842
- */
843
- proto.DeliveryOrder.prototype.getId = function() {
844
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
845
- };
846
-
847
-
848
- /**
849
- * @param {number} value
850
- * @return {!proto.DeliveryOrder} returns this
851
- */
852
- proto.DeliveryOrder.prototype.setId = function(value) {
853
- return jspb.Message.setProto3IntField(this, 1, value);
854
- };
855
-
856
-
857
- /**
858
- * optional string department = 2;
859
- * @return {string}
860
- */
861
- proto.DeliveryOrder.prototype.getDepartment = function() {
862
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
863
- };
864
-
865
-
866
- /**
867
- * @param {string} value
868
- * @return {!proto.DeliveryOrder} returns this
869
- */
870
- proto.DeliveryOrder.prototype.setDepartment = function(value) {
871
- return jspb.Message.setProto3StringField(this, 2, value);
872
- };
873
-
874
-
875
- /**
876
- * optional string title = 3;
877
- * @return {string}
878
- */
879
- proto.DeliveryOrder.prototype.getTitle = function() {
880
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
881
- };
882
-
883
-
884
- /**
885
- * @param {string} value
886
- * @return {!proto.DeliveryOrder} returns this
887
- */
888
- proto.DeliveryOrder.prototype.setTitle = function(value) {
889
- return jspb.Message.setProto3StringField(this, 3, value);
890
- };
891
-
892
-
893
- /**
894
- * optional string purchase_order_references_id = 4;
895
- * @return {string}
896
- */
897
- proto.DeliveryOrder.prototype.getPurchaseOrderReferencesId = function() {
898
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
899
- };
900
-
901
-
902
- /**
903
- * @param {string} value
904
- * @return {!proto.DeliveryOrder} returns this
905
- */
906
- proto.DeliveryOrder.prototype.setPurchaseOrderReferencesId = function(value) {
907
- return jspb.Message.setProto3StringField(this, 4, value);
908
- };
909
-
910
-
911
- /**
912
- * optional string vendor_references_id = 5;
913
- * @return {string}
914
- */
915
- proto.DeliveryOrder.prototype.getVendorReferencesId = function() {
916
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
917
- };
918
-
919
-
920
- /**
921
- * @param {string} value
922
- * @return {!proto.DeliveryOrder} returns this
923
- */
924
- proto.DeliveryOrder.prototype.setVendorReferencesId = function(value) {
925
- return jspb.Message.setProto3StringField(this, 5, value);
926
- };
927
-
928
-
929
- /**
930
- * optional string companies_references_id = 6;
931
- * @return {string}
932
- */
933
- proto.DeliveryOrder.prototype.getCompaniesReferencesId = function() {
934
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
935
- };
936
-
937
-
938
- /**
939
- * @param {string} value
940
- * @return {!proto.DeliveryOrder} returns this
941
- */
942
- proto.DeliveryOrder.prototype.setCompaniesReferencesId = function(value) {
943
- return jspb.Message.setProto3StringField(this, 6, value);
944
- };
945
-
946
-
947
- /**
948
- * optional string shipping_address = 7;
949
- * @return {string}
950
- */
951
- proto.DeliveryOrder.prototype.getShippingAddress = function() {
952
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
953
- };
954
-
955
-
956
- /**
957
- * @param {string} value
958
- * @return {!proto.DeliveryOrder} returns this
959
- */
960
- proto.DeliveryOrder.prototype.setShippingAddress = function(value) {
961
- return jspb.Message.setProto3StringField(this, 7, value);
962
- };
963
-
964
-
965
- /**
966
- * optional string shipping_date = 8;
967
- * @return {string}
968
- */
969
- proto.DeliveryOrder.prototype.getShippingDate = function() {
970
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
971
- };
972
-
973
-
974
- /**
975
- * @param {string} value
976
- * @return {!proto.DeliveryOrder} returns this
977
- */
978
- proto.DeliveryOrder.prototype.setShippingDate = function(value) {
979
- return jspb.Message.setProto3StringField(this, 8, value);
980
- };
981
-
982
-
983
- /**
984
- * optional string remarks = 9;
985
- * @return {string}
986
- */
987
- proto.DeliveryOrder.prototype.getRemarks = function() {
988
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
989
- };
990
-
991
-
992
- /**
993
- * @param {string} value
994
- * @return {!proto.DeliveryOrder} returns this
995
- */
996
- proto.DeliveryOrder.prototype.setRemarks = function(value) {
997
- return jspb.Message.setProto3StringField(this, 9, value);
998
- };
999
-
1000
-
1001
- /**
1002
- * optional string references_id = 10;
1003
- * @return {string}
1004
- */
1005
- proto.DeliveryOrder.prototype.getReferencesId = function() {
1006
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1007
- };
1008
-
1009
-
1010
- /**
1011
- * @param {string} value
1012
- * @return {!proto.DeliveryOrder} returns this
1013
- */
1014
- proto.DeliveryOrder.prototype.setReferencesId = function(value) {
1015
- return jspb.Message.setProto3StringField(this, 10, value);
1016
- };
1017
-
1018
-
1019
- /**
1020
- * optional string status = 11;
1021
- * @return {string}
1022
- */
1023
- proto.DeliveryOrder.prototype.getStatus = function() {
1024
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1025
- };
1026
-
1027
-
1028
- /**
1029
- * @param {string} value
1030
- * @return {!proto.DeliveryOrder} returns this
1031
- */
1032
- proto.DeliveryOrder.prototype.setStatus = function(value) {
1033
- return jspb.Message.setProto3StringField(this, 11, value);
1034
- };
1035
-
1036
-
1037
- /**
1038
- * optional string created_at = 12;
1039
- * @return {string}
1040
- */
1041
- proto.DeliveryOrder.prototype.getCreatedAt = function() {
1042
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1043
- };
1044
-
1045
-
1046
- /**
1047
- * @param {string} value
1048
- * @return {!proto.DeliveryOrder} returns this
1049
- */
1050
- proto.DeliveryOrder.prototype.setCreatedAt = function(value) {
1051
- return jspb.Message.setProto3StringField(this, 12, value);
1052
- };
1053
-
1054
-
1055
- /**
1056
- * optional string updated_at = 13;
1057
- * @return {string}
1058
- */
1059
- proto.DeliveryOrder.prototype.getUpdatedAt = function() {
1060
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1061
- };
1062
-
1063
-
1064
- /**
1065
- * @param {string} value
1066
- * @return {!proto.DeliveryOrder} returns this
1067
- */
1068
- proto.DeliveryOrder.prototype.setUpdatedAt = function(value) {
1069
- return jspb.Message.setProto3StringField(this, 13, value);
1070
- };
1071
-
1072
-
1073
- /**
1074
- * optional string created_by = 14;
1075
- * @return {string}
1076
- */
1077
- proto.DeliveryOrder.prototype.getCreatedBy = function() {
1078
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1079
- };
1080
-
1081
-
1082
- /**
1083
- * @param {string} value
1084
- * @return {!proto.DeliveryOrder} returns this
1085
- */
1086
- proto.DeliveryOrder.prototype.setCreatedBy = function(value) {
1087
- return jspb.Message.setProto3StringField(this, 14, value);
1088
- };
1089
-
1090
-
1091
- /**
1092
- * optional string updated_by = 15;
1093
- * @return {string}
1094
- */
1095
- proto.DeliveryOrder.prototype.getUpdatedBy = function() {
1096
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1097
- };
1098
-
1099
-
1100
- /**
1101
- * @param {string} value
1102
- * @return {!proto.DeliveryOrder} returns this
1103
- */
1104
- proto.DeliveryOrder.prototype.setUpdatedBy = function(value) {
1105
- return jspb.Message.setProto3StringField(this, 15, value);
1106
- };
1107
-
1108
-
1109
- /**
1110
- * optional string group_references = 16;
1111
- * @return {string}
1112
- */
1113
- proto.DeliveryOrder.prototype.getGroupReferences = function() {
1114
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1115
- };
1116
-
1117
-
1118
- /**
1119
- * @param {string} value
1120
- * @return {!proto.DeliveryOrder} returns this
1121
- */
1122
- proto.DeliveryOrder.prototype.setGroupReferences = function(value) {
1123
- return jspb.Message.setProto3StringField(this, 16, value);
1124
- };
1125
-
1126
-
1127
- /**
1128
- * optional bool is_expired = 17;
1129
- * @return {boolean}
1130
- */
1131
- proto.DeliveryOrder.prototype.getIsExpired = function() {
1132
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
1133
- };
1134
-
1135
-
1136
- /**
1137
- * @param {boolean} value
1138
- * @return {!proto.DeliveryOrder} returns this
1139
- */
1140
- proto.DeliveryOrder.prototype.setIsExpired = function(value) {
1141
- return jspb.Message.setProto3BooleanField(this, 17, value);
1142
- };
1143
-
1144
-
1145
- /**
1146
- * optional string purchase_order_number = 18;
1147
- * @return {string}
1148
- */
1149
- proto.DeliveryOrder.prototype.getPurchaseOrderNumber = function() {
1150
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1151
- };
1152
-
1153
-
1154
- /**
1155
- * @param {string} value
1156
- * @return {!proto.DeliveryOrder} returns this
1157
- */
1158
- proto.DeliveryOrder.prototype.setPurchaseOrderNumber = function(value) {
1159
- return jspb.Message.setProto3StringField(this, 18, value);
1160
- };
1161
-
1162
-
1163
- /**
1164
- * optional string sales_order_number = 19;
1165
- * @return {string}
1166
- */
1167
- proto.DeliveryOrder.prototype.getSalesOrderNumber = function() {
1168
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
1169
- };
1170
-
1171
-
1172
- /**
1173
- * @param {string} value
1174
- * @return {!proto.DeliveryOrder} returns this
1175
- */
1176
- proto.DeliveryOrder.prototype.setSalesOrderNumber = function(value) {
1177
- return jspb.Message.setProto3StringField(this, 19, value);
1178
- };
1179
-
1180
-
1181
- /**
1182
- * optional string file_ids = 20;
1183
- * @return {string}
1184
- */
1185
- proto.DeliveryOrder.prototype.getFileIds = function() {
1186
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1187
- };
1188
-
1189
-
1190
- /**
1191
- * @param {string} value
1192
- * @return {!proto.DeliveryOrder} returns this
1193
- */
1194
- proto.DeliveryOrder.prototype.setFileIds = function(value) {
1195
- return jspb.Message.setProto3StringField(this, 20, value);
1196
- };
1197
-
1198
-
1199
- /**
1200
- * repeated FileUploadReferencesReq files = 21;
1201
- * @return {!Array<!proto.FileUploadReferencesReq>}
1202
- */
1203
- proto.DeliveryOrder.prototype.getFilesList = function() {
1204
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1205
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 21));
1206
- };
1207
-
1208
-
1209
- /**
1210
- * @param {!Array<!proto.FileUploadReferencesReq>} value
1211
- * @return {!proto.DeliveryOrder} returns this
1212
- */
1213
- proto.DeliveryOrder.prototype.setFilesList = function(value) {
1214
- return jspb.Message.setRepeatedWrapperField(this, 21, value);
1215
- };
1216
-
1217
-
1218
- /**
1219
- * @param {!proto.FileUploadReferencesReq=} opt_value
1220
- * @param {number=} opt_index
1221
- * @return {!proto.FileUploadReferencesReq}
1222
- */
1223
- proto.DeliveryOrder.prototype.addFiles = function(opt_value, opt_index) {
1224
- return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.FileUploadReferencesReq, opt_index);
1225
- };
1226
-
1227
-
1228
- /**
1229
- * Clears the list making it empty but non-null.
1230
- * @return {!proto.DeliveryOrder} returns this
1231
- */
1232
- proto.DeliveryOrder.prototype.clearFilesList = function() {
1233
- return this.setFilesList([]);
1234
- };
1235
-
1236
-
1237
- /**
1238
- * optional PurchaseOrder purchase_order = 22;
1239
- * @return {?proto.PurchaseOrder}
1240
- */
1241
- proto.DeliveryOrder.prototype.getPurchaseOrder = function() {
1242
- return /** @type{?proto.PurchaseOrder} */ (
1243
- jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder, 22));
1244
- };
1245
-
1246
-
1247
- /**
1248
- * @param {?proto.PurchaseOrder|undefined} value
1249
- * @return {!proto.DeliveryOrder} returns this
1250
- */
1251
- proto.DeliveryOrder.prototype.setPurchaseOrder = function(value) {
1252
- return jspb.Message.setWrapperField(this, 22, value);
1253
- };
1254
-
1255
-
1256
- /**
1257
- * Clears the message field making it undefined.
1258
- * @return {!proto.DeliveryOrder} returns this
1259
- */
1260
- proto.DeliveryOrder.prototype.clearPurchaseOrder = function() {
1261
- return this.setPurchaseOrder(undefined);
1262
- };
1263
-
1264
-
1265
- /**
1266
- * Returns whether this field is set.
1267
- * @return {boolean}
1268
- */
1269
- proto.DeliveryOrder.prototype.hasPurchaseOrder = function() {
1270
- return jspb.Message.getField(this, 22) != null;
1271
- };
1272
-
1273
-
1274
- /**
1275
- * optional BaseCompany companies = 23;
1276
- * @return {?proto.BaseCompany}
1277
- */
1278
- proto.DeliveryOrder.prototype.getCompanies = function() {
1279
- return /** @type{?proto.BaseCompany} */ (
1280
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompany, 23));
1281
- };
1282
-
1283
-
1284
- /**
1285
- * @param {?proto.BaseCompany|undefined} value
1286
- * @return {!proto.DeliveryOrder} returns this
1287
- */
1288
- proto.DeliveryOrder.prototype.setCompanies = function(value) {
1289
- return jspb.Message.setWrapperField(this, 23, value);
1290
- };
1291
-
1292
-
1293
- /**
1294
- * Clears the message field making it undefined.
1295
- * @return {!proto.DeliveryOrder} returns this
1296
- */
1297
- proto.DeliveryOrder.prototype.clearCompanies = function() {
1298
- return this.setCompanies(undefined);
1299
- };
1300
-
1301
-
1302
- /**
1303
- * Returns whether this field is set.
1304
- * @return {boolean}
1305
- */
1306
- proto.DeliveryOrder.prototype.hasCompanies = function() {
1307
- return jspb.Message.getField(this, 23) != null;
1308
- };
1309
-
1310
-
1311
- /**
1312
- * optional Vendor vendor = 24;
1313
- * @return {?proto.Vendor}
1314
- */
1315
- proto.DeliveryOrder.prototype.getVendor = function() {
1316
- return /** @type{?proto.Vendor} */ (
1317
- jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 24));
1318
- };
1319
-
1320
-
1321
- /**
1322
- * @param {?proto.Vendor|undefined} value
1323
- * @return {!proto.DeliveryOrder} returns this
1324
- */
1325
- proto.DeliveryOrder.prototype.setVendor = function(value) {
1326
- return jspb.Message.setWrapperField(this, 24, value);
1327
- };
1328
-
1329
-
1330
- /**
1331
- * Clears the message field making it undefined.
1332
- * @return {!proto.DeliveryOrder} returns this
1333
- */
1334
- proto.DeliveryOrder.prototype.clearVendor = function() {
1335
- return this.setVendor(undefined);
1336
- };
1337
-
1338
-
1339
- /**
1340
- * Returns whether this field is set.
1341
- * @return {boolean}
1342
- */
1343
- proto.DeliveryOrder.prototype.hasVendor = function() {
1344
- return jspb.Message.getField(this, 24) != null;
1345
- };
1346
-
1347
-
1348
- /**
1349
- * repeated ItemTransaction item_transactions = 25;
1350
- * @return {!Array<!proto.ItemTransaction>}
1351
- */
1352
- proto.DeliveryOrder.prototype.getItemTransactionsList = function() {
1353
- return /** @type{!Array<!proto.ItemTransaction>} */ (
1354
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 25));
1355
- };
1356
-
1357
-
1358
- /**
1359
- * @param {!Array<!proto.ItemTransaction>} value
1360
- * @return {!proto.DeliveryOrder} returns this
1361
- */
1362
- proto.DeliveryOrder.prototype.setItemTransactionsList = function(value) {
1363
- return jspb.Message.setRepeatedWrapperField(this, 25, value);
1364
- };
1365
-
1366
-
1367
- /**
1368
- * @param {!proto.ItemTransaction=} opt_value
1369
- * @param {number=} opt_index
1370
- * @return {!proto.ItemTransaction}
1371
- */
1372
- proto.DeliveryOrder.prototype.addItemTransactions = function(opt_value, opt_index) {
1373
- return jspb.Message.addToRepeatedWrapperField(this, 25, opt_value, proto.ItemTransaction, opt_index);
1374
- };
1375
-
1376
-
1377
- /**
1378
- * Clears the list making it empty but non-null.
1379
- * @return {!proto.DeliveryOrder} returns this
1380
- */
1381
- proto.DeliveryOrder.prototype.clearItemTransactionsList = function() {
1382
- return this.setItemTransactionsList([]);
1383
- };
1384
-
1385
-
1386
- /**
1387
- * optional Employee created_by_employee = 26;
1388
- * @return {?proto.Employee}
1389
- */
1390
- proto.DeliveryOrder.prototype.getCreatedByEmployee = function() {
1391
- return /** @type{?proto.Employee} */ (
1392
- jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 26));
1393
- };
1394
-
1395
-
1396
- /**
1397
- * @param {?proto.Employee|undefined} value
1398
- * @return {!proto.DeliveryOrder} returns this
1399
- */
1400
- proto.DeliveryOrder.prototype.setCreatedByEmployee = function(value) {
1401
- return jspb.Message.setWrapperField(this, 26, value);
1402
- };
1403
-
1404
-
1405
- /**
1406
- * Clears the message field making it undefined.
1407
- * @return {!proto.DeliveryOrder} returns this
1408
- */
1409
- proto.DeliveryOrder.prototype.clearCreatedByEmployee = function() {
1410
- return this.setCreatedByEmployee(undefined);
1411
- };
1412
-
1413
-
1414
- /**
1415
- * Returns whether this field is set.
1416
- * @return {boolean}
1417
- */
1418
- proto.DeliveryOrder.prototype.hasCreatedByEmployee = function() {
1419
- return jspb.Message.getField(this, 26) != null;
1420
- };
1421
-
1422
-
1423
- /**
1424
- * optional Employee updated_by_employee = 27;
1425
- * @return {?proto.Employee}
1426
- */
1427
- proto.DeliveryOrder.prototype.getUpdatedByEmployee = function() {
1428
- return /** @type{?proto.Employee} */ (
1429
- jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 27));
1430
- };
1431
-
1432
-
1433
- /**
1434
- * @param {?proto.Employee|undefined} value
1435
- * @return {!proto.DeliveryOrder} returns this
1436
- */
1437
- proto.DeliveryOrder.prototype.setUpdatedByEmployee = function(value) {
1438
- return jspb.Message.setWrapperField(this, 27, value);
1439
- };
1440
-
1441
-
1442
- /**
1443
- * Clears the message field making it undefined.
1444
- * @return {!proto.DeliveryOrder} returns this
1445
- */
1446
- proto.DeliveryOrder.prototype.clearUpdatedByEmployee = function() {
1447
- return this.setUpdatedByEmployee(undefined);
1448
- };
1449
-
1450
-
1451
- /**
1452
- * Returns whether this field is set.
1453
- * @return {boolean}
1454
- */
1455
- proto.DeliveryOrder.prototype.hasUpdatedByEmployee = function() {
1456
- return jspb.Message.getField(this, 27) != null;
1457
- };
1458
-
1459
-
1460
-
1461
- /**
1462
- * List of repeated fields within this message type.
1463
- * @private {!Array<number>}
1464
- * @const
1465
- */
1466
- proto.BaseDeliveryOrderRequest.repeatedFields_ = [6,7];
1467
-
1468
-
1469
-
1470
- if (jspb.Message.GENERATE_TO_OBJECT) {
1471
- /**
1472
- * Creates an object representation of this proto.
1473
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1474
- * Optional fields that are not set will be set to undefined.
1475
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1476
- * For the list of reserved names please see:
1477
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1478
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1479
- * JSPB instance for transitional soy proto support:
1480
- * http://goto/soy-param-migration
1481
- * @return {!Object}
1482
- */
1483
- proto.BaseDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
1484
- return proto.BaseDeliveryOrderRequest.toObject(opt_includeInstance, this);
1485
- };
1486
-
1487
-
1488
- /**
1489
- * Static version of the {@see toObject} method.
1490
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1491
- * the JSPB instance for transitional soy proto support:
1492
- * http://goto/soy-param-migration
1493
- * @param {!proto.BaseDeliveryOrderRequest} msg The msg instance to transform.
1494
- * @return {!Object}
1495
- * @suppress {unusedLocalVariables} f is only used for nested messages
1496
- */
1497
- proto.BaseDeliveryOrderRequest.toObject = function(includeInstance, msg) {
1498
- var f, obj = {
1499
- department: jspb.Message.getFieldWithDefault(msg, 1, ""),
1500
- title: jspb.Message.getFieldWithDefault(msg, 2, ""),
1501
- shippingAddress: jspb.Message.getFieldWithDefault(msg, 3, ""),
1502
- referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1503
- status: jspb.Message.getFieldWithDefault(msg, 5, ""),
1504
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
1505
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
1506
- itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1507
- prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance),
1508
- createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
1509
- updatedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
1510
- groupReferences: jspb.Message.getFieldWithDefault(msg, 10, ""),
1511
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 11, ""),
1512
- purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
1513
- vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 13, ""),
1514
- shippingDate: jspb.Message.getFieldWithDefault(msg, 14, ""),
1515
- remarks: jspb.Message.getFieldWithDefault(msg, 15, ""),
1516
- purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 16, ""),
1517
- salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 17, "")
1518
- };
1519
-
1520
- if (includeInstance) {
1521
- obj.$jspbMessageInstance = msg;
1522
- }
1523
- return obj;
1524
- };
1525
- }
1526
-
1527
-
1528
- /**
1529
- * Deserializes binary data (in protobuf wire format).
1530
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1531
- * @return {!proto.BaseDeliveryOrderRequest}
1532
- */
1533
- proto.BaseDeliveryOrderRequest.deserializeBinary = function(bytes) {
1534
- var reader = new jspb.BinaryReader(bytes);
1535
- var msg = new proto.BaseDeliveryOrderRequest;
1536
- return proto.BaseDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
1537
- };
1538
-
1539
-
1540
- /**
1541
- * Deserializes binary data (in protobuf wire format) from the
1542
- * given reader into the given message object.
1543
- * @param {!proto.BaseDeliveryOrderRequest} msg The message object to deserialize into.
1544
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1545
- * @return {!proto.BaseDeliveryOrderRequest}
1546
- */
1547
- proto.BaseDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
1548
- while (reader.nextField()) {
1549
- if (reader.isEndGroup()) {
1550
- break;
1551
- }
1552
- var field = reader.getFieldNumber();
1553
- switch (field) {
1554
- case 1:
1555
- var value = /** @type {string} */ (reader.readString());
1556
- msg.setDepartment(value);
1557
- break;
1558
- case 2:
1559
- var value = /** @type {string} */ (reader.readString());
1560
- msg.setTitle(value);
1561
- break;
1562
- case 3:
1563
- var value = /** @type {string} */ (reader.readString());
1564
- msg.setShippingAddress(value);
1565
- break;
1566
- case 4:
1567
- var value = /** @type {string} */ (reader.readString());
1568
- msg.setReferencesId(value);
1569
- break;
1570
- case 5:
1571
- var value = /** @type {string} */ (reader.readString());
1572
- msg.setStatus(value);
1573
- break;
1574
- case 6:
1575
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
1576
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1577
- msg.addFiles(value);
1578
- break;
1579
- case 7:
1580
- var value = new prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction;
1581
- reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.deserializeBinaryFromReader);
1582
- msg.addItemTransactions(value);
1583
- break;
1584
- case 8:
1585
- var value = /** @type {string} */ (reader.readString());
1586
- msg.setCreatedBy(value);
1587
- break;
1588
- case 9:
1589
- var value = /** @type {string} */ (reader.readString());
1590
- msg.setUpdatedBy(value);
1591
- break;
1592
- case 10:
1593
- var value = /** @type {string} */ (reader.readString());
1594
- msg.setGroupReferences(value);
1595
- break;
1596
- case 11:
1597
- var value = /** @type {string} */ (reader.readString());
1598
- msg.setCompaniesReferencesId(value);
1599
- break;
1600
- case 12:
1601
- var value = /** @type {string} */ (reader.readString());
1602
- msg.setPurchaseOrderReferencesId(value);
1603
- break;
1604
- case 13:
1605
- var value = /** @type {string} */ (reader.readString());
1606
- msg.setVendorReferencesId(value);
1607
- break;
1608
- case 14:
1609
- var value = /** @type {string} */ (reader.readString());
1610
- msg.setShippingDate(value);
1611
- break;
1612
- case 15:
1613
- var value = /** @type {string} */ (reader.readString());
1614
- msg.setRemarks(value);
1615
- break;
1616
- case 16:
1617
- var value = /** @type {string} */ (reader.readString());
1618
- msg.setPurchaseOrderNumber(value);
1619
- break;
1620
- case 17:
1621
- var value = /** @type {string} */ (reader.readString());
1622
- msg.setSalesOrderNumber(value);
1623
- break;
1624
- default:
1625
- reader.skipField();
1626
- break;
1627
- }
1628
- }
1629
- return msg;
1630
- };
1631
-
1632
-
1633
- /**
1634
- * Serializes the message to binary data (in protobuf wire format).
1635
- * @return {!Uint8Array}
1636
- */
1637
- proto.BaseDeliveryOrderRequest.prototype.serializeBinary = function() {
1638
- var writer = new jspb.BinaryWriter();
1639
- proto.BaseDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
1640
- return writer.getResultBuffer();
1641
- };
1642
-
1643
-
1644
- /**
1645
- * Serializes the given message to binary data (in protobuf wire
1646
- * format), writing to the given BinaryWriter.
1647
- * @param {!proto.BaseDeliveryOrderRequest} message
1648
- * @param {!jspb.BinaryWriter} writer
1649
- * @suppress {unusedLocalVariables} f is only used for nested messages
1650
- */
1651
- proto.BaseDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
1652
- var f = undefined;
1653
- f = message.getDepartment();
1654
- if (f.length > 0) {
1655
- writer.writeString(
1656
- 1,
1657
- f
1658
- );
1659
- }
1660
- f = message.getTitle();
1661
- if (f.length > 0) {
1662
- writer.writeString(
1663
- 2,
1664
- f
1665
- );
1666
- }
1667
- f = message.getShippingAddress();
1668
- if (f.length > 0) {
1669
- writer.writeString(
1670
- 3,
1671
- f
1672
- );
1673
- }
1674
- f = message.getReferencesId();
1675
- if (f.length > 0) {
1676
- writer.writeString(
1677
- 4,
1678
- f
1679
- );
1680
- }
1681
- f = message.getStatus();
1682
- if (f.length > 0) {
1683
- writer.writeString(
1684
- 5,
1685
- f
1686
- );
1687
- }
1688
- f = message.getFilesList();
1689
- if (f.length > 0) {
1690
- writer.writeRepeatedMessage(
1691
- 6,
1692
- f,
1693
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1694
- );
1695
- }
1696
- f = message.getItemTransactionsList();
1697
- if (f.length > 0) {
1698
- writer.writeRepeatedMessage(
1699
- 7,
1700
- f,
1701
- prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
1702
- );
1703
- }
1704
- f = message.getCreatedBy();
1705
- if (f.length > 0) {
1706
- writer.writeString(
1707
- 8,
1708
- f
1709
- );
1710
- }
1711
- f = message.getUpdatedBy();
1712
- if (f.length > 0) {
1713
- writer.writeString(
1714
- 9,
1715
- f
1716
- );
1717
- }
1718
- f = message.getGroupReferences();
1719
- if (f.length > 0) {
1720
- writer.writeString(
1721
- 10,
1722
- f
1723
- );
1724
- }
1725
- f = message.getCompaniesReferencesId();
1726
- if (f.length > 0) {
1727
- writer.writeString(
1728
- 11,
1729
- f
1730
- );
1731
- }
1732
- f = message.getPurchaseOrderReferencesId();
1733
- if (f.length > 0) {
1734
- writer.writeString(
1735
- 12,
1736
- f
1737
- );
1738
- }
1739
- f = message.getVendorReferencesId();
1740
- if (f.length > 0) {
1741
- writer.writeString(
1742
- 13,
1743
- f
1744
- );
1745
- }
1746
- f = message.getShippingDate();
1747
- if (f.length > 0) {
1748
- writer.writeString(
1749
- 14,
1750
- f
1751
- );
1752
- }
1753
- f = message.getRemarks();
1754
- if (f.length > 0) {
1755
- writer.writeString(
1756
- 15,
1757
- f
1758
- );
1759
- }
1760
- f = message.getPurchaseOrderNumber();
1761
- if (f.length > 0) {
1762
- writer.writeString(
1763
- 16,
1764
- f
1765
- );
1766
- }
1767
- f = message.getSalesOrderNumber();
1768
- if (f.length > 0) {
1769
- writer.writeString(
1770
- 17,
1771
- f
1772
- );
1773
- }
1774
- };
1775
-
1776
-
1777
- /**
1778
- * optional string department = 1;
1779
- * @return {string}
1780
- */
1781
- proto.BaseDeliveryOrderRequest.prototype.getDepartment = function() {
1782
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1783
- };
1784
-
1785
-
1786
- /**
1787
- * @param {string} value
1788
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1789
- */
1790
- proto.BaseDeliveryOrderRequest.prototype.setDepartment = function(value) {
1791
- return jspb.Message.setProto3StringField(this, 1, value);
1792
- };
1793
-
1794
-
1795
- /**
1796
- * optional string title = 2;
1797
- * @return {string}
1798
- */
1799
- proto.BaseDeliveryOrderRequest.prototype.getTitle = function() {
1800
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1801
- };
1802
-
1803
-
1804
- /**
1805
- * @param {string} value
1806
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1807
- */
1808
- proto.BaseDeliveryOrderRequest.prototype.setTitle = function(value) {
1809
- return jspb.Message.setProto3StringField(this, 2, value);
1810
- };
1811
-
1812
-
1813
- /**
1814
- * optional string shipping_address = 3;
1815
- * @return {string}
1816
- */
1817
- proto.BaseDeliveryOrderRequest.prototype.getShippingAddress = function() {
1818
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1819
- };
1820
-
1821
-
1822
- /**
1823
- * @param {string} value
1824
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1825
- */
1826
- proto.BaseDeliveryOrderRequest.prototype.setShippingAddress = function(value) {
1827
- return jspb.Message.setProto3StringField(this, 3, value);
1828
- };
1829
-
1830
-
1831
- /**
1832
- * optional string references_id = 4;
1833
- * @return {string}
1834
- */
1835
- proto.BaseDeliveryOrderRequest.prototype.getReferencesId = function() {
1836
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1837
- };
1838
-
1839
-
1840
- /**
1841
- * @param {string} value
1842
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1843
- */
1844
- proto.BaseDeliveryOrderRequest.prototype.setReferencesId = function(value) {
1845
- return jspb.Message.setProto3StringField(this, 4, value);
1846
- };
1847
-
1848
-
1849
- /**
1850
- * optional string status = 5;
1851
- * @return {string}
1852
- */
1853
- proto.BaseDeliveryOrderRequest.prototype.getStatus = function() {
1854
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1855
- };
1856
-
1857
-
1858
- /**
1859
- * @param {string} value
1860
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1861
- */
1862
- proto.BaseDeliveryOrderRequest.prototype.setStatus = function(value) {
1863
- return jspb.Message.setProto3StringField(this, 5, value);
1864
- };
1865
-
1866
-
1867
- /**
1868
- * repeated FileUploadReferencesReq files = 6;
1869
- * @return {!Array<!proto.FileUploadReferencesReq>}
1870
- */
1871
- proto.BaseDeliveryOrderRequest.prototype.getFilesList = function() {
1872
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1873
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 6));
1874
- };
1875
-
1876
-
1877
- /**
1878
- * @param {!Array<!proto.FileUploadReferencesReq>} value
1879
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1880
- */
1881
- proto.BaseDeliveryOrderRequest.prototype.setFilesList = function(value) {
1882
- return jspb.Message.setRepeatedWrapperField(this, 6, value);
1883
- };
1884
-
1885
-
1886
- /**
1887
- * @param {!proto.FileUploadReferencesReq=} opt_value
1888
- * @param {number=} opt_index
1889
- * @return {!proto.FileUploadReferencesReq}
1890
- */
1891
- proto.BaseDeliveryOrderRequest.prototype.addFiles = function(opt_value, opt_index) {
1892
- return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.FileUploadReferencesReq, opt_index);
1893
- };
1894
-
1895
-
1896
- /**
1897
- * Clears the list making it empty but non-null.
1898
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1899
- */
1900
- proto.BaseDeliveryOrderRequest.prototype.clearFilesList = function() {
1901
- return this.setFilesList([]);
1902
- };
1903
-
1904
-
1905
- /**
1906
- * repeated BaseItemTransaction item_transactions = 7;
1907
- * @return {!Array<!proto.BaseItemTransaction>}
1908
- */
1909
- proto.BaseDeliveryOrderRequest.prototype.getItemTransactionsList = function() {
1910
- return /** @type{!Array<!proto.BaseItemTransaction>} */ (
1911
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction, 7));
1912
- };
1913
-
1914
-
1915
- /**
1916
- * @param {!Array<!proto.BaseItemTransaction>} value
1917
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1918
- */
1919
- proto.BaseDeliveryOrderRequest.prototype.setItemTransactionsList = function(value) {
1920
- return jspb.Message.setRepeatedWrapperField(this, 7, value);
1921
- };
1922
-
1923
-
1924
- /**
1925
- * @param {!proto.BaseItemTransaction=} opt_value
1926
- * @param {number=} opt_index
1927
- * @return {!proto.BaseItemTransaction}
1928
- */
1929
- proto.BaseDeliveryOrderRequest.prototype.addItemTransactions = function(opt_value, opt_index) {
1930
- return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.BaseItemTransaction, opt_index);
1931
- };
1932
-
1933
-
1934
- /**
1935
- * Clears the list making it empty but non-null.
1936
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1937
- */
1938
- proto.BaseDeliveryOrderRequest.prototype.clearItemTransactionsList = function() {
1939
- return this.setItemTransactionsList([]);
1940
- };
1941
-
1942
-
1943
- /**
1944
- * optional string created_by = 8;
1945
- * @return {string}
1946
- */
1947
- proto.BaseDeliveryOrderRequest.prototype.getCreatedBy = function() {
1948
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1949
- };
1950
-
1951
-
1952
- /**
1953
- * @param {string} value
1954
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1955
- */
1956
- proto.BaseDeliveryOrderRequest.prototype.setCreatedBy = function(value) {
1957
- return jspb.Message.setProto3StringField(this, 8, value);
1958
- };
1959
-
1960
-
1961
- /**
1962
- * optional string updated_by = 9;
1963
- * @return {string}
1964
- */
1965
- proto.BaseDeliveryOrderRequest.prototype.getUpdatedBy = function() {
1966
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1967
- };
1968
-
1969
-
1970
- /**
1971
- * @param {string} value
1972
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1973
- */
1974
- proto.BaseDeliveryOrderRequest.prototype.setUpdatedBy = function(value) {
1975
- return jspb.Message.setProto3StringField(this, 9, value);
1976
- };
1977
-
1978
-
1979
- /**
1980
- * optional string group_references = 10;
1981
- * @return {string}
1982
- */
1983
- proto.BaseDeliveryOrderRequest.prototype.getGroupReferences = function() {
1984
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1985
- };
1986
-
1987
-
1988
- /**
1989
- * @param {string} value
1990
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1991
- */
1992
- proto.BaseDeliveryOrderRequest.prototype.setGroupReferences = function(value) {
1993
- return jspb.Message.setProto3StringField(this, 10, value);
1994
- };
1995
-
1996
-
1997
- /**
1998
- * optional string companies_references_id = 11;
1999
- * @return {string}
2000
- */
2001
- proto.BaseDeliveryOrderRequest.prototype.getCompaniesReferencesId = function() {
2002
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2003
- };
2004
-
2005
-
2006
- /**
2007
- * @param {string} value
2008
- * @return {!proto.BaseDeliveryOrderRequest} returns this
2009
- */
2010
- proto.BaseDeliveryOrderRequest.prototype.setCompaniesReferencesId = function(value) {
2011
- return jspb.Message.setProto3StringField(this, 11, value);
2012
- };
2013
-
2014
-
2015
- /**
2016
- * optional string purchase_order_references_id = 12;
2017
- * @return {string}
2018
- */
2019
- proto.BaseDeliveryOrderRequest.prototype.getPurchaseOrderReferencesId = function() {
2020
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2021
- };
2022
-
2023
-
2024
- /**
2025
- * @param {string} value
2026
- * @return {!proto.BaseDeliveryOrderRequest} returns this
2027
- */
2028
- proto.BaseDeliveryOrderRequest.prototype.setPurchaseOrderReferencesId = function(value) {
2029
- return jspb.Message.setProto3StringField(this, 12, value);
2030
- };
2031
-
2032
-
2033
- /**
2034
- * optional string vendor_references_id = 13;
2035
- * @return {string}
2036
- */
2037
- proto.BaseDeliveryOrderRequest.prototype.getVendorReferencesId = function() {
2038
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
2039
- };
2040
-
2041
-
2042
- /**
2043
- * @param {string} value
2044
- * @return {!proto.BaseDeliveryOrderRequest} returns this
2045
- */
2046
- proto.BaseDeliveryOrderRequest.prototype.setVendorReferencesId = function(value) {
2047
- return jspb.Message.setProto3StringField(this, 13, value);
2048
- };
2049
-
2050
-
2051
- /**
2052
- * optional string shipping_date = 14;
2053
- * @return {string}
2054
- */
2055
- proto.BaseDeliveryOrderRequest.prototype.getShippingDate = function() {
2056
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
2057
- };
2058
-
2059
-
2060
- /**
2061
- * @param {string} value
2062
- * @return {!proto.BaseDeliveryOrderRequest} returns this
2063
- */
2064
- proto.BaseDeliveryOrderRequest.prototype.setShippingDate = function(value) {
2065
- return jspb.Message.setProto3StringField(this, 14, value);
2066
- };
2067
-
2068
-
2069
- /**
2070
- * optional string remarks = 15;
2071
- * @return {string}
2072
- */
2073
- proto.BaseDeliveryOrderRequest.prototype.getRemarks = function() {
2074
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2075
- };
2076
-
2077
-
2078
- /**
2079
- * @param {string} value
2080
- * @return {!proto.BaseDeliveryOrderRequest} returns this
2081
- */
2082
- proto.BaseDeliveryOrderRequest.prototype.setRemarks = function(value) {
2083
- return jspb.Message.setProto3StringField(this, 15, value);
2084
- };
2085
-
2086
-
2087
- /**
2088
- * optional string purchase_order_number = 16;
2089
- * @return {string}
2090
- */
2091
- proto.BaseDeliveryOrderRequest.prototype.getPurchaseOrderNumber = function() {
2092
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
2093
- };
2094
-
2095
-
2096
- /**
2097
- * @param {string} value
2098
- * @return {!proto.BaseDeliveryOrderRequest} returns this
2099
- */
2100
- proto.BaseDeliveryOrderRequest.prototype.setPurchaseOrderNumber = function(value) {
2101
- return jspb.Message.setProto3StringField(this, 16, value);
2102
- };
2103
-
2104
-
2105
- /**
2106
- * optional string sales_order_number = 17;
2107
- * @return {string}
2108
- */
2109
- proto.BaseDeliveryOrderRequest.prototype.getSalesOrderNumber = function() {
2110
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
2111
- };
2112
-
2113
-
2114
- /**
2115
- * @param {string} value
2116
- * @return {!proto.BaseDeliveryOrderRequest} returns this
2117
- */
2118
- proto.BaseDeliveryOrderRequest.prototype.setSalesOrderNumber = function(value) {
2119
- return jspb.Message.setProto3StringField(this, 17, value);
2120
- };
2121
-
2122
-
2123
-
2124
-
2125
-
2126
- if (jspb.Message.GENERATE_TO_OBJECT) {
2127
- /**
2128
- * Creates an object representation of this proto.
2129
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2130
- * Optional fields that are not set will be set to undefined.
2131
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2132
- * For the list of reserved names please see:
2133
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2134
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2135
- * JSPB instance for transitional soy proto support:
2136
- * http://goto/soy-param-migration
2137
- * @return {!Object}
2138
- */
2139
- proto.CreateDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
2140
- return proto.CreateDeliveryOrderRequest.toObject(opt_includeInstance, this);
2141
- };
2142
-
2143
-
2144
- /**
2145
- * Static version of the {@see toObject} method.
2146
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2147
- * the JSPB instance for transitional soy proto support:
2148
- * http://goto/soy-param-migration
2149
- * @param {!proto.CreateDeliveryOrderRequest} msg The msg instance to transform.
2150
- * @return {!Object}
2151
- * @suppress {unusedLocalVariables} f is only used for nested messages
2152
- */
2153
- proto.CreateDeliveryOrderRequest.toObject = function(includeInstance, msg) {
2154
- var f, obj = {
2155
- baseDeliveryOrder: (f = msg.getBaseDeliveryOrder()) && proto.BaseDeliveryOrderRequest.toObject(includeInstance, f)
2156
- };
2157
-
2158
- if (includeInstance) {
2159
- obj.$jspbMessageInstance = msg;
2160
- }
2161
- return obj;
2162
- };
2163
- }
2164
-
2165
-
2166
- /**
2167
- * Deserializes binary data (in protobuf wire format).
2168
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2169
- * @return {!proto.CreateDeliveryOrderRequest}
2170
- */
2171
- proto.CreateDeliveryOrderRequest.deserializeBinary = function(bytes) {
2172
- var reader = new jspb.BinaryReader(bytes);
2173
- var msg = new proto.CreateDeliveryOrderRequest;
2174
- return proto.CreateDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
2175
- };
2176
-
2177
-
2178
- /**
2179
- * Deserializes binary data (in protobuf wire format) from the
2180
- * given reader into the given message object.
2181
- * @param {!proto.CreateDeliveryOrderRequest} msg The message object to deserialize into.
2182
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2183
- * @return {!proto.CreateDeliveryOrderRequest}
2184
- */
2185
- proto.CreateDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
2186
- while (reader.nextField()) {
2187
- if (reader.isEndGroup()) {
2188
- break;
2189
- }
2190
- var field = reader.getFieldNumber();
2191
- switch (field) {
2192
- case 1:
2193
- var value = new proto.BaseDeliveryOrderRequest;
2194
- reader.readMessage(value,proto.BaseDeliveryOrderRequest.deserializeBinaryFromReader);
2195
- msg.setBaseDeliveryOrder(value);
2196
- break;
2197
- default:
2198
- reader.skipField();
2199
- break;
2200
- }
2201
- }
2202
- return msg;
2203
- };
2204
-
2205
-
2206
- /**
2207
- * Serializes the message to binary data (in protobuf wire format).
2208
- * @return {!Uint8Array}
2209
- */
2210
- proto.CreateDeliveryOrderRequest.prototype.serializeBinary = function() {
2211
- var writer = new jspb.BinaryWriter();
2212
- proto.CreateDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
2213
- return writer.getResultBuffer();
2214
- };
2215
-
2216
-
2217
- /**
2218
- * Serializes the given message to binary data (in protobuf wire
2219
- * format), writing to the given BinaryWriter.
2220
- * @param {!proto.CreateDeliveryOrderRequest} message
2221
- * @param {!jspb.BinaryWriter} writer
2222
- * @suppress {unusedLocalVariables} f is only used for nested messages
2223
- */
2224
- proto.CreateDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
2225
- var f = undefined;
2226
- f = message.getBaseDeliveryOrder();
2227
- if (f != null) {
2228
- writer.writeMessage(
2229
- 1,
2230
- f,
2231
- proto.BaseDeliveryOrderRequest.serializeBinaryToWriter
2232
- );
2233
- }
2234
- };
2235
-
2236
-
2237
- /**
2238
- * optional BaseDeliveryOrderRequest base_delivery_order = 1;
2239
- * @return {?proto.BaseDeliveryOrderRequest}
2240
- */
2241
- proto.CreateDeliveryOrderRequest.prototype.getBaseDeliveryOrder = function() {
2242
- return /** @type{?proto.BaseDeliveryOrderRequest} */ (
2243
- jspb.Message.getWrapperField(this, proto.BaseDeliveryOrderRequest, 1));
2244
- };
2245
-
2246
-
2247
- /**
2248
- * @param {?proto.BaseDeliveryOrderRequest|undefined} value
2249
- * @return {!proto.CreateDeliveryOrderRequest} returns this
2250
- */
2251
- proto.CreateDeliveryOrderRequest.prototype.setBaseDeliveryOrder = function(value) {
2252
- return jspb.Message.setWrapperField(this, 1, value);
2253
- };
2254
-
2255
-
2256
- /**
2257
- * Clears the message field making it undefined.
2258
- * @return {!proto.CreateDeliveryOrderRequest} returns this
2259
- */
2260
- proto.CreateDeliveryOrderRequest.prototype.clearBaseDeliveryOrder = function() {
2261
- return this.setBaseDeliveryOrder(undefined);
2262
- };
2263
-
2264
-
2265
- /**
2266
- * Returns whether this field is set.
2267
- * @return {boolean}
2268
- */
2269
- proto.CreateDeliveryOrderRequest.prototype.hasBaseDeliveryOrder = function() {
2270
- return jspb.Message.getField(this, 1) != null;
2271
- };
2272
-
2273
-
2274
-
2275
-
2276
-
2277
- if (jspb.Message.GENERATE_TO_OBJECT) {
2278
- /**
2279
- * Creates an object representation of this proto.
2280
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2281
- * Optional fields that are not set will be set to undefined.
2282
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2283
- * For the list of reserved names please see:
2284
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2285
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2286
- * JSPB instance for transitional soy proto support:
2287
- * http://goto/soy-param-migration
2288
- * @return {!Object}
2289
- */
2290
- proto.UpdateDeliveryOrderStatusRequest.prototype.toObject = function(opt_includeInstance) {
2291
- return proto.UpdateDeliveryOrderStatusRequest.toObject(opt_includeInstance, this);
2292
- };
2293
-
2294
-
2295
- /**
2296
- * Static version of the {@see toObject} method.
2297
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2298
- * the JSPB instance for transitional soy proto support:
2299
- * http://goto/soy-param-migration
2300
- * @param {!proto.UpdateDeliveryOrderStatusRequest} msg The msg instance to transform.
2301
- * @return {!Object}
2302
- * @suppress {unusedLocalVariables} f is only used for nested messages
2303
- */
2304
- proto.UpdateDeliveryOrderStatusRequest.toObject = function(includeInstance, msg) {
2305
- var f, obj = {
2306
- status: jspb.Message.getFieldWithDefault(msg, 1, ""),
2307
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
2308
- };
2309
-
2310
- if (includeInstance) {
2311
- obj.$jspbMessageInstance = msg;
2312
- }
2313
- return obj;
2314
- };
2315
- }
2316
-
2317
-
2318
- /**
2319
- * Deserializes binary data (in protobuf wire format).
2320
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2321
- * @return {!proto.UpdateDeliveryOrderStatusRequest}
2322
- */
2323
- proto.UpdateDeliveryOrderStatusRequest.deserializeBinary = function(bytes) {
2324
- var reader = new jspb.BinaryReader(bytes);
2325
- var msg = new proto.UpdateDeliveryOrderStatusRequest;
2326
- return proto.UpdateDeliveryOrderStatusRequest.deserializeBinaryFromReader(msg, reader);
2327
- };
2328
-
2329
-
2330
- /**
2331
- * Deserializes binary data (in protobuf wire format) from the
2332
- * given reader into the given message object.
2333
- * @param {!proto.UpdateDeliveryOrderStatusRequest} msg The message object to deserialize into.
2334
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2335
- * @return {!proto.UpdateDeliveryOrderStatusRequest}
2336
- */
2337
- proto.UpdateDeliveryOrderStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
2338
- while (reader.nextField()) {
2339
- if (reader.isEndGroup()) {
2340
- break;
2341
- }
2342
- var field = reader.getFieldNumber();
2343
- switch (field) {
2344
- case 1:
2345
- var value = /** @type {string} */ (reader.readString());
2346
- msg.setStatus(value);
2347
- break;
2348
- case 2:
2349
- var value = /** @type {string} */ (reader.readString());
2350
- msg.setReferencesId(value);
2351
- break;
2352
- default:
2353
- reader.skipField();
2354
- break;
2355
- }
2356
- }
2357
- return msg;
2358
- };
2359
-
2360
-
2361
- /**
2362
- * Serializes the message to binary data (in protobuf wire format).
2363
- * @return {!Uint8Array}
2364
- */
2365
- proto.UpdateDeliveryOrderStatusRequest.prototype.serializeBinary = function() {
2366
- var writer = new jspb.BinaryWriter();
2367
- proto.UpdateDeliveryOrderStatusRequest.serializeBinaryToWriter(this, writer);
2368
- return writer.getResultBuffer();
2369
- };
2370
-
2371
-
2372
- /**
2373
- * Serializes the given message to binary data (in protobuf wire
2374
- * format), writing to the given BinaryWriter.
2375
- * @param {!proto.UpdateDeliveryOrderStatusRequest} message
2376
- * @param {!jspb.BinaryWriter} writer
2377
- * @suppress {unusedLocalVariables} f is only used for nested messages
2378
- */
2379
- proto.UpdateDeliveryOrderStatusRequest.serializeBinaryToWriter = function(message, writer) {
2380
- var f = undefined;
2381
- f = message.getStatus();
2382
- if (f.length > 0) {
2383
- writer.writeString(
2384
- 1,
2385
- f
2386
- );
2387
- }
2388
- f = message.getReferencesId();
2389
- if (f.length > 0) {
2390
- writer.writeString(
2391
- 2,
2392
- f
2393
- );
2394
- }
2395
- };
2396
-
2397
-
2398
- /**
2399
- * optional string status = 1;
2400
- * @return {string}
2401
- */
2402
- proto.UpdateDeliveryOrderStatusRequest.prototype.getStatus = function() {
2403
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2404
- };
2405
-
2406
-
2407
- /**
2408
- * @param {string} value
2409
- * @return {!proto.UpdateDeliveryOrderStatusRequest} returns this
2410
- */
2411
- proto.UpdateDeliveryOrderStatusRequest.prototype.setStatus = function(value) {
2412
- return jspb.Message.setProto3StringField(this, 1, value);
2413
- };
2414
-
2415
-
2416
- /**
2417
- * optional string references_id = 2;
2418
- * @return {string}
2419
- */
2420
- proto.UpdateDeliveryOrderStatusRequest.prototype.getReferencesId = function() {
2421
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2422
- };
2423
-
2424
-
2425
- /**
2426
- * @param {string} value
2427
- * @return {!proto.UpdateDeliveryOrderStatusRequest} returns this
2428
- */
2429
- proto.UpdateDeliveryOrderStatusRequest.prototype.setReferencesId = function(value) {
2430
- return jspb.Message.setProto3StringField(this, 2, value);
2431
- };
2432
-
2433
-
2434
-
2435
-
2436
-
2437
- if (jspb.Message.GENERATE_TO_OBJECT) {
2438
- /**
2439
- * Creates an object representation of this proto.
2440
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2441
- * Optional fields that are not set will be set to undefined.
2442
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2443
- * For the list of reserved names please see:
2444
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2445
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2446
- * JSPB instance for transitional soy proto support:
2447
- * http://goto/soy-param-migration
2448
- * @return {!Object}
2449
- */
2450
- proto.UpdateDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
2451
- return proto.UpdateDeliveryOrderRequest.toObject(opt_includeInstance, this);
2452
- };
2453
-
2454
-
2455
- /**
2456
- * Static version of the {@see toObject} method.
2457
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2458
- * the JSPB instance for transitional soy proto support:
2459
- * http://goto/soy-param-migration
2460
- * @param {!proto.UpdateDeliveryOrderRequest} msg The msg instance to transform.
2461
- * @return {!Object}
2462
- * @suppress {unusedLocalVariables} f is only used for nested messages
2463
- */
2464
- proto.UpdateDeliveryOrderRequest.toObject = function(includeInstance, msg) {
2465
- var f, obj = {
2466
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2467
- baseDeliveryOrder: (f = msg.getBaseDeliveryOrder()) && proto.BaseDeliveryOrderRequest.toObject(includeInstance, f)
2468
- };
2469
-
2470
- if (includeInstance) {
2471
- obj.$jspbMessageInstance = msg;
2472
- }
2473
- return obj;
2474
- };
2475
- }
2476
-
2477
-
2478
- /**
2479
- * Deserializes binary data (in protobuf wire format).
2480
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2481
- * @return {!proto.UpdateDeliveryOrderRequest}
2482
- */
2483
- proto.UpdateDeliveryOrderRequest.deserializeBinary = function(bytes) {
2484
- var reader = new jspb.BinaryReader(bytes);
2485
- var msg = new proto.UpdateDeliveryOrderRequest;
2486
- return proto.UpdateDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
2487
- };
2488
-
2489
-
2490
- /**
2491
- * Deserializes binary data (in protobuf wire format) from the
2492
- * given reader into the given message object.
2493
- * @param {!proto.UpdateDeliveryOrderRequest} msg The message object to deserialize into.
2494
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2495
- * @return {!proto.UpdateDeliveryOrderRequest}
2496
- */
2497
- proto.UpdateDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
2498
- while (reader.nextField()) {
2499
- if (reader.isEndGroup()) {
2500
- break;
2501
- }
2502
- var field = reader.getFieldNumber();
2503
- switch (field) {
2504
- case 1:
2505
- var value = /** @type {string} */ (reader.readString());
2506
- msg.setReferencesId(value);
2507
- break;
2508
- case 2:
2509
- var value = new proto.BaseDeliveryOrderRequest;
2510
- reader.readMessage(value,proto.BaseDeliveryOrderRequest.deserializeBinaryFromReader);
2511
- msg.setBaseDeliveryOrder(value);
2512
- break;
2513
- default:
2514
- reader.skipField();
2515
- break;
2516
- }
2517
- }
2518
- return msg;
2519
- };
2520
-
2521
-
2522
- /**
2523
- * Serializes the message to binary data (in protobuf wire format).
2524
- * @return {!Uint8Array}
2525
- */
2526
- proto.UpdateDeliveryOrderRequest.prototype.serializeBinary = function() {
2527
- var writer = new jspb.BinaryWriter();
2528
- proto.UpdateDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
2529
- return writer.getResultBuffer();
2530
- };
2531
-
2532
-
2533
- /**
2534
- * Serializes the given message to binary data (in protobuf wire
2535
- * format), writing to the given BinaryWriter.
2536
- * @param {!proto.UpdateDeliveryOrderRequest} message
2537
- * @param {!jspb.BinaryWriter} writer
2538
- * @suppress {unusedLocalVariables} f is only used for nested messages
2539
- */
2540
- proto.UpdateDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
2541
- var f = undefined;
2542
- f = message.getReferencesId();
2543
- if (f.length > 0) {
2544
- writer.writeString(
2545
- 1,
2546
- f
2547
- );
2548
- }
2549
- f = message.getBaseDeliveryOrder();
2550
- if (f != null) {
2551
- writer.writeMessage(
2552
- 2,
2553
- f,
2554
- proto.BaseDeliveryOrderRequest.serializeBinaryToWriter
2555
- );
2556
- }
2557
- };
2558
-
2559
-
2560
- /**
2561
- * optional string references_id = 1;
2562
- * @return {string}
2563
- */
2564
- proto.UpdateDeliveryOrderRequest.prototype.getReferencesId = function() {
2565
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2566
- };
2567
-
2568
-
2569
- /**
2570
- * @param {string} value
2571
- * @return {!proto.UpdateDeliveryOrderRequest} returns this
2572
- */
2573
- proto.UpdateDeliveryOrderRequest.prototype.setReferencesId = function(value) {
2574
- return jspb.Message.setProto3StringField(this, 1, value);
2575
- };
2576
-
2577
-
2578
- /**
2579
- * optional BaseDeliveryOrderRequest base_delivery_order = 2;
2580
- * @return {?proto.BaseDeliveryOrderRequest}
2581
- */
2582
- proto.UpdateDeliveryOrderRequest.prototype.getBaseDeliveryOrder = function() {
2583
- return /** @type{?proto.BaseDeliveryOrderRequest} */ (
2584
- jspb.Message.getWrapperField(this, proto.BaseDeliveryOrderRequest, 2));
2585
- };
2586
-
2587
-
2588
- /**
2589
- * @param {?proto.BaseDeliveryOrderRequest|undefined} value
2590
- * @return {!proto.UpdateDeliveryOrderRequest} returns this
2591
- */
2592
- proto.UpdateDeliveryOrderRequest.prototype.setBaseDeliveryOrder = function(value) {
2593
- return jspb.Message.setWrapperField(this, 2, value);
2594
- };
2595
-
2596
-
2597
- /**
2598
- * Clears the message field making it undefined.
2599
- * @return {!proto.UpdateDeliveryOrderRequest} returns this
2600
- */
2601
- proto.UpdateDeliveryOrderRequest.prototype.clearBaseDeliveryOrder = function() {
2602
- return this.setBaseDeliveryOrder(undefined);
2603
- };
2604
-
2605
-
2606
- /**
2607
- * Returns whether this field is set.
2608
- * @return {boolean}
2609
- */
2610
- proto.UpdateDeliveryOrderRequest.prototype.hasBaseDeliveryOrder = function() {
2611
- return jspb.Message.getField(this, 2) != null;
2612
- };
2613
-
2614
-
2615
-
2616
-
2617
-
2618
- if (jspb.Message.GENERATE_TO_OBJECT) {
2619
- /**
2620
- * Creates an object representation of this proto.
2621
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2622
- * Optional fields that are not set will be set to undefined.
2623
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2624
- * For the list of reserved names please see:
2625
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2626
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2627
- * JSPB instance for transitional soy proto support:
2628
- * http://goto/soy-param-migration
2629
- * @return {!Object}
2630
- */
2631
- proto.GetDeliveryOrderByIdRequest.prototype.toObject = function(opt_includeInstance) {
2632
- return proto.GetDeliveryOrderByIdRequest.toObject(opt_includeInstance, this);
2633
- };
2634
-
2635
-
2636
- /**
2637
- * Static version of the {@see toObject} method.
2638
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2639
- * the JSPB instance for transitional soy proto support:
2640
- * http://goto/soy-param-migration
2641
- * @param {!proto.GetDeliveryOrderByIdRequest} msg The msg instance to transform.
2642
- * @return {!Object}
2643
- * @suppress {unusedLocalVariables} f is only used for nested messages
2644
- */
2645
- proto.GetDeliveryOrderByIdRequest.toObject = function(includeInstance, msg) {
2646
- var f, obj = {
2647
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2648
- };
2649
-
2650
- if (includeInstance) {
2651
- obj.$jspbMessageInstance = msg;
2652
- }
2653
- return obj;
2654
- };
2655
- }
2656
-
2657
-
2658
- /**
2659
- * Deserializes binary data (in protobuf wire format).
2660
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2661
- * @return {!proto.GetDeliveryOrderByIdRequest}
2662
- */
2663
- proto.GetDeliveryOrderByIdRequest.deserializeBinary = function(bytes) {
2664
- var reader = new jspb.BinaryReader(bytes);
2665
- var msg = new proto.GetDeliveryOrderByIdRequest;
2666
- return proto.GetDeliveryOrderByIdRequest.deserializeBinaryFromReader(msg, reader);
2667
- };
2668
-
2669
-
2670
- /**
2671
- * Deserializes binary data (in protobuf wire format) from the
2672
- * given reader into the given message object.
2673
- * @param {!proto.GetDeliveryOrderByIdRequest} msg The message object to deserialize into.
2674
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2675
- * @return {!proto.GetDeliveryOrderByIdRequest}
2676
- */
2677
- proto.GetDeliveryOrderByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2678
- while (reader.nextField()) {
2679
- if (reader.isEndGroup()) {
2680
- break;
2681
- }
2682
- var field = reader.getFieldNumber();
2683
- switch (field) {
2684
- case 1:
2685
- var value = /** @type {string} */ (reader.readString());
2686
- msg.setReferencesId(value);
2687
- break;
2688
- default:
2689
- reader.skipField();
2690
- break;
2691
- }
2692
- }
2693
- return msg;
2694
- };
2695
-
2696
-
2697
- /**
2698
- * Serializes the message to binary data (in protobuf wire format).
2699
- * @return {!Uint8Array}
2700
- */
2701
- proto.GetDeliveryOrderByIdRequest.prototype.serializeBinary = function() {
2702
- var writer = new jspb.BinaryWriter();
2703
- proto.GetDeliveryOrderByIdRequest.serializeBinaryToWriter(this, writer);
2704
- return writer.getResultBuffer();
2705
- };
2706
-
2707
-
2708
- /**
2709
- * Serializes the given message to binary data (in protobuf wire
2710
- * format), writing to the given BinaryWriter.
2711
- * @param {!proto.GetDeliveryOrderByIdRequest} message
2712
- * @param {!jspb.BinaryWriter} writer
2713
- * @suppress {unusedLocalVariables} f is only used for nested messages
2714
- */
2715
- proto.GetDeliveryOrderByIdRequest.serializeBinaryToWriter = function(message, writer) {
2716
- var f = undefined;
2717
- f = message.getReferencesId();
2718
- if (f.length > 0) {
2719
- writer.writeString(
2720
- 1,
2721
- f
2722
- );
2723
- }
2724
- };
2725
-
2726
-
2727
- /**
2728
- * optional string references_id = 1;
2729
- * @return {string}
2730
- */
2731
- proto.GetDeliveryOrderByIdRequest.prototype.getReferencesId = function() {
2732
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2733
- };
2734
-
2735
-
2736
- /**
2737
- * @param {string} value
2738
- * @return {!proto.GetDeliveryOrderByIdRequest} returns this
2739
- */
2740
- proto.GetDeliveryOrderByIdRequest.prototype.setReferencesId = function(value) {
2741
- return jspb.Message.setProto3StringField(this, 1, value);
2742
- };
2743
-
2744
-
2745
-
2746
-
2747
-
2748
- if (jspb.Message.GENERATE_TO_OBJECT) {
2749
- /**
2750
- * Creates an object representation of this proto.
2751
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2752
- * Optional fields that are not set will be set to undefined.
2753
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2754
- * For the list of reserved names please see:
2755
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2756
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2757
- * JSPB instance for transitional soy proto support:
2758
- * http://goto/soy-param-migration
2759
- * @return {!Object}
2760
- */
2761
- proto.GetListDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
2762
- return proto.GetListDeliveryOrderRequest.toObject(opt_includeInstance, this);
2763
- };
2764
-
2765
-
2766
- /**
2767
- * Static version of the {@see toObject} method.
2768
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2769
- * the JSPB instance for transitional soy proto support:
2770
- * http://goto/soy-param-migration
2771
- * @param {!proto.GetListDeliveryOrderRequest} msg The msg instance to transform.
2772
- * @return {!Object}
2773
- * @suppress {unusedLocalVariables} f is only used for nested messages
2774
- */
2775
- proto.GetListDeliveryOrderRequest.toObject = function(includeInstance, msg) {
2776
- var f, obj = {
2777
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2778
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2779
- };
2780
-
2781
- if (includeInstance) {
2782
- obj.$jspbMessageInstance = msg;
2783
- }
2784
- return obj;
2785
- };
2786
- }
2787
-
2788
-
2789
- /**
2790
- * Deserializes binary data (in protobuf wire format).
2791
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2792
- * @return {!proto.GetListDeliveryOrderRequest}
2793
- */
2794
- proto.GetListDeliveryOrderRequest.deserializeBinary = function(bytes) {
2795
- var reader = new jspb.BinaryReader(bytes);
2796
- var msg = new proto.GetListDeliveryOrderRequest;
2797
- return proto.GetListDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
2798
- };
2799
-
2800
-
2801
- /**
2802
- * Deserializes binary data (in protobuf wire format) from the
2803
- * given reader into the given message object.
2804
- * @param {!proto.GetListDeliveryOrderRequest} msg The message object to deserialize into.
2805
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2806
- * @return {!proto.GetListDeliveryOrderRequest}
2807
- */
2808
- proto.GetListDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
2809
- while (reader.nextField()) {
2810
- if (reader.isEndGroup()) {
2811
- break;
2812
- }
2813
- var field = reader.getFieldNumber();
2814
- switch (field) {
2815
- case 1:
2816
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2817
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2818
- msg.setPagination(value);
2819
- break;
2820
- case 2:
2821
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2822
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2823
- msg.setQuery(value);
2824
- break;
2825
- default:
2826
- reader.skipField();
2827
- break;
2828
- }
2829
- }
2830
- return msg;
2831
- };
2832
-
2833
-
2834
- /**
2835
- * Serializes the message to binary data (in protobuf wire format).
2836
- * @return {!Uint8Array}
2837
- */
2838
- proto.GetListDeliveryOrderRequest.prototype.serializeBinary = function() {
2839
- var writer = new jspb.BinaryWriter();
2840
- proto.GetListDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
2841
- return writer.getResultBuffer();
2842
- };
2843
-
2844
-
2845
- /**
2846
- * Serializes the given message to binary data (in protobuf wire
2847
- * format), writing to the given BinaryWriter.
2848
- * @param {!proto.GetListDeliveryOrderRequest} message
2849
- * @param {!jspb.BinaryWriter} writer
2850
- * @suppress {unusedLocalVariables} f is only used for nested messages
2851
- */
2852
- proto.GetListDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
2853
- var f = undefined;
2854
- f = message.getPagination();
2855
- if (f != null) {
2856
- writer.writeMessage(
2857
- 1,
2858
- f,
2859
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2860
- );
2861
- }
2862
- f = message.getQuery();
2863
- if (f != null) {
2864
- writer.writeMessage(
2865
- 2,
2866
- f,
2867
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2868
- );
2869
- }
2870
- };
2871
-
2872
-
2873
- /**
2874
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2875
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2876
- */
2877
- proto.GetListDeliveryOrderRequest.prototype.getPagination = function() {
2878
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2879
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2880
- };
2881
-
2882
-
2883
- /**
2884
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2885
- * @return {!proto.GetListDeliveryOrderRequest} returns this
2886
- */
2887
- proto.GetListDeliveryOrderRequest.prototype.setPagination = function(value) {
2888
- return jspb.Message.setWrapperField(this, 1, value);
2889
- };
2890
-
2891
-
2892
- /**
2893
- * Clears the message field making it undefined.
2894
- * @return {!proto.GetListDeliveryOrderRequest} returns this
2895
- */
2896
- proto.GetListDeliveryOrderRequest.prototype.clearPagination = function() {
2897
- return this.setPagination(undefined);
2898
- };
2899
-
2900
-
2901
- /**
2902
- * Returns whether this field is set.
2903
- * @return {boolean}
2904
- */
2905
- proto.GetListDeliveryOrderRequest.prototype.hasPagination = function() {
2906
- return jspb.Message.getField(this, 1) != null;
2907
- };
2908
-
2909
-
2910
- /**
2911
- * optional prisca.v1.global.meta.FilterRequest query = 2;
2912
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
2913
- */
2914
- proto.GetListDeliveryOrderRequest.prototype.getQuery = function() {
2915
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2916
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2917
- };
2918
-
2919
-
2920
- /**
2921
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2922
- * @return {!proto.GetListDeliveryOrderRequest} returns this
2923
- */
2924
- proto.GetListDeliveryOrderRequest.prototype.setQuery = function(value) {
2925
- return jspb.Message.setWrapperField(this, 2, value);
2926
- };
2927
-
2928
-
2929
- /**
2930
- * Clears the message field making it undefined.
2931
- * @return {!proto.GetListDeliveryOrderRequest} returns this
2932
- */
2933
- proto.GetListDeliveryOrderRequest.prototype.clearQuery = function() {
2934
- return this.setQuery(undefined);
2935
- };
2936
-
2937
-
2938
- /**
2939
- * Returns whether this field is set.
2940
- * @return {boolean}
2941
- */
2942
- proto.GetListDeliveryOrderRequest.prototype.hasQuery = function() {
2943
- return jspb.Message.getField(this, 2) != null;
2944
- };
2945
-
2946
-
2947
-
2948
-
2949
-
2950
- if (jspb.Message.GENERATE_TO_OBJECT) {
2951
- /**
2952
- * Creates an object representation of this proto.
2953
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2954
- * Optional fields that are not set will be set to undefined.
2955
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2956
- * For the list of reserved names please see:
2957
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2958
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2959
- * JSPB instance for transitional soy proto support:
2960
- * http://goto/soy-param-migration
2961
- * @return {!Object}
2962
- */
2963
- proto.DeleteDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
2964
- return proto.DeleteDeliveryOrderRequest.toObject(opt_includeInstance, this);
2965
- };
2966
-
2967
-
2968
- /**
2969
- * Static version of the {@see toObject} method.
2970
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2971
- * the JSPB instance for transitional soy proto support:
2972
- * http://goto/soy-param-migration
2973
- * @param {!proto.DeleteDeliveryOrderRequest} msg The msg instance to transform.
2974
- * @return {!Object}
2975
- * @suppress {unusedLocalVariables} f is only used for nested messages
2976
- */
2977
- proto.DeleteDeliveryOrderRequest.toObject = function(includeInstance, msg) {
2978
- var f, obj = {
2979
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2980
- };
2981
-
2982
- if (includeInstance) {
2983
- obj.$jspbMessageInstance = msg;
2984
- }
2985
- return obj;
2986
- };
2987
- }
2988
-
2989
-
2990
- /**
2991
- * Deserializes binary data (in protobuf wire format).
2992
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2993
- * @return {!proto.DeleteDeliveryOrderRequest}
2994
- */
2995
- proto.DeleteDeliveryOrderRequest.deserializeBinary = function(bytes) {
2996
- var reader = new jspb.BinaryReader(bytes);
2997
- var msg = new proto.DeleteDeliveryOrderRequest;
2998
- return proto.DeleteDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
2999
- };
3000
-
3001
-
3002
- /**
3003
- * Deserializes binary data (in protobuf wire format) from the
3004
- * given reader into the given message object.
3005
- * @param {!proto.DeleteDeliveryOrderRequest} msg The message object to deserialize into.
3006
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3007
- * @return {!proto.DeleteDeliveryOrderRequest}
3008
- */
3009
- proto.DeleteDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
3010
- while (reader.nextField()) {
3011
- if (reader.isEndGroup()) {
3012
- break;
3013
- }
3014
- var field = reader.getFieldNumber();
3015
- switch (field) {
3016
- case 1:
3017
- var value = /** @type {string} */ (reader.readString());
3018
- msg.setReferencesId(value);
3019
- break;
3020
- default:
3021
- reader.skipField();
3022
- break;
3023
- }
3024
- }
3025
- return msg;
3026
- };
3027
-
3028
-
3029
- /**
3030
- * Serializes the message to binary data (in protobuf wire format).
3031
- * @return {!Uint8Array}
3032
- */
3033
- proto.DeleteDeliveryOrderRequest.prototype.serializeBinary = function() {
3034
- var writer = new jspb.BinaryWriter();
3035
- proto.DeleteDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
3036
- return writer.getResultBuffer();
3037
- };
3038
-
3039
-
3040
- /**
3041
- * Serializes the given message to binary data (in protobuf wire
3042
- * format), writing to the given BinaryWriter.
3043
- * @param {!proto.DeleteDeliveryOrderRequest} message
3044
- * @param {!jspb.BinaryWriter} writer
3045
- * @suppress {unusedLocalVariables} f is only used for nested messages
3046
- */
3047
- proto.DeleteDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
3048
- var f = undefined;
3049
- f = message.getReferencesId();
3050
- if (f.length > 0) {
3051
- writer.writeString(
3052
- 1,
3053
- f
3054
- );
3055
- }
3056
- };
3057
-
3058
-
3059
- /**
3060
- * optional string references_id = 1;
3061
- * @return {string}
3062
- */
3063
- proto.DeleteDeliveryOrderRequest.prototype.getReferencesId = function() {
3064
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3065
- };
3066
-
3067
-
3068
- /**
3069
- * @param {string} value
3070
- * @return {!proto.DeleteDeliveryOrderRequest} returns this
3071
- */
3072
- proto.DeleteDeliveryOrderRequest.prototype.setReferencesId = function(value) {
3073
- return jspb.Message.setProto3StringField(this, 1, value);
3074
- };
3075
-
3076
-
3077
-
3078
-
3079
-
3080
- if (jspb.Message.GENERATE_TO_OBJECT) {
3081
- /**
3082
- * Creates an object representation of this proto.
3083
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3084
- * Optional fields that are not set will be set to undefined.
3085
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3086
- * For the list of reserved names please see:
3087
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3088
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3089
- * JSPB instance for transitional soy proto support:
3090
- * http://goto/soy-param-migration
3091
- * @return {!Object}
3092
- */
3093
- proto.CreateDeliveryOrderResponse.prototype.toObject = function(opt_includeInstance) {
3094
- return proto.CreateDeliveryOrderResponse.toObject(opt_includeInstance, this);
3095
- };
3096
-
3097
-
3098
- /**
3099
- * Static version of the {@see toObject} method.
3100
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3101
- * the JSPB instance for transitional soy proto support:
3102
- * http://goto/soy-param-migration
3103
- * @param {!proto.CreateDeliveryOrderResponse} msg The msg instance to transform.
3104
- * @return {!Object}
3105
- * @suppress {unusedLocalVariables} f is only used for nested messages
3106
- */
3107
- proto.CreateDeliveryOrderResponse.toObject = function(includeInstance, msg) {
3108
- var f, obj = {
3109
- deliveryOrder: (f = msg.getDeliveryOrder()) && proto.DeliveryOrder.toObject(includeInstance, f),
3110
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3111
- };
3112
-
3113
- if (includeInstance) {
3114
- obj.$jspbMessageInstance = msg;
3115
- }
3116
- return obj;
3117
- };
3118
- }
3119
-
3120
-
3121
- /**
3122
- * Deserializes binary data (in protobuf wire format).
3123
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3124
- * @return {!proto.CreateDeliveryOrderResponse}
3125
- */
3126
- proto.CreateDeliveryOrderResponse.deserializeBinary = function(bytes) {
3127
- var reader = new jspb.BinaryReader(bytes);
3128
- var msg = new proto.CreateDeliveryOrderResponse;
3129
- return proto.CreateDeliveryOrderResponse.deserializeBinaryFromReader(msg, reader);
3130
- };
3131
-
3132
-
3133
- /**
3134
- * Deserializes binary data (in protobuf wire format) from the
3135
- * given reader into the given message object.
3136
- * @param {!proto.CreateDeliveryOrderResponse} msg The message object to deserialize into.
3137
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3138
- * @return {!proto.CreateDeliveryOrderResponse}
3139
- */
3140
- proto.CreateDeliveryOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
3141
- while (reader.nextField()) {
3142
- if (reader.isEndGroup()) {
3143
- break;
3144
- }
3145
- var field = reader.getFieldNumber();
3146
- switch (field) {
3147
- case 1:
3148
- var value = new proto.DeliveryOrder;
3149
- reader.readMessage(value,proto.DeliveryOrder.deserializeBinaryFromReader);
3150
- msg.setDeliveryOrder(value);
3151
- break;
3152
- case 2:
3153
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3154
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3155
- msg.setMeta(value);
3156
- break;
3157
- default:
3158
- reader.skipField();
3159
- break;
3160
- }
3161
- }
3162
- return msg;
3163
- };
3164
-
3165
-
3166
- /**
3167
- * Serializes the message to binary data (in protobuf wire format).
3168
- * @return {!Uint8Array}
3169
- */
3170
- proto.CreateDeliveryOrderResponse.prototype.serializeBinary = function() {
3171
- var writer = new jspb.BinaryWriter();
3172
- proto.CreateDeliveryOrderResponse.serializeBinaryToWriter(this, writer);
3173
- return writer.getResultBuffer();
3174
- };
3175
-
3176
-
3177
- /**
3178
- * Serializes the given message to binary data (in protobuf wire
3179
- * format), writing to the given BinaryWriter.
3180
- * @param {!proto.CreateDeliveryOrderResponse} message
3181
- * @param {!jspb.BinaryWriter} writer
3182
- * @suppress {unusedLocalVariables} f is only used for nested messages
3183
- */
3184
- proto.CreateDeliveryOrderResponse.serializeBinaryToWriter = function(message, writer) {
3185
- var f = undefined;
3186
- f = message.getDeliveryOrder();
3187
- if (f != null) {
3188
- writer.writeMessage(
3189
- 1,
3190
- f,
3191
- proto.DeliveryOrder.serializeBinaryToWriter
3192
- );
3193
- }
3194
- f = message.getMeta();
3195
- if (f != null) {
3196
- writer.writeMessage(
3197
- 2,
3198
- f,
3199
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3200
- );
3201
- }
3202
- };
3203
-
3204
-
3205
- /**
3206
- * optional DeliveryOrder delivery_order = 1;
3207
- * @return {?proto.DeliveryOrder}
3208
- */
3209
- proto.CreateDeliveryOrderResponse.prototype.getDeliveryOrder = function() {
3210
- return /** @type{?proto.DeliveryOrder} */ (
3211
- jspb.Message.getWrapperField(this, proto.DeliveryOrder, 1));
3212
- };
3213
-
3214
-
3215
- /**
3216
- * @param {?proto.DeliveryOrder|undefined} value
3217
- * @return {!proto.CreateDeliveryOrderResponse} returns this
3218
- */
3219
- proto.CreateDeliveryOrderResponse.prototype.setDeliveryOrder = function(value) {
3220
- return jspb.Message.setWrapperField(this, 1, value);
3221
- };
3222
-
3223
-
3224
- /**
3225
- * Clears the message field making it undefined.
3226
- * @return {!proto.CreateDeliveryOrderResponse} returns this
3227
- */
3228
- proto.CreateDeliveryOrderResponse.prototype.clearDeliveryOrder = function() {
3229
- return this.setDeliveryOrder(undefined);
3230
- };
3231
-
3232
-
3233
- /**
3234
- * Returns whether this field is set.
3235
- * @return {boolean}
3236
- */
3237
- proto.CreateDeliveryOrderResponse.prototype.hasDeliveryOrder = function() {
3238
- return jspb.Message.getField(this, 1) != null;
3239
- };
3240
-
3241
-
3242
- /**
3243
- * optional prisca.v1.global.meta.Meta meta = 2;
3244
- * @return {?proto.prisca.v1.global.meta.Meta}
3245
- */
3246
- proto.CreateDeliveryOrderResponse.prototype.getMeta = function() {
3247
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3248
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3249
- };
3250
-
3251
-
3252
- /**
3253
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3254
- * @return {!proto.CreateDeliveryOrderResponse} returns this
3255
- */
3256
- proto.CreateDeliveryOrderResponse.prototype.setMeta = function(value) {
3257
- return jspb.Message.setWrapperField(this, 2, value);
3258
- };
3259
-
3260
-
3261
- /**
3262
- * Clears the message field making it undefined.
3263
- * @return {!proto.CreateDeliveryOrderResponse} returns this
3264
- */
3265
- proto.CreateDeliveryOrderResponse.prototype.clearMeta = function() {
3266
- return this.setMeta(undefined);
3267
- };
3268
-
3269
-
3270
- /**
3271
- * Returns whether this field is set.
3272
- * @return {boolean}
3273
- */
3274
- proto.CreateDeliveryOrderResponse.prototype.hasMeta = function() {
3275
- return jspb.Message.getField(this, 2) != null;
3276
- };
3277
-
3278
-
3279
-
3280
-
3281
-
3282
- if (jspb.Message.GENERATE_TO_OBJECT) {
3283
- /**
3284
- * Creates an object representation of this proto.
3285
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3286
- * Optional fields that are not set will be set to undefined.
3287
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3288
- * For the list of reserved names please see:
3289
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3290
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3291
- * JSPB instance for transitional soy proto support:
3292
- * http://goto/soy-param-migration
3293
- * @return {!Object}
3294
- */
3295
- proto.UpdateDeliveryOrderResponse.prototype.toObject = function(opt_includeInstance) {
3296
- return proto.UpdateDeliveryOrderResponse.toObject(opt_includeInstance, this);
3297
- };
3298
-
3299
-
3300
- /**
3301
- * Static version of the {@see toObject} method.
3302
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3303
- * the JSPB instance for transitional soy proto support:
3304
- * http://goto/soy-param-migration
3305
- * @param {!proto.UpdateDeliveryOrderResponse} msg The msg instance to transform.
3306
- * @return {!Object}
3307
- * @suppress {unusedLocalVariables} f is only used for nested messages
3308
- */
3309
- proto.UpdateDeliveryOrderResponse.toObject = function(includeInstance, msg) {
3310
- var f, obj = {
3311
- deliveryOrder: (f = msg.getDeliveryOrder()) && proto.DeliveryOrder.toObject(includeInstance, f),
3312
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3313
- };
3314
-
3315
- if (includeInstance) {
3316
- obj.$jspbMessageInstance = msg;
3317
- }
3318
- return obj;
3319
- };
3320
- }
3321
-
3322
-
3323
- /**
3324
- * Deserializes binary data (in protobuf wire format).
3325
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3326
- * @return {!proto.UpdateDeliveryOrderResponse}
3327
- */
3328
- proto.UpdateDeliveryOrderResponse.deserializeBinary = function(bytes) {
3329
- var reader = new jspb.BinaryReader(bytes);
3330
- var msg = new proto.UpdateDeliveryOrderResponse;
3331
- return proto.UpdateDeliveryOrderResponse.deserializeBinaryFromReader(msg, reader);
3332
- };
3333
-
3334
-
3335
- /**
3336
- * Deserializes binary data (in protobuf wire format) from the
3337
- * given reader into the given message object.
3338
- * @param {!proto.UpdateDeliveryOrderResponse} msg The message object to deserialize into.
3339
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3340
- * @return {!proto.UpdateDeliveryOrderResponse}
3341
- */
3342
- proto.UpdateDeliveryOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
3343
- while (reader.nextField()) {
3344
- if (reader.isEndGroup()) {
3345
- break;
3346
- }
3347
- var field = reader.getFieldNumber();
3348
- switch (field) {
3349
- case 1:
3350
- var value = new proto.DeliveryOrder;
3351
- reader.readMessage(value,proto.DeliveryOrder.deserializeBinaryFromReader);
3352
- msg.setDeliveryOrder(value);
3353
- break;
3354
- case 2:
3355
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3356
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3357
- msg.setMeta(value);
3358
- break;
3359
- default:
3360
- reader.skipField();
3361
- break;
3362
- }
3363
- }
3364
- return msg;
3365
- };
3366
-
3367
-
3368
- /**
3369
- * Serializes the message to binary data (in protobuf wire format).
3370
- * @return {!Uint8Array}
3371
- */
3372
- proto.UpdateDeliveryOrderResponse.prototype.serializeBinary = function() {
3373
- var writer = new jspb.BinaryWriter();
3374
- proto.UpdateDeliveryOrderResponse.serializeBinaryToWriter(this, writer);
3375
- return writer.getResultBuffer();
3376
- };
3377
-
3378
-
3379
- /**
3380
- * Serializes the given message to binary data (in protobuf wire
3381
- * format), writing to the given BinaryWriter.
3382
- * @param {!proto.UpdateDeliveryOrderResponse} message
3383
- * @param {!jspb.BinaryWriter} writer
3384
- * @suppress {unusedLocalVariables} f is only used for nested messages
3385
- */
3386
- proto.UpdateDeliveryOrderResponse.serializeBinaryToWriter = function(message, writer) {
3387
- var f = undefined;
3388
- f = message.getDeliveryOrder();
3389
- if (f != null) {
3390
- writer.writeMessage(
3391
- 1,
3392
- f,
3393
- proto.DeliveryOrder.serializeBinaryToWriter
3394
- );
3395
- }
3396
- f = message.getMeta();
3397
- if (f != null) {
3398
- writer.writeMessage(
3399
- 2,
3400
- f,
3401
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3402
- );
3403
- }
3404
- };
3405
-
3406
-
3407
- /**
3408
- * optional DeliveryOrder delivery_order = 1;
3409
- * @return {?proto.DeliveryOrder}
3410
- */
3411
- proto.UpdateDeliveryOrderResponse.prototype.getDeliveryOrder = function() {
3412
- return /** @type{?proto.DeliveryOrder} */ (
3413
- jspb.Message.getWrapperField(this, proto.DeliveryOrder, 1));
3414
- };
3415
-
3416
-
3417
- /**
3418
- * @param {?proto.DeliveryOrder|undefined} value
3419
- * @return {!proto.UpdateDeliveryOrderResponse} returns this
3420
- */
3421
- proto.UpdateDeliveryOrderResponse.prototype.setDeliveryOrder = function(value) {
3422
- return jspb.Message.setWrapperField(this, 1, value);
3423
- };
3424
-
3425
-
3426
- /**
3427
- * Clears the message field making it undefined.
3428
- * @return {!proto.UpdateDeliveryOrderResponse} returns this
3429
- */
3430
- proto.UpdateDeliveryOrderResponse.prototype.clearDeliveryOrder = function() {
3431
- return this.setDeliveryOrder(undefined);
3432
- };
3433
-
3434
-
3435
- /**
3436
- * Returns whether this field is set.
3437
- * @return {boolean}
3438
- */
3439
- proto.UpdateDeliveryOrderResponse.prototype.hasDeliveryOrder = function() {
3440
- return jspb.Message.getField(this, 1) != null;
3441
- };
3442
-
3443
-
3444
- /**
3445
- * optional prisca.v1.global.meta.Meta meta = 2;
3446
- * @return {?proto.prisca.v1.global.meta.Meta}
3447
- */
3448
- proto.UpdateDeliveryOrderResponse.prototype.getMeta = function() {
3449
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3450
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3451
- };
3452
-
3453
-
3454
- /**
3455
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3456
- * @return {!proto.UpdateDeliveryOrderResponse} returns this
3457
- */
3458
- proto.UpdateDeliveryOrderResponse.prototype.setMeta = function(value) {
3459
- return jspb.Message.setWrapperField(this, 2, value);
3460
- };
3461
-
3462
-
3463
- /**
3464
- * Clears the message field making it undefined.
3465
- * @return {!proto.UpdateDeliveryOrderResponse} returns this
3466
- */
3467
- proto.UpdateDeliveryOrderResponse.prototype.clearMeta = function() {
3468
- return this.setMeta(undefined);
3469
- };
3470
-
3471
-
3472
- /**
3473
- * Returns whether this field is set.
3474
- * @return {boolean}
3475
- */
3476
- proto.UpdateDeliveryOrderResponse.prototype.hasMeta = function() {
3477
- return jspb.Message.getField(this, 2) != null;
3478
- };
3479
-
3480
-
3481
-
3482
-
3483
-
3484
- if (jspb.Message.GENERATE_TO_OBJECT) {
3485
- /**
3486
- * Creates an object representation of this proto.
3487
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3488
- * Optional fields that are not set will be set to undefined.
3489
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3490
- * For the list of reserved names please see:
3491
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3492
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3493
- * JSPB instance for transitional soy proto support:
3494
- * http://goto/soy-param-migration
3495
- * @return {!Object}
3496
- */
3497
- proto.GetDeliveryOrderByIdResponse.prototype.toObject = function(opt_includeInstance) {
3498
- return proto.GetDeliveryOrderByIdResponse.toObject(opt_includeInstance, this);
3499
- };
3500
-
3501
-
3502
- /**
3503
- * Static version of the {@see toObject} method.
3504
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3505
- * the JSPB instance for transitional soy proto support:
3506
- * http://goto/soy-param-migration
3507
- * @param {!proto.GetDeliveryOrderByIdResponse} msg The msg instance to transform.
3508
- * @return {!Object}
3509
- * @suppress {unusedLocalVariables} f is only used for nested messages
3510
- */
3511
- proto.GetDeliveryOrderByIdResponse.toObject = function(includeInstance, msg) {
3512
- var f, obj = {
3513
- deliveryOrder: (f = msg.getDeliveryOrder()) && proto.DeliveryOrder.toObject(includeInstance, f),
3514
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3515
- };
3516
-
3517
- if (includeInstance) {
3518
- obj.$jspbMessageInstance = msg;
3519
- }
3520
- return obj;
3521
- };
3522
- }
3523
-
3524
-
3525
- /**
3526
- * Deserializes binary data (in protobuf wire format).
3527
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3528
- * @return {!proto.GetDeliveryOrderByIdResponse}
3529
- */
3530
- proto.GetDeliveryOrderByIdResponse.deserializeBinary = function(bytes) {
3531
- var reader = new jspb.BinaryReader(bytes);
3532
- var msg = new proto.GetDeliveryOrderByIdResponse;
3533
- return proto.GetDeliveryOrderByIdResponse.deserializeBinaryFromReader(msg, reader);
3534
- };
3535
-
3536
-
3537
- /**
3538
- * Deserializes binary data (in protobuf wire format) from the
3539
- * given reader into the given message object.
3540
- * @param {!proto.GetDeliveryOrderByIdResponse} msg The message object to deserialize into.
3541
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3542
- * @return {!proto.GetDeliveryOrderByIdResponse}
3543
- */
3544
- proto.GetDeliveryOrderByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3545
- while (reader.nextField()) {
3546
- if (reader.isEndGroup()) {
3547
- break;
3548
- }
3549
- var field = reader.getFieldNumber();
3550
- switch (field) {
3551
- case 1:
3552
- var value = new proto.DeliveryOrder;
3553
- reader.readMessage(value,proto.DeliveryOrder.deserializeBinaryFromReader);
3554
- msg.setDeliveryOrder(value);
3555
- break;
3556
- case 2:
3557
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3558
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3559
- msg.setMeta(value);
3560
- break;
3561
- default:
3562
- reader.skipField();
3563
- break;
3564
- }
3565
- }
3566
- return msg;
3567
- };
3568
-
3569
-
3570
- /**
3571
- * Serializes the message to binary data (in protobuf wire format).
3572
- * @return {!Uint8Array}
3573
- */
3574
- proto.GetDeliveryOrderByIdResponse.prototype.serializeBinary = function() {
3575
- var writer = new jspb.BinaryWriter();
3576
- proto.GetDeliveryOrderByIdResponse.serializeBinaryToWriter(this, writer);
3577
- return writer.getResultBuffer();
3578
- };
3579
-
3580
-
3581
- /**
3582
- * Serializes the given message to binary data (in protobuf wire
3583
- * format), writing to the given BinaryWriter.
3584
- * @param {!proto.GetDeliveryOrderByIdResponse} message
3585
- * @param {!jspb.BinaryWriter} writer
3586
- * @suppress {unusedLocalVariables} f is only used for nested messages
3587
- */
3588
- proto.GetDeliveryOrderByIdResponse.serializeBinaryToWriter = function(message, writer) {
3589
- var f = undefined;
3590
- f = message.getDeliveryOrder();
3591
- if (f != null) {
3592
- writer.writeMessage(
3593
- 1,
3594
- f,
3595
- proto.DeliveryOrder.serializeBinaryToWriter
3596
- );
3597
- }
3598
- f = message.getMeta();
3599
- if (f != null) {
3600
- writer.writeMessage(
3601
- 2,
3602
- f,
3603
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3604
- );
3605
- }
3606
- };
3607
-
3608
-
3609
- /**
3610
- * optional DeliveryOrder delivery_order = 1;
3611
- * @return {?proto.DeliveryOrder}
3612
- */
3613
- proto.GetDeliveryOrderByIdResponse.prototype.getDeliveryOrder = function() {
3614
- return /** @type{?proto.DeliveryOrder} */ (
3615
- jspb.Message.getWrapperField(this, proto.DeliveryOrder, 1));
3616
- };
3617
-
3618
-
3619
- /**
3620
- * @param {?proto.DeliveryOrder|undefined} value
3621
- * @return {!proto.GetDeliveryOrderByIdResponse} returns this
3622
- */
3623
- proto.GetDeliveryOrderByIdResponse.prototype.setDeliveryOrder = function(value) {
3624
- return jspb.Message.setWrapperField(this, 1, value);
3625
- };
3626
-
3627
-
3628
- /**
3629
- * Clears the message field making it undefined.
3630
- * @return {!proto.GetDeliveryOrderByIdResponse} returns this
3631
- */
3632
- proto.GetDeliveryOrderByIdResponse.prototype.clearDeliveryOrder = function() {
3633
- return this.setDeliveryOrder(undefined);
3634
- };
3635
-
3636
-
3637
- /**
3638
- * Returns whether this field is set.
3639
- * @return {boolean}
3640
- */
3641
- proto.GetDeliveryOrderByIdResponse.prototype.hasDeliveryOrder = function() {
3642
- return jspb.Message.getField(this, 1) != null;
3643
- };
3644
-
3645
-
3646
- /**
3647
- * optional prisca.v1.global.meta.Meta meta = 2;
3648
- * @return {?proto.prisca.v1.global.meta.Meta}
3649
- */
3650
- proto.GetDeliveryOrderByIdResponse.prototype.getMeta = function() {
3651
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3652
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3653
- };
3654
-
3655
-
3656
- /**
3657
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3658
- * @return {!proto.GetDeliveryOrderByIdResponse} returns this
3659
- */
3660
- proto.GetDeliveryOrderByIdResponse.prototype.setMeta = function(value) {
3661
- return jspb.Message.setWrapperField(this, 2, value);
3662
- };
3663
-
3664
-
3665
- /**
3666
- * Clears the message field making it undefined.
3667
- * @return {!proto.GetDeliveryOrderByIdResponse} returns this
3668
- */
3669
- proto.GetDeliveryOrderByIdResponse.prototype.clearMeta = function() {
3670
- return this.setMeta(undefined);
3671
- };
3672
-
3673
-
3674
- /**
3675
- * Returns whether this field is set.
3676
- * @return {boolean}
3677
- */
3678
- proto.GetDeliveryOrderByIdResponse.prototype.hasMeta = function() {
3679
- return jspb.Message.getField(this, 2) != null;
3680
- };
3681
-
3682
-
3683
-
3684
- /**
3685
- * List of repeated fields within this message type.
3686
- * @private {!Array<number>}
3687
- * @const
3688
- */
3689
- proto.GetDeliveryOrderDetailResponse.repeatedFields_ = [1,2];
3690
-
3691
-
3692
-
3693
- if (jspb.Message.GENERATE_TO_OBJECT) {
3694
- /**
3695
- * Creates an object representation of this proto.
3696
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3697
- * Optional fields that are not set will be set to undefined.
3698
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3699
- * For the list of reserved names please see:
3700
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3701
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3702
- * JSPB instance for transitional soy proto support:
3703
- * http://goto/soy-param-migration
3704
- * @return {!Object}
3705
- */
3706
- proto.GetDeliveryOrderDetailResponse.prototype.toObject = function(opt_includeInstance) {
3707
- return proto.GetDeliveryOrderDetailResponse.toObject(opt_includeInstance, this);
3708
- };
3709
-
3710
-
3711
- /**
3712
- * Static version of the {@see toObject} method.
3713
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3714
- * the JSPB instance for transitional soy proto support:
3715
- * http://goto/soy-param-migration
3716
- * @param {!proto.GetDeliveryOrderDetailResponse} msg The msg instance to transform.
3717
- * @return {!Object}
3718
- * @suppress {unusedLocalVariables} f is only used for nested messages
3719
- */
3720
- proto.GetDeliveryOrderDetailResponse.toObject = function(includeInstance, msg) {
3721
- var f, obj = {
3722
- transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
3723
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
3724
- transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
3725
- proto.GetDeliveryOrderItemPreload.toObject, includeInstance)
3726
- };
3727
-
3728
- if (includeInstance) {
3729
- obj.$jspbMessageInstance = msg;
3730
- }
3731
- return obj;
3732
- };
3733
- }
3734
-
3735
-
3736
- /**
3737
- * Deserializes binary data (in protobuf wire format).
3738
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3739
- * @return {!proto.GetDeliveryOrderDetailResponse}
3740
- */
3741
- proto.GetDeliveryOrderDetailResponse.deserializeBinary = function(bytes) {
3742
- var reader = new jspb.BinaryReader(bytes);
3743
- var msg = new proto.GetDeliveryOrderDetailResponse;
3744
- return proto.GetDeliveryOrderDetailResponse.deserializeBinaryFromReader(msg, reader);
3745
- };
3746
-
3747
-
3748
- /**
3749
- * Deserializes binary data (in protobuf wire format) from the
3750
- * given reader into the given message object.
3751
- * @param {!proto.GetDeliveryOrderDetailResponse} msg The message object to deserialize into.
3752
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3753
- * @return {!proto.GetDeliveryOrderDetailResponse}
3754
- */
3755
- proto.GetDeliveryOrderDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
3756
- while (reader.nextField()) {
3757
- if (reader.isEndGroup()) {
3758
- break;
3759
- }
3760
- var field = reader.getFieldNumber();
3761
- switch (field) {
3762
- case 1:
3763
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
3764
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
3765
- msg.addTransactionBuilder(value);
3766
- break;
3767
- case 2:
3768
- var value = new proto.GetDeliveryOrderItemPreload;
3769
- reader.readMessage(value,proto.GetDeliveryOrderItemPreload.deserializeBinaryFromReader);
3770
- msg.addTransactionBuilderItems(value);
3771
- break;
3772
- default:
3773
- reader.skipField();
3774
- break;
3775
- }
3776
- }
3777
- return msg;
3778
- };
3779
-
3780
-
3781
- /**
3782
- * Serializes the message to binary data (in protobuf wire format).
3783
- * @return {!Uint8Array}
3784
- */
3785
- proto.GetDeliveryOrderDetailResponse.prototype.serializeBinary = function() {
3786
- var writer = new jspb.BinaryWriter();
3787
- proto.GetDeliveryOrderDetailResponse.serializeBinaryToWriter(this, writer);
3788
- return writer.getResultBuffer();
3789
- };
3790
-
3791
-
3792
- /**
3793
- * Serializes the given message to binary data (in protobuf wire
3794
- * format), writing to the given BinaryWriter.
3795
- * @param {!proto.GetDeliveryOrderDetailResponse} message
3796
- * @param {!jspb.BinaryWriter} writer
3797
- * @suppress {unusedLocalVariables} f is only used for nested messages
3798
- */
3799
- proto.GetDeliveryOrderDetailResponse.serializeBinaryToWriter = function(message, writer) {
3800
- var f = undefined;
3801
- f = message.getTransactionBuilderList();
3802
- if (f.length > 0) {
3803
- writer.writeRepeatedMessage(
3804
- 1,
3805
- f,
3806
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
3807
- );
3808
- }
3809
- f = message.getTransactionBuilderItemsList();
3810
- if (f.length > 0) {
3811
- writer.writeRepeatedMessage(
3812
- 2,
3813
- f,
3814
- proto.GetDeliveryOrderItemPreload.serializeBinaryToWriter
3815
- );
3816
- }
3817
- };
3818
-
3819
-
3820
- /**
3821
- * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
3822
- * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
3823
- */
3824
- proto.GetDeliveryOrderDetailResponse.prototype.getTransactionBuilderList = function() {
3825
- return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
3826
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
3827
- };
3828
-
3829
-
3830
- /**
3831
- * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
3832
- * @return {!proto.GetDeliveryOrderDetailResponse} returns this
3833
- */
3834
- proto.GetDeliveryOrderDetailResponse.prototype.setTransactionBuilderList = function(value) {
3835
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3836
- };
3837
-
3838
-
3839
- /**
3840
- * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
3841
- * @param {number=} opt_index
3842
- * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
3843
- */
3844
- proto.GetDeliveryOrderDetailResponse.prototype.addTransactionBuilder = function(opt_value, opt_index) {
3845
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
3846
- };
3847
-
3848
-
3849
- /**
3850
- * Clears the list making it empty but non-null.
3851
- * @return {!proto.GetDeliveryOrderDetailResponse} returns this
3852
- */
3853
- proto.GetDeliveryOrderDetailResponse.prototype.clearTransactionBuilderList = function() {
3854
- return this.setTransactionBuilderList([]);
3855
- };
3856
-
3857
-
3858
- /**
3859
- * repeated GetDeliveryOrderItemPreload transaction_builder_items = 2;
3860
- * @return {!Array<!proto.GetDeliveryOrderItemPreload>}
3861
- */
3862
- proto.GetDeliveryOrderDetailResponse.prototype.getTransactionBuilderItemsList = function() {
3863
- return /** @type{!Array<!proto.GetDeliveryOrderItemPreload>} */ (
3864
- jspb.Message.getRepeatedWrapperField(this, proto.GetDeliveryOrderItemPreload, 2));
3865
- };
3866
-
3867
-
3868
- /**
3869
- * @param {!Array<!proto.GetDeliveryOrderItemPreload>} value
3870
- * @return {!proto.GetDeliveryOrderDetailResponse} returns this
3871
- */
3872
- proto.GetDeliveryOrderDetailResponse.prototype.setTransactionBuilderItemsList = function(value) {
3873
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
3874
- };
3875
-
3876
-
3877
- /**
3878
- * @param {!proto.GetDeliveryOrderItemPreload=} opt_value
3879
- * @param {number=} opt_index
3880
- * @return {!proto.GetDeliveryOrderItemPreload}
3881
- */
3882
- proto.GetDeliveryOrderDetailResponse.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
3883
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetDeliveryOrderItemPreload, opt_index);
3884
- };
3885
-
3886
-
3887
- /**
3888
- * Clears the list making it empty but non-null.
3889
- * @return {!proto.GetDeliveryOrderDetailResponse} returns this
3890
- */
3891
- proto.GetDeliveryOrderDetailResponse.prototype.clearTransactionBuilderItemsList = function() {
3892
- return this.setTransactionBuilderItemsList([]);
3893
- };
3894
-
3895
-
3896
-
3897
- /**
3898
- * List of repeated fields within this message type.
3899
- * @private {!Array<number>}
3900
- * @const
3901
- */
3902
- proto.GetDeliveryOrderItemPreload.repeatedFields_ = [1,2];
3903
-
3904
-
3905
-
3906
- if (jspb.Message.GENERATE_TO_OBJECT) {
3907
- /**
3908
- * Creates an object representation of this proto.
3909
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3910
- * Optional fields that are not set will be set to undefined.
3911
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3912
- * For the list of reserved names please see:
3913
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3914
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3915
- * JSPB instance for transitional soy proto support:
3916
- * http://goto/soy-param-migration
3917
- * @return {!Object}
3918
- */
3919
- proto.GetDeliveryOrderItemPreload.prototype.toObject = function(opt_includeInstance) {
3920
- return proto.GetDeliveryOrderItemPreload.toObject(opt_includeInstance, this);
3921
- };
3922
-
3923
-
3924
- /**
3925
- * Static version of the {@see toObject} method.
3926
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3927
- * the JSPB instance for transitional soy proto support:
3928
- * http://goto/soy-param-migration
3929
- * @param {!proto.GetDeliveryOrderItemPreload} msg The msg instance to transform.
3930
- * @return {!Object}
3931
- * @suppress {unusedLocalVariables} f is only used for nested messages
3932
- */
3933
- proto.GetDeliveryOrderItemPreload.toObject = function(includeInstance, msg) {
3934
- var f, obj = {
3935
- transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
3936
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
3937
- transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
3938
- proto.GetDeliveryOrderItemDetailPreload.toObject, includeInstance)
3939
- };
3940
-
3941
- if (includeInstance) {
3942
- obj.$jspbMessageInstance = msg;
3943
- }
3944
- return obj;
3945
- };
3946
- }
3947
-
3948
-
3949
- /**
3950
- * Deserializes binary data (in protobuf wire format).
3951
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3952
- * @return {!proto.GetDeliveryOrderItemPreload}
3953
- */
3954
- proto.GetDeliveryOrderItemPreload.deserializeBinary = function(bytes) {
3955
- var reader = new jspb.BinaryReader(bytes);
3956
- var msg = new proto.GetDeliveryOrderItemPreload;
3957
- return proto.GetDeliveryOrderItemPreload.deserializeBinaryFromReader(msg, reader);
3958
- };
3959
-
3960
-
3961
- /**
3962
- * Deserializes binary data (in protobuf wire format) from the
3963
- * given reader into the given message object.
3964
- * @param {!proto.GetDeliveryOrderItemPreload} msg The message object to deserialize into.
3965
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3966
- * @return {!proto.GetDeliveryOrderItemPreload}
3967
- */
3968
- proto.GetDeliveryOrderItemPreload.deserializeBinaryFromReader = function(msg, reader) {
3969
- while (reader.nextField()) {
3970
- if (reader.isEndGroup()) {
3971
- break;
3972
- }
3973
- var field = reader.getFieldNumber();
3974
- switch (field) {
3975
- case 1:
3976
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
3977
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
3978
- msg.addTransactionBuilderItem(value);
3979
- break;
3980
- case 2:
3981
- var value = new proto.GetDeliveryOrderItemDetailPreload;
3982
- reader.readMessage(value,proto.GetDeliveryOrderItemDetailPreload.deserializeBinaryFromReader);
3983
- msg.addTransactionBuilderItemDetails(value);
3984
- break;
3985
- default:
3986
- reader.skipField();
3987
- break;
3988
- }
3989
- }
3990
- return msg;
3991
- };
3992
-
3993
-
3994
- /**
3995
- * Serializes the message to binary data (in protobuf wire format).
3996
- * @return {!Uint8Array}
3997
- */
3998
- proto.GetDeliveryOrderItemPreload.prototype.serializeBinary = function() {
3999
- var writer = new jspb.BinaryWriter();
4000
- proto.GetDeliveryOrderItemPreload.serializeBinaryToWriter(this, writer);
4001
- return writer.getResultBuffer();
4002
- };
4003
-
4004
-
4005
- /**
4006
- * Serializes the given message to binary data (in protobuf wire
4007
- * format), writing to the given BinaryWriter.
4008
- * @param {!proto.GetDeliveryOrderItemPreload} message
4009
- * @param {!jspb.BinaryWriter} writer
4010
- * @suppress {unusedLocalVariables} f is only used for nested messages
4011
- */
4012
- proto.GetDeliveryOrderItemPreload.serializeBinaryToWriter = function(message, writer) {
4013
- var f = undefined;
4014
- f = message.getTransactionBuilderItemList();
4015
- if (f.length > 0) {
4016
- writer.writeRepeatedMessage(
4017
- 1,
4018
- f,
4019
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
4020
- );
4021
- }
4022
- f = message.getTransactionBuilderItemDetailsList();
4023
- if (f.length > 0) {
4024
- writer.writeRepeatedMessage(
4025
- 2,
4026
- f,
4027
- proto.GetDeliveryOrderItemDetailPreload.serializeBinaryToWriter
4028
- );
4029
- }
4030
- };
4031
-
4032
-
4033
- /**
4034
- * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item = 1;
4035
- * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
4036
- */
4037
- proto.GetDeliveryOrderItemPreload.prototype.getTransactionBuilderItemList = function() {
4038
- return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
4039
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
4040
- };
4041
-
4042
-
4043
- /**
4044
- * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
4045
- * @return {!proto.GetDeliveryOrderItemPreload} returns this
4046
- */
4047
- proto.GetDeliveryOrderItemPreload.prototype.setTransactionBuilderItemList = function(value) {
4048
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4049
- };
4050
-
4051
-
4052
- /**
4053
- * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
4054
- * @param {number=} opt_index
4055
- * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
4056
- */
4057
- proto.GetDeliveryOrderItemPreload.prototype.addTransactionBuilderItem = function(opt_value, opt_index) {
4058
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
4059
- };
4060
-
4061
-
4062
- /**
4063
- * Clears the list making it empty but non-null.
4064
- * @return {!proto.GetDeliveryOrderItemPreload} returns this
4065
- */
4066
- proto.GetDeliveryOrderItemPreload.prototype.clearTransactionBuilderItemList = function() {
4067
- return this.setTransactionBuilderItemList([]);
4068
- };
4069
-
4070
-
4071
- /**
4072
- * repeated GetDeliveryOrderItemDetailPreload transaction_builder_item_details = 2;
4073
- * @return {!Array<!proto.GetDeliveryOrderItemDetailPreload>}
4074
- */
4075
- proto.GetDeliveryOrderItemPreload.prototype.getTransactionBuilderItemDetailsList = function() {
4076
- return /** @type{!Array<!proto.GetDeliveryOrderItemDetailPreload>} */ (
4077
- jspb.Message.getRepeatedWrapperField(this, proto.GetDeliveryOrderItemDetailPreload, 2));
4078
- };
4079
-
4080
-
4081
- /**
4082
- * @param {!Array<!proto.GetDeliveryOrderItemDetailPreload>} value
4083
- * @return {!proto.GetDeliveryOrderItemPreload} returns this
4084
- */
4085
- proto.GetDeliveryOrderItemPreload.prototype.setTransactionBuilderItemDetailsList = function(value) {
4086
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
4087
- };
4088
-
4089
-
4090
- /**
4091
- * @param {!proto.GetDeliveryOrderItemDetailPreload=} opt_value
4092
- * @param {number=} opt_index
4093
- * @return {!proto.GetDeliveryOrderItemDetailPreload}
4094
- */
4095
- proto.GetDeliveryOrderItemPreload.prototype.addTransactionBuilderItemDetails = function(opt_value, opt_index) {
4096
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetDeliveryOrderItemDetailPreload, opt_index);
4097
- };
4098
-
4099
-
4100
- /**
4101
- * Clears the list making it empty but non-null.
4102
- * @return {!proto.GetDeliveryOrderItemPreload} returns this
4103
- */
4104
- proto.GetDeliveryOrderItemPreload.prototype.clearTransactionBuilderItemDetailsList = function() {
4105
- return this.setTransactionBuilderItemDetailsList([]);
4106
- };
4107
-
4108
-
4109
-
4110
- /**
4111
- * List of repeated fields within this message type.
4112
- * @private {!Array<number>}
4113
- * @const
4114
- */
4115
- proto.GetDeliveryOrderItemDetailPreload.repeatedFields_ = [1];
4116
-
4117
-
4118
-
4119
- if (jspb.Message.GENERATE_TO_OBJECT) {
4120
- /**
4121
- * Creates an object representation of this proto.
4122
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4123
- * Optional fields that are not set will be set to undefined.
4124
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4125
- * For the list of reserved names please see:
4126
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4127
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4128
- * JSPB instance for transitional soy proto support:
4129
- * http://goto/soy-param-migration
4130
- * @return {!Object}
4131
- */
4132
- proto.GetDeliveryOrderItemDetailPreload.prototype.toObject = function(opt_includeInstance) {
4133
- return proto.GetDeliveryOrderItemDetailPreload.toObject(opt_includeInstance, this);
4134
- };
4135
-
4136
-
4137
- /**
4138
- * Static version of the {@see toObject} method.
4139
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4140
- * the JSPB instance for transitional soy proto support:
4141
- * http://goto/soy-param-migration
4142
- * @param {!proto.GetDeliveryOrderItemDetailPreload} msg The msg instance to transform.
4143
- * @return {!Object}
4144
- * @suppress {unusedLocalVariables} f is only used for nested messages
4145
- */
4146
- proto.GetDeliveryOrderItemDetailPreload.toObject = function(includeInstance, msg) {
4147
- var f, obj = {
4148
- transactionBuilderItemDetailList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailList(),
4149
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
4150
- };
4151
-
4152
- if (includeInstance) {
4153
- obj.$jspbMessageInstance = msg;
4154
- }
4155
- return obj;
4156
- };
4157
- }
4158
-
4159
-
4160
- /**
4161
- * Deserializes binary data (in protobuf wire format).
4162
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4163
- * @return {!proto.GetDeliveryOrderItemDetailPreload}
4164
- */
4165
- proto.GetDeliveryOrderItemDetailPreload.deserializeBinary = function(bytes) {
4166
- var reader = new jspb.BinaryReader(bytes);
4167
- var msg = new proto.GetDeliveryOrderItemDetailPreload;
4168
- return proto.GetDeliveryOrderItemDetailPreload.deserializeBinaryFromReader(msg, reader);
4169
- };
4170
-
4171
-
4172
- /**
4173
- * Deserializes binary data (in protobuf wire format) from the
4174
- * given reader into the given message object.
4175
- * @param {!proto.GetDeliveryOrderItemDetailPreload} msg The message object to deserialize into.
4176
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4177
- * @return {!proto.GetDeliveryOrderItemDetailPreload}
4178
- */
4179
- proto.GetDeliveryOrderItemDetailPreload.deserializeBinaryFromReader = function(msg, reader) {
4180
- while (reader.nextField()) {
4181
- if (reader.isEndGroup()) {
4182
- break;
4183
- }
4184
- var field = reader.getFieldNumber();
4185
- switch (field) {
4186
- case 1:
4187
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
4188
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
4189
- msg.addTransactionBuilderItemDetail(value);
4190
- break;
4191
- default:
4192
- reader.skipField();
4193
- break;
4194
- }
4195
- }
4196
- return msg;
4197
- };
4198
-
4199
-
4200
- /**
4201
- * Serializes the message to binary data (in protobuf wire format).
4202
- * @return {!Uint8Array}
4203
- */
4204
- proto.GetDeliveryOrderItemDetailPreload.prototype.serializeBinary = function() {
4205
- var writer = new jspb.BinaryWriter();
4206
- proto.GetDeliveryOrderItemDetailPreload.serializeBinaryToWriter(this, writer);
4207
- return writer.getResultBuffer();
4208
- };
4209
-
4210
-
4211
- /**
4212
- * Serializes the given message to binary data (in protobuf wire
4213
- * format), writing to the given BinaryWriter.
4214
- * @param {!proto.GetDeliveryOrderItemDetailPreload} message
4215
- * @param {!jspb.BinaryWriter} writer
4216
- * @suppress {unusedLocalVariables} f is only used for nested messages
4217
- */
4218
- proto.GetDeliveryOrderItemDetailPreload.serializeBinaryToWriter = function(message, writer) {
4219
- var f = undefined;
4220
- f = message.getTransactionBuilderItemDetailList();
4221
- if (f.length > 0) {
4222
- writer.writeRepeatedMessage(
4223
- 1,
4224
- f,
4225
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
4226
- );
4227
- }
4228
- };
4229
-
4230
-
4231
- /**
4232
- * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
4233
- * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
4234
- */
4235
- proto.GetDeliveryOrderItemDetailPreload.prototype.getTransactionBuilderItemDetailList = function() {
4236
- return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
4237
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
4238
- };
4239
-
4240
-
4241
- /**
4242
- * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
4243
- * @return {!proto.GetDeliveryOrderItemDetailPreload} returns this
4244
- */
4245
- proto.GetDeliveryOrderItemDetailPreload.prototype.setTransactionBuilderItemDetailList = function(value) {
4246
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4247
- };
4248
-
4249
-
4250
- /**
4251
- * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
4252
- * @param {number=} opt_index
4253
- * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
4254
- */
4255
- proto.GetDeliveryOrderItemDetailPreload.prototype.addTransactionBuilderItemDetail = function(opt_value, opt_index) {
4256
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
4257
- };
4258
-
4259
-
4260
- /**
4261
- * Clears the list making it empty but non-null.
4262
- * @return {!proto.GetDeliveryOrderItemDetailPreload} returns this
4263
- */
4264
- proto.GetDeliveryOrderItemDetailPreload.prototype.clearTransactionBuilderItemDetailList = function() {
4265
- return this.setTransactionBuilderItemDetailList([]);
4266
- };
4267
-
4268
-
4269
-
4270
- /**
4271
- * List of repeated fields within this message type.
4272
- * @private {!Array<number>}
4273
- * @const
4274
- */
4275
- proto.GetListDeliveryOrderResponse.repeatedFields_ = [1];
4276
-
4277
-
4278
-
4279
- if (jspb.Message.GENERATE_TO_OBJECT) {
4280
- /**
4281
- * Creates an object representation of this proto.
4282
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4283
- * Optional fields that are not set will be set to undefined.
4284
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4285
- * For the list of reserved names please see:
4286
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4287
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4288
- * JSPB instance for transitional soy proto support:
4289
- * http://goto/soy-param-migration
4290
- * @return {!Object}
4291
- */
4292
- proto.GetListDeliveryOrderResponse.prototype.toObject = function(opt_includeInstance) {
4293
- return proto.GetListDeliveryOrderResponse.toObject(opt_includeInstance, this);
4294
- };
4295
-
4296
-
4297
- /**
4298
- * Static version of the {@see toObject} method.
4299
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4300
- * the JSPB instance for transitional soy proto support:
4301
- * http://goto/soy-param-migration
4302
- * @param {!proto.GetListDeliveryOrderResponse} msg The msg instance to transform.
4303
- * @return {!Object}
4304
- * @suppress {unusedLocalVariables} f is only used for nested messages
4305
- */
4306
- proto.GetListDeliveryOrderResponse.toObject = function(includeInstance, msg) {
4307
- var f, obj = {
4308
- deliveryOrdersList: jspb.Message.toObjectList(msg.getDeliveryOrdersList(),
4309
- proto.DeliveryOrder.toObject, includeInstance),
4310
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4311
- };
4312
-
4313
- if (includeInstance) {
4314
- obj.$jspbMessageInstance = msg;
4315
- }
4316
- return obj;
4317
- };
4318
- }
4319
-
4320
-
4321
- /**
4322
- * Deserializes binary data (in protobuf wire format).
4323
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4324
- * @return {!proto.GetListDeliveryOrderResponse}
4325
- */
4326
- proto.GetListDeliveryOrderResponse.deserializeBinary = function(bytes) {
4327
- var reader = new jspb.BinaryReader(bytes);
4328
- var msg = new proto.GetListDeliveryOrderResponse;
4329
- return proto.GetListDeliveryOrderResponse.deserializeBinaryFromReader(msg, reader);
4330
- };
4331
-
4332
-
4333
- /**
4334
- * Deserializes binary data (in protobuf wire format) from the
4335
- * given reader into the given message object.
4336
- * @param {!proto.GetListDeliveryOrderResponse} msg The message object to deserialize into.
4337
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4338
- * @return {!proto.GetListDeliveryOrderResponse}
4339
- */
4340
- proto.GetListDeliveryOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
4341
- while (reader.nextField()) {
4342
- if (reader.isEndGroup()) {
4343
- break;
4344
- }
4345
- var field = reader.getFieldNumber();
4346
- switch (field) {
4347
- case 1:
4348
- var value = new proto.DeliveryOrder;
4349
- reader.readMessage(value,proto.DeliveryOrder.deserializeBinaryFromReader);
4350
- msg.addDeliveryOrders(value);
4351
- break;
4352
- case 2:
4353
- var value = new prisca_v1_global_meta_meta_pb.Meta;
4354
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4355
- msg.setMeta(value);
4356
- break;
4357
- default:
4358
- reader.skipField();
4359
- break;
4360
- }
4361
- }
4362
- return msg;
4363
- };
4364
-
4365
-
4366
- /**
4367
- * Serializes the message to binary data (in protobuf wire format).
4368
- * @return {!Uint8Array}
4369
- */
4370
- proto.GetListDeliveryOrderResponse.prototype.serializeBinary = function() {
4371
- var writer = new jspb.BinaryWriter();
4372
- proto.GetListDeliveryOrderResponse.serializeBinaryToWriter(this, writer);
4373
- return writer.getResultBuffer();
4374
- };
4375
-
4376
-
4377
- /**
4378
- * Serializes the given message to binary data (in protobuf wire
4379
- * format), writing to the given BinaryWriter.
4380
- * @param {!proto.GetListDeliveryOrderResponse} message
4381
- * @param {!jspb.BinaryWriter} writer
4382
- * @suppress {unusedLocalVariables} f is only used for nested messages
4383
- */
4384
- proto.GetListDeliveryOrderResponse.serializeBinaryToWriter = function(message, writer) {
4385
- var f = undefined;
4386
- f = message.getDeliveryOrdersList();
4387
- if (f.length > 0) {
4388
- writer.writeRepeatedMessage(
4389
- 1,
4390
- f,
4391
- proto.DeliveryOrder.serializeBinaryToWriter
4392
- );
4393
- }
4394
- f = message.getMeta();
4395
- if (f != null) {
4396
- writer.writeMessage(
4397
- 2,
4398
- f,
4399
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4400
- );
4401
- }
4402
- };
4403
-
4404
-
4405
- /**
4406
- * repeated DeliveryOrder delivery_orders = 1;
4407
- * @return {!Array<!proto.DeliveryOrder>}
4408
- */
4409
- proto.GetListDeliveryOrderResponse.prototype.getDeliveryOrdersList = function() {
4410
- return /** @type{!Array<!proto.DeliveryOrder>} */ (
4411
- jspb.Message.getRepeatedWrapperField(this, proto.DeliveryOrder, 1));
4412
- };
4413
-
4414
-
4415
- /**
4416
- * @param {!Array<!proto.DeliveryOrder>} value
4417
- * @return {!proto.GetListDeliveryOrderResponse} returns this
4418
- */
4419
- proto.GetListDeliveryOrderResponse.prototype.setDeliveryOrdersList = function(value) {
4420
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4421
- };
4422
-
4423
-
4424
- /**
4425
- * @param {!proto.DeliveryOrder=} opt_value
4426
- * @param {number=} opt_index
4427
- * @return {!proto.DeliveryOrder}
4428
- */
4429
- proto.GetListDeliveryOrderResponse.prototype.addDeliveryOrders = function(opt_value, opt_index) {
4430
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.DeliveryOrder, opt_index);
4431
- };
4432
-
4433
-
4434
- /**
4435
- * Clears the list making it empty but non-null.
4436
- * @return {!proto.GetListDeliveryOrderResponse} returns this
4437
- */
4438
- proto.GetListDeliveryOrderResponse.prototype.clearDeliveryOrdersList = function() {
4439
- return this.setDeliveryOrdersList([]);
4440
- };
4441
-
4442
-
4443
- /**
4444
- * optional prisca.v1.global.meta.Meta meta = 2;
4445
- * @return {?proto.prisca.v1.global.meta.Meta}
4446
- */
4447
- proto.GetListDeliveryOrderResponse.prototype.getMeta = function() {
4448
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4449
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4450
- };
4451
-
4452
-
4453
- /**
4454
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4455
- * @return {!proto.GetListDeliveryOrderResponse} returns this
4456
- */
4457
- proto.GetListDeliveryOrderResponse.prototype.setMeta = function(value) {
4458
- return jspb.Message.setWrapperField(this, 2, value);
4459
- };
4460
-
4461
-
4462
- /**
4463
- * Clears the message field making it undefined.
4464
- * @return {!proto.GetListDeliveryOrderResponse} returns this
4465
- */
4466
- proto.GetListDeliveryOrderResponse.prototype.clearMeta = function() {
4467
- return this.setMeta(undefined);
4468
- };
4469
-
4470
-
4471
- /**
4472
- * Returns whether this field is set.
4473
- * @return {boolean}
4474
- */
4475
- proto.GetListDeliveryOrderResponse.prototype.hasMeta = function() {
4476
- return jspb.Message.getField(this, 2) != null;
4477
- };
4478
-
4479
-
4480
-
4481
-
4482
-
4483
- if (jspb.Message.GENERATE_TO_OBJECT) {
4484
- /**
4485
- * Creates an object representation of this proto.
4486
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4487
- * Optional fields that are not set will be set to undefined.
4488
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4489
- * For the list of reserved names please see:
4490
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4491
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4492
- * JSPB instance for transitional soy proto support:
4493
- * http://goto/soy-param-migration
4494
- * @return {!Object}
4495
- */
4496
- proto.DeleteDeliveryOrderResponse.prototype.toObject = function(opt_includeInstance) {
4497
- return proto.DeleteDeliveryOrderResponse.toObject(opt_includeInstance, this);
4498
- };
4499
-
4500
-
4501
- /**
4502
- * Static version of the {@see toObject} method.
4503
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4504
- * the JSPB instance for transitional soy proto support:
4505
- * http://goto/soy-param-migration
4506
- * @param {!proto.DeleteDeliveryOrderResponse} msg The msg instance to transform.
4507
- * @return {!Object}
4508
- * @suppress {unusedLocalVariables} f is only used for nested messages
4509
- */
4510
- proto.DeleteDeliveryOrderResponse.toObject = function(includeInstance, msg) {
4511
- var f, obj = {
4512
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4513
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4514
- };
4515
-
4516
- if (includeInstance) {
4517
- obj.$jspbMessageInstance = msg;
4518
- }
4519
- return obj;
4520
- };
4521
- }
4522
-
4523
-
4524
- /**
4525
- * Deserializes binary data (in protobuf wire format).
4526
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4527
- * @return {!proto.DeleteDeliveryOrderResponse}
4528
- */
4529
- proto.DeleteDeliveryOrderResponse.deserializeBinary = function(bytes) {
4530
- var reader = new jspb.BinaryReader(bytes);
4531
- var msg = new proto.DeleteDeliveryOrderResponse;
4532
- return proto.DeleteDeliveryOrderResponse.deserializeBinaryFromReader(msg, reader);
4533
- };
4534
-
4535
-
4536
- /**
4537
- * Deserializes binary data (in protobuf wire format) from the
4538
- * given reader into the given message object.
4539
- * @param {!proto.DeleteDeliveryOrderResponse} msg The message object to deserialize into.
4540
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4541
- * @return {!proto.DeleteDeliveryOrderResponse}
4542
- */
4543
- proto.DeleteDeliveryOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
4544
- while (reader.nextField()) {
4545
- if (reader.isEndGroup()) {
4546
- break;
4547
- }
4548
- var field = reader.getFieldNumber();
4549
- switch (field) {
4550
- case 1:
4551
- var value = /** @type {string} */ (reader.readString());
4552
- msg.setReferencesId(value);
4553
- break;
4554
- case 2:
4555
- var value = new prisca_v1_global_meta_meta_pb.Meta;
4556
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4557
- msg.setMeta(value);
4558
- break;
4559
- default:
4560
- reader.skipField();
4561
- break;
4562
- }
4563
- }
4564
- return msg;
4565
- };
4566
-
4567
-
4568
- /**
4569
- * Serializes the message to binary data (in protobuf wire format).
4570
- * @return {!Uint8Array}
4571
- */
4572
- proto.DeleteDeliveryOrderResponse.prototype.serializeBinary = function() {
4573
- var writer = new jspb.BinaryWriter();
4574
- proto.DeleteDeliveryOrderResponse.serializeBinaryToWriter(this, writer);
4575
- return writer.getResultBuffer();
4576
- };
4577
-
4578
-
4579
- /**
4580
- * Serializes the given message to binary data (in protobuf wire
4581
- * format), writing to the given BinaryWriter.
4582
- * @param {!proto.DeleteDeliveryOrderResponse} message
4583
- * @param {!jspb.BinaryWriter} writer
4584
- * @suppress {unusedLocalVariables} f is only used for nested messages
4585
- */
4586
- proto.DeleteDeliveryOrderResponse.serializeBinaryToWriter = function(message, writer) {
4587
- var f = undefined;
4588
- f = message.getReferencesId();
4589
- if (f.length > 0) {
4590
- writer.writeString(
4591
- 1,
4592
- f
4593
- );
4594
- }
4595
- f = message.getMeta();
4596
- if (f != null) {
4597
- writer.writeMessage(
4598
- 2,
4599
- f,
4600
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4601
- );
4602
- }
4603
- };
4604
-
4605
-
4606
- /**
4607
- * optional string references_id = 1;
4608
- * @return {string}
4609
- */
4610
- proto.DeleteDeliveryOrderResponse.prototype.getReferencesId = function() {
4611
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4612
- };
4613
-
4614
-
4615
- /**
4616
- * @param {string} value
4617
- * @return {!proto.DeleteDeliveryOrderResponse} returns this
4618
- */
4619
- proto.DeleteDeliveryOrderResponse.prototype.setReferencesId = function(value) {
4620
- return jspb.Message.setProto3StringField(this, 1, value);
4621
- };
4622
-
4623
-
4624
- /**
4625
- * optional prisca.v1.global.meta.Meta meta = 2;
4626
- * @return {?proto.prisca.v1.global.meta.Meta}
4627
- */
4628
- proto.DeleteDeliveryOrderResponse.prototype.getMeta = function() {
4629
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4630
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4631
- };
4632
-
4633
-
4634
- /**
4635
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4636
- * @return {!proto.DeleteDeliveryOrderResponse} returns this
4637
- */
4638
- proto.DeleteDeliveryOrderResponse.prototype.setMeta = function(value) {
4639
- return jspb.Message.setWrapperField(this, 2, value);
4640
- };
4641
-
4642
-
4643
- /**
4644
- * Clears the message field making it undefined.
4645
- * @return {!proto.DeleteDeliveryOrderResponse} returns this
4646
- */
4647
- proto.DeleteDeliveryOrderResponse.prototype.clearMeta = function() {
4648
- return this.setMeta(undefined);
4649
- };
4650
-
4651
-
4652
- /**
4653
- * Returns whether this field is set.
4654
- * @return {boolean}
4655
- */
4656
- proto.DeleteDeliveryOrderResponse.prototype.hasMeta = function() {
4657
- return jspb.Message.getField(this, 2) != null;
4658
- };
4659
-
4660
-
4661
- goog.object.extend(exports, proto);