@aldiokta/protocgen 1.1.45 → 1.1.46

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_grpc_pb.js +199 -0
  3. package/prisca/v1/account_assignment/account_assignment_pb.js +2720 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2983 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +350 -0
  7. package/prisca/v1/bidding/bidding_pb.js +8694 -0
  8. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
  9. package/prisca/v1/chart_of_account/chart_of_account_pb.js +2953 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +577 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +11084 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +523 -0
  13. package/prisca/v1/core/auth/auth_pb.js +5833 -0
  14. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
  15. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1726 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3094 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2516 -0
  20. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  21. package/prisca/v1/core/department_material/department_material_pb.js +2161 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4329 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +66 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +1136 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +177 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2898 -0
  28. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
  29. package/prisca/v1/core/item_transaction/item_transaction_pb.js +6038 -0
  30. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  31. package/prisca/v1/core/job_grade/job_grade_pb.js +2651 -0
  32. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  33. package/prisca/v1/core/job_position/job_position_pb.js +3808 -0
  34. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  35. package/prisca/v1/core/job_title/job_title_pb.js +3004 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +78 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +2503 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +222 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3801 -0
  40. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  41. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2606 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +11262 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4226 -0
  46. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  47. package/prisca/v1/core/material_group/material_group_pb.js +2822 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +182 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +3098 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2658 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +890 -0
  54. package/prisca/v1/core/messaging/notification_grpc_pb.js +331 -0
  55. package/prisca/v1/core/messaging/notification_pb.js +4775 -0
  56. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  57. package/prisca/v1/core/number_range/number_range_pb.js +2972 -0
  58. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  59. package/prisca/v1/core/organization/organization_pb.js +3078 -0
  60. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  61. package/prisca/v1/core/organization_level/organization_level_pb.js +2591 -0
  62. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +179 -0
  63. package/prisca/v1/core/price_condition/price_condition_pb.js +3175 -0
  64. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  65. package/prisca/v1/core/procurement/procurement_pb.js +1675 -0
  66. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  67. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +200 -0
  68. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  69. package/prisca/v1/core/report/report_pb.js +2816 -0
  70. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  71. package/prisca/v1/core/report/user_report_pb.js +2446 -0
  72. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  73. package/prisca/v1/core/tax_code/tax_code_pb.js +2778 -0
  74. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +177 -0
  75. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2506 -0
  76. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +652 -0
  77. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +11953 -0
  78. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  79. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2874 -0
  80. package/prisca/v1/core/users/users_grpc_pb.js +78 -0
  81. package/prisca/v1/core/users/users_pb.js +1647 -0
  82. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  83. package/prisca/v1/core/work_location/work_location_pb.js +4018 -0
  84. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  85. package/prisca/v1/core/workflow/workflow_pb.js +7631 -0
  86. package/prisca/v1/core/workspace/workspace_grpc_pb.js +101 -0
  87. package/prisca/v1/core/workspace/workspace_pb.js +1381 -0
  88. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
  89. package/prisca/v1/delivery_order/delivery_order_pb.js +3647 -0
  90. package/prisca/v1/document_type/document_type_grpc_pb.js +200 -0
  91. package/prisca/v1/document_type/document_type_pb.js +3004 -0
  92. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  93. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3322 -0
  94. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  95. package/prisca/v1/global/meta/meta_pb.js +1173 -0
  96. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +250 -0
  97. package/prisca/v1/good_receipt/good_receipt_pb.js +3945 -0
  98. package/prisca/v1/invoice/invoice_grpc_pb.js +273 -0
  99. package/prisca/v1/invoice/invoice_pb.js +5664 -0
  100. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +263 -0
  101. package/prisca/v1/purchase_order/purchase_order_pb.js +9839 -0
  102. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +600 -0
  103. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +10795 -0
  104. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  105. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2921 -0
  106. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +178 -0
  107. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2418 -0
  108. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +179 -0
  109. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2584 -0
  110. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  111. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2537 -0
  112. package/prisca/v1/quotation/quotation_grpc_pb.js +240 -0
  113. package/prisca/v1/quotation/quotation_pb.js +4167 -0
  114. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +281 -0
  115. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +7042 -0
  116. package/prisca/v1/valuation/valuation_grpc_pb.js +366 -0
  117. package/prisca/v1/valuation/valuation_pb.js +7806 -0
  118. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +290 -0
  119. package/prisca/v1/vendor_domain/vendor_domain_pb.js +14714 -0
  120. package/prisca/v1/account_assignment/account_assignment.proto +0 -81
  121. package/prisca/v1/account_group/account_group.proto +0 -88
  122. package/prisca/v1/bidding/bidding.proto +0 -251
  123. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -89
  124. package/prisca/v1/core/access_manager/access_manager.proto +0 -328
  125. package/prisca/v1/core/auth/auth.proto +0 -185
  126. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -62
  127. package/prisca/v1/core/company/company.proto +0 -92
  128. package/prisca/v1/core/currency/currency.proto +0 -76
  129. package/prisca/v1/core/department_material/department_material.proto +0 -69
  130. package/prisca/v1/core/employee/employee.proto +0 -129
  131. package/prisca/v1/core/file_upload/file_upload.proto +0 -41
  132. package/prisca/v1/core/incoterm/incoterm.proto +0 -85
  133. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -188
  134. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  135. package/prisca/v1/core/job_position/job_position.proto +0 -113
  136. package/prisca/v1/core/job_title/job_title.proto +0 -89
  137. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -94
  138. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -113
  139. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  140. package/prisca/v1/core/location/location.proto +0 -295
  141. package/prisca/v1/core/material/material.proto +0 -131
  142. package/prisca/v1/core/material_group/material_group.proto +0 -85
  143. package/prisca/v1/core/material_type/material_type.proto +0 -95
  144. package/prisca/v1/core/messaging/email_template.proto +0 -77
  145. package/prisca/v1/core/messaging/messaging.proto +0 -29
  146. package/prisca/v1/core/messaging/notification.proto +0 -144
  147. package/prisca/v1/core/number_range/number_range.proto +0 -89
  148. package/prisca/v1/core/organization/organization.proto +0 -94
  149. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  150. package/prisca/v1/core/price_condition/price_condition.proto +0 -97
  151. package/prisca/v1/core/procurement/procurement.proto +0 -54
  152. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  153. package/prisca/v1/core/report/report.proto +0 -90
  154. package/prisca/v1/core/report/user_report.proto +0 -74
  155. package/prisca/v1/core/tax_code/tax_code.proto +0 -82
  156. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -74
  157. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -366
  158. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -89
  159. package/prisca/v1/core/users/users.proto +0 -55
  160. package/prisca/v1/core/work_location/work_location.proto +0 -122
  161. package/prisca/v1/core/workflow/workflow.proto +0 -220
  162. package/prisca/v1/core/workspace/workspace.proto +0 -48
  163. package/prisca/v1/delivery_order/delivery_order.proto +0 -116
  164. package/prisca/v1/document_type/document_type.proto +0 -89
  165. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -100
  166. package/prisca/v1/global/meta/meta.proto +0 -57
  167. package/prisca/v1/good_receipt/good_receipt.proto +0 -118
  168. package/prisca/v1/invoice/invoice.proto +0 -170
  169. package/prisca/v1/purchase_order/purchase_order.proto +0 -292
  170. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -327
  171. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -89
  172. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -77
  173. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -81
  174. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  175. package/prisca/v1/quotation/quotation.proto +0 -135
  176. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -203
  177. package/prisca/v1/valuation/valuation.proto +0 -223
  178. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -485
@@ -0,0 +1,1675 @@
1
+ // source: prisca/v1/core/procurement/procurement.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
+ goog.exportSymbol('proto.CreatePRRequest', null, global);
19
+ goog.exportSymbol('proto.GetPRRequest', null, global);
20
+ goog.exportSymbol('proto.GetSinglePRRequest', null, global);
21
+ goog.exportSymbol('proto.PRDetailResponse', null, global);
22
+ goog.exportSymbol('proto.PRListResponse', null, global);
23
+ goog.exportSymbol('proto.ResponseMeta', null, global);
24
+ goog.exportSymbol('proto.SuccessResponse', null, global);
25
+ goog.exportSymbol('proto.UpdatePRRequest', null, global);
26
+ /**
27
+ * Generated by JsPbCodeGenerator.
28
+ * @param {Array=} opt_data Optional initial data array, typically from a
29
+ * server response, or constructed directly in Javascript. The array is used
30
+ * in place and becomes part of the constructed object. It is not cloned.
31
+ * If no data is provided, the constructed object will be empty, but still
32
+ * valid.
33
+ * @extends {jspb.Message}
34
+ * @constructor
35
+ */
36
+ proto.ResponseMeta = function(opt_data) {
37
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
38
+ };
39
+ goog.inherits(proto.ResponseMeta, jspb.Message);
40
+ if (goog.DEBUG && !COMPILED) {
41
+ /**
42
+ * @public
43
+ * @override
44
+ */
45
+ proto.ResponseMeta.displayName = 'proto.ResponseMeta';
46
+ }
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.GetPRRequest = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.GetPRRequest, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.GetPRRequest.displayName = 'proto.GetPRRequest';
67
+ }
68
+ /**
69
+ * Generated by JsPbCodeGenerator.
70
+ * @param {Array=} opt_data Optional initial data array, typically from a
71
+ * server response, or constructed directly in Javascript. The array is used
72
+ * in place and becomes part of the constructed object. It is not cloned.
73
+ * If no data is provided, the constructed object will be empty, but still
74
+ * valid.
75
+ * @extends {jspb.Message}
76
+ * @constructor
77
+ */
78
+ proto.CreatePRRequest = function(opt_data) {
79
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ };
81
+ goog.inherits(proto.CreatePRRequest, jspb.Message);
82
+ if (goog.DEBUG && !COMPILED) {
83
+ /**
84
+ * @public
85
+ * @override
86
+ */
87
+ proto.CreatePRRequest.displayName = 'proto.CreatePRRequest';
88
+ }
89
+ /**
90
+ * Generated by JsPbCodeGenerator.
91
+ * @param {Array=} opt_data Optional initial data array, typically from a
92
+ * server response, or constructed directly in Javascript. The array is used
93
+ * in place and becomes part of the constructed object. It is not cloned.
94
+ * If no data is provided, the constructed object will be empty, but still
95
+ * valid.
96
+ * @extends {jspb.Message}
97
+ * @constructor
98
+ */
99
+ proto.UpdatePRRequest = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
+ };
102
+ goog.inherits(proto.UpdatePRRequest, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.UpdatePRRequest.displayName = 'proto.UpdatePRRequest';
109
+ }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.GetSinglePRRequest = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.GetSinglePRRequest, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.GetSinglePRRequest.displayName = 'proto.GetSinglePRRequest';
130
+ }
131
+ /**
132
+ * Generated by JsPbCodeGenerator.
133
+ * @param {Array=} opt_data Optional initial data array, typically from a
134
+ * server response, or constructed directly in Javascript. The array is used
135
+ * in place and becomes part of the constructed object. It is not cloned.
136
+ * If no data is provided, the constructed object will be empty, but still
137
+ * valid.
138
+ * @extends {jspb.Message}
139
+ * @constructor
140
+ */
141
+ proto.PRDetailResponse = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
143
+ };
144
+ goog.inherits(proto.PRDetailResponse, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.PRDetailResponse.displayName = 'proto.PRDetailResponse';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.PRListResponse = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.PRListResponse.repeatedFields_, null);
164
+ };
165
+ goog.inherits(proto.PRListResponse, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.PRListResponse.displayName = 'proto.PRListResponse';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.SuccessResponse = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.SuccessResponse, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.SuccessResponse.displayName = 'proto.SuccessResponse';
193
+ }
194
+
195
+
196
+
197
+ if (jspb.Message.GENERATE_TO_OBJECT) {
198
+ /**
199
+ * Creates an object representation of this proto.
200
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
201
+ * Optional fields that are not set will be set to undefined.
202
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
203
+ * For the list of reserved names please see:
204
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
205
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
206
+ * JSPB instance for transitional soy proto support:
207
+ * http://goto/soy-param-migration
208
+ * @return {!Object}
209
+ */
210
+ proto.ResponseMeta.prototype.toObject = function(opt_includeInstance) {
211
+ return proto.ResponseMeta.toObject(opt_includeInstance, this);
212
+ };
213
+
214
+
215
+ /**
216
+ * Static version of the {@see toObject} method.
217
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
218
+ * the JSPB instance for transitional soy proto support:
219
+ * http://goto/soy-param-migration
220
+ * @param {!proto.ResponseMeta} msg The msg instance to transform.
221
+ * @return {!Object}
222
+ * @suppress {unusedLocalVariables} f is only used for nested messages
223
+ */
224
+ proto.ResponseMeta.toObject = function(includeInstance, msg) {
225
+ var f, obj = {
226
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
227
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
228
+ total: jspb.Message.getFieldWithDefault(msg, 3, 0)
229
+ };
230
+
231
+ if (includeInstance) {
232
+ obj.$jspbMessageInstance = msg;
233
+ }
234
+ return obj;
235
+ };
236
+ }
237
+
238
+
239
+ /**
240
+ * Deserializes binary data (in protobuf wire format).
241
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
242
+ * @return {!proto.ResponseMeta}
243
+ */
244
+ proto.ResponseMeta.deserializeBinary = function(bytes) {
245
+ var reader = new jspb.BinaryReader(bytes);
246
+ var msg = new proto.ResponseMeta;
247
+ return proto.ResponseMeta.deserializeBinaryFromReader(msg, reader);
248
+ };
249
+
250
+
251
+ /**
252
+ * Deserializes binary data (in protobuf wire format) from the
253
+ * given reader into the given message object.
254
+ * @param {!proto.ResponseMeta} msg The message object to deserialize into.
255
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
256
+ * @return {!proto.ResponseMeta}
257
+ */
258
+ proto.ResponseMeta.deserializeBinaryFromReader = function(msg, reader) {
259
+ while (reader.nextField()) {
260
+ if (reader.isEndGroup()) {
261
+ break;
262
+ }
263
+ var field = reader.getFieldNumber();
264
+ switch (field) {
265
+ case 1:
266
+ var value = /** @type {number} */ (reader.readInt64());
267
+ msg.setLimit(value);
268
+ break;
269
+ case 2:
270
+ var value = /** @type {number} */ (reader.readInt64());
271
+ msg.setOffset(value);
272
+ break;
273
+ case 3:
274
+ var value = /** @type {number} */ (reader.readInt64());
275
+ msg.setTotal(value);
276
+ break;
277
+ default:
278
+ reader.skipField();
279
+ break;
280
+ }
281
+ }
282
+ return msg;
283
+ };
284
+
285
+
286
+ /**
287
+ * Serializes the message to binary data (in protobuf wire format).
288
+ * @return {!Uint8Array}
289
+ */
290
+ proto.ResponseMeta.prototype.serializeBinary = function() {
291
+ var writer = new jspb.BinaryWriter();
292
+ proto.ResponseMeta.serializeBinaryToWriter(this, writer);
293
+ return writer.getResultBuffer();
294
+ };
295
+
296
+
297
+ /**
298
+ * Serializes the given message to binary data (in protobuf wire
299
+ * format), writing to the given BinaryWriter.
300
+ * @param {!proto.ResponseMeta} message
301
+ * @param {!jspb.BinaryWriter} writer
302
+ * @suppress {unusedLocalVariables} f is only used for nested messages
303
+ */
304
+ proto.ResponseMeta.serializeBinaryToWriter = function(message, writer) {
305
+ var f = undefined;
306
+ f = message.getLimit();
307
+ if (f !== 0) {
308
+ writer.writeInt64(
309
+ 1,
310
+ f
311
+ );
312
+ }
313
+ f = message.getOffset();
314
+ if (f !== 0) {
315
+ writer.writeInt64(
316
+ 2,
317
+ f
318
+ );
319
+ }
320
+ f = message.getTotal();
321
+ if (f !== 0) {
322
+ writer.writeInt64(
323
+ 3,
324
+ f
325
+ );
326
+ }
327
+ };
328
+
329
+
330
+ /**
331
+ * optional int64 limit = 1;
332
+ * @return {number}
333
+ */
334
+ proto.ResponseMeta.prototype.getLimit = function() {
335
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
336
+ };
337
+
338
+
339
+ /**
340
+ * @param {number} value
341
+ * @return {!proto.ResponseMeta} returns this
342
+ */
343
+ proto.ResponseMeta.prototype.setLimit = function(value) {
344
+ return jspb.Message.setProto3IntField(this, 1, value);
345
+ };
346
+
347
+
348
+ /**
349
+ * optional int64 offset = 2;
350
+ * @return {number}
351
+ */
352
+ proto.ResponseMeta.prototype.getOffset = function() {
353
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
354
+ };
355
+
356
+
357
+ /**
358
+ * @param {number} value
359
+ * @return {!proto.ResponseMeta} returns this
360
+ */
361
+ proto.ResponseMeta.prototype.setOffset = function(value) {
362
+ return jspb.Message.setProto3IntField(this, 2, value);
363
+ };
364
+
365
+
366
+ /**
367
+ * optional int64 Total = 3;
368
+ * @return {number}
369
+ */
370
+ proto.ResponseMeta.prototype.getTotal = function() {
371
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
372
+ };
373
+
374
+
375
+ /**
376
+ * @param {number} value
377
+ * @return {!proto.ResponseMeta} returns this
378
+ */
379
+ proto.ResponseMeta.prototype.setTotal = function(value) {
380
+ return jspb.Message.setProto3IntField(this, 3, value);
381
+ };
382
+
383
+
384
+
385
+
386
+
387
+ if (jspb.Message.GENERATE_TO_OBJECT) {
388
+ /**
389
+ * Creates an object representation of this proto.
390
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
391
+ * Optional fields that are not set will be set to undefined.
392
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
393
+ * For the list of reserved names please see:
394
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
395
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
396
+ * JSPB instance for transitional soy proto support:
397
+ * http://goto/soy-param-migration
398
+ * @return {!Object}
399
+ */
400
+ proto.GetPRRequest.prototype.toObject = function(opt_includeInstance) {
401
+ return proto.GetPRRequest.toObject(opt_includeInstance, this);
402
+ };
403
+
404
+
405
+ /**
406
+ * Static version of the {@see toObject} method.
407
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
408
+ * the JSPB instance for transitional soy proto support:
409
+ * http://goto/soy-param-migration
410
+ * @param {!proto.GetPRRequest} msg The msg instance to transform.
411
+ * @return {!Object}
412
+ * @suppress {unusedLocalVariables} f is only used for nested messages
413
+ */
414
+ proto.GetPRRequest.toObject = function(includeInstance, msg) {
415
+ var f, obj = {
416
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
417
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
418
+ prnumber: jspb.Message.getFieldWithDefault(msg, 3, "")
419
+ };
420
+
421
+ if (includeInstance) {
422
+ obj.$jspbMessageInstance = msg;
423
+ }
424
+ return obj;
425
+ };
426
+ }
427
+
428
+
429
+ /**
430
+ * Deserializes binary data (in protobuf wire format).
431
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
432
+ * @return {!proto.GetPRRequest}
433
+ */
434
+ proto.GetPRRequest.deserializeBinary = function(bytes) {
435
+ var reader = new jspb.BinaryReader(bytes);
436
+ var msg = new proto.GetPRRequest;
437
+ return proto.GetPRRequest.deserializeBinaryFromReader(msg, reader);
438
+ };
439
+
440
+
441
+ /**
442
+ * Deserializes binary data (in protobuf wire format) from the
443
+ * given reader into the given message object.
444
+ * @param {!proto.GetPRRequest} msg The message object to deserialize into.
445
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
446
+ * @return {!proto.GetPRRequest}
447
+ */
448
+ proto.GetPRRequest.deserializeBinaryFromReader = function(msg, reader) {
449
+ while (reader.nextField()) {
450
+ if (reader.isEndGroup()) {
451
+ break;
452
+ }
453
+ var field = reader.getFieldNumber();
454
+ switch (field) {
455
+ case 1:
456
+ var value = /** @type {number} */ (reader.readInt64());
457
+ msg.setLimit(value);
458
+ break;
459
+ case 2:
460
+ var value = /** @type {number} */ (reader.readInt64());
461
+ msg.setOffset(value);
462
+ break;
463
+ case 3:
464
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
465
+ msg.setPrnumber(value);
466
+ break;
467
+ default:
468
+ reader.skipField();
469
+ break;
470
+ }
471
+ }
472
+ return msg;
473
+ };
474
+
475
+
476
+ /**
477
+ * Serializes the message to binary data (in protobuf wire format).
478
+ * @return {!Uint8Array}
479
+ */
480
+ proto.GetPRRequest.prototype.serializeBinary = function() {
481
+ var writer = new jspb.BinaryWriter();
482
+ proto.GetPRRequest.serializeBinaryToWriter(this, writer);
483
+ return writer.getResultBuffer();
484
+ };
485
+
486
+
487
+ /**
488
+ * Serializes the given message to binary data (in protobuf wire
489
+ * format), writing to the given BinaryWriter.
490
+ * @param {!proto.GetPRRequest} message
491
+ * @param {!jspb.BinaryWriter} writer
492
+ * @suppress {unusedLocalVariables} f is only used for nested messages
493
+ */
494
+ proto.GetPRRequest.serializeBinaryToWriter = function(message, writer) {
495
+ var f = undefined;
496
+ f = message.getLimit();
497
+ if (f !== 0) {
498
+ writer.writeInt64(
499
+ 1,
500
+ f
501
+ );
502
+ }
503
+ f = message.getOffset();
504
+ if (f !== 0) {
505
+ writer.writeInt64(
506
+ 2,
507
+ f
508
+ );
509
+ }
510
+ f = message.getPrnumber();
511
+ if (f.length > 0) {
512
+ writer.writeString(
513
+ 3,
514
+ f
515
+ );
516
+ }
517
+ };
518
+
519
+
520
+ /**
521
+ * optional int64 limit = 1;
522
+ * @return {number}
523
+ */
524
+ proto.GetPRRequest.prototype.getLimit = function() {
525
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
526
+ };
527
+
528
+
529
+ /**
530
+ * @param {number} value
531
+ * @return {!proto.GetPRRequest} returns this
532
+ */
533
+ proto.GetPRRequest.prototype.setLimit = function(value) {
534
+ return jspb.Message.setProto3IntField(this, 1, value);
535
+ };
536
+
537
+
538
+ /**
539
+ * optional int64 offset = 2;
540
+ * @return {number}
541
+ */
542
+ proto.GetPRRequest.prototype.getOffset = function() {
543
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
544
+ };
545
+
546
+
547
+ /**
548
+ * @param {number} value
549
+ * @return {!proto.GetPRRequest} returns this
550
+ */
551
+ proto.GetPRRequest.prototype.setOffset = function(value) {
552
+ return jspb.Message.setProto3IntField(this, 2, value);
553
+ };
554
+
555
+
556
+ /**
557
+ * optional string PrNumber = 3;
558
+ * @return {string}
559
+ */
560
+ proto.GetPRRequest.prototype.getPrnumber = function() {
561
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
562
+ };
563
+
564
+
565
+ /**
566
+ * @param {string} value
567
+ * @return {!proto.GetPRRequest} returns this
568
+ */
569
+ proto.GetPRRequest.prototype.setPrnumber = function(value) {
570
+ return jspb.Message.setProto3StringField(this, 3, value);
571
+ };
572
+
573
+
574
+
575
+
576
+
577
+ if (jspb.Message.GENERATE_TO_OBJECT) {
578
+ /**
579
+ * Creates an object representation of this proto.
580
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
581
+ * Optional fields that are not set will be set to undefined.
582
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
583
+ * For the list of reserved names please see:
584
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
585
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
586
+ * JSPB instance for transitional soy proto support:
587
+ * http://goto/soy-param-migration
588
+ * @return {!Object}
589
+ */
590
+ proto.CreatePRRequest.prototype.toObject = function(opt_includeInstance) {
591
+ return proto.CreatePRRequest.toObject(opt_includeInstance, this);
592
+ };
593
+
594
+
595
+ /**
596
+ * Static version of the {@see toObject} method.
597
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
598
+ * the JSPB instance for transitional soy proto support:
599
+ * http://goto/soy-param-migration
600
+ * @param {!proto.CreatePRRequest} msg The msg instance to transform.
601
+ * @return {!Object}
602
+ * @suppress {unusedLocalVariables} f is only used for nested messages
603
+ */
604
+ proto.CreatePRRequest.toObject = function(includeInstance, msg) {
605
+ var f, obj = {
606
+ prnumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
607
+ title: jspb.Message.getFieldWithDefault(msg, 2, "")
608
+ };
609
+
610
+ if (includeInstance) {
611
+ obj.$jspbMessageInstance = msg;
612
+ }
613
+ return obj;
614
+ };
615
+ }
616
+
617
+
618
+ /**
619
+ * Deserializes binary data (in protobuf wire format).
620
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
621
+ * @return {!proto.CreatePRRequest}
622
+ */
623
+ proto.CreatePRRequest.deserializeBinary = function(bytes) {
624
+ var reader = new jspb.BinaryReader(bytes);
625
+ var msg = new proto.CreatePRRequest;
626
+ return proto.CreatePRRequest.deserializeBinaryFromReader(msg, reader);
627
+ };
628
+
629
+
630
+ /**
631
+ * Deserializes binary data (in protobuf wire format) from the
632
+ * given reader into the given message object.
633
+ * @param {!proto.CreatePRRequest} msg The message object to deserialize into.
634
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
635
+ * @return {!proto.CreatePRRequest}
636
+ */
637
+ proto.CreatePRRequest.deserializeBinaryFromReader = function(msg, reader) {
638
+ while (reader.nextField()) {
639
+ if (reader.isEndGroup()) {
640
+ break;
641
+ }
642
+ var field = reader.getFieldNumber();
643
+ switch (field) {
644
+ case 1:
645
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
646
+ msg.setPrnumber(value);
647
+ break;
648
+ case 2:
649
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
650
+ msg.setTitle(value);
651
+ break;
652
+ default:
653
+ reader.skipField();
654
+ break;
655
+ }
656
+ }
657
+ return msg;
658
+ };
659
+
660
+
661
+ /**
662
+ * Serializes the message to binary data (in protobuf wire format).
663
+ * @return {!Uint8Array}
664
+ */
665
+ proto.CreatePRRequest.prototype.serializeBinary = function() {
666
+ var writer = new jspb.BinaryWriter();
667
+ proto.CreatePRRequest.serializeBinaryToWriter(this, writer);
668
+ return writer.getResultBuffer();
669
+ };
670
+
671
+
672
+ /**
673
+ * Serializes the given message to binary data (in protobuf wire
674
+ * format), writing to the given BinaryWriter.
675
+ * @param {!proto.CreatePRRequest} message
676
+ * @param {!jspb.BinaryWriter} writer
677
+ * @suppress {unusedLocalVariables} f is only used for nested messages
678
+ */
679
+ proto.CreatePRRequest.serializeBinaryToWriter = function(message, writer) {
680
+ var f = undefined;
681
+ f = message.getPrnumber();
682
+ if (f.length > 0) {
683
+ writer.writeString(
684
+ 1,
685
+ f
686
+ );
687
+ }
688
+ f = message.getTitle();
689
+ if (f.length > 0) {
690
+ writer.writeString(
691
+ 2,
692
+ f
693
+ );
694
+ }
695
+ };
696
+
697
+
698
+ /**
699
+ * optional string PrNumber = 1;
700
+ * @return {string}
701
+ */
702
+ proto.CreatePRRequest.prototype.getPrnumber = function() {
703
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
704
+ };
705
+
706
+
707
+ /**
708
+ * @param {string} value
709
+ * @return {!proto.CreatePRRequest} returns this
710
+ */
711
+ proto.CreatePRRequest.prototype.setPrnumber = function(value) {
712
+ return jspb.Message.setProto3StringField(this, 1, value);
713
+ };
714
+
715
+
716
+ /**
717
+ * optional string Title = 2;
718
+ * @return {string}
719
+ */
720
+ proto.CreatePRRequest.prototype.getTitle = function() {
721
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
722
+ };
723
+
724
+
725
+ /**
726
+ * @param {string} value
727
+ * @return {!proto.CreatePRRequest} returns this
728
+ */
729
+ proto.CreatePRRequest.prototype.setTitle = function(value) {
730
+ return jspb.Message.setProto3StringField(this, 2, value);
731
+ };
732
+
733
+
734
+
735
+
736
+
737
+ if (jspb.Message.GENERATE_TO_OBJECT) {
738
+ /**
739
+ * Creates an object representation of this proto.
740
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
741
+ * Optional fields that are not set will be set to undefined.
742
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
743
+ * For the list of reserved names please see:
744
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
745
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
746
+ * JSPB instance for transitional soy proto support:
747
+ * http://goto/soy-param-migration
748
+ * @return {!Object}
749
+ */
750
+ proto.UpdatePRRequest.prototype.toObject = function(opt_includeInstance) {
751
+ return proto.UpdatePRRequest.toObject(opt_includeInstance, this);
752
+ };
753
+
754
+
755
+ /**
756
+ * Static version of the {@see toObject} method.
757
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
758
+ * the JSPB instance for transitional soy proto support:
759
+ * http://goto/soy-param-migration
760
+ * @param {!proto.UpdatePRRequest} msg The msg instance to transform.
761
+ * @return {!Object}
762
+ * @suppress {unusedLocalVariables} f is only used for nested messages
763
+ */
764
+ proto.UpdatePRRequest.toObject = function(includeInstance, msg) {
765
+ var f, obj = {
766
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
767
+ prnumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
768
+ title: jspb.Message.getFieldWithDefault(msg, 3, "")
769
+ };
770
+
771
+ if (includeInstance) {
772
+ obj.$jspbMessageInstance = msg;
773
+ }
774
+ return obj;
775
+ };
776
+ }
777
+
778
+
779
+ /**
780
+ * Deserializes binary data (in protobuf wire format).
781
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
782
+ * @return {!proto.UpdatePRRequest}
783
+ */
784
+ proto.UpdatePRRequest.deserializeBinary = function(bytes) {
785
+ var reader = new jspb.BinaryReader(bytes);
786
+ var msg = new proto.UpdatePRRequest;
787
+ return proto.UpdatePRRequest.deserializeBinaryFromReader(msg, reader);
788
+ };
789
+
790
+
791
+ /**
792
+ * Deserializes binary data (in protobuf wire format) from the
793
+ * given reader into the given message object.
794
+ * @param {!proto.UpdatePRRequest} msg The message object to deserialize into.
795
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
796
+ * @return {!proto.UpdatePRRequest}
797
+ */
798
+ proto.UpdatePRRequest.deserializeBinaryFromReader = function(msg, reader) {
799
+ while (reader.nextField()) {
800
+ if (reader.isEndGroup()) {
801
+ break;
802
+ }
803
+ var field = reader.getFieldNumber();
804
+ switch (field) {
805
+ case 1:
806
+ var value = /** @type {number} */ (reader.readInt64());
807
+ msg.setId(value);
808
+ break;
809
+ case 2:
810
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
811
+ msg.setPrnumber(value);
812
+ break;
813
+ case 3:
814
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
815
+ msg.setTitle(value);
816
+ break;
817
+ default:
818
+ reader.skipField();
819
+ break;
820
+ }
821
+ }
822
+ return msg;
823
+ };
824
+
825
+
826
+ /**
827
+ * Serializes the message to binary data (in protobuf wire format).
828
+ * @return {!Uint8Array}
829
+ */
830
+ proto.UpdatePRRequest.prototype.serializeBinary = function() {
831
+ var writer = new jspb.BinaryWriter();
832
+ proto.UpdatePRRequest.serializeBinaryToWriter(this, writer);
833
+ return writer.getResultBuffer();
834
+ };
835
+
836
+
837
+ /**
838
+ * Serializes the given message to binary data (in protobuf wire
839
+ * format), writing to the given BinaryWriter.
840
+ * @param {!proto.UpdatePRRequest} message
841
+ * @param {!jspb.BinaryWriter} writer
842
+ * @suppress {unusedLocalVariables} f is only used for nested messages
843
+ */
844
+ proto.UpdatePRRequest.serializeBinaryToWriter = function(message, writer) {
845
+ var f = undefined;
846
+ f = message.getId();
847
+ if (f !== 0) {
848
+ writer.writeInt64(
849
+ 1,
850
+ f
851
+ );
852
+ }
853
+ f = message.getPrnumber();
854
+ if (f.length > 0) {
855
+ writer.writeString(
856
+ 2,
857
+ f
858
+ );
859
+ }
860
+ f = message.getTitle();
861
+ if (f.length > 0) {
862
+ writer.writeString(
863
+ 3,
864
+ f
865
+ );
866
+ }
867
+ };
868
+
869
+
870
+ /**
871
+ * optional int64 Id = 1;
872
+ * @return {number}
873
+ */
874
+ proto.UpdatePRRequest.prototype.getId = function() {
875
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
876
+ };
877
+
878
+
879
+ /**
880
+ * @param {number} value
881
+ * @return {!proto.UpdatePRRequest} returns this
882
+ */
883
+ proto.UpdatePRRequest.prototype.setId = function(value) {
884
+ return jspb.Message.setProto3IntField(this, 1, value);
885
+ };
886
+
887
+
888
+ /**
889
+ * optional string PrNumber = 2;
890
+ * @return {string}
891
+ */
892
+ proto.UpdatePRRequest.prototype.getPrnumber = function() {
893
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
894
+ };
895
+
896
+
897
+ /**
898
+ * @param {string} value
899
+ * @return {!proto.UpdatePRRequest} returns this
900
+ */
901
+ proto.UpdatePRRequest.prototype.setPrnumber = function(value) {
902
+ return jspb.Message.setProto3StringField(this, 2, value);
903
+ };
904
+
905
+
906
+ /**
907
+ * optional string Title = 3;
908
+ * @return {string}
909
+ */
910
+ proto.UpdatePRRequest.prototype.getTitle = function() {
911
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
912
+ };
913
+
914
+
915
+ /**
916
+ * @param {string} value
917
+ * @return {!proto.UpdatePRRequest} returns this
918
+ */
919
+ proto.UpdatePRRequest.prototype.setTitle = function(value) {
920
+ return jspb.Message.setProto3StringField(this, 3, value);
921
+ };
922
+
923
+
924
+
925
+
926
+
927
+ if (jspb.Message.GENERATE_TO_OBJECT) {
928
+ /**
929
+ * Creates an object representation of this proto.
930
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
931
+ * Optional fields that are not set will be set to undefined.
932
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
933
+ * For the list of reserved names please see:
934
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
935
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
936
+ * JSPB instance for transitional soy proto support:
937
+ * http://goto/soy-param-migration
938
+ * @return {!Object}
939
+ */
940
+ proto.GetSinglePRRequest.prototype.toObject = function(opt_includeInstance) {
941
+ return proto.GetSinglePRRequest.toObject(opt_includeInstance, this);
942
+ };
943
+
944
+
945
+ /**
946
+ * Static version of the {@see toObject} method.
947
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
948
+ * the JSPB instance for transitional soy proto support:
949
+ * http://goto/soy-param-migration
950
+ * @param {!proto.GetSinglePRRequest} msg The msg instance to transform.
951
+ * @return {!Object}
952
+ * @suppress {unusedLocalVariables} f is only used for nested messages
953
+ */
954
+ proto.GetSinglePRRequest.toObject = function(includeInstance, msg) {
955
+ var f, obj = {
956
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
957
+ };
958
+
959
+ if (includeInstance) {
960
+ obj.$jspbMessageInstance = msg;
961
+ }
962
+ return obj;
963
+ };
964
+ }
965
+
966
+
967
+ /**
968
+ * Deserializes binary data (in protobuf wire format).
969
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
970
+ * @return {!proto.GetSinglePRRequest}
971
+ */
972
+ proto.GetSinglePRRequest.deserializeBinary = function(bytes) {
973
+ var reader = new jspb.BinaryReader(bytes);
974
+ var msg = new proto.GetSinglePRRequest;
975
+ return proto.GetSinglePRRequest.deserializeBinaryFromReader(msg, reader);
976
+ };
977
+
978
+
979
+ /**
980
+ * Deserializes binary data (in protobuf wire format) from the
981
+ * given reader into the given message object.
982
+ * @param {!proto.GetSinglePRRequest} msg The message object to deserialize into.
983
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
984
+ * @return {!proto.GetSinglePRRequest}
985
+ */
986
+ proto.GetSinglePRRequest.deserializeBinaryFromReader = function(msg, reader) {
987
+ while (reader.nextField()) {
988
+ if (reader.isEndGroup()) {
989
+ break;
990
+ }
991
+ var field = reader.getFieldNumber();
992
+ switch (field) {
993
+ case 1:
994
+ var value = /** @type {number} */ (reader.readInt64());
995
+ msg.setId(value);
996
+ break;
997
+ default:
998
+ reader.skipField();
999
+ break;
1000
+ }
1001
+ }
1002
+ return msg;
1003
+ };
1004
+
1005
+
1006
+ /**
1007
+ * Serializes the message to binary data (in protobuf wire format).
1008
+ * @return {!Uint8Array}
1009
+ */
1010
+ proto.GetSinglePRRequest.prototype.serializeBinary = function() {
1011
+ var writer = new jspb.BinaryWriter();
1012
+ proto.GetSinglePRRequest.serializeBinaryToWriter(this, writer);
1013
+ return writer.getResultBuffer();
1014
+ };
1015
+
1016
+
1017
+ /**
1018
+ * Serializes the given message to binary data (in protobuf wire
1019
+ * format), writing to the given BinaryWriter.
1020
+ * @param {!proto.GetSinglePRRequest} message
1021
+ * @param {!jspb.BinaryWriter} writer
1022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1023
+ */
1024
+ proto.GetSinglePRRequest.serializeBinaryToWriter = function(message, writer) {
1025
+ var f = undefined;
1026
+ f = message.getId();
1027
+ if (f !== 0) {
1028
+ writer.writeInt64(
1029
+ 1,
1030
+ f
1031
+ );
1032
+ }
1033
+ };
1034
+
1035
+
1036
+ /**
1037
+ * optional int64 Id = 1;
1038
+ * @return {number}
1039
+ */
1040
+ proto.GetSinglePRRequest.prototype.getId = function() {
1041
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1042
+ };
1043
+
1044
+
1045
+ /**
1046
+ * @param {number} value
1047
+ * @return {!proto.GetSinglePRRequest} returns this
1048
+ */
1049
+ proto.GetSinglePRRequest.prototype.setId = function(value) {
1050
+ return jspb.Message.setProto3IntField(this, 1, value);
1051
+ };
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1058
+ /**
1059
+ * Creates an object representation of this proto.
1060
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1061
+ * Optional fields that are not set will be set to undefined.
1062
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1063
+ * For the list of reserved names please see:
1064
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1065
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1066
+ * JSPB instance for transitional soy proto support:
1067
+ * http://goto/soy-param-migration
1068
+ * @return {!Object}
1069
+ */
1070
+ proto.PRDetailResponse.prototype.toObject = function(opt_includeInstance) {
1071
+ return proto.PRDetailResponse.toObject(opt_includeInstance, this);
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * Static version of the {@see toObject} method.
1077
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1078
+ * the JSPB instance for transitional soy proto support:
1079
+ * http://goto/soy-param-migration
1080
+ * @param {!proto.PRDetailResponse} msg The msg instance to transform.
1081
+ * @return {!Object}
1082
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1083
+ */
1084
+ proto.PRDetailResponse.toObject = function(includeInstance, msg) {
1085
+ var f, obj = {
1086
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1087
+ prnumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
1088
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
1089
+ referencesid: jspb.Message.getFieldWithDefault(msg, 4, ""),
1090
+ createdat: jspb.Message.getFieldWithDefault(msg, 5, ""),
1091
+ updatedat: jspb.Message.getFieldWithDefault(msg, 6, "")
1092
+ };
1093
+
1094
+ if (includeInstance) {
1095
+ obj.$jspbMessageInstance = msg;
1096
+ }
1097
+ return obj;
1098
+ };
1099
+ }
1100
+
1101
+
1102
+ /**
1103
+ * Deserializes binary data (in protobuf wire format).
1104
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1105
+ * @return {!proto.PRDetailResponse}
1106
+ */
1107
+ proto.PRDetailResponse.deserializeBinary = function(bytes) {
1108
+ var reader = new jspb.BinaryReader(bytes);
1109
+ var msg = new proto.PRDetailResponse;
1110
+ return proto.PRDetailResponse.deserializeBinaryFromReader(msg, reader);
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Deserializes binary data (in protobuf wire format) from the
1116
+ * given reader into the given message object.
1117
+ * @param {!proto.PRDetailResponse} msg The message object to deserialize into.
1118
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1119
+ * @return {!proto.PRDetailResponse}
1120
+ */
1121
+ proto.PRDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
1122
+ while (reader.nextField()) {
1123
+ if (reader.isEndGroup()) {
1124
+ break;
1125
+ }
1126
+ var field = reader.getFieldNumber();
1127
+ switch (field) {
1128
+ case 1:
1129
+ var value = /** @type {number} */ (reader.readInt64());
1130
+ msg.setId(value);
1131
+ break;
1132
+ case 2:
1133
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1134
+ msg.setPrnumber(value);
1135
+ break;
1136
+ case 3:
1137
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1138
+ msg.setTitle(value);
1139
+ break;
1140
+ case 4:
1141
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1142
+ msg.setReferencesid(value);
1143
+ break;
1144
+ case 5:
1145
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1146
+ msg.setCreatedat(value);
1147
+ break;
1148
+ case 6:
1149
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1150
+ msg.setUpdatedat(value);
1151
+ break;
1152
+ default:
1153
+ reader.skipField();
1154
+ break;
1155
+ }
1156
+ }
1157
+ return msg;
1158
+ };
1159
+
1160
+
1161
+ /**
1162
+ * Serializes the message to binary data (in protobuf wire format).
1163
+ * @return {!Uint8Array}
1164
+ */
1165
+ proto.PRDetailResponse.prototype.serializeBinary = function() {
1166
+ var writer = new jspb.BinaryWriter();
1167
+ proto.PRDetailResponse.serializeBinaryToWriter(this, writer);
1168
+ return writer.getResultBuffer();
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * Serializes the given message to binary data (in protobuf wire
1174
+ * format), writing to the given BinaryWriter.
1175
+ * @param {!proto.PRDetailResponse} message
1176
+ * @param {!jspb.BinaryWriter} writer
1177
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1178
+ */
1179
+ proto.PRDetailResponse.serializeBinaryToWriter = function(message, writer) {
1180
+ var f = undefined;
1181
+ f = message.getId();
1182
+ if (f !== 0) {
1183
+ writer.writeInt64(
1184
+ 1,
1185
+ f
1186
+ );
1187
+ }
1188
+ f = message.getPrnumber();
1189
+ if (f.length > 0) {
1190
+ writer.writeString(
1191
+ 2,
1192
+ f
1193
+ );
1194
+ }
1195
+ f = message.getTitle();
1196
+ if (f.length > 0) {
1197
+ writer.writeString(
1198
+ 3,
1199
+ f
1200
+ );
1201
+ }
1202
+ f = message.getReferencesid();
1203
+ if (f.length > 0) {
1204
+ writer.writeString(
1205
+ 4,
1206
+ f
1207
+ );
1208
+ }
1209
+ f = message.getCreatedat();
1210
+ if (f.length > 0) {
1211
+ writer.writeString(
1212
+ 5,
1213
+ f
1214
+ );
1215
+ }
1216
+ f = message.getUpdatedat();
1217
+ if (f.length > 0) {
1218
+ writer.writeString(
1219
+ 6,
1220
+ f
1221
+ );
1222
+ }
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * optional int64 Id = 1;
1228
+ * @return {number}
1229
+ */
1230
+ proto.PRDetailResponse.prototype.getId = function() {
1231
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * @param {number} value
1237
+ * @return {!proto.PRDetailResponse} returns this
1238
+ */
1239
+ proto.PRDetailResponse.prototype.setId = function(value) {
1240
+ return jspb.Message.setProto3IntField(this, 1, value);
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * optional string PrNumber = 2;
1246
+ * @return {string}
1247
+ */
1248
+ proto.PRDetailResponse.prototype.getPrnumber = function() {
1249
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * @param {string} value
1255
+ * @return {!proto.PRDetailResponse} returns this
1256
+ */
1257
+ proto.PRDetailResponse.prototype.setPrnumber = function(value) {
1258
+ return jspb.Message.setProto3StringField(this, 2, value);
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * optional string Title = 3;
1264
+ * @return {string}
1265
+ */
1266
+ proto.PRDetailResponse.prototype.getTitle = function() {
1267
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * @param {string} value
1273
+ * @return {!proto.PRDetailResponse} returns this
1274
+ */
1275
+ proto.PRDetailResponse.prototype.setTitle = function(value) {
1276
+ return jspb.Message.setProto3StringField(this, 3, value);
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * optional string ReferencesId = 4;
1282
+ * @return {string}
1283
+ */
1284
+ proto.PRDetailResponse.prototype.getReferencesid = function() {
1285
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * @param {string} value
1291
+ * @return {!proto.PRDetailResponse} returns this
1292
+ */
1293
+ proto.PRDetailResponse.prototype.setReferencesid = function(value) {
1294
+ return jspb.Message.setProto3StringField(this, 4, value);
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * optional string CreatedAt = 5;
1300
+ * @return {string}
1301
+ */
1302
+ proto.PRDetailResponse.prototype.getCreatedat = function() {
1303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * @param {string} value
1309
+ * @return {!proto.PRDetailResponse} returns this
1310
+ */
1311
+ proto.PRDetailResponse.prototype.setCreatedat = function(value) {
1312
+ return jspb.Message.setProto3StringField(this, 5, value);
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * optional string UpdatedAt = 6;
1318
+ * @return {string}
1319
+ */
1320
+ proto.PRDetailResponse.prototype.getUpdatedat = function() {
1321
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * @param {string} value
1327
+ * @return {!proto.PRDetailResponse} returns this
1328
+ */
1329
+ proto.PRDetailResponse.prototype.setUpdatedat = function(value) {
1330
+ return jspb.Message.setProto3StringField(this, 6, value);
1331
+ };
1332
+
1333
+
1334
+
1335
+ /**
1336
+ * List of repeated fields within this message type.
1337
+ * @private {!Array<number>}
1338
+ * @const
1339
+ */
1340
+ proto.PRListResponse.repeatedFields_ = [1];
1341
+
1342
+
1343
+
1344
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1345
+ /**
1346
+ * Creates an object representation of this proto.
1347
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1348
+ * Optional fields that are not set will be set to undefined.
1349
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1350
+ * For the list of reserved names please see:
1351
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1352
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1353
+ * JSPB instance for transitional soy proto support:
1354
+ * http://goto/soy-param-migration
1355
+ * @return {!Object}
1356
+ */
1357
+ proto.PRListResponse.prototype.toObject = function(opt_includeInstance) {
1358
+ return proto.PRListResponse.toObject(opt_includeInstance, this);
1359
+ };
1360
+
1361
+
1362
+ /**
1363
+ * Static version of the {@see toObject} method.
1364
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1365
+ * the JSPB instance for transitional soy proto support:
1366
+ * http://goto/soy-param-migration
1367
+ * @param {!proto.PRListResponse} msg The msg instance to transform.
1368
+ * @return {!Object}
1369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1370
+ */
1371
+ proto.PRListResponse.toObject = function(includeInstance, msg) {
1372
+ var f, obj = {
1373
+ purchaserequestsList: jspb.Message.toObjectList(msg.getPurchaserequestsList(),
1374
+ proto.PRDetailResponse.toObject, includeInstance),
1375
+ meta: (f = msg.getMeta()) && proto.ResponseMeta.toObject(includeInstance, f)
1376
+ };
1377
+
1378
+ if (includeInstance) {
1379
+ obj.$jspbMessageInstance = msg;
1380
+ }
1381
+ return obj;
1382
+ };
1383
+ }
1384
+
1385
+
1386
+ /**
1387
+ * Deserializes binary data (in protobuf wire format).
1388
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1389
+ * @return {!proto.PRListResponse}
1390
+ */
1391
+ proto.PRListResponse.deserializeBinary = function(bytes) {
1392
+ var reader = new jspb.BinaryReader(bytes);
1393
+ var msg = new proto.PRListResponse;
1394
+ return proto.PRListResponse.deserializeBinaryFromReader(msg, reader);
1395
+ };
1396
+
1397
+
1398
+ /**
1399
+ * Deserializes binary data (in protobuf wire format) from the
1400
+ * given reader into the given message object.
1401
+ * @param {!proto.PRListResponse} msg The message object to deserialize into.
1402
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1403
+ * @return {!proto.PRListResponse}
1404
+ */
1405
+ proto.PRListResponse.deserializeBinaryFromReader = function(msg, reader) {
1406
+ while (reader.nextField()) {
1407
+ if (reader.isEndGroup()) {
1408
+ break;
1409
+ }
1410
+ var field = reader.getFieldNumber();
1411
+ switch (field) {
1412
+ case 1:
1413
+ var value = new proto.PRDetailResponse;
1414
+ reader.readMessage(value,proto.PRDetailResponse.deserializeBinaryFromReader);
1415
+ msg.addPurchaserequests(value);
1416
+ break;
1417
+ case 2:
1418
+ var value = new proto.ResponseMeta;
1419
+ reader.readMessage(value,proto.ResponseMeta.deserializeBinaryFromReader);
1420
+ msg.setMeta(value);
1421
+ break;
1422
+ default:
1423
+ reader.skipField();
1424
+ break;
1425
+ }
1426
+ }
1427
+ return msg;
1428
+ };
1429
+
1430
+
1431
+ /**
1432
+ * Serializes the message to binary data (in protobuf wire format).
1433
+ * @return {!Uint8Array}
1434
+ */
1435
+ proto.PRListResponse.prototype.serializeBinary = function() {
1436
+ var writer = new jspb.BinaryWriter();
1437
+ proto.PRListResponse.serializeBinaryToWriter(this, writer);
1438
+ return writer.getResultBuffer();
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * Serializes the given message to binary data (in protobuf wire
1444
+ * format), writing to the given BinaryWriter.
1445
+ * @param {!proto.PRListResponse} message
1446
+ * @param {!jspb.BinaryWriter} writer
1447
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1448
+ */
1449
+ proto.PRListResponse.serializeBinaryToWriter = function(message, writer) {
1450
+ var f = undefined;
1451
+ f = message.getPurchaserequestsList();
1452
+ if (f.length > 0) {
1453
+ writer.writeRepeatedMessage(
1454
+ 1,
1455
+ f,
1456
+ proto.PRDetailResponse.serializeBinaryToWriter
1457
+ );
1458
+ }
1459
+ f = message.getMeta();
1460
+ if (f != null) {
1461
+ writer.writeMessage(
1462
+ 2,
1463
+ f,
1464
+ proto.ResponseMeta.serializeBinaryToWriter
1465
+ );
1466
+ }
1467
+ };
1468
+
1469
+
1470
+ /**
1471
+ * repeated PRDetailResponse PurchaseRequests = 1;
1472
+ * @return {!Array<!proto.PRDetailResponse>}
1473
+ */
1474
+ proto.PRListResponse.prototype.getPurchaserequestsList = function() {
1475
+ return /** @type{!Array<!proto.PRDetailResponse>} */ (
1476
+ jspb.Message.getRepeatedWrapperField(this, proto.PRDetailResponse, 1));
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * @param {!Array<!proto.PRDetailResponse>} value
1482
+ * @return {!proto.PRListResponse} returns this
1483
+ */
1484
+ proto.PRListResponse.prototype.setPurchaserequestsList = function(value) {
1485
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * @param {!proto.PRDetailResponse=} opt_value
1491
+ * @param {number=} opt_index
1492
+ * @return {!proto.PRDetailResponse}
1493
+ */
1494
+ proto.PRListResponse.prototype.addPurchaserequests = function(opt_value, opt_index) {
1495
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PRDetailResponse, opt_index);
1496
+ };
1497
+
1498
+
1499
+ /**
1500
+ * Clears the list making it empty but non-null.
1501
+ * @return {!proto.PRListResponse} returns this
1502
+ */
1503
+ proto.PRListResponse.prototype.clearPurchaserequestsList = function() {
1504
+ return this.setPurchaserequestsList([]);
1505
+ };
1506
+
1507
+
1508
+ /**
1509
+ * optional ResponseMeta Meta = 2;
1510
+ * @return {?proto.ResponseMeta}
1511
+ */
1512
+ proto.PRListResponse.prototype.getMeta = function() {
1513
+ return /** @type{?proto.ResponseMeta} */ (
1514
+ jspb.Message.getWrapperField(this, proto.ResponseMeta, 2));
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * @param {?proto.ResponseMeta|undefined} value
1520
+ * @return {!proto.PRListResponse} returns this
1521
+ */
1522
+ proto.PRListResponse.prototype.setMeta = function(value) {
1523
+ return jspb.Message.setWrapperField(this, 2, value);
1524
+ };
1525
+
1526
+
1527
+ /**
1528
+ * Clears the message field making it undefined.
1529
+ * @return {!proto.PRListResponse} returns this
1530
+ */
1531
+ proto.PRListResponse.prototype.clearMeta = function() {
1532
+ return this.setMeta(undefined);
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * Returns whether this field is set.
1538
+ * @return {boolean}
1539
+ */
1540
+ proto.PRListResponse.prototype.hasMeta = function() {
1541
+ return jspb.Message.getField(this, 2) != null;
1542
+ };
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1549
+ /**
1550
+ * Creates an object representation of this proto.
1551
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1552
+ * Optional fields that are not set will be set to undefined.
1553
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1554
+ * For the list of reserved names please see:
1555
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1556
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1557
+ * JSPB instance for transitional soy proto support:
1558
+ * http://goto/soy-param-migration
1559
+ * @return {!Object}
1560
+ */
1561
+ proto.SuccessResponse.prototype.toObject = function(opt_includeInstance) {
1562
+ return proto.SuccessResponse.toObject(opt_includeInstance, this);
1563
+ };
1564
+
1565
+
1566
+ /**
1567
+ * Static version of the {@see toObject} method.
1568
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1569
+ * the JSPB instance for transitional soy proto support:
1570
+ * http://goto/soy-param-migration
1571
+ * @param {!proto.SuccessResponse} msg The msg instance to transform.
1572
+ * @return {!Object}
1573
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1574
+ */
1575
+ proto.SuccessResponse.toObject = function(includeInstance, msg) {
1576
+ var f, obj = {
1577
+ response: jspb.Message.getFieldWithDefault(msg, 1, "")
1578
+ };
1579
+
1580
+ if (includeInstance) {
1581
+ obj.$jspbMessageInstance = msg;
1582
+ }
1583
+ return obj;
1584
+ };
1585
+ }
1586
+
1587
+
1588
+ /**
1589
+ * Deserializes binary data (in protobuf wire format).
1590
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1591
+ * @return {!proto.SuccessResponse}
1592
+ */
1593
+ proto.SuccessResponse.deserializeBinary = function(bytes) {
1594
+ var reader = new jspb.BinaryReader(bytes);
1595
+ var msg = new proto.SuccessResponse;
1596
+ return proto.SuccessResponse.deserializeBinaryFromReader(msg, reader);
1597
+ };
1598
+
1599
+
1600
+ /**
1601
+ * Deserializes binary data (in protobuf wire format) from the
1602
+ * given reader into the given message object.
1603
+ * @param {!proto.SuccessResponse} msg The message object to deserialize into.
1604
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1605
+ * @return {!proto.SuccessResponse}
1606
+ */
1607
+ proto.SuccessResponse.deserializeBinaryFromReader = function(msg, reader) {
1608
+ while (reader.nextField()) {
1609
+ if (reader.isEndGroup()) {
1610
+ break;
1611
+ }
1612
+ var field = reader.getFieldNumber();
1613
+ switch (field) {
1614
+ case 1:
1615
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1616
+ msg.setResponse(value);
1617
+ break;
1618
+ default:
1619
+ reader.skipField();
1620
+ break;
1621
+ }
1622
+ }
1623
+ return msg;
1624
+ };
1625
+
1626
+
1627
+ /**
1628
+ * Serializes the message to binary data (in protobuf wire format).
1629
+ * @return {!Uint8Array}
1630
+ */
1631
+ proto.SuccessResponse.prototype.serializeBinary = function() {
1632
+ var writer = new jspb.BinaryWriter();
1633
+ proto.SuccessResponse.serializeBinaryToWriter(this, writer);
1634
+ return writer.getResultBuffer();
1635
+ };
1636
+
1637
+
1638
+ /**
1639
+ * Serializes the given message to binary data (in protobuf wire
1640
+ * format), writing to the given BinaryWriter.
1641
+ * @param {!proto.SuccessResponse} message
1642
+ * @param {!jspb.BinaryWriter} writer
1643
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1644
+ */
1645
+ proto.SuccessResponse.serializeBinaryToWriter = function(message, writer) {
1646
+ var f = undefined;
1647
+ f = message.getResponse();
1648
+ if (f.length > 0) {
1649
+ writer.writeString(
1650
+ 1,
1651
+ f
1652
+ );
1653
+ }
1654
+ };
1655
+
1656
+
1657
+ /**
1658
+ * optional string Response = 1;
1659
+ * @return {string}
1660
+ */
1661
+ proto.SuccessResponse.prototype.getResponse = function() {
1662
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1663
+ };
1664
+
1665
+
1666
+ /**
1667
+ * @param {string} value
1668
+ * @return {!proto.SuccessResponse} returns this
1669
+ */
1670
+ proto.SuccessResponse.prototype.setResponse = function(value) {
1671
+ return jspb.Message.setProto3StringField(this, 1, value);
1672
+ };
1673
+
1674
+
1675
+ goog.object.extend(exports, proto);