@aldiokta/protocgen 1.1.19 → 1.1.20

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 (160) 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 +2674 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2937 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +173 -0
  7. package/prisca/v1/bidding/bidding_pb.js +5616 -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 +2907 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
  13. package/prisca/v1/core/auth/auth_pb.js +4497 -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 +1531 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3048 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2522 -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 +2167 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4283 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +872 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +144 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2497 -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 +3880 -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 +2605 -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 +3762 -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 +2958 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1188 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3191 -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 +2612 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +10879 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4180 -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 +2776 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  54. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  55. package/prisca/v1/core/number_range/number_range_pb.js +2926 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3032 -0
  58. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  59. package/prisca/v1/core/organization_level/organization_level_pb.js +2545 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +146 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +2654 -0
  62. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  63. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  64. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  65. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  66. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  67. package/prisca/v1/core/report/report_pb.js +2822 -0
  68. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  69. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  70. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  71. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +144 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2105 -0
  74. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
  75. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
  76. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  77. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  79. package/prisca/v1/core/users/users_pb.js +1246 -0
  80. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  81. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7525 -0
  84. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  85. package/prisca/v1/document_type/document_type_pb.js +2746 -0
  86. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  87. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3276 -0
  88. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  89. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  90. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  91. package/prisca/v1/purchase_order/purchase_order_pb.js +4989 -0
  92. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +512 -0
  93. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  94. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  95. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2875 -0
  96. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +145 -0
  97. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2139 -0
  98. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +146 -0
  99. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2183 -0
  100. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  101. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  102. package/prisca/v1/quotation/quotation_grpc_pb.js +152 -0
  103. package/prisca/v1/quotation/quotation_pb.js +2319 -0
  104. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +192 -0
  105. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5703 -0
  106. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  107. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6333 -0
  108. package/prisca/v1/account_assignment/account_assignment.proto +0 -79
  109. package/prisca/v1/account_group/account_group.proto +0 -86
  110. package/prisca/v1/bidding/bidding.proto +0 -159
  111. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -87
  112. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  113. package/prisca/v1/core/auth/auth.proto +0 -150
  114. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  115. package/prisca/v1/core/company/company.proto +0 -92
  116. package/prisca/v1/core/currency/currency.proto +0 -76
  117. package/prisca/v1/core/department_material/department_material.proto +0 -69
  118. package/prisca/v1/core/employee/employee.proto +0 -129
  119. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  120. package/prisca/v1/core/incoterm/incoterm.proto +0 -76
  121. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -120
  122. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  123. package/prisca/v1/core/job_position/job_position.proto +0 -113
  124. package/prisca/v1/core/job_title/job_title.proto +0 -89
  125. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  126. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -94
  127. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  128. package/prisca/v1/core/location/location.proto +0 -289
  129. package/prisca/v1/core/material/material.proto +0 -131
  130. package/prisca/v1/core/material_group/material_group.proto +0 -85
  131. package/prisca/v1/core/material_type/material_type.proto +0 -86
  132. package/prisca/v1/core/messaging/email_template.proto +0 -75
  133. package/prisca/v1/core/messaging/messaging.proto +0 -29
  134. package/prisca/v1/core/number_range/number_range.proto +0 -89
  135. package/prisca/v1/core/organization/organization.proto +0 -94
  136. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  137. package/prisca/v1/core/price_condition/price_condition.proto +0 -83
  138. package/prisca/v1/core/procurement/procurement.proto +0 -54
  139. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  140. package/prisca/v1/core/report/report.proto +0 -90
  141. package/prisca/v1/core/report/user_report.proto +0 -74
  142. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  143. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -64
  144. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  145. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  146. package/prisca/v1/core/users/users.proto +0 -45
  147. package/prisca/v1/core/work_location/work_location.proto +0 -122
  148. package/prisca/v1/core/workflow/workflow.proto +0 -216
  149. package/prisca/v1/document_type/document_type.proto +0 -80
  150. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -98
  151. package/prisca/v1/global/meta/meta.proto +0 -57
  152. package/prisca/v1/purchase_order/purchase_order.proto +0 -155
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -304
  154. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -87
  155. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -68
  156. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -70
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  158. package/prisca/v1/quotation/quotation.proto +0 -82
  159. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -166
  160. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -225
@@ -0,0 +1,872 @@
1
+ // source: prisca/v1/core/file_upload/file_upload.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ goog.exportSymbol('proto.FileInfo', null, global);
25
+ goog.exportSymbol('proto.FileUploadReferencesReq', null, global);
26
+ goog.exportSymbol('proto.FileUploadReq', null, global);
27
+ goog.exportSymbol('proto.FileUploadReq.DataCase', null, global);
28
+ goog.exportSymbol('proto.FileUploadRes', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.FileInfo = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
41
+ };
42
+ goog.inherits(proto.FileInfo, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.FileInfo.displayName = 'proto.FileInfo';
49
+ }
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.FileUploadReq = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.FileUploadReq.oneofGroups_);
62
+ };
63
+ goog.inherits(proto.FileUploadReq, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.FileUploadReq.displayName = 'proto.FileUploadReq';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.FileUploadReferencesReq = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
83
+ };
84
+ goog.inherits(proto.FileUploadReferencesReq, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.FileUploadReferencesReq.displayName = 'proto.FileUploadReferencesReq';
91
+ }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.FileUploadRes = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.FileUploadRes, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.FileUploadRes.displayName = 'proto.FileUploadRes';
112
+ }
113
+
114
+
115
+
116
+ if (jspb.Message.GENERATE_TO_OBJECT) {
117
+ /**
118
+ * Creates an object representation of this proto.
119
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
120
+ * Optional fields that are not set will be set to undefined.
121
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
122
+ * For the list of reserved names please see:
123
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
124
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
125
+ * JSPB instance for transitional soy proto support:
126
+ * http://goto/soy-param-migration
127
+ * @return {!Object}
128
+ */
129
+ proto.FileInfo.prototype.toObject = function(opt_includeInstance) {
130
+ return proto.FileInfo.toObject(opt_includeInstance, this);
131
+ };
132
+
133
+
134
+ /**
135
+ * Static version of the {@see toObject} method.
136
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
137
+ * the JSPB instance for transitional soy proto support:
138
+ * http://goto/soy-param-migration
139
+ * @param {!proto.FileInfo} msg The msg instance to transform.
140
+ * @return {!Object}
141
+ * @suppress {unusedLocalVariables} f is only used for nested messages
142
+ */
143
+ proto.FileInfo.toObject = function(includeInstance, msg) {
144
+ var f, obj = {
145
+ fileName: jspb.Message.getFieldWithDefault(msg, 1, "")
146
+ };
147
+
148
+ if (includeInstance) {
149
+ obj.$jspbMessageInstance = msg;
150
+ }
151
+ return obj;
152
+ };
153
+ }
154
+
155
+
156
+ /**
157
+ * Deserializes binary data (in protobuf wire format).
158
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
159
+ * @return {!proto.FileInfo}
160
+ */
161
+ proto.FileInfo.deserializeBinary = function(bytes) {
162
+ var reader = new jspb.BinaryReader(bytes);
163
+ var msg = new proto.FileInfo;
164
+ return proto.FileInfo.deserializeBinaryFromReader(msg, reader);
165
+ };
166
+
167
+
168
+ /**
169
+ * Deserializes binary data (in protobuf wire format) from the
170
+ * given reader into the given message object.
171
+ * @param {!proto.FileInfo} msg The message object to deserialize into.
172
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
173
+ * @return {!proto.FileInfo}
174
+ */
175
+ proto.FileInfo.deserializeBinaryFromReader = function(msg, reader) {
176
+ while (reader.nextField()) {
177
+ if (reader.isEndGroup()) {
178
+ break;
179
+ }
180
+ var field = reader.getFieldNumber();
181
+ switch (field) {
182
+ case 1:
183
+ var value = /** @type {string} */ (reader.readString());
184
+ msg.setFileName(value);
185
+ break;
186
+ default:
187
+ reader.skipField();
188
+ break;
189
+ }
190
+ }
191
+ return msg;
192
+ };
193
+
194
+
195
+ /**
196
+ * Serializes the message to binary data (in protobuf wire format).
197
+ * @return {!Uint8Array}
198
+ */
199
+ proto.FileInfo.prototype.serializeBinary = function() {
200
+ var writer = new jspb.BinaryWriter();
201
+ proto.FileInfo.serializeBinaryToWriter(this, writer);
202
+ return writer.getResultBuffer();
203
+ };
204
+
205
+
206
+ /**
207
+ * Serializes the given message to binary data (in protobuf wire
208
+ * format), writing to the given BinaryWriter.
209
+ * @param {!proto.FileInfo} message
210
+ * @param {!jspb.BinaryWriter} writer
211
+ * @suppress {unusedLocalVariables} f is only used for nested messages
212
+ */
213
+ proto.FileInfo.serializeBinaryToWriter = function(message, writer) {
214
+ var f = undefined;
215
+ f = message.getFileName();
216
+ if (f.length > 0) {
217
+ writer.writeString(
218
+ 1,
219
+ f
220
+ );
221
+ }
222
+ };
223
+
224
+
225
+ /**
226
+ * optional string file_name = 1;
227
+ * @return {string}
228
+ */
229
+ proto.FileInfo.prototype.getFileName = function() {
230
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
231
+ };
232
+
233
+
234
+ /**
235
+ * @param {string} value
236
+ * @return {!proto.FileInfo} returns this
237
+ */
238
+ proto.FileInfo.prototype.setFileName = function(value) {
239
+ return jspb.Message.setProto3StringField(this, 1, value);
240
+ };
241
+
242
+
243
+
244
+ /**
245
+ * Oneof group definitions for this message. Each group defines the field
246
+ * numbers belonging to that group. When of these fields' value is set, all
247
+ * other fields in the group are cleared. During deserialization, if multiple
248
+ * fields are encountered for a group, only the last value seen will be kept.
249
+ * @private {!Array<!Array<number>>}
250
+ * @const
251
+ */
252
+ proto.FileUploadReq.oneofGroups_ = [[1,2]];
253
+
254
+ /**
255
+ * @enum {number}
256
+ */
257
+ proto.FileUploadReq.DataCase = {
258
+ DATA_NOT_SET: 0,
259
+ INFO: 1,
260
+ CHUNK_DATA: 2
261
+ };
262
+
263
+ /**
264
+ * @return {proto.FileUploadReq.DataCase}
265
+ */
266
+ proto.FileUploadReq.prototype.getDataCase = function() {
267
+ return /** @type {proto.FileUploadReq.DataCase} */(jspb.Message.computeOneofCase(this, proto.FileUploadReq.oneofGroups_[0]));
268
+ };
269
+
270
+
271
+
272
+ if (jspb.Message.GENERATE_TO_OBJECT) {
273
+ /**
274
+ * Creates an object representation of this proto.
275
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
276
+ * Optional fields that are not set will be set to undefined.
277
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
278
+ * For the list of reserved names please see:
279
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
280
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
281
+ * JSPB instance for transitional soy proto support:
282
+ * http://goto/soy-param-migration
283
+ * @return {!Object}
284
+ */
285
+ proto.FileUploadReq.prototype.toObject = function(opt_includeInstance) {
286
+ return proto.FileUploadReq.toObject(opt_includeInstance, this);
287
+ };
288
+
289
+
290
+ /**
291
+ * Static version of the {@see toObject} method.
292
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
293
+ * the JSPB instance for transitional soy proto support:
294
+ * http://goto/soy-param-migration
295
+ * @param {!proto.FileUploadReq} msg The msg instance to transform.
296
+ * @return {!Object}
297
+ * @suppress {unusedLocalVariables} f is only used for nested messages
298
+ */
299
+ proto.FileUploadReq.toObject = function(includeInstance, msg) {
300
+ var f, obj = {
301
+ info: (f = msg.getInfo()) && proto.FileInfo.toObject(includeInstance, f),
302
+ chunkData: msg.getChunkData_asB64()
303
+ };
304
+
305
+ if (includeInstance) {
306
+ obj.$jspbMessageInstance = msg;
307
+ }
308
+ return obj;
309
+ };
310
+ }
311
+
312
+
313
+ /**
314
+ * Deserializes binary data (in protobuf wire format).
315
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
316
+ * @return {!proto.FileUploadReq}
317
+ */
318
+ proto.FileUploadReq.deserializeBinary = function(bytes) {
319
+ var reader = new jspb.BinaryReader(bytes);
320
+ var msg = new proto.FileUploadReq;
321
+ return proto.FileUploadReq.deserializeBinaryFromReader(msg, reader);
322
+ };
323
+
324
+
325
+ /**
326
+ * Deserializes binary data (in protobuf wire format) from the
327
+ * given reader into the given message object.
328
+ * @param {!proto.FileUploadReq} msg The message object to deserialize into.
329
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
330
+ * @return {!proto.FileUploadReq}
331
+ */
332
+ proto.FileUploadReq.deserializeBinaryFromReader = function(msg, reader) {
333
+ while (reader.nextField()) {
334
+ if (reader.isEndGroup()) {
335
+ break;
336
+ }
337
+ var field = reader.getFieldNumber();
338
+ switch (field) {
339
+ case 1:
340
+ var value = new proto.FileInfo;
341
+ reader.readMessage(value,proto.FileInfo.deserializeBinaryFromReader);
342
+ msg.setInfo(value);
343
+ break;
344
+ case 2:
345
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
346
+ msg.setChunkData(value);
347
+ break;
348
+ default:
349
+ reader.skipField();
350
+ break;
351
+ }
352
+ }
353
+ return msg;
354
+ };
355
+
356
+
357
+ /**
358
+ * Serializes the message to binary data (in protobuf wire format).
359
+ * @return {!Uint8Array}
360
+ */
361
+ proto.FileUploadReq.prototype.serializeBinary = function() {
362
+ var writer = new jspb.BinaryWriter();
363
+ proto.FileUploadReq.serializeBinaryToWriter(this, writer);
364
+ return writer.getResultBuffer();
365
+ };
366
+
367
+
368
+ /**
369
+ * Serializes the given message to binary data (in protobuf wire
370
+ * format), writing to the given BinaryWriter.
371
+ * @param {!proto.FileUploadReq} message
372
+ * @param {!jspb.BinaryWriter} writer
373
+ * @suppress {unusedLocalVariables} f is only used for nested messages
374
+ */
375
+ proto.FileUploadReq.serializeBinaryToWriter = function(message, writer) {
376
+ var f = undefined;
377
+ f = message.getInfo();
378
+ if (f != null) {
379
+ writer.writeMessage(
380
+ 1,
381
+ f,
382
+ proto.FileInfo.serializeBinaryToWriter
383
+ );
384
+ }
385
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
386
+ if (f != null) {
387
+ writer.writeBytes(
388
+ 2,
389
+ f
390
+ );
391
+ }
392
+ };
393
+
394
+
395
+ /**
396
+ * optional FileInfo info = 1;
397
+ * @return {?proto.FileInfo}
398
+ */
399
+ proto.FileUploadReq.prototype.getInfo = function() {
400
+ return /** @type{?proto.FileInfo} */ (
401
+ jspb.Message.getWrapperField(this, proto.FileInfo, 1));
402
+ };
403
+
404
+
405
+ /**
406
+ * @param {?proto.FileInfo|undefined} value
407
+ * @return {!proto.FileUploadReq} returns this
408
+ */
409
+ proto.FileUploadReq.prototype.setInfo = function(value) {
410
+ return jspb.Message.setOneofWrapperField(this, 1, proto.FileUploadReq.oneofGroups_[0], value);
411
+ };
412
+
413
+
414
+ /**
415
+ * Clears the message field making it undefined.
416
+ * @return {!proto.FileUploadReq} returns this
417
+ */
418
+ proto.FileUploadReq.prototype.clearInfo = function() {
419
+ return this.setInfo(undefined);
420
+ };
421
+
422
+
423
+ /**
424
+ * Returns whether this field is set.
425
+ * @return {boolean}
426
+ */
427
+ proto.FileUploadReq.prototype.hasInfo = function() {
428
+ return jspb.Message.getField(this, 1) != null;
429
+ };
430
+
431
+
432
+ /**
433
+ * optional bytes chunk_data = 2;
434
+ * @return {!(string|Uint8Array)}
435
+ */
436
+ proto.FileUploadReq.prototype.getChunkData = function() {
437
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
438
+ };
439
+
440
+
441
+ /**
442
+ * optional bytes chunk_data = 2;
443
+ * This is a type-conversion wrapper around `getChunkData()`
444
+ * @return {string}
445
+ */
446
+ proto.FileUploadReq.prototype.getChunkData_asB64 = function() {
447
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
448
+ this.getChunkData()));
449
+ };
450
+
451
+
452
+ /**
453
+ * optional bytes chunk_data = 2;
454
+ * Note that Uint8Array is not supported on all browsers.
455
+ * @see http://caniuse.com/Uint8Array
456
+ * This is a type-conversion wrapper around `getChunkData()`
457
+ * @return {!Uint8Array}
458
+ */
459
+ proto.FileUploadReq.prototype.getChunkData_asU8 = function() {
460
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
461
+ this.getChunkData()));
462
+ };
463
+
464
+
465
+ /**
466
+ * @param {!(string|Uint8Array)} value
467
+ * @return {!proto.FileUploadReq} returns this
468
+ */
469
+ proto.FileUploadReq.prototype.setChunkData = function(value) {
470
+ return jspb.Message.setOneofField(this, 2, proto.FileUploadReq.oneofGroups_[0], value);
471
+ };
472
+
473
+
474
+ /**
475
+ * Clears the field making it undefined.
476
+ * @return {!proto.FileUploadReq} returns this
477
+ */
478
+ proto.FileUploadReq.prototype.clearChunkData = function() {
479
+ return jspb.Message.setOneofField(this, 2, proto.FileUploadReq.oneofGroups_[0], undefined);
480
+ };
481
+
482
+
483
+ /**
484
+ * Returns whether this field is set.
485
+ * @return {boolean}
486
+ */
487
+ proto.FileUploadReq.prototype.hasChunkData = function() {
488
+ return jspb.Message.getField(this, 2) != null;
489
+ };
490
+
491
+
492
+
493
+
494
+
495
+ if (jspb.Message.GENERATE_TO_OBJECT) {
496
+ /**
497
+ * Creates an object representation of this proto.
498
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
499
+ * Optional fields that are not set will be set to undefined.
500
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
501
+ * For the list of reserved names please see:
502
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
503
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
504
+ * JSPB instance for transitional soy proto support:
505
+ * http://goto/soy-param-migration
506
+ * @return {!Object}
507
+ */
508
+ proto.FileUploadReferencesReq.prototype.toObject = function(opt_includeInstance) {
509
+ return proto.FileUploadReferencesReq.toObject(opt_includeInstance, this);
510
+ };
511
+
512
+
513
+ /**
514
+ * Static version of the {@see toObject} method.
515
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
516
+ * the JSPB instance for transitional soy proto support:
517
+ * http://goto/soy-param-migration
518
+ * @param {!proto.FileUploadReferencesReq} msg The msg instance to transform.
519
+ * @return {!Object}
520
+ * @suppress {unusedLocalVariables} f is only used for nested messages
521
+ */
522
+ proto.FileUploadReferencesReq.toObject = function(includeInstance, msg) {
523
+ var f, obj = {
524
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
525
+ url: jspb.Message.getFieldWithDefault(msg, 2, ""),
526
+ fileName: jspb.Message.getFieldWithDefault(msg, 3, "")
527
+ };
528
+
529
+ if (includeInstance) {
530
+ obj.$jspbMessageInstance = msg;
531
+ }
532
+ return obj;
533
+ };
534
+ }
535
+
536
+
537
+ /**
538
+ * Deserializes binary data (in protobuf wire format).
539
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
540
+ * @return {!proto.FileUploadReferencesReq}
541
+ */
542
+ proto.FileUploadReferencesReq.deserializeBinary = function(bytes) {
543
+ var reader = new jspb.BinaryReader(bytes);
544
+ var msg = new proto.FileUploadReferencesReq;
545
+ return proto.FileUploadReferencesReq.deserializeBinaryFromReader(msg, reader);
546
+ };
547
+
548
+
549
+ /**
550
+ * Deserializes binary data (in protobuf wire format) from the
551
+ * given reader into the given message object.
552
+ * @param {!proto.FileUploadReferencesReq} msg The message object to deserialize into.
553
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
554
+ * @return {!proto.FileUploadReferencesReq}
555
+ */
556
+ proto.FileUploadReferencesReq.deserializeBinaryFromReader = function(msg, reader) {
557
+ while (reader.nextField()) {
558
+ if (reader.isEndGroup()) {
559
+ break;
560
+ }
561
+ var field = reader.getFieldNumber();
562
+ switch (field) {
563
+ case 1:
564
+ var value = /** @type {string} */ (reader.readString());
565
+ msg.setReferencesId(value);
566
+ break;
567
+ case 2:
568
+ var value = /** @type {string} */ (reader.readString());
569
+ msg.setUrl(value);
570
+ break;
571
+ case 3:
572
+ var value = /** @type {string} */ (reader.readString());
573
+ msg.setFileName(value);
574
+ break;
575
+ default:
576
+ reader.skipField();
577
+ break;
578
+ }
579
+ }
580
+ return msg;
581
+ };
582
+
583
+
584
+ /**
585
+ * Serializes the message to binary data (in protobuf wire format).
586
+ * @return {!Uint8Array}
587
+ */
588
+ proto.FileUploadReferencesReq.prototype.serializeBinary = function() {
589
+ var writer = new jspb.BinaryWriter();
590
+ proto.FileUploadReferencesReq.serializeBinaryToWriter(this, writer);
591
+ return writer.getResultBuffer();
592
+ };
593
+
594
+
595
+ /**
596
+ * Serializes the given message to binary data (in protobuf wire
597
+ * format), writing to the given BinaryWriter.
598
+ * @param {!proto.FileUploadReferencesReq} message
599
+ * @param {!jspb.BinaryWriter} writer
600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
601
+ */
602
+ proto.FileUploadReferencesReq.serializeBinaryToWriter = function(message, writer) {
603
+ var f = undefined;
604
+ f = message.getReferencesId();
605
+ if (f.length > 0) {
606
+ writer.writeString(
607
+ 1,
608
+ f
609
+ );
610
+ }
611
+ f = message.getUrl();
612
+ if (f.length > 0) {
613
+ writer.writeString(
614
+ 2,
615
+ f
616
+ );
617
+ }
618
+ f = message.getFileName();
619
+ if (f.length > 0) {
620
+ writer.writeString(
621
+ 3,
622
+ f
623
+ );
624
+ }
625
+ };
626
+
627
+
628
+ /**
629
+ * optional string references_id = 1;
630
+ * @return {string}
631
+ */
632
+ proto.FileUploadReferencesReq.prototype.getReferencesId = function() {
633
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
634
+ };
635
+
636
+
637
+ /**
638
+ * @param {string} value
639
+ * @return {!proto.FileUploadReferencesReq} returns this
640
+ */
641
+ proto.FileUploadReferencesReq.prototype.setReferencesId = function(value) {
642
+ return jspb.Message.setProto3StringField(this, 1, value);
643
+ };
644
+
645
+
646
+ /**
647
+ * optional string url = 2;
648
+ * @return {string}
649
+ */
650
+ proto.FileUploadReferencesReq.prototype.getUrl = function() {
651
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
652
+ };
653
+
654
+
655
+ /**
656
+ * @param {string} value
657
+ * @return {!proto.FileUploadReferencesReq} returns this
658
+ */
659
+ proto.FileUploadReferencesReq.prototype.setUrl = function(value) {
660
+ return jspb.Message.setProto3StringField(this, 2, value);
661
+ };
662
+
663
+
664
+ /**
665
+ * optional string file_name = 3;
666
+ * @return {string}
667
+ */
668
+ proto.FileUploadReferencesReq.prototype.getFileName = function() {
669
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
670
+ };
671
+
672
+
673
+ /**
674
+ * @param {string} value
675
+ * @return {!proto.FileUploadReferencesReq} returns this
676
+ */
677
+ proto.FileUploadReferencesReq.prototype.setFileName = function(value) {
678
+ return jspb.Message.setProto3StringField(this, 3, value);
679
+ };
680
+
681
+
682
+
683
+
684
+
685
+ if (jspb.Message.GENERATE_TO_OBJECT) {
686
+ /**
687
+ * Creates an object representation of this proto.
688
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
689
+ * Optional fields that are not set will be set to undefined.
690
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
691
+ * For the list of reserved names please see:
692
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
693
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
694
+ * JSPB instance for transitional soy proto support:
695
+ * http://goto/soy-param-migration
696
+ * @return {!Object}
697
+ */
698
+ proto.FileUploadRes.prototype.toObject = function(opt_includeInstance) {
699
+ return proto.FileUploadRes.toObject(opt_includeInstance, this);
700
+ };
701
+
702
+
703
+ /**
704
+ * Static version of the {@see toObject} method.
705
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
706
+ * the JSPB instance for transitional soy proto support:
707
+ * http://goto/soy-param-migration
708
+ * @param {!proto.FileUploadRes} msg The msg instance to transform.
709
+ * @return {!Object}
710
+ * @suppress {unusedLocalVariables} f is only used for nested messages
711
+ */
712
+ proto.FileUploadRes.toObject = function(includeInstance, msg) {
713
+ var f, obj = {
714
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
715
+ url: jspb.Message.getFieldWithDefault(msg, 2, ""),
716
+ fileName: jspb.Message.getFieldWithDefault(msg, 3, "")
717
+ };
718
+
719
+ if (includeInstance) {
720
+ obj.$jspbMessageInstance = msg;
721
+ }
722
+ return obj;
723
+ };
724
+ }
725
+
726
+
727
+ /**
728
+ * Deserializes binary data (in protobuf wire format).
729
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
730
+ * @return {!proto.FileUploadRes}
731
+ */
732
+ proto.FileUploadRes.deserializeBinary = function(bytes) {
733
+ var reader = new jspb.BinaryReader(bytes);
734
+ var msg = new proto.FileUploadRes;
735
+ return proto.FileUploadRes.deserializeBinaryFromReader(msg, reader);
736
+ };
737
+
738
+
739
+ /**
740
+ * Deserializes binary data (in protobuf wire format) from the
741
+ * given reader into the given message object.
742
+ * @param {!proto.FileUploadRes} msg The message object to deserialize into.
743
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
744
+ * @return {!proto.FileUploadRes}
745
+ */
746
+ proto.FileUploadRes.deserializeBinaryFromReader = function(msg, reader) {
747
+ while (reader.nextField()) {
748
+ if (reader.isEndGroup()) {
749
+ break;
750
+ }
751
+ var field = reader.getFieldNumber();
752
+ switch (field) {
753
+ case 1:
754
+ var value = /** @type {string} */ (reader.readString());
755
+ msg.setReferencesId(value);
756
+ break;
757
+ case 2:
758
+ var value = /** @type {string} */ (reader.readString());
759
+ msg.setUrl(value);
760
+ break;
761
+ case 3:
762
+ var value = /** @type {string} */ (reader.readString());
763
+ msg.setFileName(value);
764
+ break;
765
+ default:
766
+ reader.skipField();
767
+ break;
768
+ }
769
+ }
770
+ return msg;
771
+ };
772
+
773
+
774
+ /**
775
+ * Serializes the message to binary data (in protobuf wire format).
776
+ * @return {!Uint8Array}
777
+ */
778
+ proto.FileUploadRes.prototype.serializeBinary = function() {
779
+ var writer = new jspb.BinaryWriter();
780
+ proto.FileUploadRes.serializeBinaryToWriter(this, writer);
781
+ return writer.getResultBuffer();
782
+ };
783
+
784
+
785
+ /**
786
+ * Serializes the given message to binary data (in protobuf wire
787
+ * format), writing to the given BinaryWriter.
788
+ * @param {!proto.FileUploadRes} message
789
+ * @param {!jspb.BinaryWriter} writer
790
+ * @suppress {unusedLocalVariables} f is only used for nested messages
791
+ */
792
+ proto.FileUploadRes.serializeBinaryToWriter = function(message, writer) {
793
+ var f = undefined;
794
+ f = message.getReferencesId();
795
+ if (f.length > 0) {
796
+ writer.writeString(
797
+ 1,
798
+ f
799
+ );
800
+ }
801
+ f = message.getUrl();
802
+ if (f.length > 0) {
803
+ writer.writeString(
804
+ 2,
805
+ f
806
+ );
807
+ }
808
+ f = message.getFileName();
809
+ if (f.length > 0) {
810
+ writer.writeString(
811
+ 3,
812
+ f
813
+ );
814
+ }
815
+ };
816
+
817
+
818
+ /**
819
+ * optional string references_id = 1;
820
+ * @return {string}
821
+ */
822
+ proto.FileUploadRes.prototype.getReferencesId = function() {
823
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
824
+ };
825
+
826
+
827
+ /**
828
+ * @param {string} value
829
+ * @return {!proto.FileUploadRes} returns this
830
+ */
831
+ proto.FileUploadRes.prototype.setReferencesId = function(value) {
832
+ return jspb.Message.setProto3StringField(this, 1, value);
833
+ };
834
+
835
+
836
+ /**
837
+ * optional string url = 2;
838
+ * @return {string}
839
+ */
840
+ proto.FileUploadRes.prototype.getUrl = function() {
841
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
842
+ };
843
+
844
+
845
+ /**
846
+ * @param {string} value
847
+ * @return {!proto.FileUploadRes} returns this
848
+ */
849
+ proto.FileUploadRes.prototype.setUrl = function(value) {
850
+ return jspb.Message.setProto3StringField(this, 2, value);
851
+ };
852
+
853
+
854
+ /**
855
+ * optional string file_name = 3;
856
+ * @return {string}
857
+ */
858
+ proto.FileUploadRes.prototype.getFileName = function() {
859
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
860
+ };
861
+
862
+
863
+ /**
864
+ * @param {string} value
865
+ * @return {!proto.FileUploadRes} returns this
866
+ */
867
+ proto.FileUploadRes.prototype.setFileName = function(value) {
868
+ return jspb.Message.setProto3StringField(this, 3, value);
869
+ };
870
+
871
+
872
+ goog.object.extend(exports, proto);