@aldiokta/protocgen 1.1.43 → 1.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +251 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +328 -0
  7. package/prisca/v1/core/auth/auth.proto +185 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +41 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +188 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +94 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +295 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +77 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/messaging/notification.proto +144 -0
  29. package/prisca/v1/core/number_range/number_range.proto +89 -0
  30. package/prisca/v1/core/organization/organization.proto +94 -0
  31. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  32. package/prisca/v1/core/price_condition/price_condition.proto +97 -0
  33. package/prisca/v1/core/procurement/procurement.proto +54 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  35. package/prisca/v1/core/report/report.proto +90 -0
  36. package/prisca/v1/core/report/user_report.proto +74 -0
  37. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  38. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  39. package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
  41. package/prisca/v1/core/users/users.proto +55 -0
  42. package/prisca/v1/core/work_location/work_location.proto +122 -0
  43. package/prisca/v1/core/workflow/workflow.proto +220 -0
  44. package/prisca/v1/core/workspace/workspace.proto +48 -0
  45. package/prisca/v1/delivery_order/delivery_order.proto +116 -0
  46. package/prisca/v1/document_type/document_type.proto +89 -0
  47. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  48. package/prisca/v1/global/meta/meta.proto +57 -0
  49. package/prisca/v1/good_receipt/good_receipt.proto +118 -0
  50. package/prisca/v1/invoice/invoice.proto +170 -0
  51. package/prisca/v1/purchase_order/purchase_order.proto +292 -0
  52. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
  53. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  54. package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
  55. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  56. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  57. package/prisca/v1/quotation/quotation.proto +135 -0
  58. package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
  59. package/prisca/v1/valuation/valuation.proto +223 -0
  60. package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
  61. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  62. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
  63. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  64. package/prisca/v1/account_group/account_group_pb.js +0 -2983
  65. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
  66. package/prisca/v1/bidding/bidding_pb.js +0 -8694
  67. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  68. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
  69. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
  70. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10625
  71. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
  72. package/prisca/v1/core/auth/auth_pb.js +0 -5833
  73. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  74. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
  75. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  76. package/prisca/v1/core/company/company_pb.js +0 -3094
  77. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  78. package/prisca/v1/core/currency/currency_pb.js +0 -2516
  79. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  80. package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
  81. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  82. package/prisca/v1/core/employee/employee_pb.js +0 -4329
  83. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  84. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
  85. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  86. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
  87. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  88. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
  89. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  90. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
  91. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  92. package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
  93. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  94. package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
  95. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
  96. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
  97. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
  98. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
  99. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  100. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
  101. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  102. package/prisca/v1/core/location/location_pb.js +0 -11262
  103. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  104. package/prisca/v1/core/material/material_pb.js +0 -4226
  105. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  106. package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
  107. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  108. package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
  109. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  110. package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
  111. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  112. package/prisca/v1/core/messaging/messaging_pb.js +0 -890
  113. package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
  114. package/prisca/v1/core/messaging/notification_pb.js +0 -4775
  115. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  116. package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
  117. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  118. package/prisca/v1/core/organization/organization_pb.js +0 -3078
  119. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  120. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
  121. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  122. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
  123. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  124. package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
  125. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  126. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
  127. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  128. package/prisca/v1/core/report/report_pb.js +0 -2816
  129. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  130. package/prisca/v1/core/report/user_report_pb.js +0 -2446
  131. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  132. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
  133. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  134. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
  135. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
  136. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
  137. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  138. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
  139. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  140. package/prisca/v1/core/users/users_pb.js +0 -1647
  141. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  142. package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
  143. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  144. package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
  145. package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
  146. package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
  147. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  148. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
  149. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
  150. package/prisca/v1/document_type/document_type_pb.js +0 -3004
  151. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  152. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
  153. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  154. package/prisca/v1/global/meta/meta_pb.js +0 -1173
  155. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
  156. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
  157. package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
  158. package/prisca/v1/invoice/invoice_pb.js +0 -5664
  159. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
  160. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
  162. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
  163. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  164. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
  165. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  166. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
  167. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  168. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
  169. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  170. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
  171. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
  172. package/prisca/v1/quotation/quotation_pb.js +0 -4167
  173. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
  174. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
  175. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
  176. package/prisca/v1/valuation/valuation_pb.js +0 -7806
  177. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -279
  178. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
@@ -1,3647 +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 = globalThis;
17
-
18
- var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
19
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
- var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
21
- goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
22
- var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
23
- goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
24
- var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
25
- goog.object.extend(proto, prisca_v1_core_item_transaction_item_transaction_pb);
26
- var prisca_v1_vendor_domain_vendor_domain_pb = require('../../../prisca/v1/vendor_domain/vendor_domain_pb.js');
27
- goog.object.extend(proto, prisca_v1_vendor_domain_vendor_domain_pb);
28
- var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
29
- goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
30
- var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
31
- goog.object.extend(proto, prisca_v1_core_company_company_pb);
32
- var prisca_v1_purchase_order_purchase_order_pb = require('../../../prisca/v1/purchase_order/purchase_order_pb.js');
33
- goog.object.extend(proto, prisca_v1_purchase_order_purchase_order_pb);
34
- goog.exportSymbol('proto.BaseDeliveryOrderRequest', null, global);
35
- goog.exportSymbol('proto.CreateDeliveryOrderRequest', null, global);
36
- goog.exportSymbol('proto.CreateDeliveryOrderResponse', null, global);
37
- goog.exportSymbol('proto.DeleteDeliveryOrderRequest', null, global);
38
- goog.exportSymbol('proto.DeleteDeliveryOrderResponse', null, global);
39
- goog.exportSymbol('proto.GetDeliveryOrderByIdRequest', null, global);
40
- goog.exportSymbol('proto.GetDeliveryOrderByIdResponse', null, global);
41
- goog.exportSymbol('proto.GetDeliveryOrderDetailResponse', null, global);
42
- goog.exportSymbol('proto.GetDeliveryOrderItemDetailPreload', null, global);
43
- goog.exportSymbol('proto.GetDeliveryOrderItemPreload', null, global);
44
- goog.exportSymbol('proto.GetListDeliveryOrderRequest', null, global);
45
- goog.exportSymbol('proto.GetListDeliveryOrderResponse', null, global);
46
- goog.exportSymbol('proto.UpdateDeliveryOrderRequest', null, global);
47
- goog.exportSymbol('proto.UpdateDeliveryOrderResponse', null, global);
48
- goog.exportSymbol('proto.UpdateDeliveryOrderStatusRequest', null, global);
49
- /**
50
- * Generated by JsPbCodeGenerator.
51
- * @param {Array=} opt_data Optional initial data array, typically from a
52
- * server response, or constructed directly in Javascript. The array is used
53
- * in place and becomes part of the constructed object. It is not cloned.
54
- * If no data is provided, the constructed object will be empty, but still
55
- * valid.
56
- * @extends {jspb.Message}
57
- * @constructor
58
- */
59
- proto.BaseDeliveryOrderRequest = function(opt_data) {
60
- jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseDeliveryOrderRequest.repeatedFields_, null);
61
- };
62
- goog.inherits(proto.BaseDeliveryOrderRequest, jspb.Message);
63
- if (goog.DEBUG && !COMPILED) {
64
- /**
65
- * @public
66
- * @override
67
- */
68
- proto.BaseDeliveryOrderRequest.displayName = 'proto.BaseDeliveryOrderRequest';
69
- }
70
- /**
71
- * Generated by JsPbCodeGenerator.
72
- * @param {Array=} opt_data Optional initial data array, typically from a
73
- * server response, or constructed directly in Javascript. The array is used
74
- * in place and becomes part of the constructed object. It is not cloned.
75
- * If no data is provided, the constructed object will be empty, but still
76
- * valid.
77
- * @extends {jspb.Message}
78
- * @constructor
79
- */
80
- proto.CreateDeliveryOrderRequest = function(opt_data) {
81
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
82
- };
83
- goog.inherits(proto.CreateDeliveryOrderRequest, jspb.Message);
84
- if (goog.DEBUG && !COMPILED) {
85
- /**
86
- * @public
87
- * @override
88
- */
89
- proto.CreateDeliveryOrderRequest.displayName = 'proto.CreateDeliveryOrderRequest';
90
- }
91
- /**
92
- * Generated by JsPbCodeGenerator.
93
- * @param {Array=} opt_data Optional initial data array, typically from a
94
- * server response, or constructed directly in Javascript. The array is used
95
- * in place and becomes part of the constructed object. It is not cloned.
96
- * If no data is provided, the constructed object will be empty, but still
97
- * valid.
98
- * @extends {jspb.Message}
99
- * @constructor
100
- */
101
- proto.UpdateDeliveryOrderStatusRequest = function(opt_data) {
102
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
103
- };
104
- goog.inherits(proto.UpdateDeliveryOrderStatusRequest, jspb.Message);
105
- if (goog.DEBUG && !COMPILED) {
106
- /**
107
- * @public
108
- * @override
109
- */
110
- proto.UpdateDeliveryOrderStatusRequest.displayName = 'proto.UpdateDeliveryOrderStatusRequest';
111
- }
112
- /**
113
- * Generated by JsPbCodeGenerator.
114
- * @param {Array=} opt_data Optional initial data array, typically from a
115
- * server response, or constructed directly in Javascript. The array is used
116
- * in place and becomes part of the constructed object. It is not cloned.
117
- * If no data is provided, the constructed object will be empty, but still
118
- * valid.
119
- * @extends {jspb.Message}
120
- * @constructor
121
- */
122
- proto.UpdateDeliveryOrderRequest = function(opt_data) {
123
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
124
- };
125
- goog.inherits(proto.UpdateDeliveryOrderRequest, jspb.Message);
126
- if (goog.DEBUG && !COMPILED) {
127
- /**
128
- * @public
129
- * @override
130
- */
131
- proto.UpdateDeliveryOrderRequest.displayName = 'proto.UpdateDeliveryOrderRequest';
132
- }
133
- /**
134
- * Generated by JsPbCodeGenerator.
135
- * @param {Array=} opt_data Optional initial data array, typically from a
136
- * server response, or constructed directly in Javascript. The array is used
137
- * in place and becomes part of the constructed object. It is not cloned.
138
- * If no data is provided, the constructed object will be empty, but still
139
- * valid.
140
- * @extends {jspb.Message}
141
- * @constructor
142
- */
143
- proto.GetDeliveryOrderByIdRequest = function(opt_data) {
144
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
145
- };
146
- goog.inherits(proto.GetDeliveryOrderByIdRequest, jspb.Message);
147
- if (goog.DEBUG && !COMPILED) {
148
- /**
149
- * @public
150
- * @override
151
- */
152
- proto.GetDeliveryOrderByIdRequest.displayName = 'proto.GetDeliveryOrderByIdRequest';
153
- }
154
- /**
155
- * Generated by JsPbCodeGenerator.
156
- * @param {Array=} opt_data Optional initial data array, typically from a
157
- * server response, or constructed directly in Javascript. The array is used
158
- * in place and becomes part of the constructed object. It is not cloned.
159
- * If no data is provided, the constructed object will be empty, but still
160
- * valid.
161
- * @extends {jspb.Message}
162
- * @constructor
163
- */
164
- proto.GetListDeliveryOrderRequest = function(opt_data) {
165
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
166
- };
167
- goog.inherits(proto.GetListDeliveryOrderRequest, jspb.Message);
168
- if (goog.DEBUG && !COMPILED) {
169
- /**
170
- * @public
171
- * @override
172
- */
173
- proto.GetListDeliveryOrderRequest.displayName = 'proto.GetListDeliveryOrderRequest';
174
- }
175
- /**
176
- * Generated by JsPbCodeGenerator.
177
- * @param {Array=} opt_data Optional initial data array, typically from a
178
- * server response, or constructed directly in Javascript. The array is used
179
- * in place and becomes part of the constructed object. It is not cloned.
180
- * If no data is provided, the constructed object will be empty, but still
181
- * valid.
182
- * @extends {jspb.Message}
183
- * @constructor
184
- */
185
- proto.DeleteDeliveryOrderRequest = function(opt_data) {
186
- jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteDeliveryOrderRequest.repeatedFields_, null);
187
- };
188
- goog.inherits(proto.DeleteDeliveryOrderRequest, jspb.Message);
189
- if (goog.DEBUG && !COMPILED) {
190
- /**
191
- * @public
192
- * @override
193
- */
194
- proto.DeleteDeliveryOrderRequest.displayName = 'proto.DeleteDeliveryOrderRequest';
195
- }
196
- /**
197
- * Generated by JsPbCodeGenerator.
198
- * @param {Array=} opt_data Optional initial data array, typically from a
199
- * server response, or constructed directly in Javascript. The array is used
200
- * in place and becomes part of the constructed object. It is not cloned.
201
- * If no data is provided, the constructed object will be empty, but still
202
- * valid.
203
- * @extends {jspb.Message}
204
- * @constructor
205
- */
206
- proto.CreateDeliveryOrderResponse = function(opt_data) {
207
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
208
- };
209
- goog.inherits(proto.CreateDeliveryOrderResponse, jspb.Message);
210
- if (goog.DEBUG && !COMPILED) {
211
- /**
212
- * @public
213
- * @override
214
- */
215
- proto.CreateDeliveryOrderResponse.displayName = 'proto.CreateDeliveryOrderResponse';
216
- }
217
- /**
218
- * Generated by JsPbCodeGenerator.
219
- * @param {Array=} opt_data Optional initial data array, typically from a
220
- * server response, or constructed directly in Javascript. The array is used
221
- * in place and becomes part of the constructed object. It is not cloned.
222
- * If no data is provided, the constructed object will be empty, but still
223
- * valid.
224
- * @extends {jspb.Message}
225
- * @constructor
226
- */
227
- proto.UpdateDeliveryOrderResponse = function(opt_data) {
228
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
229
- };
230
- goog.inherits(proto.UpdateDeliveryOrderResponse, jspb.Message);
231
- if (goog.DEBUG && !COMPILED) {
232
- /**
233
- * @public
234
- * @override
235
- */
236
- proto.UpdateDeliveryOrderResponse.displayName = 'proto.UpdateDeliveryOrderResponse';
237
- }
238
- /**
239
- * Generated by JsPbCodeGenerator.
240
- * @param {Array=} opt_data Optional initial data array, typically from a
241
- * server response, or constructed directly in Javascript. The array is used
242
- * in place and becomes part of the constructed object. It is not cloned.
243
- * If no data is provided, the constructed object will be empty, but still
244
- * valid.
245
- * @extends {jspb.Message}
246
- * @constructor
247
- */
248
- proto.GetDeliveryOrderByIdResponse = function(opt_data) {
249
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
250
- };
251
- goog.inherits(proto.GetDeliveryOrderByIdResponse, jspb.Message);
252
- if (goog.DEBUG && !COMPILED) {
253
- /**
254
- * @public
255
- * @override
256
- */
257
- proto.GetDeliveryOrderByIdResponse.displayName = 'proto.GetDeliveryOrderByIdResponse';
258
- }
259
- /**
260
- * Generated by JsPbCodeGenerator.
261
- * @param {Array=} opt_data Optional initial data array, typically from a
262
- * server response, or constructed directly in Javascript. The array is used
263
- * in place and becomes part of the constructed object. It is not cloned.
264
- * If no data is provided, the constructed object will be empty, but still
265
- * valid.
266
- * @extends {jspb.Message}
267
- * @constructor
268
- */
269
- proto.GetDeliveryOrderDetailResponse = function(opt_data) {
270
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetDeliveryOrderDetailResponse.repeatedFields_, null);
271
- };
272
- goog.inherits(proto.GetDeliveryOrderDetailResponse, jspb.Message);
273
- if (goog.DEBUG && !COMPILED) {
274
- /**
275
- * @public
276
- * @override
277
- */
278
- proto.GetDeliveryOrderDetailResponse.displayName = 'proto.GetDeliveryOrderDetailResponse';
279
- }
280
- /**
281
- * Generated by JsPbCodeGenerator.
282
- * @param {Array=} opt_data Optional initial data array, typically from a
283
- * server response, or constructed directly in Javascript. The array is used
284
- * in place and becomes part of the constructed object. It is not cloned.
285
- * If no data is provided, the constructed object will be empty, but still
286
- * valid.
287
- * @extends {jspb.Message}
288
- * @constructor
289
- */
290
- proto.GetDeliveryOrderItemPreload = function(opt_data) {
291
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetDeliveryOrderItemPreload.repeatedFields_, null);
292
- };
293
- goog.inherits(proto.GetDeliveryOrderItemPreload, jspb.Message);
294
- if (goog.DEBUG && !COMPILED) {
295
- /**
296
- * @public
297
- * @override
298
- */
299
- proto.GetDeliveryOrderItemPreload.displayName = 'proto.GetDeliveryOrderItemPreload';
300
- }
301
- /**
302
- * Generated by JsPbCodeGenerator.
303
- * @param {Array=} opt_data Optional initial data array, typically from a
304
- * server response, or constructed directly in Javascript. The array is used
305
- * in place and becomes part of the constructed object. It is not cloned.
306
- * If no data is provided, the constructed object will be empty, but still
307
- * valid.
308
- * @extends {jspb.Message}
309
- * @constructor
310
- */
311
- proto.GetDeliveryOrderItemDetailPreload = function(opt_data) {
312
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetDeliveryOrderItemDetailPreload.repeatedFields_, null);
313
- };
314
- goog.inherits(proto.GetDeliveryOrderItemDetailPreload, jspb.Message);
315
- if (goog.DEBUG && !COMPILED) {
316
- /**
317
- * @public
318
- * @override
319
- */
320
- proto.GetDeliveryOrderItemDetailPreload.displayName = 'proto.GetDeliveryOrderItemDetailPreload';
321
- }
322
- /**
323
- * Generated by JsPbCodeGenerator.
324
- * @param {Array=} opt_data Optional initial data array, typically from a
325
- * server response, or constructed directly in Javascript. The array is used
326
- * in place and becomes part of the constructed object. It is not cloned.
327
- * If no data is provided, the constructed object will be empty, but still
328
- * valid.
329
- * @extends {jspb.Message}
330
- * @constructor
331
- */
332
- proto.GetListDeliveryOrderResponse = function(opt_data) {
333
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListDeliveryOrderResponse.repeatedFields_, null);
334
- };
335
- goog.inherits(proto.GetListDeliveryOrderResponse, jspb.Message);
336
- if (goog.DEBUG && !COMPILED) {
337
- /**
338
- * @public
339
- * @override
340
- */
341
- proto.GetListDeliveryOrderResponse.displayName = 'proto.GetListDeliveryOrderResponse';
342
- }
343
- /**
344
- * Generated by JsPbCodeGenerator.
345
- * @param {Array=} opt_data Optional initial data array, typically from a
346
- * server response, or constructed directly in Javascript. The array is used
347
- * in place and becomes part of the constructed object. It is not cloned.
348
- * If no data is provided, the constructed object will be empty, but still
349
- * valid.
350
- * @extends {jspb.Message}
351
- * @constructor
352
- */
353
- proto.DeleteDeliveryOrderResponse = function(opt_data) {
354
- jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteDeliveryOrderResponse.repeatedFields_, null);
355
- };
356
- goog.inherits(proto.DeleteDeliveryOrderResponse, jspb.Message);
357
- if (goog.DEBUG && !COMPILED) {
358
- /**
359
- * @public
360
- * @override
361
- */
362
- proto.DeleteDeliveryOrderResponse.displayName = 'proto.DeleteDeliveryOrderResponse';
363
- }
364
-
365
- /**
366
- * List of repeated fields within this message type.
367
- * @private {!Array<number>}
368
- * @const
369
- */
370
- proto.BaseDeliveryOrderRequest.repeatedFields_ = [6,7];
371
-
372
-
373
-
374
- if (jspb.Message.GENERATE_TO_OBJECT) {
375
- /**
376
- * Creates an object representation of this proto.
377
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
378
- * Optional fields that are not set will be set to undefined.
379
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
380
- * For the list of reserved names please see:
381
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
382
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
383
- * JSPB instance for transitional soy proto support:
384
- * http://goto/soy-param-migration
385
- * @return {!Object}
386
- */
387
- proto.BaseDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
388
- return proto.BaseDeliveryOrderRequest.toObject(opt_includeInstance, this);
389
- };
390
-
391
-
392
- /**
393
- * Static version of the {@see toObject} method.
394
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
395
- * the JSPB instance for transitional soy proto support:
396
- * http://goto/soy-param-migration
397
- * @param {!proto.BaseDeliveryOrderRequest} msg The msg instance to transform.
398
- * @return {!Object}
399
- * @suppress {unusedLocalVariables} f is only used for nested messages
400
- */
401
- proto.BaseDeliveryOrderRequest.toObject = function(includeInstance, msg) {
402
- var f, obj = {
403
- department: jspb.Message.getFieldWithDefault(msg, 1, ""),
404
- title: jspb.Message.getFieldWithDefault(msg, 2, ""),
405
- shippingAddress: jspb.Message.getFieldWithDefault(msg, 3, ""),
406
- referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
407
- status: jspb.Message.getFieldWithDefault(msg, 5, ""),
408
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
409
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
410
- itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
411
- prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance),
412
- createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
413
- updatedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
414
- groupReferences: jspb.Message.getFieldWithDefault(msg, 10, ""),
415
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 11, ""),
416
- purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
417
- vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 13, ""),
418
- shippingDate: jspb.Message.getFieldWithDefault(msg, 14, ""),
419
- remarks: jspb.Message.getFieldWithDefault(msg, 15, ""),
420
- purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 16, ""),
421
- salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 17, ""),
422
- deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 18, "")
423
- };
424
-
425
- if (includeInstance) {
426
- obj.$jspbMessageInstance = msg;
427
- }
428
- return obj;
429
- };
430
- }
431
-
432
-
433
- /**
434
- * Deserializes binary data (in protobuf wire format).
435
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
436
- * @return {!proto.BaseDeliveryOrderRequest}
437
- */
438
- proto.BaseDeliveryOrderRequest.deserializeBinary = function(bytes) {
439
- var reader = new jspb.BinaryReader(bytes);
440
- var msg = new proto.BaseDeliveryOrderRequest;
441
- return proto.BaseDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
442
- };
443
-
444
-
445
- /**
446
- * Deserializes binary data (in protobuf wire format) from the
447
- * given reader into the given message object.
448
- * @param {!proto.BaseDeliveryOrderRequest} msg The message object to deserialize into.
449
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
450
- * @return {!proto.BaseDeliveryOrderRequest}
451
- */
452
- proto.BaseDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
453
- while (reader.nextField()) {
454
- if (reader.isEndGroup()) {
455
- break;
456
- }
457
- var field = reader.getFieldNumber();
458
- switch (field) {
459
- case 1:
460
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
461
- msg.setDepartment(value);
462
- break;
463
- case 2:
464
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
465
- msg.setTitle(value);
466
- break;
467
- case 3:
468
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
469
- msg.setShippingAddress(value);
470
- break;
471
- case 4:
472
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
473
- msg.setReferencesId(value);
474
- break;
475
- case 5:
476
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
477
- msg.setStatus(value);
478
- break;
479
- case 6:
480
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
481
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
482
- msg.addFiles(value);
483
- break;
484
- case 7:
485
- var value = new prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction;
486
- reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.deserializeBinaryFromReader);
487
- msg.addItemTransactions(value);
488
- break;
489
- case 8:
490
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
491
- msg.setCreatedBy(value);
492
- break;
493
- case 9:
494
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
495
- msg.setUpdatedBy(value);
496
- break;
497
- case 10:
498
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
499
- msg.setGroupReferences(value);
500
- break;
501
- case 11:
502
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
503
- msg.setCompaniesReferencesId(value);
504
- break;
505
- case 12:
506
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
507
- msg.setPurchaseOrderReferencesId(value);
508
- break;
509
- case 13:
510
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
511
- msg.setVendorReferencesId(value);
512
- break;
513
- case 14:
514
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
515
- msg.setShippingDate(value);
516
- break;
517
- case 15:
518
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
519
- msg.setRemarks(value);
520
- break;
521
- case 16:
522
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
523
- msg.setPurchaseOrderNumber(value);
524
- break;
525
- case 17:
526
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
527
- msg.setSalesOrderNumber(value);
528
- break;
529
- case 18:
530
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
531
- msg.setDeliveryOrderNumber(value);
532
- break;
533
- default:
534
- reader.skipField();
535
- break;
536
- }
537
- }
538
- return msg;
539
- };
540
-
541
-
542
- /**
543
- * Serializes the message to binary data (in protobuf wire format).
544
- * @return {!Uint8Array}
545
- */
546
- proto.BaseDeliveryOrderRequest.prototype.serializeBinary = function() {
547
- var writer = new jspb.BinaryWriter();
548
- proto.BaseDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
549
- return writer.getResultBuffer();
550
- };
551
-
552
-
553
- /**
554
- * Serializes the given message to binary data (in protobuf wire
555
- * format), writing to the given BinaryWriter.
556
- * @param {!proto.BaseDeliveryOrderRequest} message
557
- * @param {!jspb.BinaryWriter} writer
558
- * @suppress {unusedLocalVariables} f is only used for nested messages
559
- */
560
- proto.BaseDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
561
- var f = undefined;
562
- f = message.getDepartment();
563
- if (f.length > 0) {
564
- writer.writeString(
565
- 1,
566
- f
567
- );
568
- }
569
- f = message.getTitle();
570
- if (f.length > 0) {
571
- writer.writeString(
572
- 2,
573
- f
574
- );
575
- }
576
- f = message.getShippingAddress();
577
- if (f.length > 0) {
578
- writer.writeString(
579
- 3,
580
- f
581
- );
582
- }
583
- f = message.getReferencesId();
584
- if (f.length > 0) {
585
- writer.writeString(
586
- 4,
587
- f
588
- );
589
- }
590
- f = message.getStatus();
591
- if (f.length > 0) {
592
- writer.writeString(
593
- 5,
594
- f
595
- );
596
- }
597
- f = message.getFilesList();
598
- if (f.length > 0) {
599
- writer.writeRepeatedMessage(
600
- 6,
601
- f,
602
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
603
- );
604
- }
605
- f = message.getItemTransactionsList();
606
- if (f.length > 0) {
607
- writer.writeRepeatedMessage(
608
- 7,
609
- f,
610
- prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
611
- );
612
- }
613
- f = message.getCreatedBy();
614
- if (f.length > 0) {
615
- writer.writeString(
616
- 8,
617
- f
618
- );
619
- }
620
- f = message.getUpdatedBy();
621
- if (f.length > 0) {
622
- writer.writeString(
623
- 9,
624
- f
625
- );
626
- }
627
- f = message.getGroupReferences();
628
- if (f.length > 0) {
629
- writer.writeString(
630
- 10,
631
- f
632
- );
633
- }
634
- f = message.getCompaniesReferencesId();
635
- if (f.length > 0) {
636
- writer.writeString(
637
- 11,
638
- f
639
- );
640
- }
641
- f = message.getPurchaseOrderReferencesId();
642
- if (f.length > 0) {
643
- writer.writeString(
644
- 12,
645
- f
646
- );
647
- }
648
- f = message.getVendorReferencesId();
649
- if (f.length > 0) {
650
- writer.writeString(
651
- 13,
652
- f
653
- );
654
- }
655
- f = message.getShippingDate();
656
- if (f.length > 0) {
657
- writer.writeString(
658
- 14,
659
- f
660
- );
661
- }
662
- f = message.getRemarks();
663
- if (f.length > 0) {
664
- writer.writeString(
665
- 15,
666
- f
667
- );
668
- }
669
- f = message.getPurchaseOrderNumber();
670
- if (f.length > 0) {
671
- writer.writeString(
672
- 16,
673
- f
674
- );
675
- }
676
- f = message.getSalesOrderNumber();
677
- if (f.length > 0) {
678
- writer.writeString(
679
- 17,
680
- f
681
- );
682
- }
683
- f = message.getDeliveryOrderNumber();
684
- if (f.length > 0) {
685
- writer.writeString(
686
- 18,
687
- f
688
- );
689
- }
690
- };
691
-
692
-
693
- /**
694
- * optional string department = 1;
695
- * @return {string}
696
- */
697
- proto.BaseDeliveryOrderRequest.prototype.getDepartment = function() {
698
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
699
- };
700
-
701
-
702
- /**
703
- * @param {string} value
704
- * @return {!proto.BaseDeliveryOrderRequest} returns this
705
- */
706
- proto.BaseDeliveryOrderRequest.prototype.setDepartment = function(value) {
707
- return jspb.Message.setProto3StringField(this, 1, value);
708
- };
709
-
710
-
711
- /**
712
- * optional string title = 2;
713
- * @return {string}
714
- */
715
- proto.BaseDeliveryOrderRequest.prototype.getTitle = function() {
716
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
717
- };
718
-
719
-
720
- /**
721
- * @param {string} value
722
- * @return {!proto.BaseDeliveryOrderRequest} returns this
723
- */
724
- proto.BaseDeliveryOrderRequest.prototype.setTitle = function(value) {
725
- return jspb.Message.setProto3StringField(this, 2, value);
726
- };
727
-
728
-
729
- /**
730
- * optional string shipping_address = 3;
731
- * @return {string}
732
- */
733
- proto.BaseDeliveryOrderRequest.prototype.getShippingAddress = function() {
734
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
735
- };
736
-
737
-
738
- /**
739
- * @param {string} value
740
- * @return {!proto.BaseDeliveryOrderRequest} returns this
741
- */
742
- proto.BaseDeliveryOrderRequest.prototype.setShippingAddress = function(value) {
743
- return jspb.Message.setProto3StringField(this, 3, value);
744
- };
745
-
746
-
747
- /**
748
- * optional string references_id = 4;
749
- * @return {string}
750
- */
751
- proto.BaseDeliveryOrderRequest.prototype.getReferencesId = function() {
752
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
753
- };
754
-
755
-
756
- /**
757
- * @param {string} value
758
- * @return {!proto.BaseDeliveryOrderRequest} returns this
759
- */
760
- proto.BaseDeliveryOrderRequest.prototype.setReferencesId = function(value) {
761
- return jspb.Message.setProto3StringField(this, 4, value);
762
- };
763
-
764
-
765
- /**
766
- * optional string status = 5;
767
- * @return {string}
768
- */
769
- proto.BaseDeliveryOrderRequest.prototype.getStatus = function() {
770
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
771
- };
772
-
773
-
774
- /**
775
- * @param {string} value
776
- * @return {!proto.BaseDeliveryOrderRequest} returns this
777
- */
778
- proto.BaseDeliveryOrderRequest.prototype.setStatus = function(value) {
779
- return jspb.Message.setProto3StringField(this, 5, value);
780
- };
781
-
782
-
783
- /**
784
- * repeated FileUploadReferencesReq files = 6;
785
- * @return {!Array<!proto.FileUploadReferencesReq>}
786
- */
787
- proto.BaseDeliveryOrderRequest.prototype.getFilesList = function() {
788
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
789
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 6));
790
- };
791
-
792
-
793
- /**
794
- * @param {!Array<!proto.FileUploadReferencesReq>} value
795
- * @return {!proto.BaseDeliveryOrderRequest} returns this
796
- */
797
- proto.BaseDeliveryOrderRequest.prototype.setFilesList = function(value) {
798
- return jspb.Message.setRepeatedWrapperField(this, 6, value);
799
- };
800
-
801
-
802
- /**
803
- * @param {!proto.FileUploadReferencesReq=} opt_value
804
- * @param {number=} opt_index
805
- * @return {!proto.FileUploadReferencesReq}
806
- */
807
- proto.BaseDeliveryOrderRequest.prototype.addFiles = function(opt_value, opt_index) {
808
- return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.FileUploadReferencesReq, opt_index);
809
- };
810
-
811
-
812
- /**
813
- * Clears the list making it empty but non-null.
814
- * @return {!proto.BaseDeliveryOrderRequest} returns this
815
- */
816
- proto.BaseDeliveryOrderRequest.prototype.clearFilesList = function() {
817
- return this.setFilesList([]);
818
- };
819
-
820
-
821
- /**
822
- * repeated BaseItemTransaction item_transactions = 7;
823
- * @return {!Array<!proto.BaseItemTransaction>}
824
- */
825
- proto.BaseDeliveryOrderRequest.prototype.getItemTransactionsList = function() {
826
- return /** @type{!Array<!proto.BaseItemTransaction>} */ (
827
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction, 7));
828
- };
829
-
830
-
831
- /**
832
- * @param {!Array<!proto.BaseItemTransaction>} value
833
- * @return {!proto.BaseDeliveryOrderRequest} returns this
834
- */
835
- proto.BaseDeliveryOrderRequest.prototype.setItemTransactionsList = function(value) {
836
- return jspb.Message.setRepeatedWrapperField(this, 7, value);
837
- };
838
-
839
-
840
- /**
841
- * @param {!proto.BaseItemTransaction=} opt_value
842
- * @param {number=} opt_index
843
- * @return {!proto.BaseItemTransaction}
844
- */
845
- proto.BaseDeliveryOrderRequest.prototype.addItemTransactions = function(opt_value, opt_index) {
846
- return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.BaseItemTransaction, opt_index);
847
- };
848
-
849
-
850
- /**
851
- * Clears the list making it empty but non-null.
852
- * @return {!proto.BaseDeliveryOrderRequest} returns this
853
- */
854
- proto.BaseDeliveryOrderRequest.prototype.clearItemTransactionsList = function() {
855
- return this.setItemTransactionsList([]);
856
- };
857
-
858
-
859
- /**
860
- * optional string created_by = 8;
861
- * @return {string}
862
- */
863
- proto.BaseDeliveryOrderRequest.prototype.getCreatedBy = function() {
864
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
865
- };
866
-
867
-
868
- /**
869
- * @param {string} value
870
- * @return {!proto.BaseDeliveryOrderRequest} returns this
871
- */
872
- proto.BaseDeliveryOrderRequest.prototype.setCreatedBy = function(value) {
873
- return jspb.Message.setProto3StringField(this, 8, value);
874
- };
875
-
876
-
877
- /**
878
- * optional string updated_by = 9;
879
- * @return {string}
880
- */
881
- proto.BaseDeliveryOrderRequest.prototype.getUpdatedBy = function() {
882
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
883
- };
884
-
885
-
886
- /**
887
- * @param {string} value
888
- * @return {!proto.BaseDeliveryOrderRequest} returns this
889
- */
890
- proto.BaseDeliveryOrderRequest.prototype.setUpdatedBy = function(value) {
891
- return jspb.Message.setProto3StringField(this, 9, value);
892
- };
893
-
894
-
895
- /**
896
- * optional string group_references = 10;
897
- * @return {string}
898
- */
899
- proto.BaseDeliveryOrderRequest.prototype.getGroupReferences = function() {
900
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
901
- };
902
-
903
-
904
- /**
905
- * @param {string} value
906
- * @return {!proto.BaseDeliveryOrderRequest} returns this
907
- */
908
- proto.BaseDeliveryOrderRequest.prototype.setGroupReferences = function(value) {
909
- return jspb.Message.setProto3StringField(this, 10, value);
910
- };
911
-
912
-
913
- /**
914
- * optional string companies_references_id = 11;
915
- * @return {string}
916
- */
917
- proto.BaseDeliveryOrderRequest.prototype.getCompaniesReferencesId = function() {
918
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
919
- };
920
-
921
-
922
- /**
923
- * @param {string} value
924
- * @return {!proto.BaseDeliveryOrderRequest} returns this
925
- */
926
- proto.BaseDeliveryOrderRequest.prototype.setCompaniesReferencesId = function(value) {
927
- return jspb.Message.setProto3StringField(this, 11, value);
928
- };
929
-
930
-
931
- /**
932
- * optional string purchase_order_references_id = 12;
933
- * @return {string}
934
- */
935
- proto.BaseDeliveryOrderRequest.prototype.getPurchaseOrderReferencesId = function() {
936
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
937
- };
938
-
939
-
940
- /**
941
- * @param {string} value
942
- * @return {!proto.BaseDeliveryOrderRequest} returns this
943
- */
944
- proto.BaseDeliveryOrderRequest.prototype.setPurchaseOrderReferencesId = function(value) {
945
- return jspb.Message.setProto3StringField(this, 12, value);
946
- };
947
-
948
-
949
- /**
950
- * optional string vendor_references_id = 13;
951
- * @return {string}
952
- */
953
- proto.BaseDeliveryOrderRequest.prototype.getVendorReferencesId = function() {
954
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
955
- };
956
-
957
-
958
- /**
959
- * @param {string} value
960
- * @return {!proto.BaseDeliveryOrderRequest} returns this
961
- */
962
- proto.BaseDeliveryOrderRequest.prototype.setVendorReferencesId = function(value) {
963
- return jspb.Message.setProto3StringField(this, 13, value);
964
- };
965
-
966
-
967
- /**
968
- * optional string shipping_date = 14;
969
- * @return {string}
970
- */
971
- proto.BaseDeliveryOrderRequest.prototype.getShippingDate = function() {
972
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
973
- };
974
-
975
-
976
- /**
977
- * @param {string} value
978
- * @return {!proto.BaseDeliveryOrderRequest} returns this
979
- */
980
- proto.BaseDeliveryOrderRequest.prototype.setShippingDate = function(value) {
981
- return jspb.Message.setProto3StringField(this, 14, value);
982
- };
983
-
984
-
985
- /**
986
- * optional string remarks = 15;
987
- * @return {string}
988
- */
989
- proto.BaseDeliveryOrderRequest.prototype.getRemarks = function() {
990
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
991
- };
992
-
993
-
994
- /**
995
- * @param {string} value
996
- * @return {!proto.BaseDeliveryOrderRequest} returns this
997
- */
998
- proto.BaseDeliveryOrderRequest.prototype.setRemarks = function(value) {
999
- return jspb.Message.setProto3StringField(this, 15, value);
1000
- };
1001
-
1002
-
1003
- /**
1004
- * optional string purchase_order_number = 16;
1005
- * @return {string}
1006
- */
1007
- proto.BaseDeliveryOrderRequest.prototype.getPurchaseOrderNumber = function() {
1008
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1009
- };
1010
-
1011
-
1012
- /**
1013
- * @param {string} value
1014
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1015
- */
1016
- proto.BaseDeliveryOrderRequest.prototype.setPurchaseOrderNumber = function(value) {
1017
- return jspb.Message.setProto3StringField(this, 16, value);
1018
- };
1019
-
1020
-
1021
- /**
1022
- * optional string sales_order_number = 17;
1023
- * @return {string}
1024
- */
1025
- proto.BaseDeliveryOrderRequest.prototype.getSalesOrderNumber = function() {
1026
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
1027
- };
1028
-
1029
-
1030
- /**
1031
- * @param {string} value
1032
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1033
- */
1034
- proto.BaseDeliveryOrderRequest.prototype.setSalesOrderNumber = function(value) {
1035
- return jspb.Message.setProto3StringField(this, 17, value);
1036
- };
1037
-
1038
-
1039
- /**
1040
- * optional string delivery_order_number = 18;
1041
- * @return {string}
1042
- */
1043
- proto.BaseDeliveryOrderRequest.prototype.getDeliveryOrderNumber = function() {
1044
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1045
- };
1046
-
1047
-
1048
- /**
1049
- * @param {string} value
1050
- * @return {!proto.BaseDeliveryOrderRequest} returns this
1051
- */
1052
- proto.BaseDeliveryOrderRequest.prototype.setDeliveryOrderNumber = function(value) {
1053
- return jspb.Message.setProto3StringField(this, 18, value);
1054
- };
1055
-
1056
-
1057
-
1058
-
1059
-
1060
- if (jspb.Message.GENERATE_TO_OBJECT) {
1061
- /**
1062
- * Creates an object representation of this proto.
1063
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1064
- * Optional fields that are not set will be set to undefined.
1065
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1066
- * For the list of reserved names please see:
1067
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1068
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1069
- * JSPB instance for transitional soy proto support:
1070
- * http://goto/soy-param-migration
1071
- * @return {!Object}
1072
- */
1073
- proto.CreateDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
1074
- return proto.CreateDeliveryOrderRequest.toObject(opt_includeInstance, this);
1075
- };
1076
-
1077
-
1078
- /**
1079
- * Static version of the {@see toObject} method.
1080
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1081
- * the JSPB instance for transitional soy proto support:
1082
- * http://goto/soy-param-migration
1083
- * @param {!proto.CreateDeliveryOrderRequest} msg The msg instance to transform.
1084
- * @return {!Object}
1085
- * @suppress {unusedLocalVariables} f is only used for nested messages
1086
- */
1087
- proto.CreateDeliveryOrderRequest.toObject = function(includeInstance, msg) {
1088
- var f, obj = {
1089
- baseDeliveryOrder: (f = msg.getBaseDeliveryOrder()) && proto.BaseDeliveryOrderRequest.toObject(includeInstance, f)
1090
- };
1091
-
1092
- if (includeInstance) {
1093
- obj.$jspbMessageInstance = msg;
1094
- }
1095
- return obj;
1096
- };
1097
- }
1098
-
1099
-
1100
- /**
1101
- * Deserializes binary data (in protobuf wire format).
1102
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1103
- * @return {!proto.CreateDeliveryOrderRequest}
1104
- */
1105
- proto.CreateDeliveryOrderRequest.deserializeBinary = function(bytes) {
1106
- var reader = new jspb.BinaryReader(bytes);
1107
- var msg = new proto.CreateDeliveryOrderRequest;
1108
- return proto.CreateDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
1109
- };
1110
-
1111
-
1112
- /**
1113
- * Deserializes binary data (in protobuf wire format) from the
1114
- * given reader into the given message object.
1115
- * @param {!proto.CreateDeliveryOrderRequest} msg The message object to deserialize into.
1116
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1117
- * @return {!proto.CreateDeliveryOrderRequest}
1118
- */
1119
- proto.CreateDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
1120
- while (reader.nextField()) {
1121
- if (reader.isEndGroup()) {
1122
- break;
1123
- }
1124
- var field = reader.getFieldNumber();
1125
- switch (field) {
1126
- case 1:
1127
- var value = new proto.BaseDeliveryOrderRequest;
1128
- reader.readMessage(value,proto.BaseDeliveryOrderRequest.deserializeBinaryFromReader);
1129
- msg.setBaseDeliveryOrder(value);
1130
- break;
1131
- default:
1132
- reader.skipField();
1133
- break;
1134
- }
1135
- }
1136
- return msg;
1137
- };
1138
-
1139
-
1140
- /**
1141
- * Serializes the message to binary data (in protobuf wire format).
1142
- * @return {!Uint8Array}
1143
- */
1144
- proto.CreateDeliveryOrderRequest.prototype.serializeBinary = function() {
1145
- var writer = new jspb.BinaryWriter();
1146
- proto.CreateDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
1147
- return writer.getResultBuffer();
1148
- };
1149
-
1150
-
1151
- /**
1152
- * Serializes the given message to binary data (in protobuf wire
1153
- * format), writing to the given BinaryWriter.
1154
- * @param {!proto.CreateDeliveryOrderRequest} message
1155
- * @param {!jspb.BinaryWriter} writer
1156
- * @suppress {unusedLocalVariables} f is only used for nested messages
1157
- */
1158
- proto.CreateDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
1159
- var f = undefined;
1160
- f = message.getBaseDeliveryOrder();
1161
- if (f != null) {
1162
- writer.writeMessage(
1163
- 1,
1164
- f,
1165
- proto.BaseDeliveryOrderRequest.serializeBinaryToWriter
1166
- );
1167
- }
1168
- };
1169
-
1170
-
1171
- /**
1172
- * optional BaseDeliveryOrderRequest base_delivery_order = 1;
1173
- * @return {?proto.BaseDeliveryOrderRequest}
1174
- */
1175
- proto.CreateDeliveryOrderRequest.prototype.getBaseDeliveryOrder = function() {
1176
- return /** @type{?proto.BaseDeliveryOrderRequest} */ (
1177
- jspb.Message.getWrapperField(this, proto.BaseDeliveryOrderRequest, 1));
1178
- };
1179
-
1180
-
1181
- /**
1182
- * @param {?proto.BaseDeliveryOrderRequest|undefined} value
1183
- * @return {!proto.CreateDeliveryOrderRequest} returns this
1184
- */
1185
- proto.CreateDeliveryOrderRequest.prototype.setBaseDeliveryOrder = function(value) {
1186
- return jspb.Message.setWrapperField(this, 1, value);
1187
- };
1188
-
1189
-
1190
- /**
1191
- * Clears the message field making it undefined.
1192
- * @return {!proto.CreateDeliveryOrderRequest} returns this
1193
- */
1194
- proto.CreateDeliveryOrderRequest.prototype.clearBaseDeliveryOrder = function() {
1195
- return this.setBaseDeliveryOrder(undefined);
1196
- };
1197
-
1198
-
1199
- /**
1200
- * Returns whether this field is set.
1201
- * @return {boolean}
1202
- */
1203
- proto.CreateDeliveryOrderRequest.prototype.hasBaseDeliveryOrder = function() {
1204
- return jspb.Message.getField(this, 1) != null;
1205
- };
1206
-
1207
-
1208
-
1209
-
1210
-
1211
- if (jspb.Message.GENERATE_TO_OBJECT) {
1212
- /**
1213
- * Creates an object representation of this proto.
1214
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1215
- * Optional fields that are not set will be set to undefined.
1216
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1217
- * For the list of reserved names please see:
1218
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1219
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1220
- * JSPB instance for transitional soy proto support:
1221
- * http://goto/soy-param-migration
1222
- * @return {!Object}
1223
- */
1224
- proto.UpdateDeliveryOrderStatusRequest.prototype.toObject = function(opt_includeInstance) {
1225
- return proto.UpdateDeliveryOrderStatusRequest.toObject(opt_includeInstance, this);
1226
- };
1227
-
1228
-
1229
- /**
1230
- * Static version of the {@see toObject} method.
1231
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1232
- * the JSPB instance for transitional soy proto support:
1233
- * http://goto/soy-param-migration
1234
- * @param {!proto.UpdateDeliveryOrderStatusRequest} msg The msg instance to transform.
1235
- * @return {!Object}
1236
- * @suppress {unusedLocalVariables} f is only used for nested messages
1237
- */
1238
- proto.UpdateDeliveryOrderStatusRequest.toObject = function(includeInstance, msg) {
1239
- var f, obj = {
1240
- status: jspb.Message.getFieldWithDefault(msg, 1, ""),
1241
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
1242
- };
1243
-
1244
- if (includeInstance) {
1245
- obj.$jspbMessageInstance = msg;
1246
- }
1247
- return obj;
1248
- };
1249
- }
1250
-
1251
-
1252
- /**
1253
- * Deserializes binary data (in protobuf wire format).
1254
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1255
- * @return {!proto.UpdateDeliveryOrderStatusRequest}
1256
- */
1257
- proto.UpdateDeliveryOrderStatusRequest.deserializeBinary = function(bytes) {
1258
- var reader = new jspb.BinaryReader(bytes);
1259
- var msg = new proto.UpdateDeliveryOrderStatusRequest;
1260
- return proto.UpdateDeliveryOrderStatusRequest.deserializeBinaryFromReader(msg, reader);
1261
- };
1262
-
1263
-
1264
- /**
1265
- * Deserializes binary data (in protobuf wire format) from the
1266
- * given reader into the given message object.
1267
- * @param {!proto.UpdateDeliveryOrderStatusRequest} msg The message object to deserialize into.
1268
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1269
- * @return {!proto.UpdateDeliveryOrderStatusRequest}
1270
- */
1271
- proto.UpdateDeliveryOrderStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
1272
- while (reader.nextField()) {
1273
- if (reader.isEndGroup()) {
1274
- break;
1275
- }
1276
- var field = reader.getFieldNumber();
1277
- switch (field) {
1278
- case 1:
1279
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1280
- msg.setStatus(value);
1281
- break;
1282
- case 2:
1283
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1284
- msg.setReferencesId(value);
1285
- break;
1286
- default:
1287
- reader.skipField();
1288
- break;
1289
- }
1290
- }
1291
- return msg;
1292
- };
1293
-
1294
-
1295
- /**
1296
- * Serializes the message to binary data (in protobuf wire format).
1297
- * @return {!Uint8Array}
1298
- */
1299
- proto.UpdateDeliveryOrderStatusRequest.prototype.serializeBinary = function() {
1300
- var writer = new jspb.BinaryWriter();
1301
- proto.UpdateDeliveryOrderStatusRequest.serializeBinaryToWriter(this, writer);
1302
- return writer.getResultBuffer();
1303
- };
1304
-
1305
-
1306
- /**
1307
- * Serializes the given message to binary data (in protobuf wire
1308
- * format), writing to the given BinaryWriter.
1309
- * @param {!proto.UpdateDeliveryOrderStatusRequest} message
1310
- * @param {!jspb.BinaryWriter} writer
1311
- * @suppress {unusedLocalVariables} f is only used for nested messages
1312
- */
1313
- proto.UpdateDeliveryOrderStatusRequest.serializeBinaryToWriter = function(message, writer) {
1314
- var f = undefined;
1315
- f = message.getStatus();
1316
- if (f.length > 0) {
1317
- writer.writeString(
1318
- 1,
1319
- f
1320
- );
1321
- }
1322
- f = message.getReferencesId();
1323
- if (f.length > 0) {
1324
- writer.writeString(
1325
- 2,
1326
- f
1327
- );
1328
- }
1329
- };
1330
-
1331
-
1332
- /**
1333
- * optional string status = 1;
1334
- * @return {string}
1335
- */
1336
- proto.UpdateDeliveryOrderStatusRequest.prototype.getStatus = function() {
1337
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1338
- };
1339
-
1340
-
1341
- /**
1342
- * @param {string} value
1343
- * @return {!proto.UpdateDeliveryOrderStatusRequest} returns this
1344
- */
1345
- proto.UpdateDeliveryOrderStatusRequest.prototype.setStatus = function(value) {
1346
- return jspb.Message.setProto3StringField(this, 1, value);
1347
- };
1348
-
1349
-
1350
- /**
1351
- * optional string references_id = 2;
1352
- * @return {string}
1353
- */
1354
- proto.UpdateDeliveryOrderStatusRequest.prototype.getReferencesId = function() {
1355
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1356
- };
1357
-
1358
-
1359
- /**
1360
- * @param {string} value
1361
- * @return {!proto.UpdateDeliveryOrderStatusRequest} returns this
1362
- */
1363
- proto.UpdateDeliveryOrderStatusRequest.prototype.setReferencesId = function(value) {
1364
- return jspb.Message.setProto3StringField(this, 2, value);
1365
- };
1366
-
1367
-
1368
-
1369
-
1370
-
1371
- if (jspb.Message.GENERATE_TO_OBJECT) {
1372
- /**
1373
- * Creates an object representation of this proto.
1374
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1375
- * Optional fields that are not set will be set to undefined.
1376
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1377
- * For the list of reserved names please see:
1378
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1379
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1380
- * JSPB instance for transitional soy proto support:
1381
- * http://goto/soy-param-migration
1382
- * @return {!Object}
1383
- */
1384
- proto.UpdateDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
1385
- return proto.UpdateDeliveryOrderRequest.toObject(opt_includeInstance, this);
1386
- };
1387
-
1388
-
1389
- /**
1390
- * Static version of the {@see toObject} method.
1391
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1392
- * the JSPB instance for transitional soy proto support:
1393
- * http://goto/soy-param-migration
1394
- * @param {!proto.UpdateDeliveryOrderRequest} msg The msg instance to transform.
1395
- * @return {!Object}
1396
- * @suppress {unusedLocalVariables} f is only used for nested messages
1397
- */
1398
- proto.UpdateDeliveryOrderRequest.toObject = function(includeInstance, msg) {
1399
- var f, obj = {
1400
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1401
- baseDeliveryOrder: (f = msg.getBaseDeliveryOrder()) && proto.BaseDeliveryOrderRequest.toObject(includeInstance, f)
1402
- };
1403
-
1404
- if (includeInstance) {
1405
- obj.$jspbMessageInstance = msg;
1406
- }
1407
- return obj;
1408
- };
1409
- }
1410
-
1411
-
1412
- /**
1413
- * Deserializes binary data (in protobuf wire format).
1414
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1415
- * @return {!proto.UpdateDeliveryOrderRequest}
1416
- */
1417
- proto.UpdateDeliveryOrderRequest.deserializeBinary = function(bytes) {
1418
- var reader = new jspb.BinaryReader(bytes);
1419
- var msg = new proto.UpdateDeliveryOrderRequest;
1420
- return proto.UpdateDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
1421
- };
1422
-
1423
-
1424
- /**
1425
- * Deserializes binary data (in protobuf wire format) from the
1426
- * given reader into the given message object.
1427
- * @param {!proto.UpdateDeliveryOrderRequest} msg The message object to deserialize into.
1428
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1429
- * @return {!proto.UpdateDeliveryOrderRequest}
1430
- */
1431
- proto.UpdateDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
1432
- while (reader.nextField()) {
1433
- if (reader.isEndGroup()) {
1434
- break;
1435
- }
1436
- var field = reader.getFieldNumber();
1437
- switch (field) {
1438
- case 1:
1439
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1440
- msg.setReferencesId(value);
1441
- break;
1442
- case 2:
1443
- var value = new proto.BaseDeliveryOrderRequest;
1444
- reader.readMessage(value,proto.BaseDeliveryOrderRequest.deserializeBinaryFromReader);
1445
- msg.setBaseDeliveryOrder(value);
1446
- break;
1447
- default:
1448
- reader.skipField();
1449
- break;
1450
- }
1451
- }
1452
- return msg;
1453
- };
1454
-
1455
-
1456
- /**
1457
- * Serializes the message to binary data (in protobuf wire format).
1458
- * @return {!Uint8Array}
1459
- */
1460
- proto.UpdateDeliveryOrderRequest.prototype.serializeBinary = function() {
1461
- var writer = new jspb.BinaryWriter();
1462
- proto.UpdateDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
1463
- return writer.getResultBuffer();
1464
- };
1465
-
1466
-
1467
- /**
1468
- * Serializes the given message to binary data (in protobuf wire
1469
- * format), writing to the given BinaryWriter.
1470
- * @param {!proto.UpdateDeliveryOrderRequest} message
1471
- * @param {!jspb.BinaryWriter} writer
1472
- * @suppress {unusedLocalVariables} f is only used for nested messages
1473
- */
1474
- proto.UpdateDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
1475
- var f = undefined;
1476
- f = message.getReferencesId();
1477
- if (f.length > 0) {
1478
- writer.writeString(
1479
- 1,
1480
- f
1481
- );
1482
- }
1483
- f = message.getBaseDeliveryOrder();
1484
- if (f != null) {
1485
- writer.writeMessage(
1486
- 2,
1487
- f,
1488
- proto.BaseDeliveryOrderRequest.serializeBinaryToWriter
1489
- );
1490
- }
1491
- };
1492
-
1493
-
1494
- /**
1495
- * optional string references_id = 1;
1496
- * @return {string}
1497
- */
1498
- proto.UpdateDeliveryOrderRequest.prototype.getReferencesId = function() {
1499
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1500
- };
1501
-
1502
-
1503
- /**
1504
- * @param {string} value
1505
- * @return {!proto.UpdateDeliveryOrderRequest} returns this
1506
- */
1507
- proto.UpdateDeliveryOrderRequest.prototype.setReferencesId = function(value) {
1508
- return jspb.Message.setProto3StringField(this, 1, value);
1509
- };
1510
-
1511
-
1512
- /**
1513
- * optional BaseDeliveryOrderRequest base_delivery_order = 2;
1514
- * @return {?proto.BaseDeliveryOrderRequest}
1515
- */
1516
- proto.UpdateDeliveryOrderRequest.prototype.getBaseDeliveryOrder = function() {
1517
- return /** @type{?proto.BaseDeliveryOrderRequest} */ (
1518
- jspb.Message.getWrapperField(this, proto.BaseDeliveryOrderRequest, 2));
1519
- };
1520
-
1521
-
1522
- /**
1523
- * @param {?proto.BaseDeliveryOrderRequest|undefined} value
1524
- * @return {!proto.UpdateDeliveryOrderRequest} returns this
1525
- */
1526
- proto.UpdateDeliveryOrderRequest.prototype.setBaseDeliveryOrder = function(value) {
1527
- return jspb.Message.setWrapperField(this, 2, value);
1528
- };
1529
-
1530
-
1531
- /**
1532
- * Clears the message field making it undefined.
1533
- * @return {!proto.UpdateDeliveryOrderRequest} returns this
1534
- */
1535
- proto.UpdateDeliveryOrderRequest.prototype.clearBaseDeliveryOrder = function() {
1536
- return this.setBaseDeliveryOrder(undefined);
1537
- };
1538
-
1539
-
1540
- /**
1541
- * Returns whether this field is set.
1542
- * @return {boolean}
1543
- */
1544
- proto.UpdateDeliveryOrderRequest.prototype.hasBaseDeliveryOrder = function() {
1545
- return jspb.Message.getField(this, 2) != null;
1546
- };
1547
-
1548
-
1549
-
1550
-
1551
-
1552
- if (jspb.Message.GENERATE_TO_OBJECT) {
1553
- /**
1554
- * Creates an object representation of this proto.
1555
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1556
- * Optional fields that are not set will be set to undefined.
1557
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1558
- * For the list of reserved names please see:
1559
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1560
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1561
- * JSPB instance for transitional soy proto support:
1562
- * http://goto/soy-param-migration
1563
- * @return {!Object}
1564
- */
1565
- proto.GetDeliveryOrderByIdRequest.prototype.toObject = function(opt_includeInstance) {
1566
- return proto.GetDeliveryOrderByIdRequest.toObject(opt_includeInstance, this);
1567
- };
1568
-
1569
-
1570
- /**
1571
- * Static version of the {@see toObject} method.
1572
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1573
- * the JSPB instance for transitional soy proto support:
1574
- * http://goto/soy-param-migration
1575
- * @param {!proto.GetDeliveryOrderByIdRequest} msg The msg instance to transform.
1576
- * @return {!Object}
1577
- * @suppress {unusedLocalVariables} f is only used for nested messages
1578
- */
1579
- proto.GetDeliveryOrderByIdRequest.toObject = function(includeInstance, msg) {
1580
- var f, obj = {
1581
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1582
- };
1583
-
1584
- if (includeInstance) {
1585
- obj.$jspbMessageInstance = msg;
1586
- }
1587
- return obj;
1588
- };
1589
- }
1590
-
1591
-
1592
- /**
1593
- * Deserializes binary data (in protobuf wire format).
1594
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1595
- * @return {!proto.GetDeliveryOrderByIdRequest}
1596
- */
1597
- proto.GetDeliveryOrderByIdRequest.deserializeBinary = function(bytes) {
1598
- var reader = new jspb.BinaryReader(bytes);
1599
- var msg = new proto.GetDeliveryOrderByIdRequest;
1600
- return proto.GetDeliveryOrderByIdRequest.deserializeBinaryFromReader(msg, reader);
1601
- };
1602
-
1603
-
1604
- /**
1605
- * Deserializes binary data (in protobuf wire format) from the
1606
- * given reader into the given message object.
1607
- * @param {!proto.GetDeliveryOrderByIdRequest} msg The message object to deserialize into.
1608
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1609
- * @return {!proto.GetDeliveryOrderByIdRequest}
1610
- */
1611
- proto.GetDeliveryOrderByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1612
- while (reader.nextField()) {
1613
- if (reader.isEndGroup()) {
1614
- break;
1615
- }
1616
- var field = reader.getFieldNumber();
1617
- switch (field) {
1618
- case 1:
1619
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1620
- msg.setReferencesId(value);
1621
- break;
1622
- default:
1623
- reader.skipField();
1624
- break;
1625
- }
1626
- }
1627
- return msg;
1628
- };
1629
-
1630
-
1631
- /**
1632
- * Serializes the message to binary data (in protobuf wire format).
1633
- * @return {!Uint8Array}
1634
- */
1635
- proto.GetDeliveryOrderByIdRequest.prototype.serializeBinary = function() {
1636
- var writer = new jspb.BinaryWriter();
1637
- proto.GetDeliveryOrderByIdRequest.serializeBinaryToWriter(this, writer);
1638
- return writer.getResultBuffer();
1639
- };
1640
-
1641
-
1642
- /**
1643
- * Serializes the given message to binary data (in protobuf wire
1644
- * format), writing to the given BinaryWriter.
1645
- * @param {!proto.GetDeliveryOrderByIdRequest} message
1646
- * @param {!jspb.BinaryWriter} writer
1647
- * @suppress {unusedLocalVariables} f is only used for nested messages
1648
- */
1649
- proto.GetDeliveryOrderByIdRequest.serializeBinaryToWriter = function(message, writer) {
1650
- var f = undefined;
1651
- f = message.getReferencesId();
1652
- if (f.length > 0) {
1653
- writer.writeString(
1654
- 1,
1655
- f
1656
- );
1657
- }
1658
- };
1659
-
1660
-
1661
- /**
1662
- * optional string references_id = 1;
1663
- * @return {string}
1664
- */
1665
- proto.GetDeliveryOrderByIdRequest.prototype.getReferencesId = function() {
1666
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1667
- };
1668
-
1669
-
1670
- /**
1671
- * @param {string} value
1672
- * @return {!proto.GetDeliveryOrderByIdRequest} returns this
1673
- */
1674
- proto.GetDeliveryOrderByIdRequest.prototype.setReferencesId = function(value) {
1675
- return jspb.Message.setProto3StringField(this, 1, value);
1676
- };
1677
-
1678
-
1679
-
1680
-
1681
-
1682
- if (jspb.Message.GENERATE_TO_OBJECT) {
1683
- /**
1684
- * Creates an object representation of this proto.
1685
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1686
- * Optional fields that are not set will be set to undefined.
1687
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1688
- * For the list of reserved names please see:
1689
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1690
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1691
- * JSPB instance for transitional soy proto support:
1692
- * http://goto/soy-param-migration
1693
- * @return {!Object}
1694
- */
1695
- proto.GetListDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
1696
- return proto.GetListDeliveryOrderRequest.toObject(opt_includeInstance, this);
1697
- };
1698
-
1699
-
1700
- /**
1701
- * Static version of the {@see toObject} method.
1702
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1703
- * the JSPB instance for transitional soy proto support:
1704
- * http://goto/soy-param-migration
1705
- * @param {!proto.GetListDeliveryOrderRequest} msg The msg instance to transform.
1706
- * @return {!Object}
1707
- * @suppress {unusedLocalVariables} f is only used for nested messages
1708
- */
1709
- proto.GetListDeliveryOrderRequest.toObject = function(includeInstance, msg) {
1710
- var f, obj = {
1711
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1712
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1713
- };
1714
-
1715
- if (includeInstance) {
1716
- obj.$jspbMessageInstance = msg;
1717
- }
1718
- return obj;
1719
- };
1720
- }
1721
-
1722
-
1723
- /**
1724
- * Deserializes binary data (in protobuf wire format).
1725
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1726
- * @return {!proto.GetListDeliveryOrderRequest}
1727
- */
1728
- proto.GetListDeliveryOrderRequest.deserializeBinary = function(bytes) {
1729
- var reader = new jspb.BinaryReader(bytes);
1730
- var msg = new proto.GetListDeliveryOrderRequest;
1731
- return proto.GetListDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
1732
- };
1733
-
1734
-
1735
- /**
1736
- * Deserializes binary data (in protobuf wire format) from the
1737
- * given reader into the given message object.
1738
- * @param {!proto.GetListDeliveryOrderRequest} msg The message object to deserialize into.
1739
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1740
- * @return {!proto.GetListDeliveryOrderRequest}
1741
- */
1742
- proto.GetListDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
1743
- while (reader.nextField()) {
1744
- if (reader.isEndGroup()) {
1745
- break;
1746
- }
1747
- var field = reader.getFieldNumber();
1748
- switch (field) {
1749
- case 1:
1750
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1751
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1752
- msg.setPagination(value);
1753
- break;
1754
- case 2:
1755
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1756
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1757
- msg.setQuery(value);
1758
- break;
1759
- default:
1760
- reader.skipField();
1761
- break;
1762
- }
1763
- }
1764
- return msg;
1765
- };
1766
-
1767
-
1768
- /**
1769
- * Serializes the message to binary data (in protobuf wire format).
1770
- * @return {!Uint8Array}
1771
- */
1772
- proto.GetListDeliveryOrderRequest.prototype.serializeBinary = function() {
1773
- var writer = new jspb.BinaryWriter();
1774
- proto.GetListDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
1775
- return writer.getResultBuffer();
1776
- };
1777
-
1778
-
1779
- /**
1780
- * Serializes the given message to binary data (in protobuf wire
1781
- * format), writing to the given BinaryWriter.
1782
- * @param {!proto.GetListDeliveryOrderRequest} message
1783
- * @param {!jspb.BinaryWriter} writer
1784
- * @suppress {unusedLocalVariables} f is only used for nested messages
1785
- */
1786
- proto.GetListDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
1787
- var f = undefined;
1788
- f = message.getPagination();
1789
- if (f != null) {
1790
- writer.writeMessage(
1791
- 1,
1792
- f,
1793
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1794
- );
1795
- }
1796
- f = message.getQuery();
1797
- if (f != null) {
1798
- writer.writeMessage(
1799
- 2,
1800
- f,
1801
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1802
- );
1803
- }
1804
- };
1805
-
1806
-
1807
- /**
1808
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1809
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1810
- */
1811
- proto.GetListDeliveryOrderRequest.prototype.getPagination = function() {
1812
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1813
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1814
- };
1815
-
1816
-
1817
- /**
1818
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1819
- * @return {!proto.GetListDeliveryOrderRequest} returns this
1820
- */
1821
- proto.GetListDeliveryOrderRequest.prototype.setPagination = function(value) {
1822
- return jspb.Message.setWrapperField(this, 1, value);
1823
- };
1824
-
1825
-
1826
- /**
1827
- * Clears the message field making it undefined.
1828
- * @return {!proto.GetListDeliveryOrderRequest} returns this
1829
- */
1830
- proto.GetListDeliveryOrderRequest.prototype.clearPagination = function() {
1831
- return this.setPagination(undefined);
1832
- };
1833
-
1834
-
1835
- /**
1836
- * Returns whether this field is set.
1837
- * @return {boolean}
1838
- */
1839
- proto.GetListDeliveryOrderRequest.prototype.hasPagination = function() {
1840
- return jspb.Message.getField(this, 1) != null;
1841
- };
1842
-
1843
-
1844
- /**
1845
- * optional prisca.v1.global.meta.FilterRequest query = 2;
1846
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
1847
- */
1848
- proto.GetListDeliveryOrderRequest.prototype.getQuery = function() {
1849
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1850
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1851
- };
1852
-
1853
-
1854
- /**
1855
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1856
- * @return {!proto.GetListDeliveryOrderRequest} returns this
1857
- */
1858
- proto.GetListDeliveryOrderRequest.prototype.setQuery = function(value) {
1859
- return jspb.Message.setWrapperField(this, 2, value);
1860
- };
1861
-
1862
-
1863
- /**
1864
- * Clears the message field making it undefined.
1865
- * @return {!proto.GetListDeliveryOrderRequest} returns this
1866
- */
1867
- proto.GetListDeliveryOrderRequest.prototype.clearQuery = function() {
1868
- return this.setQuery(undefined);
1869
- };
1870
-
1871
-
1872
- /**
1873
- * Returns whether this field is set.
1874
- * @return {boolean}
1875
- */
1876
- proto.GetListDeliveryOrderRequest.prototype.hasQuery = function() {
1877
- return jspb.Message.getField(this, 2) != null;
1878
- };
1879
-
1880
-
1881
-
1882
- /**
1883
- * List of repeated fields within this message type.
1884
- * @private {!Array<number>}
1885
- * @const
1886
- */
1887
- proto.DeleteDeliveryOrderRequest.repeatedFields_ = [1];
1888
-
1889
-
1890
-
1891
- if (jspb.Message.GENERATE_TO_OBJECT) {
1892
- /**
1893
- * Creates an object representation of this proto.
1894
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1895
- * Optional fields that are not set will be set to undefined.
1896
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1897
- * For the list of reserved names please see:
1898
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1899
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1900
- * JSPB instance for transitional soy proto support:
1901
- * http://goto/soy-param-migration
1902
- * @return {!Object}
1903
- */
1904
- proto.DeleteDeliveryOrderRequest.prototype.toObject = function(opt_includeInstance) {
1905
- return proto.DeleteDeliveryOrderRequest.toObject(opt_includeInstance, this);
1906
- };
1907
-
1908
-
1909
- /**
1910
- * Static version of the {@see toObject} method.
1911
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1912
- * the JSPB instance for transitional soy proto support:
1913
- * http://goto/soy-param-migration
1914
- * @param {!proto.DeleteDeliveryOrderRequest} msg The msg instance to transform.
1915
- * @return {!Object}
1916
- * @suppress {unusedLocalVariables} f is only used for nested messages
1917
- */
1918
- proto.DeleteDeliveryOrderRequest.toObject = function(includeInstance, msg) {
1919
- var f, obj = {
1920
- referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1921
- };
1922
-
1923
- if (includeInstance) {
1924
- obj.$jspbMessageInstance = msg;
1925
- }
1926
- return obj;
1927
- };
1928
- }
1929
-
1930
-
1931
- /**
1932
- * Deserializes binary data (in protobuf wire format).
1933
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1934
- * @return {!proto.DeleteDeliveryOrderRequest}
1935
- */
1936
- proto.DeleteDeliveryOrderRequest.deserializeBinary = function(bytes) {
1937
- var reader = new jspb.BinaryReader(bytes);
1938
- var msg = new proto.DeleteDeliveryOrderRequest;
1939
- return proto.DeleteDeliveryOrderRequest.deserializeBinaryFromReader(msg, reader);
1940
- };
1941
-
1942
-
1943
- /**
1944
- * Deserializes binary data (in protobuf wire format) from the
1945
- * given reader into the given message object.
1946
- * @param {!proto.DeleteDeliveryOrderRequest} msg The message object to deserialize into.
1947
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1948
- * @return {!proto.DeleteDeliveryOrderRequest}
1949
- */
1950
- proto.DeleteDeliveryOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
1951
- while (reader.nextField()) {
1952
- if (reader.isEndGroup()) {
1953
- break;
1954
- }
1955
- var field = reader.getFieldNumber();
1956
- switch (field) {
1957
- case 1:
1958
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1959
- msg.addReferenceIds(value);
1960
- break;
1961
- default:
1962
- reader.skipField();
1963
- break;
1964
- }
1965
- }
1966
- return msg;
1967
- };
1968
-
1969
-
1970
- /**
1971
- * Serializes the message to binary data (in protobuf wire format).
1972
- * @return {!Uint8Array}
1973
- */
1974
- proto.DeleteDeliveryOrderRequest.prototype.serializeBinary = function() {
1975
- var writer = new jspb.BinaryWriter();
1976
- proto.DeleteDeliveryOrderRequest.serializeBinaryToWriter(this, writer);
1977
- return writer.getResultBuffer();
1978
- };
1979
-
1980
-
1981
- /**
1982
- * Serializes the given message to binary data (in protobuf wire
1983
- * format), writing to the given BinaryWriter.
1984
- * @param {!proto.DeleteDeliveryOrderRequest} message
1985
- * @param {!jspb.BinaryWriter} writer
1986
- * @suppress {unusedLocalVariables} f is only used for nested messages
1987
- */
1988
- proto.DeleteDeliveryOrderRequest.serializeBinaryToWriter = function(message, writer) {
1989
- var f = undefined;
1990
- f = message.getReferenceIdsList();
1991
- if (f.length > 0) {
1992
- writer.writeRepeatedString(
1993
- 1,
1994
- f
1995
- );
1996
- }
1997
- };
1998
-
1999
-
2000
- /**
2001
- * repeated string reference_ids = 1;
2002
- * @return {!Array<string>}
2003
- */
2004
- proto.DeleteDeliveryOrderRequest.prototype.getReferenceIdsList = function() {
2005
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2006
- };
2007
-
2008
-
2009
- /**
2010
- * @param {!Array<string>} value
2011
- * @return {!proto.DeleteDeliveryOrderRequest} returns this
2012
- */
2013
- proto.DeleteDeliveryOrderRequest.prototype.setReferenceIdsList = function(value) {
2014
- return jspb.Message.setField(this, 1, value || []);
2015
- };
2016
-
2017
-
2018
- /**
2019
- * @param {string} value
2020
- * @param {number=} opt_index
2021
- * @return {!proto.DeleteDeliveryOrderRequest} returns this
2022
- */
2023
- proto.DeleteDeliveryOrderRequest.prototype.addReferenceIds = function(value, opt_index) {
2024
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2025
- };
2026
-
2027
-
2028
- /**
2029
- * Clears the list making it empty but non-null.
2030
- * @return {!proto.DeleteDeliveryOrderRequest} returns this
2031
- */
2032
- proto.DeleteDeliveryOrderRequest.prototype.clearReferenceIdsList = function() {
2033
- return this.setReferenceIdsList([]);
2034
- };
2035
-
2036
-
2037
-
2038
-
2039
-
2040
- if (jspb.Message.GENERATE_TO_OBJECT) {
2041
- /**
2042
- * Creates an object representation of this proto.
2043
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2044
- * Optional fields that are not set will be set to undefined.
2045
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2046
- * For the list of reserved names please see:
2047
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2048
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2049
- * JSPB instance for transitional soy proto support:
2050
- * http://goto/soy-param-migration
2051
- * @return {!Object}
2052
- */
2053
- proto.CreateDeliveryOrderResponse.prototype.toObject = function(opt_includeInstance) {
2054
- return proto.CreateDeliveryOrderResponse.toObject(opt_includeInstance, this);
2055
- };
2056
-
2057
-
2058
- /**
2059
- * Static version of the {@see toObject} method.
2060
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2061
- * the JSPB instance for transitional soy proto support:
2062
- * http://goto/soy-param-migration
2063
- * @param {!proto.CreateDeliveryOrderResponse} msg The msg instance to transform.
2064
- * @return {!Object}
2065
- * @suppress {unusedLocalVariables} f is only used for nested messages
2066
- */
2067
- proto.CreateDeliveryOrderResponse.toObject = function(includeInstance, msg) {
2068
- var f, obj = {
2069
- deliveryOrder: (f = msg.getDeliveryOrder()) && prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.toObject(includeInstance, f),
2070
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2071
- };
2072
-
2073
- if (includeInstance) {
2074
- obj.$jspbMessageInstance = msg;
2075
- }
2076
- return obj;
2077
- };
2078
- }
2079
-
2080
-
2081
- /**
2082
- * Deserializes binary data (in protobuf wire format).
2083
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2084
- * @return {!proto.CreateDeliveryOrderResponse}
2085
- */
2086
- proto.CreateDeliveryOrderResponse.deserializeBinary = function(bytes) {
2087
- var reader = new jspb.BinaryReader(bytes);
2088
- var msg = new proto.CreateDeliveryOrderResponse;
2089
- return proto.CreateDeliveryOrderResponse.deserializeBinaryFromReader(msg, reader);
2090
- };
2091
-
2092
-
2093
- /**
2094
- * Deserializes binary data (in protobuf wire format) from the
2095
- * given reader into the given message object.
2096
- * @param {!proto.CreateDeliveryOrderResponse} msg The message object to deserialize into.
2097
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2098
- * @return {!proto.CreateDeliveryOrderResponse}
2099
- */
2100
- proto.CreateDeliveryOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
2101
- while (reader.nextField()) {
2102
- if (reader.isEndGroup()) {
2103
- break;
2104
- }
2105
- var field = reader.getFieldNumber();
2106
- switch (field) {
2107
- case 1:
2108
- var value = new prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder;
2109
- reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.deserializeBinaryFromReader);
2110
- msg.setDeliveryOrder(value);
2111
- break;
2112
- case 2:
2113
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2114
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2115
- msg.setMeta(value);
2116
- break;
2117
- default:
2118
- reader.skipField();
2119
- break;
2120
- }
2121
- }
2122
- return msg;
2123
- };
2124
-
2125
-
2126
- /**
2127
- * Serializes the message to binary data (in protobuf wire format).
2128
- * @return {!Uint8Array}
2129
- */
2130
- proto.CreateDeliveryOrderResponse.prototype.serializeBinary = function() {
2131
- var writer = new jspb.BinaryWriter();
2132
- proto.CreateDeliveryOrderResponse.serializeBinaryToWriter(this, writer);
2133
- return writer.getResultBuffer();
2134
- };
2135
-
2136
-
2137
- /**
2138
- * Serializes the given message to binary data (in protobuf wire
2139
- * format), writing to the given BinaryWriter.
2140
- * @param {!proto.CreateDeliveryOrderResponse} message
2141
- * @param {!jspb.BinaryWriter} writer
2142
- * @suppress {unusedLocalVariables} f is only used for nested messages
2143
- */
2144
- proto.CreateDeliveryOrderResponse.serializeBinaryToWriter = function(message, writer) {
2145
- var f = undefined;
2146
- f = message.getDeliveryOrder();
2147
- if (f != null) {
2148
- writer.writeMessage(
2149
- 1,
2150
- f,
2151
- prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.serializeBinaryToWriter
2152
- );
2153
- }
2154
- f = message.getMeta();
2155
- if (f != null) {
2156
- writer.writeMessage(
2157
- 2,
2158
- f,
2159
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2160
- );
2161
- }
2162
- };
2163
-
2164
-
2165
- /**
2166
- * optional DeliveryOrder delivery_order = 1;
2167
- * @return {?proto.DeliveryOrder}
2168
- */
2169
- proto.CreateDeliveryOrderResponse.prototype.getDeliveryOrder = function() {
2170
- return /** @type{?proto.DeliveryOrder} */ (
2171
- jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder, 1));
2172
- };
2173
-
2174
-
2175
- /**
2176
- * @param {?proto.DeliveryOrder|undefined} value
2177
- * @return {!proto.CreateDeliveryOrderResponse} returns this
2178
- */
2179
- proto.CreateDeliveryOrderResponse.prototype.setDeliveryOrder = function(value) {
2180
- return jspb.Message.setWrapperField(this, 1, value);
2181
- };
2182
-
2183
-
2184
- /**
2185
- * Clears the message field making it undefined.
2186
- * @return {!proto.CreateDeliveryOrderResponse} returns this
2187
- */
2188
- proto.CreateDeliveryOrderResponse.prototype.clearDeliveryOrder = function() {
2189
- return this.setDeliveryOrder(undefined);
2190
- };
2191
-
2192
-
2193
- /**
2194
- * Returns whether this field is set.
2195
- * @return {boolean}
2196
- */
2197
- proto.CreateDeliveryOrderResponse.prototype.hasDeliveryOrder = function() {
2198
- return jspb.Message.getField(this, 1) != null;
2199
- };
2200
-
2201
-
2202
- /**
2203
- * optional prisca.v1.global.meta.Meta meta = 2;
2204
- * @return {?proto.prisca.v1.global.meta.Meta}
2205
- */
2206
- proto.CreateDeliveryOrderResponse.prototype.getMeta = function() {
2207
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2208
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2209
- };
2210
-
2211
-
2212
- /**
2213
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2214
- * @return {!proto.CreateDeliveryOrderResponse} returns this
2215
- */
2216
- proto.CreateDeliveryOrderResponse.prototype.setMeta = function(value) {
2217
- return jspb.Message.setWrapperField(this, 2, value);
2218
- };
2219
-
2220
-
2221
- /**
2222
- * Clears the message field making it undefined.
2223
- * @return {!proto.CreateDeliveryOrderResponse} returns this
2224
- */
2225
- proto.CreateDeliveryOrderResponse.prototype.clearMeta = function() {
2226
- return this.setMeta(undefined);
2227
- };
2228
-
2229
-
2230
- /**
2231
- * Returns whether this field is set.
2232
- * @return {boolean}
2233
- */
2234
- proto.CreateDeliveryOrderResponse.prototype.hasMeta = function() {
2235
- return jspb.Message.getField(this, 2) != null;
2236
- };
2237
-
2238
-
2239
-
2240
-
2241
-
2242
- if (jspb.Message.GENERATE_TO_OBJECT) {
2243
- /**
2244
- * Creates an object representation of this proto.
2245
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2246
- * Optional fields that are not set will be set to undefined.
2247
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2248
- * For the list of reserved names please see:
2249
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2250
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2251
- * JSPB instance for transitional soy proto support:
2252
- * http://goto/soy-param-migration
2253
- * @return {!Object}
2254
- */
2255
- proto.UpdateDeliveryOrderResponse.prototype.toObject = function(opt_includeInstance) {
2256
- return proto.UpdateDeliveryOrderResponse.toObject(opt_includeInstance, this);
2257
- };
2258
-
2259
-
2260
- /**
2261
- * Static version of the {@see toObject} method.
2262
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2263
- * the JSPB instance for transitional soy proto support:
2264
- * http://goto/soy-param-migration
2265
- * @param {!proto.UpdateDeliveryOrderResponse} msg The msg instance to transform.
2266
- * @return {!Object}
2267
- * @suppress {unusedLocalVariables} f is only used for nested messages
2268
- */
2269
- proto.UpdateDeliveryOrderResponse.toObject = function(includeInstance, msg) {
2270
- var f, obj = {
2271
- deliveryOrder: (f = msg.getDeliveryOrder()) && prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.toObject(includeInstance, f),
2272
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2273
- };
2274
-
2275
- if (includeInstance) {
2276
- obj.$jspbMessageInstance = msg;
2277
- }
2278
- return obj;
2279
- };
2280
- }
2281
-
2282
-
2283
- /**
2284
- * Deserializes binary data (in protobuf wire format).
2285
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2286
- * @return {!proto.UpdateDeliveryOrderResponse}
2287
- */
2288
- proto.UpdateDeliveryOrderResponse.deserializeBinary = function(bytes) {
2289
- var reader = new jspb.BinaryReader(bytes);
2290
- var msg = new proto.UpdateDeliveryOrderResponse;
2291
- return proto.UpdateDeliveryOrderResponse.deserializeBinaryFromReader(msg, reader);
2292
- };
2293
-
2294
-
2295
- /**
2296
- * Deserializes binary data (in protobuf wire format) from the
2297
- * given reader into the given message object.
2298
- * @param {!proto.UpdateDeliveryOrderResponse} msg The message object to deserialize into.
2299
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2300
- * @return {!proto.UpdateDeliveryOrderResponse}
2301
- */
2302
- proto.UpdateDeliveryOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
2303
- while (reader.nextField()) {
2304
- if (reader.isEndGroup()) {
2305
- break;
2306
- }
2307
- var field = reader.getFieldNumber();
2308
- switch (field) {
2309
- case 1:
2310
- var value = new prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder;
2311
- reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.deserializeBinaryFromReader);
2312
- msg.setDeliveryOrder(value);
2313
- break;
2314
- case 2:
2315
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2316
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2317
- msg.setMeta(value);
2318
- break;
2319
- default:
2320
- reader.skipField();
2321
- break;
2322
- }
2323
- }
2324
- return msg;
2325
- };
2326
-
2327
-
2328
- /**
2329
- * Serializes the message to binary data (in protobuf wire format).
2330
- * @return {!Uint8Array}
2331
- */
2332
- proto.UpdateDeliveryOrderResponse.prototype.serializeBinary = function() {
2333
- var writer = new jspb.BinaryWriter();
2334
- proto.UpdateDeliveryOrderResponse.serializeBinaryToWriter(this, writer);
2335
- return writer.getResultBuffer();
2336
- };
2337
-
2338
-
2339
- /**
2340
- * Serializes the given message to binary data (in protobuf wire
2341
- * format), writing to the given BinaryWriter.
2342
- * @param {!proto.UpdateDeliveryOrderResponse} message
2343
- * @param {!jspb.BinaryWriter} writer
2344
- * @suppress {unusedLocalVariables} f is only used for nested messages
2345
- */
2346
- proto.UpdateDeliveryOrderResponse.serializeBinaryToWriter = function(message, writer) {
2347
- var f = undefined;
2348
- f = message.getDeliveryOrder();
2349
- if (f != null) {
2350
- writer.writeMessage(
2351
- 1,
2352
- f,
2353
- prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.serializeBinaryToWriter
2354
- );
2355
- }
2356
- f = message.getMeta();
2357
- if (f != null) {
2358
- writer.writeMessage(
2359
- 2,
2360
- f,
2361
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2362
- );
2363
- }
2364
- };
2365
-
2366
-
2367
- /**
2368
- * optional DeliveryOrder delivery_order = 1;
2369
- * @return {?proto.DeliveryOrder}
2370
- */
2371
- proto.UpdateDeliveryOrderResponse.prototype.getDeliveryOrder = function() {
2372
- return /** @type{?proto.DeliveryOrder} */ (
2373
- jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder, 1));
2374
- };
2375
-
2376
-
2377
- /**
2378
- * @param {?proto.DeliveryOrder|undefined} value
2379
- * @return {!proto.UpdateDeliveryOrderResponse} returns this
2380
- */
2381
- proto.UpdateDeliveryOrderResponse.prototype.setDeliveryOrder = function(value) {
2382
- return jspb.Message.setWrapperField(this, 1, value);
2383
- };
2384
-
2385
-
2386
- /**
2387
- * Clears the message field making it undefined.
2388
- * @return {!proto.UpdateDeliveryOrderResponse} returns this
2389
- */
2390
- proto.UpdateDeliveryOrderResponse.prototype.clearDeliveryOrder = function() {
2391
- return this.setDeliveryOrder(undefined);
2392
- };
2393
-
2394
-
2395
- /**
2396
- * Returns whether this field is set.
2397
- * @return {boolean}
2398
- */
2399
- proto.UpdateDeliveryOrderResponse.prototype.hasDeliveryOrder = function() {
2400
- return jspb.Message.getField(this, 1) != null;
2401
- };
2402
-
2403
-
2404
- /**
2405
- * optional prisca.v1.global.meta.Meta meta = 2;
2406
- * @return {?proto.prisca.v1.global.meta.Meta}
2407
- */
2408
- proto.UpdateDeliveryOrderResponse.prototype.getMeta = function() {
2409
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2410
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2411
- };
2412
-
2413
-
2414
- /**
2415
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2416
- * @return {!proto.UpdateDeliveryOrderResponse} returns this
2417
- */
2418
- proto.UpdateDeliveryOrderResponse.prototype.setMeta = function(value) {
2419
- return jspb.Message.setWrapperField(this, 2, value);
2420
- };
2421
-
2422
-
2423
- /**
2424
- * Clears the message field making it undefined.
2425
- * @return {!proto.UpdateDeliveryOrderResponse} returns this
2426
- */
2427
- proto.UpdateDeliveryOrderResponse.prototype.clearMeta = function() {
2428
- return this.setMeta(undefined);
2429
- };
2430
-
2431
-
2432
- /**
2433
- * Returns whether this field is set.
2434
- * @return {boolean}
2435
- */
2436
- proto.UpdateDeliveryOrderResponse.prototype.hasMeta = function() {
2437
- return jspb.Message.getField(this, 2) != null;
2438
- };
2439
-
2440
-
2441
-
2442
-
2443
-
2444
- if (jspb.Message.GENERATE_TO_OBJECT) {
2445
- /**
2446
- * Creates an object representation of this proto.
2447
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2448
- * Optional fields that are not set will be set to undefined.
2449
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2450
- * For the list of reserved names please see:
2451
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2452
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2453
- * JSPB instance for transitional soy proto support:
2454
- * http://goto/soy-param-migration
2455
- * @return {!Object}
2456
- */
2457
- proto.GetDeliveryOrderByIdResponse.prototype.toObject = function(opt_includeInstance) {
2458
- return proto.GetDeliveryOrderByIdResponse.toObject(opt_includeInstance, this);
2459
- };
2460
-
2461
-
2462
- /**
2463
- * Static version of the {@see toObject} method.
2464
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2465
- * the JSPB instance for transitional soy proto support:
2466
- * http://goto/soy-param-migration
2467
- * @param {!proto.GetDeliveryOrderByIdResponse} msg The msg instance to transform.
2468
- * @return {!Object}
2469
- * @suppress {unusedLocalVariables} f is only used for nested messages
2470
- */
2471
- proto.GetDeliveryOrderByIdResponse.toObject = function(includeInstance, msg) {
2472
- var f, obj = {
2473
- deliveryOrder: (f = msg.getDeliveryOrder()) && prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.toObject(includeInstance, f),
2474
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2475
- };
2476
-
2477
- if (includeInstance) {
2478
- obj.$jspbMessageInstance = msg;
2479
- }
2480
- return obj;
2481
- };
2482
- }
2483
-
2484
-
2485
- /**
2486
- * Deserializes binary data (in protobuf wire format).
2487
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2488
- * @return {!proto.GetDeliveryOrderByIdResponse}
2489
- */
2490
- proto.GetDeliveryOrderByIdResponse.deserializeBinary = function(bytes) {
2491
- var reader = new jspb.BinaryReader(bytes);
2492
- var msg = new proto.GetDeliveryOrderByIdResponse;
2493
- return proto.GetDeliveryOrderByIdResponse.deserializeBinaryFromReader(msg, reader);
2494
- };
2495
-
2496
-
2497
- /**
2498
- * Deserializes binary data (in protobuf wire format) from the
2499
- * given reader into the given message object.
2500
- * @param {!proto.GetDeliveryOrderByIdResponse} msg The message object to deserialize into.
2501
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2502
- * @return {!proto.GetDeliveryOrderByIdResponse}
2503
- */
2504
- proto.GetDeliveryOrderByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2505
- while (reader.nextField()) {
2506
- if (reader.isEndGroup()) {
2507
- break;
2508
- }
2509
- var field = reader.getFieldNumber();
2510
- switch (field) {
2511
- case 1:
2512
- var value = new prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder;
2513
- reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.deserializeBinaryFromReader);
2514
- msg.setDeliveryOrder(value);
2515
- break;
2516
- case 2:
2517
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2518
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2519
- msg.setMeta(value);
2520
- break;
2521
- default:
2522
- reader.skipField();
2523
- break;
2524
- }
2525
- }
2526
- return msg;
2527
- };
2528
-
2529
-
2530
- /**
2531
- * Serializes the message to binary data (in protobuf wire format).
2532
- * @return {!Uint8Array}
2533
- */
2534
- proto.GetDeliveryOrderByIdResponse.prototype.serializeBinary = function() {
2535
- var writer = new jspb.BinaryWriter();
2536
- proto.GetDeliveryOrderByIdResponse.serializeBinaryToWriter(this, writer);
2537
- return writer.getResultBuffer();
2538
- };
2539
-
2540
-
2541
- /**
2542
- * Serializes the given message to binary data (in protobuf wire
2543
- * format), writing to the given BinaryWriter.
2544
- * @param {!proto.GetDeliveryOrderByIdResponse} message
2545
- * @param {!jspb.BinaryWriter} writer
2546
- * @suppress {unusedLocalVariables} f is only used for nested messages
2547
- */
2548
- proto.GetDeliveryOrderByIdResponse.serializeBinaryToWriter = function(message, writer) {
2549
- var f = undefined;
2550
- f = message.getDeliveryOrder();
2551
- if (f != null) {
2552
- writer.writeMessage(
2553
- 1,
2554
- f,
2555
- prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.serializeBinaryToWriter
2556
- );
2557
- }
2558
- f = message.getMeta();
2559
- if (f != null) {
2560
- writer.writeMessage(
2561
- 2,
2562
- f,
2563
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2564
- );
2565
- }
2566
- };
2567
-
2568
-
2569
- /**
2570
- * optional DeliveryOrder delivery_order = 1;
2571
- * @return {?proto.DeliveryOrder}
2572
- */
2573
- proto.GetDeliveryOrderByIdResponse.prototype.getDeliveryOrder = function() {
2574
- return /** @type{?proto.DeliveryOrder} */ (
2575
- jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder, 1));
2576
- };
2577
-
2578
-
2579
- /**
2580
- * @param {?proto.DeliveryOrder|undefined} value
2581
- * @return {!proto.GetDeliveryOrderByIdResponse} returns this
2582
- */
2583
- proto.GetDeliveryOrderByIdResponse.prototype.setDeliveryOrder = function(value) {
2584
- return jspb.Message.setWrapperField(this, 1, value);
2585
- };
2586
-
2587
-
2588
- /**
2589
- * Clears the message field making it undefined.
2590
- * @return {!proto.GetDeliveryOrderByIdResponse} returns this
2591
- */
2592
- proto.GetDeliveryOrderByIdResponse.prototype.clearDeliveryOrder = function() {
2593
- return this.setDeliveryOrder(undefined);
2594
- };
2595
-
2596
-
2597
- /**
2598
- * Returns whether this field is set.
2599
- * @return {boolean}
2600
- */
2601
- proto.GetDeliveryOrderByIdResponse.prototype.hasDeliveryOrder = function() {
2602
- return jspb.Message.getField(this, 1) != null;
2603
- };
2604
-
2605
-
2606
- /**
2607
- * optional prisca.v1.global.meta.Meta meta = 2;
2608
- * @return {?proto.prisca.v1.global.meta.Meta}
2609
- */
2610
- proto.GetDeliveryOrderByIdResponse.prototype.getMeta = function() {
2611
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2612
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2613
- };
2614
-
2615
-
2616
- /**
2617
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2618
- * @return {!proto.GetDeliveryOrderByIdResponse} returns this
2619
- */
2620
- proto.GetDeliveryOrderByIdResponse.prototype.setMeta = function(value) {
2621
- return jspb.Message.setWrapperField(this, 2, value);
2622
- };
2623
-
2624
-
2625
- /**
2626
- * Clears the message field making it undefined.
2627
- * @return {!proto.GetDeliveryOrderByIdResponse} returns this
2628
- */
2629
- proto.GetDeliveryOrderByIdResponse.prototype.clearMeta = function() {
2630
- return this.setMeta(undefined);
2631
- };
2632
-
2633
-
2634
- /**
2635
- * Returns whether this field is set.
2636
- * @return {boolean}
2637
- */
2638
- proto.GetDeliveryOrderByIdResponse.prototype.hasMeta = function() {
2639
- return jspb.Message.getField(this, 2) != null;
2640
- };
2641
-
2642
-
2643
-
2644
- /**
2645
- * List of repeated fields within this message type.
2646
- * @private {!Array<number>}
2647
- * @const
2648
- */
2649
- proto.GetDeliveryOrderDetailResponse.repeatedFields_ = [1,2];
2650
-
2651
-
2652
-
2653
- if (jspb.Message.GENERATE_TO_OBJECT) {
2654
- /**
2655
- * Creates an object representation of this proto.
2656
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2657
- * Optional fields that are not set will be set to undefined.
2658
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2659
- * For the list of reserved names please see:
2660
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2661
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2662
- * JSPB instance for transitional soy proto support:
2663
- * http://goto/soy-param-migration
2664
- * @return {!Object}
2665
- */
2666
- proto.GetDeliveryOrderDetailResponse.prototype.toObject = function(opt_includeInstance) {
2667
- return proto.GetDeliveryOrderDetailResponse.toObject(opt_includeInstance, this);
2668
- };
2669
-
2670
-
2671
- /**
2672
- * Static version of the {@see toObject} method.
2673
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2674
- * the JSPB instance for transitional soy proto support:
2675
- * http://goto/soy-param-migration
2676
- * @param {!proto.GetDeliveryOrderDetailResponse} msg The msg instance to transform.
2677
- * @return {!Object}
2678
- * @suppress {unusedLocalVariables} f is only used for nested messages
2679
- */
2680
- proto.GetDeliveryOrderDetailResponse.toObject = function(includeInstance, msg) {
2681
- var f, obj = {
2682
- transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
2683
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
2684
- transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
2685
- proto.GetDeliveryOrderItemPreload.toObject, includeInstance)
2686
- };
2687
-
2688
- if (includeInstance) {
2689
- obj.$jspbMessageInstance = msg;
2690
- }
2691
- return obj;
2692
- };
2693
- }
2694
-
2695
-
2696
- /**
2697
- * Deserializes binary data (in protobuf wire format).
2698
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2699
- * @return {!proto.GetDeliveryOrderDetailResponse}
2700
- */
2701
- proto.GetDeliveryOrderDetailResponse.deserializeBinary = function(bytes) {
2702
- var reader = new jspb.BinaryReader(bytes);
2703
- var msg = new proto.GetDeliveryOrderDetailResponse;
2704
- return proto.GetDeliveryOrderDetailResponse.deserializeBinaryFromReader(msg, reader);
2705
- };
2706
-
2707
-
2708
- /**
2709
- * Deserializes binary data (in protobuf wire format) from the
2710
- * given reader into the given message object.
2711
- * @param {!proto.GetDeliveryOrderDetailResponse} msg The message object to deserialize into.
2712
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2713
- * @return {!proto.GetDeliveryOrderDetailResponse}
2714
- */
2715
- proto.GetDeliveryOrderDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
2716
- while (reader.nextField()) {
2717
- if (reader.isEndGroup()) {
2718
- break;
2719
- }
2720
- var field = reader.getFieldNumber();
2721
- switch (field) {
2722
- case 1:
2723
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
2724
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
2725
- msg.addTransactionBuilder(value);
2726
- break;
2727
- case 2:
2728
- var value = new proto.GetDeliveryOrderItemPreload;
2729
- reader.readMessage(value,proto.GetDeliveryOrderItemPreload.deserializeBinaryFromReader);
2730
- msg.addTransactionBuilderItems(value);
2731
- break;
2732
- default:
2733
- reader.skipField();
2734
- break;
2735
- }
2736
- }
2737
- return msg;
2738
- };
2739
-
2740
-
2741
- /**
2742
- * Serializes the message to binary data (in protobuf wire format).
2743
- * @return {!Uint8Array}
2744
- */
2745
- proto.GetDeliveryOrderDetailResponse.prototype.serializeBinary = function() {
2746
- var writer = new jspb.BinaryWriter();
2747
- proto.GetDeliveryOrderDetailResponse.serializeBinaryToWriter(this, writer);
2748
- return writer.getResultBuffer();
2749
- };
2750
-
2751
-
2752
- /**
2753
- * Serializes the given message to binary data (in protobuf wire
2754
- * format), writing to the given BinaryWriter.
2755
- * @param {!proto.GetDeliveryOrderDetailResponse} message
2756
- * @param {!jspb.BinaryWriter} writer
2757
- * @suppress {unusedLocalVariables} f is only used for nested messages
2758
- */
2759
- proto.GetDeliveryOrderDetailResponse.serializeBinaryToWriter = function(message, writer) {
2760
- var f = undefined;
2761
- f = message.getTransactionBuilderList();
2762
- if (f.length > 0) {
2763
- writer.writeRepeatedMessage(
2764
- 1,
2765
- f,
2766
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
2767
- );
2768
- }
2769
- f = message.getTransactionBuilderItemsList();
2770
- if (f.length > 0) {
2771
- writer.writeRepeatedMessage(
2772
- 2,
2773
- f,
2774
- proto.GetDeliveryOrderItemPreload.serializeBinaryToWriter
2775
- );
2776
- }
2777
- };
2778
-
2779
-
2780
- /**
2781
- * repeated TransactionBuilderFieldsDetail transaction_builder = 1;
2782
- * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
2783
- */
2784
- proto.GetDeliveryOrderDetailResponse.prototype.getTransactionBuilderList = function() {
2785
- return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
2786
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
2787
- };
2788
-
2789
-
2790
- /**
2791
- * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
2792
- * @return {!proto.GetDeliveryOrderDetailResponse} returns this
2793
- */
2794
- proto.GetDeliveryOrderDetailResponse.prototype.setTransactionBuilderList = function(value) {
2795
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2796
- };
2797
-
2798
-
2799
- /**
2800
- * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
2801
- * @param {number=} opt_index
2802
- * @return {!proto.TransactionBuilderFieldsDetail}
2803
- */
2804
- proto.GetDeliveryOrderDetailResponse.prototype.addTransactionBuilder = function(opt_value, opt_index) {
2805
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
2806
- };
2807
-
2808
-
2809
- /**
2810
- * Clears the list making it empty but non-null.
2811
- * @return {!proto.GetDeliveryOrderDetailResponse} returns this
2812
- */
2813
- proto.GetDeliveryOrderDetailResponse.prototype.clearTransactionBuilderList = function() {
2814
- return this.setTransactionBuilderList([]);
2815
- };
2816
-
2817
-
2818
- /**
2819
- * repeated GetDeliveryOrderItemPreload transaction_builder_items = 2;
2820
- * @return {!Array<!proto.GetDeliveryOrderItemPreload>}
2821
- */
2822
- proto.GetDeliveryOrderDetailResponse.prototype.getTransactionBuilderItemsList = function() {
2823
- return /** @type{!Array<!proto.GetDeliveryOrderItemPreload>} */ (
2824
- jspb.Message.getRepeatedWrapperField(this, proto.GetDeliveryOrderItemPreload, 2));
2825
- };
2826
-
2827
-
2828
- /**
2829
- * @param {!Array<!proto.GetDeliveryOrderItemPreload>} value
2830
- * @return {!proto.GetDeliveryOrderDetailResponse} returns this
2831
- */
2832
- proto.GetDeliveryOrderDetailResponse.prototype.setTransactionBuilderItemsList = function(value) {
2833
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
2834
- };
2835
-
2836
-
2837
- /**
2838
- * @param {!proto.GetDeliveryOrderItemPreload=} opt_value
2839
- * @param {number=} opt_index
2840
- * @return {!proto.GetDeliveryOrderItemPreload}
2841
- */
2842
- proto.GetDeliveryOrderDetailResponse.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
2843
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetDeliveryOrderItemPreload, opt_index);
2844
- };
2845
-
2846
-
2847
- /**
2848
- * Clears the list making it empty but non-null.
2849
- * @return {!proto.GetDeliveryOrderDetailResponse} returns this
2850
- */
2851
- proto.GetDeliveryOrderDetailResponse.prototype.clearTransactionBuilderItemsList = function() {
2852
- return this.setTransactionBuilderItemsList([]);
2853
- };
2854
-
2855
-
2856
-
2857
- /**
2858
- * List of repeated fields within this message type.
2859
- * @private {!Array<number>}
2860
- * @const
2861
- */
2862
- proto.GetDeliveryOrderItemPreload.repeatedFields_ = [1,2];
2863
-
2864
-
2865
-
2866
- if (jspb.Message.GENERATE_TO_OBJECT) {
2867
- /**
2868
- * Creates an object representation of this proto.
2869
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2870
- * Optional fields that are not set will be set to undefined.
2871
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2872
- * For the list of reserved names please see:
2873
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2874
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2875
- * JSPB instance for transitional soy proto support:
2876
- * http://goto/soy-param-migration
2877
- * @return {!Object}
2878
- */
2879
- proto.GetDeliveryOrderItemPreload.prototype.toObject = function(opt_includeInstance) {
2880
- return proto.GetDeliveryOrderItemPreload.toObject(opt_includeInstance, this);
2881
- };
2882
-
2883
-
2884
- /**
2885
- * Static version of the {@see toObject} method.
2886
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2887
- * the JSPB instance for transitional soy proto support:
2888
- * http://goto/soy-param-migration
2889
- * @param {!proto.GetDeliveryOrderItemPreload} msg The msg instance to transform.
2890
- * @return {!Object}
2891
- * @suppress {unusedLocalVariables} f is only used for nested messages
2892
- */
2893
- proto.GetDeliveryOrderItemPreload.toObject = function(includeInstance, msg) {
2894
- var f, obj = {
2895
- transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
2896
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
2897
- transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
2898
- proto.GetDeliveryOrderItemDetailPreload.toObject, includeInstance)
2899
- };
2900
-
2901
- if (includeInstance) {
2902
- obj.$jspbMessageInstance = msg;
2903
- }
2904
- return obj;
2905
- };
2906
- }
2907
-
2908
-
2909
- /**
2910
- * Deserializes binary data (in protobuf wire format).
2911
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2912
- * @return {!proto.GetDeliveryOrderItemPreload}
2913
- */
2914
- proto.GetDeliveryOrderItemPreload.deserializeBinary = function(bytes) {
2915
- var reader = new jspb.BinaryReader(bytes);
2916
- var msg = new proto.GetDeliveryOrderItemPreload;
2917
- return proto.GetDeliveryOrderItemPreload.deserializeBinaryFromReader(msg, reader);
2918
- };
2919
-
2920
-
2921
- /**
2922
- * Deserializes binary data (in protobuf wire format) from the
2923
- * given reader into the given message object.
2924
- * @param {!proto.GetDeliveryOrderItemPreload} msg The message object to deserialize into.
2925
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2926
- * @return {!proto.GetDeliveryOrderItemPreload}
2927
- */
2928
- proto.GetDeliveryOrderItemPreload.deserializeBinaryFromReader = function(msg, reader) {
2929
- while (reader.nextField()) {
2930
- if (reader.isEndGroup()) {
2931
- break;
2932
- }
2933
- var field = reader.getFieldNumber();
2934
- switch (field) {
2935
- case 1:
2936
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
2937
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
2938
- msg.addTransactionBuilderItem(value);
2939
- break;
2940
- case 2:
2941
- var value = new proto.GetDeliveryOrderItemDetailPreload;
2942
- reader.readMessage(value,proto.GetDeliveryOrderItemDetailPreload.deserializeBinaryFromReader);
2943
- msg.addTransactionBuilderItemDetails(value);
2944
- break;
2945
- default:
2946
- reader.skipField();
2947
- break;
2948
- }
2949
- }
2950
- return msg;
2951
- };
2952
-
2953
-
2954
- /**
2955
- * Serializes the message to binary data (in protobuf wire format).
2956
- * @return {!Uint8Array}
2957
- */
2958
- proto.GetDeliveryOrderItemPreload.prototype.serializeBinary = function() {
2959
- var writer = new jspb.BinaryWriter();
2960
- proto.GetDeliveryOrderItemPreload.serializeBinaryToWriter(this, writer);
2961
- return writer.getResultBuffer();
2962
- };
2963
-
2964
-
2965
- /**
2966
- * Serializes the given message to binary data (in protobuf wire
2967
- * format), writing to the given BinaryWriter.
2968
- * @param {!proto.GetDeliveryOrderItemPreload} message
2969
- * @param {!jspb.BinaryWriter} writer
2970
- * @suppress {unusedLocalVariables} f is only used for nested messages
2971
- */
2972
- proto.GetDeliveryOrderItemPreload.serializeBinaryToWriter = function(message, writer) {
2973
- var f = undefined;
2974
- f = message.getTransactionBuilderItemList();
2975
- if (f.length > 0) {
2976
- writer.writeRepeatedMessage(
2977
- 1,
2978
- f,
2979
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
2980
- );
2981
- }
2982
- f = message.getTransactionBuilderItemDetailsList();
2983
- if (f.length > 0) {
2984
- writer.writeRepeatedMessage(
2985
- 2,
2986
- f,
2987
- proto.GetDeliveryOrderItemDetailPreload.serializeBinaryToWriter
2988
- );
2989
- }
2990
- };
2991
-
2992
-
2993
- /**
2994
- * repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
2995
- * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
2996
- */
2997
- proto.GetDeliveryOrderItemPreload.prototype.getTransactionBuilderItemList = function() {
2998
- return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
2999
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
3000
- };
3001
-
3002
-
3003
- /**
3004
- * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
3005
- * @return {!proto.GetDeliveryOrderItemPreload} returns this
3006
- */
3007
- proto.GetDeliveryOrderItemPreload.prototype.setTransactionBuilderItemList = function(value) {
3008
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3009
- };
3010
-
3011
-
3012
- /**
3013
- * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
3014
- * @param {number=} opt_index
3015
- * @return {!proto.TransactionBuilderFieldsDetail}
3016
- */
3017
- proto.GetDeliveryOrderItemPreload.prototype.addTransactionBuilderItem = function(opt_value, opt_index) {
3018
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
3019
- };
3020
-
3021
-
3022
- /**
3023
- * Clears the list making it empty but non-null.
3024
- * @return {!proto.GetDeliveryOrderItemPreload} returns this
3025
- */
3026
- proto.GetDeliveryOrderItemPreload.prototype.clearTransactionBuilderItemList = function() {
3027
- return this.setTransactionBuilderItemList([]);
3028
- };
3029
-
3030
-
3031
- /**
3032
- * repeated GetDeliveryOrderItemDetailPreload transaction_builder_item_details = 2;
3033
- * @return {!Array<!proto.GetDeliveryOrderItemDetailPreload>}
3034
- */
3035
- proto.GetDeliveryOrderItemPreload.prototype.getTransactionBuilderItemDetailsList = function() {
3036
- return /** @type{!Array<!proto.GetDeliveryOrderItemDetailPreload>} */ (
3037
- jspb.Message.getRepeatedWrapperField(this, proto.GetDeliveryOrderItemDetailPreload, 2));
3038
- };
3039
-
3040
-
3041
- /**
3042
- * @param {!Array<!proto.GetDeliveryOrderItemDetailPreload>} value
3043
- * @return {!proto.GetDeliveryOrderItemPreload} returns this
3044
- */
3045
- proto.GetDeliveryOrderItemPreload.prototype.setTransactionBuilderItemDetailsList = function(value) {
3046
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
3047
- };
3048
-
3049
-
3050
- /**
3051
- * @param {!proto.GetDeliveryOrderItemDetailPreload=} opt_value
3052
- * @param {number=} opt_index
3053
- * @return {!proto.GetDeliveryOrderItemDetailPreload}
3054
- */
3055
- proto.GetDeliveryOrderItemPreload.prototype.addTransactionBuilderItemDetails = function(opt_value, opt_index) {
3056
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetDeliveryOrderItemDetailPreload, opt_index);
3057
- };
3058
-
3059
-
3060
- /**
3061
- * Clears the list making it empty but non-null.
3062
- * @return {!proto.GetDeliveryOrderItemPreload} returns this
3063
- */
3064
- proto.GetDeliveryOrderItemPreload.prototype.clearTransactionBuilderItemDetailsList = function() {
3065
- return this.setTransactionBuilderItemDetailsList([]);
3066
- };
3067
-
3068
-
3069
-
3070
- /**
3071
- * List of repeated fields within this message type.
3072
- * @private {!Array<number>}
3073
- * @const
3074
- */
3075
- proto.GetDeliveryOrderItemDetailPreload.repeatedFields_ = [1];
3076
-
3077
-
3078
-
3079
- if (jspb.Message.GENERATE_TO_OBJECT) {
3080
- /**
3081
- * Creates an object representation of this proto.
3082
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3083
- * Optional fields that are not set will be set to undefined.
3084
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3085
- * For the list of reserved names please see:
3086
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3087
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3088
- * JSPB instance for transitional soy proto support:
3089
- * http://goto/soy-param-migration
3090
- * @return {!Object}
3091
- */
3092
- proto.GetDeliveryOrderItemDetailPreload.prototype.toObject = function(opt_includeInstance) {
3093
- return proto.GetDeliveryOrderItemDetailPreload.toObject(opt_includeInstance, this);
3094
- };
3095
-
3096
-
3097
- /**
3098
- * Static version of the {@see toObject} method.
3099
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3100
- * the JSPB instance for transitional soy proto support:
3101
- * http://goto/soy-param-migration
3102
- * @param {!proto.GetDeliveryOrderItemDetailPreload} msg The msg instance to transform.
3103
- * @return {!Object}
3104
- * @suppress {unusedLocalVariables} f is only used for nested messages
3105
- */
3106
- proto.GetDeliveryOrderItemDetailPreload.toObject = function(includeInstance, msg) {
3107
- var f, obj = {
3108
- transactionBuilderItemDetailList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailList(),
3109
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
3110
- };
3111
-
3112
- if (includeInstance) {
3113
- obj.$jspbMessageInstance = msg;
3114
- }
3115
- return obj;
3116
- };
3117
- }
3118
-
3119
-
3120
- /**
3121
- * Deserializes binary data (in protobuf wire format).
3122
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3123
- * @return {!proto.GetDeliveryOrderItemDetailPreload}
3124
- */
3125
- proto.GetDeliveryOrderItemDetailPreload.deserializeBinary = function(bytes) {
3126
- var reader = new jspb.BinaryReader(bytes);
3127
- var msg = new proto.GetDeliveryOrderItemDetailPreload;
3128
- return proto.GetDeliveryOrderItemDetailPreload.deserializeBinaryFromReader(msg, reader);
3129
- };
3130
-
3131
-
3132
- /**
3133
- * Deserializes binary data (in protobuf wire format) from the
3134
- * given reader into the given message object.
3135
- * @param {!proto.GetDeliveryOrderItemDetailPreload} msg The message object to deserialize into.
3136
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3137
- * @return {!proto.GetDeliveryOrderItemDetailPreload}
3138
- */
3139
- proto.GetDeliveryOrderItemDetailPreload.deserializeBinaryFromReader = function(msg, reader) {
3140
- while (reader.nextField()) {
3141
- if (reader.isEndGroup()) {
3142
- break;
3143
- }
3144
- var field = reader.getFieldNumber();
3145
- switch (field) {
3146
- case 1:
3147
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
3148
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
3149
- msg.addTransactionBuilderItemDetail(value);
3150
- break;
3151
- default:
3152
- reader.skipField();
3153
- break;
3154
- }
3155
- }
3156
- return msg;
3157
- };
3158
-
3159
-
3160
- /**
3161
- * Serializes the message to binary data (in protobuf wire format).
3162
- * @return {!Uint8Array}
3163
- */
3164
- proto.GetDeliveryOrderItemDetailPreload.prototype.serializeBinary = function() {
3165
- var writer = new jspb.BinaryWriter();
3166
- proto.GetDeliveryOrderItemDetailPreload.serializeBinaryToWriter(this, writer);
3167
- return writer.getResultBuffer();
3168
- };
3169
-
3170
-
3171
- /**
3172
- * Serializes the given message to binary data (in protobuf wire
3173
- * format), writing to the given BinaryWriter.
3174
- * @param {!proto.GetDeliveryOrderItemDetailPreload} message
3175
- * @param {!jspb.BinaryWriter} writer
3176
- * @suppress {unusedLocalVariables} f is only used for nested messages
3177
- */
3178
- proto.GetDeliveryOrderItemDetailPreload.serializeBinaryToWriter = function(message, writer) {
3179
- var f = undefined;
3180
- f = message.getTransactionBuilderItemDetailList();
3181
- if (f.length > 0) {
3182
- writer.writeRepeatedMessage(
3183
- 1,
3184
- f,
3185
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
3186
- );
3187
- }
3188
- };
3189
-
3190
-
3191
- /**
3192
- * repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
3193
- * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
3194
- */
3195
- proto.GetDeliveryOrderItemDetailPreload.prototype.getTransactionBuilderItemDetailList = function() {
3196
- return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
3197
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
3198
- };
3199
-
3200
-
3201
- /**
3202
- * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
3203
- * @return {!proto.GetDeliveryOrderItemDetailPreload} returns this
3204
- */
3205
- proto.GetDeliveryOrderItemDetailPreload.prototype.setTransactionBuilderItemDetailList = function(value) {
3206
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3207
- };
3208
-
3209
-
3210
- /**
3211
- * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
3212
- * @param {number=} opt_index
3213
- * @return {!proto.TransactionBuilderFieldsDetail}
3214
- */
3215
- proto.GetDeliveryOrderItemDetailPreload.prototype.addTransactionBuilderItemDetail = function(opt_value, opt_index) {
3216
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
3217
- };
3218
-
3219
-
3220
- /**
3221
- * Clears the list making it empty but non-null.
3222
- * @return {!proto.GetDeliveryOrderItemDetailPreload} returns this
3223
- */
3224
- proto.GetDeliveryOrderItemDetailPreload.prototype.clearTransactionBuilderItemDetailList = function() {
3225
- return this.setTransactionBuilderItemDetailList([]);
3226
- };
3227
-
3228
-
3229
-
3230
- /**
3231
- * List of repeated fields within this message type.
3232
- * @private {!Array<number>}
3233
- * @const
3234
- */
3235
- proto.GetListDeliveryOrderResponse.repeatedFields_ = [1];
3236
-
3237
-
3238
-
3239
- if (jspb.Message.GENERATE_TO_OBJECT) {
3240
- /**
3241
- * Creates an object representation of this proto.
3242
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3243
- * Optional fields that are not set will be set to undefined.
3244
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3245
- * For the list of reserved names please see:
3246
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3247
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3248
- * JSPB instance for transitional soy proto support:
3249
- * http://goto/soy-param-migration
3250
- * @return {!Object}
3251
- */
3252
- proto.GetListDeliveryOrderResponse.prototype.toObject = function(opt_includeInstance) {
3253
- return proto.GetListDeliveryOrderResponse.toObject(opt_includeInstance, this);
3254
- };
3255
-
3256
-
3257
- /**
3258
- * Static version of the {@see toObject} method.
3259
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3260
- * the JSPB instance for transitional soy proto support:
3261
- * http://goto/soy-param-migration
3262
- * @param {!proto.GetListDeliveryOrderResponse} msg The msg instance to transform.
3263
- * @return {!Object}
3264
- * @suppress {unusedLocalVariables} f is only used for nested messages
3265
- */
3266
- proto.GetListDeliveryOrderResponse.toObject = function(includeInstance, msg) {
3267
- var f, obj = {
3268
- deliveryOrdersList: jspb.Message.toObjectList(msg.getDeliveryOrdersList(),
3269
- prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.toObject, includeInstance),
3270
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3271
- };
3272
-
3273
- if (includeInstance) {
3274
- obj.$jspbMessageInstance = msg;
3275
- }
3276
- return obj;
3277
- };
3278
- }
3279
-
3280
-
3281
- /**
3282
- * Deserializes binary data (in protobuf wire format).
3283
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3284
- * @return {!proto.GetListDeliveryOrderResponse}
3285
- */
3286
- proto.GetListDeliveryOrderResponse.deserializeBinary = function(bytes) {
3287
- var reader = new jspb.BinaryReader(bytes);
3288
- var msg = new proto.GetListDeliveryOrderResponse;
3289
- return proto.GetListDeliveryOrderResponse.deserializeBinaryFromReader(msg, reader);
3290
- };
3291
-
3292
-
3293
- /**
3294
- * Deserializes binary data (in protobuf wire format) from the
3295
- * given reader into the given message object.
3296
- * @param {!proto.GetListDeliveryOrderResponse} msg The message object to deserialize into.
3297
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3298
- * @return {!proto.GetListDeliveryOrderResponse}
3299
- */
3300
- proto.GetListDeliveryOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
3301
- while (reader.nextField()) {
3302
- if (reader.isEndGroup()) {
3303
- break;
3304
- }
3305
- var field = reader.getFieldNumber();
3306
- switch (field) {
3307
- case 1:
3308
- var value = new prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder;
3309
- reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.deserializeBinaryFromReader);
3310
- msg.addDeliveryOrders(value);
3311
- break;
3312
- case 2:
3313
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3314
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3315
- msg.setMeta(value);
3316
- break;
3317
- default:
3318
- reader.skipField();
3319
- break;
3320
- }
3321
- }
3322
- return msg;
3323
- };
3324
-
3325
-
3326
- /**
3327
- * Serializes the message to binary data (in protobuf wire format).
3328
- * @return {!Uint8Array}
3329
- */
3330
- proto.GetListDeliveryOrderResponse.prototype.serializeBinary = function() {
3331
- var writer = new jspb.BinaryWriter();
3332
- proto.GetListDeliveryOrderResponse.serializeBinaryToWriter(this, writer);
3333
- return writer.getResultBuffer();
3334
- };
3335
-
3336
-
3337
- /**
3338
- * Serializes the given message to binary data (in protobuf wire
3339
- * format), writing to the given BinaryWriter.
3340
- * @param {!proto.GetListDeliveryOrderResponse} message
3341
- * @param {!jspb.BinaryWriter} writer
3342
- * @suppress {unusedLocalVariables} f is only used for nested messages
3343
- */
3344
- proto.GetListDeliveryOrderResponse.serializeBinaryToWriter = function(message, writer) {
3345
- var f = undefined;
3346
- f = message.getDeliveryOrdersList();
3347
- if (f.length > 0) {
3348
- writer.writeRepeatedMessage(
3349
- 1,
3350
- f,
3351
- prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.serializeBinaryToWriter
3352
- );
3353
- }
3354
- f = message.getMeta();
3355
- if (f != null) {
3356
- writer.writeMessage(
3357
- 2,
3358
- f,
3359
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3360
- );
3361
- }
3362
- };
3363
-
3364
-
3365
- /**
3366
- * repeated DeliveryOrder delivery_orders = 1;
3367
- * @return {!Array<!proto.DeliveryOrder>}
3368
- */
3369
- proto.GetListDeliveryOrderResponse.prototype.getDeliveryOrdersList = function() {
3370
- return /** @type{!Array<!proto.DeliveryOrder>} */ (
3371
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder, 1));
3372
- };
3373
-
3374
-
3375
- /**
3376
- * @param {!Array<!proto.DeliveryOrder>} value
3377
- * @return {!proto.GetListDeliveryOrderResponse} returns this
3378
- */
3379
- proto.GetListDeliveryOrderResponse.prototype.setDeliveryOrdersList = function(value) {
3380
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3381
- };
3382
-
3383
-
3384
- /**
3385
- * @param {!proto.DeliveryOrder=} opt_value
3386
- * @param {number=} opt_index
3387
- * @return {!proto.DeliveryOrder}
3388
- */
3389
- proto.GetListDeliveryOrderResponse.prototype.addDeliveryOrders = function(opt_value, opt_index) {
3390
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.DeliveryOrder, opt_index);
3391
- };
3392
-
3393
-
3394
- /**
3395
- * Clears the list making it empty but non-null.
3396
- * @return {!proto.GetListDeliveryOrderResponse} returns this
3397
- */
3398
- proto.GetListDeliveryOrderResponse.prototype.clearDeliveryOrdersList = function() {
3399
- return this.setDeliveryOrdersList([]);
3400
- };
3401
-
3402
-
3403
- /**
3404
- * optional prisca.v1.global.meta.Meta meta = 2;
3405
- * @return {?proto.prisca.v1.global.meta.Meta}
3406
- */
3407
- proto.GetListDeliveryOrderResponse.prototype.getMeta = function() {
3408
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3409
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3410
- };
3411
-
3412
-
3413
- /**
3414
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3415
- * @return {!proto.GetListDeliveryOrderResponse} returns this
3416
- */
3417
- proto.GetListDeliveryOrderResponse.prototype.setMeta = function(value) {
3418
- return jspb.Message.setWrapperField(this, 2, value);
3419
- };
3420
-
3421
-
3422
- /**
3423
- * Clears the message field making it undefined.
3424
- * @return {!proto.GetListDeliveryOrderResponse} returns this
3425
- */
3426
- proto.GetListDeliveryOrderResponse.prototype.clearMeta = function() {
3427
- return this.setMeta(undefined);
3428
- };
3429
-
3430
-
3431
- /**
3432
- * Returns whether this field is set.
3433
- * @return {boolean}
3434
- */
3435
- proto.GetListDeliveryOrderResponse.prototype.hasMeta = function() {
3436
- return jspb.Message.getField(this, 2) != null;
3437
- };
3438
-
3439
-
3440
-
3441
- /**
3442
- * List of repeated fields within this message type.
3443
- * @private {!Array<number>}
3444
- * @const
3445
- */
3446
- proto.DeleteDeliveryOrderResponse.repeatedFields_ = [1];
3447
-
3448
-
3449
-
3450
- if (jspb.Message.GENERATE_TO_OBJECT) {
3451
- /**
3452
- * Creates an object representation of this proto.
3453
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3454
- * Optional fields that are not set will be set to undefined.
3455
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3456
- * For the list of reserved names please see:
3457
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3458
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3459
- * JSPB instance for transitional soy proto support:
3460
- * http://goto/soy-param-migration
3461
- * @return {!Object}
3462
- */
3463
- proto.DeleteDeliveryOrderResponse.prototype.toObject = function(opt_includeInstance) {
3464
- return proto.DeleteDeliveryOrderResponse.toObject(opt_includeInstance, this);
3465
- };
3466
-
3467
-
3468
- /**
3469
- * Static version of the {@see toObject} method.
3470
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3471
- * the JSPB instance for transitional soy proto support:
3472
- * http://goto/soy-param-migration
3473
- * @param {!proto.DeleteDeliveryOrderResponse} msg The msg instance to transform.
3474
- * @return {!Object}
3475
- * @suppress {unusedLocalVariables} f is only used for nested messages
3476
- */
3477
- proto.DeleteDeliveryOrderResponse.toObject = function(includeInstance, msg) {
3478
- var f, obj = {
3479
- referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3480
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3481
- };
3482
-
3483
- if (includeInstance) {
3484
- obj.$jspbMessageInstance = msg;
3485
- }
3486
- return obj;
3487
- };
3488
- }
3489
-
3490
-
3491
- /**
3492
- * Deserializes binary data (in protobuf wire format).
3493
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3494
- * @return {!proto.DeleteDeliveryOrderResponse}
3495
- */
3496
- proto.DeleteDeliveryOrderResponse.deserializeBinary = function(bytes) {
3497
- var reader = new jspb.BinaryReader(bytes);
3498
- var msg = new proto.DeleteDeliveryOrderResponse;
3499
- return proto.DeleteDeliveryOrderResponse.deserializeBinaryFromReader(msg, reader);
3500
- };
3501
-
3502
-
3503
- /**
3504
- * Deserializes binary data (in protobuf wire format) from the
3505
- * given reader into the given message object.
3506
- * @param {!proto.DeleteDeliveryOrderResponse} msg The message object to deserialize into.
3507
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3508
- * @return {!proto.DeleteDeliveryOrderResponse}
3509
- */
3510
- proto.DeleteDeliveryOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
3511
- while (reader.nextField()) {
3512
- if (reader.isEndGroup()) {
3513
- break;
3514
- }
3515
- var field = reader.getFieldNumber();
3516
- switch (field) {
3517
- case 1:
3518
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3519
- msg.addReferenceIds(value);
3520
- break;
3521
- case 2:
3522
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3523
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3524
- msg.setMeta(value);
3525
- break;
3526
- default:
3527
- reader.skipField();
3528
- break;
3529
- }
3530
- }
3531
- return msg;
3532
- };
3533
-
3534
-
3535
- /**
3536
- * Serializes the message to binary data (in protobuf wire format).
3537
- * @return {!Uint8Array}
3538
- */
3539
- proto.DeleteDeliveryOrderResponse.prototype.serializeBinary = function() {
3540
- var writer = new jspb.BinaryWriter();
3541
- proto.DeleteDeliveryOrderResponse.serializeBinaryToWriter(this, writer);
3542
- return writer.getResultBuffer();
3543
- };
3544
-
3545
-
3546
- /**
3547
- * Serializes the given message to binary data (in protobuf wire
3548
- * format), writing to the given BinaryWriter.
3549
- * @param {!proto.DeleteDeliveryOrderResponse} message
3550
- * @param {!jspb.BinaryWriter} writer
3551
- * @suppress {unusedLocalVariables} f is only used for nested messages
3552
- */
3553
- proto.DeleteDeliveryOrderResponse.serializeBinaryToWriter = function(message, writer) {
3554
- var f = undefined;
3555
- f = message.getReferenceIdsList();
3556
- if (f.length > 0) {
3557
- writer.writeRepeatedString(
3558
- 1,
3559
- f
3560
- );
3561
- }
3562
- f = message.getMeta();
3563
- if (f != null) {
3564
- writer.writeMessage(
3565
- 2,
3566
- f,
3567
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3568
- );
3569
- }
3570
- };
3571
-
3572
-
3573
- /**
3574
- * repeated string reference_ids = 1;
3575
- * @return {!Array<string>}
3576
- */
3577
- proto.DeleteDeliveryOrderResponse.prototype.getReferenceIdsList = function() {
3578
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3579
- };
3580
-
3581
-
3582
- /**
3583
- * @param {!Array<string>} value
3584
- * @return {!proto.DeleteDeliveryOrderResponse} returns this
3585
- */
3586
- proto.DeleteDeliveryOrderResponse.prototype.setReferenceIdsList = function(value) {
3587
- return jspb.Message.setField(this, 1, value || []);
3588
- };
3589
-
3590
-
3591
- /**
3592
- * @param {string} value
3593
- * @param {number=} opt_index
3594
- * @return {!proto.DeleteDeliveryOrderResponse} returns this
3595
- */
3596
- proto.DeleteDeliveryOrderResponse.prototype.addReferenceIds = function(value, opt_index) {
3597
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3598
- };
3599
-
3600
-
3601
- /**
3602
- * Clears the list making it empty but non-null.
3603
- * @return {!proto.DeleteDeliveryOrderResponse} returns this
3604
- */
3605
- proto.DeleteDeliveryOrderResponse.prototype.clearReferenceIdsList = function() {
3606
- return this.setReferenceIdsList([]);
3607
- };
3608
-
3609
-
3610
- /**
3611
- * optional prisca.v1.global.meta.Meta meta = 2;
3612
- * @return {?proto.prisca.v1.global.meta.Meta}
3613
- */
3614
- proto.DeleteDeliveryOrderResponse.prototype.getMeta = function() {
3615
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3616
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3617
- };
3618
-
3619
-
3620
- /**
3621
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3622
- * @return {!proto.DeleteDeliveryOrderResponse} returns this
3623
- */
3624
- proto.DeleteDeliveryOrderResponse.prototype.setMeta = function(value) {
3625
- return jspb.Message.setWrapperField(this, 2, value);
3626
- };
3627
-
3628
-
3629
- /**
3630
- * Clears the message field making it undefined.
3631
- * @return {!proto.DeleteDeliveryOrderResponse} returns this
3632
- */
3633
- proto.DeleteDeliveryOrderResponse.prototype.clearMeta = function() {
3634
- return this.setMeta(undefined);
3635
- };
3636
-
3637
-
3638
- /**
3639
- * Returns whether this field is set.
3640
- * @return {boolean}
3641
- */
3642
- proto.DeleteDeliveryOrderResponse.prototype.hasMeta = function() {
3643
- return jspb.Message.getField(this, 2) != null;
3644
- };
3645
-
3646
-
3647
- goog.object.extend(exports, proto);