@aldiokta/protocgen 1.1.44 → 1.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +251 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +328 -0
  7. package/prisca/v1/core/auth/auth.proto +185 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +41 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +188 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +94 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +295 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +77 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/messaging/notification.proto +144 -0
  29. package/prisca/v1/core/number_range/number_range.proto +89 -0
  30. package/prisca/v1/core/organization/organization.proto +94 -0
  31. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  32. package/prisca/v1/core/price_condition/price_condition.proto +97 -0
  33. package/prisca/v1/core/procurement/procurement.proto +54 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  35. package/prisca/v1/core/report/report.proto +90 -0
  36. package/prisca/v1/core/report/user_report.proto +74 -0
  37. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  38. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  39. package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
  41. package/prisca/v1/core/users/users.proto +55 -0
  42. package/prisca/v1/core/work_location/work_location.proto +122 -0
  43. package/prisca/v1/core/workflow/workflow.proto +220 -0
  44. package/prisca/v1/core/workspace/workspace.proto +48 -0
  45. package/prisca/v1/delivery_order/delivery_order.proto +116 -0
  46. package/prisca/v1/document_type/document_type.proto +89 -0
  47. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  48. package/prisca/v1/global/meta/meta.proto +57 -0
  49. package/prisca/v1/good_receipt/good_receipt.proto +118 -0
  50. package/prisca/v1/invoice/invoice.proto +170 -0
  51. package/prisca/v1/purchase_order/purchase_order.proto +292 -0
  52. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
  53. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  54. package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
  55. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  56. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  57. package/prisca/v1/quotation/quotation.proto +135 -0
  58. package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
  59. package/prisca/v1/valuation/valuation.proto +223 -0
  60. package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
  61. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  62. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
  63. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  64. package/prisca/v1/account_group/account_group_pb.js +0 -2983
  65. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
  66. package/prisca/v1/bidding/bidding_pb.js +0 -8694
  67. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  68. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
  69. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
  70. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10655
  71. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
  72. package/prisca/v1/core/auth/auth_pb.js +0 -5833
  73. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  74. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
  75. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  76. package/prisca/v1/core/company/company_pb.js +0 -3094
  77. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  78. package/prisca/v1/core/currency/currency_pb.js +0 -2516
  79. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  80. package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
  81. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  82. package/prisca/v1/core/employee/employee_pb.js +0 -4329
  83. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  84. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
  85. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  86. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
  87. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  88. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
  89. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  90. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
  91. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  92. package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
  93. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  94. package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
  95. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
  96. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
  97. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
  98. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
  99. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  100. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
  101. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  102. package/prisca/v1/core/location/location_pb.js +0 -11262
  103. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  104. package/prisca/v1/core/material/material_pb.js +0 -4226
  105. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  106. package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
  107. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  108. package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
  109. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  110. package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
  111. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  112. package/prisca/v1/core/messaging/messaging_pb.js +0 -890
  113. package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
  114. package/prisca/v1/core/messaging/notification_pb.js +0 -4775
  115. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  116. package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
  117. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  118. package/prisca/v1/core/organization/organization_pb.js +0 -3078
  119. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  120. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
  121. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  122. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
  123. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  124. package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
  125. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  126. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
  127. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  128. package/prisca/v1/core/report/report_pb.js +0 -2816
  129. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  130. package/prisca/v1/core/report/user_report_pb.js +0 -2446
  131. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  132. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
  133. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  134. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
  135. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
  136. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
  137. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  138. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
  139. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  140. package/prisca/v1/core/users/users_pb.js +0 -1647
  141. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  142. package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
  143. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  144. package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
  145. package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
  146. package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
  147. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  148. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
  149. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
  150. package/prisca/v1/document_type/document_type_pb.js +0 -3004
  151. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  152. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
  153. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  154. package/prisca/v1/global/meta/meta_pb.js +0 -1173
  155. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
  156. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
  157. package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
  158. package/prisca/v1/invoice/invoice_pb.js +0 -5664
  159. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
  160. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
  162. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
  163. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  164. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
  165. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  166. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
  167. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  168. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
  169. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  170. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
  171. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
  172. package/prisca/v1/quotation/quotation_pb.js +0 -4167
  173. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
  174. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
  175. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
  176. package/prisca/v1/valuation/valuation_pb.js +0 -7806
  177. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -290
  178. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
@@ -1,1136 +0,0 @@
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 = globalThis;
17
-
18
- goog.exportSymbol('proto.FileInfo', null, global);
19
- goog.exportSymbol('proto.FileUploadReferencesReq', null, global);
20
- goog.exportSymbol('proto.FileUploadReq', null, global);
21
- goog.exportSymbol('proto.FileUploadReq.DataCase', null, global);
22
- goog.exportSymbol('proto.FileUploadRes', null, global);
23
- /**
24
- * Generated by JsPbCodeGenerator.
25
- * @param {Array=} opt_data Optional initial data array, typically from a
26
- * server response, or constructed directly in Javascript. The array is used
27
- * in place and becomes part of the constructed object. It is not cloned.
28
- * If no data is provided, the constructed object will be empty, but still
29
- * valid.
30
- * @extends {jspb.Message}
31
- * @constructor
32
- */
33
- proto.FileInfo = function(opt_data) {
34
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
35
- };
36
- goog.inherits(proto.FileInfo, jspb.Message);
37
- if (goog.DEBUG && !COMPILED) {
38
- /**
39
- * @public
40
- * @override
41
- */
42
- proto.FileInfo.displayName = 'proto.FileInfo';
43
- }
44
- /**
45
- * Generated by JsPbCodeGenerator.
46
- * @param {Array=} opt_data Optional initial data array, typically from a
47
- * server response, or constructed directly in Javascript. The array is used
48
- * in place and becomes part of the constructed object. It is not cloned.
49
- * If no data is provided, the constructed object will be empty, but still
50
- * valid.
51
- * @extends {jspb.Message}
52
- * @constructor
53
- */
54
- proto.FileUploadReq = function(opt_data) {
55
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.FileUploadReq.oneofGroups_);
56
- };
57
- goog.inherits(proto.FileUploadReq, jspb.Message);
58
- if (goog.DEBUG && !COMPILED) {
59
- /**
60
- * @public
61
- * @override
62
- */
63
- proto.FileUploadReq.displayName = 'proto.FileUploadReq';
64
- }
65
- /**
66
- * Generated by JsPbCodeGenerator.
67
- * @param {Array=} opt_data Optional initial data array, typically from a
68
- * server response, or constructed directly in Javascript. The array is used
69
- * in place and becomes part of the constructed object. It is not cloned.
70
- * If no data is provided, the constructed object will be empty, but still
71
- * valid.
72
- * @extends {jspb.Message}
73
- * @constructor
74
- */
75
- proto.FileUploadReferencesReq = function(opt_data) {
76
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
77
- };
78
- goog.inherits(proto.FileUploadReferencesReq, jspb.Message);
79
- if (goog.DEBUG && !COMPILED) {
80
- /**
81
- * @public
82
- * @override
83
- */
84
- proto.FileUploadReferencesReq.displayName = 'proto.FileUploadReferencesReq';
85
- }
86
- /**
87
- * Generated by JsPbCodeGenerator.
88
- * @param {Array=} opt_data Optional initial data array, typically from a
89
- * server response, or constructed directly in Javascript. The array is used
90
- * in place and becomes part of the constructed object. It is not cloned.
91
- * If no data is provided, the constructed object will be empty, but still
92
- * valid.
93
- * @extends {jspb.Message}
94
- * @constructor
95
- */
96
- proto.FileUploadRes = function(opt_data) {
97
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
98
- };
99
- goog.inherits(proto.FileUploadRes, jspb.Message);
100
- if (goog.DEBUG && !COMPILED) {
101
- /**
102
- * @public
103
- * @override
104
- */
105
- proto.FileUploadRes.displayName = 'proto.FileUploadRes';
106
- }
107
-
108
-
109
-
110
- if (jspb.Message.GENERATE_TO_OBJECT) {
111
- /**
112
- * Creates an object representation of this proto.
113
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
114
- * Optional fields that are not set will be set to undefined.
115
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
116
- * For the list of reserved names please see:
117
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
118
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
119
- * JSPB instance for transitional soy proto support:
120
- * http://goto/soy-param-migration
121
- * @return {!Object}
122
- */
123
- proto.FileInfo.prototype.toObject = function(opt_includeInstance) {
124
- return proto.FileInfo.toObject(opt_includeInstance, this);
125
- };
126
-
127
-
128
- /**
129
- * Static version of the {@see toObject} method.
130
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
131
- * the JSPB instance for transitional soy proto support:
132
- * http://goto/soy-param-migration
133
- * @param {!proto.FileInfo} msg The msg instance to transform.
134
- * @return {!Object}
135
- * @suppress {unusedLocalVariables} f is only used for nested messages
136
- */
137
- proto.FileInfo.toObject = function(includeInstance, msg) {
138
- var f, obj = {
139
- fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
140
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
141
- description: jspb.Message.getFieldWithDefault(msg, 3, ""),
142
- documentType: jspb.Message.getFieldWithDefault(msg, 4, "")
143
- };
144
-
145
- if (includeInstance) {
146
- obj.$jspbMessageInstance = msg;
147
- }
148
- return obj;
149
- };
150
- }
151
-
152
-
153
- /**
154
- * Deserializes binary data (in protobuf wire format).
155
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
156
- * @return {!proto.FileInfo}
157
- */
158
- proto.FileInfo.deserializeBinary = function(bytes) {
159
- var reader = new jspb.BinaryReader(bytes);
160
- var msg = new proto.FileInfo;
161
- return proto.FileInfo.deserializeBinaryFromReader(msg, reader);
162
- };
163
-
164
-
165
- /**
166
- * Deserializes binary data (in protobuf wire format) from the
167
- * given reader into the given message object.
168
- * @param {!proto.FileInfo} msg The message object to deserialize into.
169
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
170
- * @return {!proto.FileInfo}
171
- */
172
- proto.FileInfo.deserializeBinaryFromReader = function(msg, reader) {
173
- while (reader.nextField()) {
174
- if (reader.isEndGroup()) {
175
- break;
176
- }
177
- var field = reader.getFieldNumber();
178
- switch (field) {
179
- case 1:
180
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
181
- msg.setFileName(value);
182
- break;
183
- case 2:
184
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
185
- msg.setName(value);
186
- break;
187
- case 3:
188
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
189
- msg.setDescription(value);
190
- break;
191
- case 4:
192
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
193
- msg.setDocumentType(value);
194
- break;
195
- default:
196
- reader.skipField();
197
- break;
198
- }
199
- }
200
- return msg;
201
- };
202
-
203
-
204
- /**
205
- * Serializes the message to binary data (in protobuf wire format).
206
- * @return {!Uint8Array}
207
- */
208
- proto.FileInfo.prototype.serializeBinary = function() {
209
- var writer = new jspb.BinaryWriter();
210
- proto.FileInfo.serializeBinaryToWriter(this, writer);
211
- return writer.getResultBuffer();
212
- };
213
-
214
-
215
- /**
216
- * Serializes the given message to binary data (in protobuf wire
217
- * format), writing to the given BinaryWriter.
218
- * @param {!proto.FileInfo} message
219
- * @param {!jspb.BinaryWriter} writer
220
- * @suppress {unusedLocalVariables} f is only used for nested messages
221
- */
222
- proto.FileInfo.serializeBinaryToWriter = function(message, writer) {
223
- var f = undefined;
224
- f = message.getFileName();
225
- if (f.length > 0) {
226
- writer.writeString(
227
- 1,
228
- f
229
- );
230
- }
231
- f = message.getName();
232
- if (f.length > 0) {
233
- writer.writeString(
234
- 2,
235
- f
236
- );
237
- }
238
- f = message.getDescription();
239
- if (f.length > 0) {
240
- writer.writeString(
241
- 3,
242
- f
243
- );
244
- }
245
- f = message.getDocumentType();
246
- if (f.length > 0) {
247
- writer.writeString(
248
- 4,
249
- f
250
- );
251
- }
252
- };
253
-
254
-
255
- /**
256
- * optional string file_name = 1;
257
- * @return {string}
258
- */
259
- proto.FileInfo.prototype.getFileName = function() {
260
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
261
- };
262
-
263
-
264
- /**
265
- * @param {string} value
266
- * @return {!proto.FileInfo} returns this
267
- */
268
- proto.FileInfo.prototype.setFileName = function(value) {
269
- return jspb.Message.setProto3StringField(this, 1, value);
270
- };
271
-
272
-
273
- /**
274
- * optional string name = 2;
275
- * @return {string}
276
- */
277
- proto.FileInfo.prototype.getName = function() {
278
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
279
- };
280
-
281
-
282
- /**
283
- * @param {string} value
284
- * @return {!proto.FileInfo} returns this
285
- */
286
- proto.FileInfo.prototype.setName = function(value) {
287
- return jspb.Message.setProto3StringField(this, 2, value);
288
- };
289
-
290
-
291
- /**
292
- * optional string description = 3;
293
- * @return {string}
294
- */
295
- proto.FileInfo.prototype.getDescription = function() {
296
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
297
- };
298
-
299
-
300
- /**
301
- * @param {string} value
302
- * @return {!proto.FileInfo} returns this
303
- */
304
- proto.FileInfo.prototype.setDescription = function(value) {
305
- return jspb.Message.setProto3StringField(this, 3, value);
306
- };
307
-
308
-
309
- /**
310
- * optional string document_type = 4;
311
- * @return {string}
312
- */
313
- proto.FileInfo.prototype.getDocumentType = function() {
314
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
315
- };
316
-
317
-
318
- /**
319
- * @param {string} value
320
- * @return {!proto.FileInfo} returns this
321
- */
322
- proto.FileInfo.prototype.setDocumentType = function(value) {
323
- return jspb.Message.setProto3StringField(this, 4, value);
324
- };
325
-
326
-
327
-
328
- /**
329
- * Oneof group definitions for this message. Each group defines the field
330
- * numbers belonging to that group. When of these fields' value is set, all
331
- * other fields in the group are cleared. During deserialization, if multiple
332
- * fields are encountered for a group, only the last value seen will be kept.
333
- * @private {!Array<!Array<number>>}
334
- * @const
335
- */
336
- proto.FileUploadReq.oneofGroups_ = [[1,2]];
337
-
338
- /**
339
- * @enum {number}
340
- */
341
- proto.FileUploadReq.DataCase = {
342
- DATA_NOT_SET: 0,
343
- INFO: 1,
344
- CHUNK_DATA: 2
345
- };
346
-
347
- /**
348
- * @return {proto.FileUploadReq.DataCase}
349
- */
350
- proto.FileUploadReq.prototype.getDataCase = function() {
351
- return /** @type {proto.FileUploadReq.DataCase} */(jspb.Message.computeOneofCase(this, proto.FileUploadReq.oneofGroups_[0]));
352
- };
353
-
354
-
355
-
356
- if (jspb.Message.GENERATE_TO_OBJECT) {
357
- /**
358
- * Creates an object representation of this proto.
359
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
360
- * Optional fields that are not set will be set to undefined.
361
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
362
- * For the list of reserved names please see:
363
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
364
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
365
- * JSPB instance for transitional soy proto support:
366
- * http://goto/soy-param-migration
367
- * @return {!Object}
368
- */
369
- proto.FileUploadReq.prototype.toObject = function(opt_includeInstance) {
370
- return proto.FileUploadReq.toObject(opt_includeInstance, this);
371
- };
372
-
373
-
374
- /**
375
- * Static version of the {@see toObject} method.
376
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
377
- * the JSPB instance for transitional soy proto support:
378
- * http://goto/soy-param-migration
379
- * @param {!proto.FileUploadReq} msg The msg instance to transform.
380
- * @return {!Object}
381
- * @suppress {unusedLocalVariables} f is only used for nested messages
382
- */
383
- proto.FileUploadReq.toObject = function(includeInstance, msg) {
384
- var f, obj = {
385
- info: (f = msg.getInfo()) && proto.FileInfo.toObject(includeInstance, f),
386
- chunkData: msg.getChunkData_asB64()
387
- };
388
-
389
- if (includeInstance) {
390
- obj.$jspbMessageInstance = msg;
391
- }
392
- return obj;
393
- };
394
- }
395
-
396
-
397
- /**
398
- * Deserializes binary data (in protobuf wire format).
399
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
400
- * @return {!proto.FileUploadReq}
401
- */
402
- proto.FileUploadReq.deserializeBinary = function(bytes) {
403
- var reader = new jspb.BinaryReader(bytes);
404
- var msg = new proto.FileUploadReq;
405
- return proto.FileUploadReq.deserializeBinaryFromReader(msg, reader);
406
- };
407
-
408
-
409
- /**
410
- * Deserializes binary data (in protobuf wire format) from the
411
- * given reader into the given message object.
412
- * @param {!proto.FileUploadReq} msg The message object to deserialize into.
413
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
414
- * @return {!proto.FileUploadReq}
415
- */
416
- proto.FileUploadReq.deserializeBinaryFromReader = function(msg, reader) {
417
- while (reader.nextField()) {
418
- if (reader.isEndGroup()) {
419
- break;
420
- }
421
- var field = reader.getFieldNumber();
422
- switch (field) {
423
- case 1:
424
- var value = new proto.FileInfo;
425
- reader.readMessage(value,proto.FileInfo.deserializeBinaryFromReader);
426
- msg.setInfo(value);
427
- break;
428
- case 2:
429
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
430
- msg.setChunkData(value);
431
- break;
432
- default:
433
- reader.skipField();
434
- break;
435
- }
436
- }
437
- return msg;
438
- };
439
-
440
-
441
- /**
442
- * Serializes the message to binary data (in protobuf wire format).
443
- * @return {!Uint8Array}
444
- */
445
- proto.FileUploadReq.prototype.serializeBinary = function() {
446
- var writer = new jspb.BinaryWriter();
447
- proto.FileUploadReq.serializeBinaryToWriter(this, writer);
448
- return writer.getResultBuffer();
449
- };
450
-
451
-
452
- /**
453
- * Serializes the given message to binary data (in protobuf wire
454
- * format), writing to the given BinaryWriter.
455
- * @param {!proto.FileUploadReq} message
456
- * @param {!jspb.BinaryWriter} writer
457
- * @suppress {unusedLocalVariables} f is only used for nested messages
458
- */
459
- proto.FileUploadReq.serializeBinaryToWriter = function(message, writer) {
460
- var f = undefined;
461
- f = message.getInfo();
462
- if (f != null) {
463
- writer.writeMessage(
464
- 1,
465
- f,
466
- proto.FileInfo.serializeBinaryToWriter
467
- );
468
- }
469
- f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
470
- if (f != null) {
471
- writer.writeBytes(
472
- 2,
473
- f
474
- );
475
- }
476
- };
477
-
478
-
479
- /**
480
- * optional FileInfo info = 1;
481
- * @return {?proto.FileInfo}
482
- */
483
- proto.FileUploadReq.prototype.getInfo = function() {
484
- return /** @type{?proto.FileInfo} */ (
485
- jspb.Message.getWrapperField(this, proto.FileInfo, 1));
486
- };
487
-
488
-
489
- /**
490
- * @param {?proto.FileInfo|undefined} value
491
- * @return {!proto.FileUploadReq} returns this
492
- */
493
- proto.FileUploadReq.prototype.setInfo = function(value) {
494
- return jspb.Message.setOneofWrapperField(this, 1, proto.FileUploadReq.oneofGroups_[0], value);
495
- };
496
-
497
-
498
- /**
499
- * Clears the message field making it undefined.
500
- * @return {!proto.FileUploadReq} returns this
501
- */
502
- proto.FileUploadReq.prototype.clearInfo = function() {
503
- return this.setInfo(undefined);
504
- };
505
-
506
-
507
- /**
508
- * Returns whether this field is set.
509
- * @return {boolean}
510
- */
511
- proto.FileUploadReq.prototype.hasInfo = function() {
512
- return jspb.Message.getField(this, 1) != null;
513
- };
514
-
515
-
516
- /**
517
- * optional bytes chunk_data = 2;
518
- * @return {!(string|Uint8Array)}
519
- */
520
- proto.FileUploadReq.prototype.getChunkData = function() {
521
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
522
- };
523
-
524
-
525
- /**
526
- * optional bytes chunk_data = 2;
527
- * This is a type-conversion wrapper around `getChunkData()`
528
- * @return {string}
529
- */
530
- proto.FileUploadReq.prototype.getChunkData_asB64 = function() {
531
- return /** @type {string} */ (jspb.Message.bytesAsB64(
532
- this.getChunkData()));
533
- };
534
-
535
-
536
- /**
537
- * optional bytes chunk_data = 2;
538
- * Note that Uint8Array is not supported on all browsers.
539
- * @see http://caniuse.com/Uint8Array
540
- * This is a type-conversion wrapper around `getChunkData()`
541
- * @return {!Uint8Array}
542
- */
543
- proto.FileUploadReq.prototype.getChunkData_asU8 = function() {
544
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
545
- this.getChunkData()));
546
- };
547
-
548
-
549
- /**
550
- * @param {!(string|Uint8Array)} value
551
- * @return {!proto.FileUploadReq} returns this
552
- */
553
- proto.FileUploadReq.prototype.setChunkData = function(value) {
554
- return jspb.Message.setOneofField(this, 2, proto.FileUploadReq.oneofGroups_[0], value);
555
- };
556
-
557
-
558
- /**
559
- * Clears the field making it undefined.
560
- * @return {!proto.FileUploadReq} returns this
561
- */
562
- proto.FileUploadReq.prototype.clearChunkData = function() {
563
- return jspb.Message.setOneofField(this, 2, proto.FileUploadReq.oneofGroups_[0], undefined);
564
- };
565
-
566
-
567
- /**
568
- * Returns whether this field is set.
569
- * @return {boolean}
570
- */
571
- proto.FileUploadReq.prototype.hasChunkData = function() {
572
- return jspb.Message.getField(this, 2) != null;
573
- };
574
-
575
-
576
-
577
-
578
-
579
- if (jspb.Message.GENERATE_TO_OBJECT) {
580
- /**
581
- * Creates an object representation of this proto.
582
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
583
- * Optional fields that are not set will be set to undefined.
584
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
585
- * For the list of reserved names please see:
586
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
587
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
588
- * JSPB instance for transitional soy proto support:
589
- * http://goto/soy-param-migration
590
- * @return {!Object}
591
- */
592
- proto.FileUploadReferencesReq.prototype.toObject = function(opt_includeInstance) {
593
- return proto.FileUploadReferencesReq.toObject(opt_includeInstance, this);
594
- };
595
-
596
-
597
- /**
598
- * Static version of the {@see toObject} method.
599
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
600
- * the JSPB instance for transitional soy proto support:
601
- * http://goto/soy-param-migration
602
- * @param {!proto.FileUploadReferencesReq} msg The msg instance to transform.
603
- * @return {!Object}
604
- * @suppress {unusedLocalVariables} f is only used for nested messages
605
- */
606
- proto.FileUploadReferencesReq.toObject = function(includeInstance, msg) {
607
- var f, obj = {
608
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
609
- url: jspb.Message.getFieldWithDefault(msg, 2, ""),
610
- fileName: jspb.Message.getFieldWithDefault(msg, 3, ""),
611
- name: jspb.Message.getFieldWithDefault(msg, 4, ""),
612
- description: jspb.Message.getFieldWithDefault(msg, 5, ""),
613
- documentType: jspb.Message.getFieldWithDefault(msg, 6, "")
614
- };
615
-
616
- if (includeInstance) {
617
- obj.$jspbMessageInstance = msg;
618
- }
619
- return obj;
620
- };
621
- }
622
-
623
-
624
- /**
625
- * Deserializes binary data (in protobuf wire format).
626
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
627
- * @return {!proto.FileUploadReferencesReq}
628
- */
629
- proto.FileUploadReferencesReq.deserializeBinary = function(bytes) {
630
- var reader = new jspb.BinaryReader(bytes);
631
- var msg = new proto.FileUploadReferencesReq;
632
- return proto.FileUploadReferencesReq.deserializeBinaryFromReader(msg, reader);
633
- };
634
-
635
-
636
- /**
637
- * Deserializes binary data (in protobuf wire format) from the
638
- * given reader into the given message object.
639
- * @param {!proto.FileUploadReferencesReq} msg The message object to deserialize into.
640
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
641
- * @return {!proto.FileUploadReferencesReq}
642
- */
643
- proto.FileUploadReferencesReq.deserializeBinaryFromReader = function(msg, reader) {
644
- while (reader.nextField()) {
645
- if (reader.isEndGroup()) {
646
- break;
647
- }
648
- var field = reader.getFieldNumber();
649
- switch (field) {
650
- case 1:
651
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
652
- msg.setReferencesId(value);
653
- break;
654
- case 2:
655
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
656
- msg.setUrl(value);
657
- break;
658
- case 3:
659
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
660
- msg.setFileName(value);
661
- break;
662
- case 4:
663
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
664
- msg.setName(value);
665
- break;
666
- case 5:
667
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
668
- msg.setDescription(value);
669
- break;
670
- case 6:
671
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
672
- msg.setDocumentType(value);
673
- break;
674
- default:
675
- reader.skipField();
676
- break;
677
- }
678
- }
679
- return msg;
680
- };
681
-
682
-
683
- /**
684
- * Serializes the message to binary data (in protobuf wire format).
685
- * @return {!Uint8Array}
686
- */
687
- proto.FileUploadReferencesReq.prototype.serializeBinary = function() {
688
- var writer = new jspb.BinaryWriter();
689
- proto.FileUploadReferencesReq.serializeBinaryToWriter(this, writer);
690
- return writer.getResultBuffer();
691
- };
692
-
693
-
694
- /**
695
- * Serializes the given message to binary data (in protobuf wire
696
- * format), writing to the given BinaryWriter.
697
- * @param {!proto.FileUploadReferencesReq} message
698
- * @param {!jspb.BinaryWriter} writer
699
- * @suppress {unusedLocalVariables} f is only used for nested messages
700
- */
701
- proto.FileUploadReferencesReq.serializeBinaryToWriter = function(message, writer) {
702
- var f = undefined;
703
- f = message.getReferencesId();
704
- if (f.length > 0) {
705
- writer.writeString(
706
- 1,
707
- f
708
- );
709
- }
710
- f = message.getUrl();
711
- if (f.length > 0) {
712
- writer.writeString(
713
- 2,
714
- f
715
- );
716
- }
717
- f = message.getFileName();
718
- if (f.length > 0) {
719
- writer.writeString(
720
- 3,
721
- f
722
- );
723
- }
724
- f = message.getName();
725
- if (f.length > 0) {
726
- writer.writeString(
727
- 4,
728
- f
729
- );
730
- }
731
- f = message.getDescription();
732
- if (f.length > 0) {
733
- writer.writeString(
734
- 5,
735
- f
736
- );
737
- }
738
- f = message.getDocumentType();
739
- if (f.length > 0) {
740
- writer.writeString(
741
- 6,
742
- f
743
- );
744
- }
745
- };
746
-
747
-
748
- /**
749
- * optional string references_id = 1;
750
- * @return {string}
751
- */
752
- proto.FileUploadReferencesReq.prototype.getReferencesId = function() {
753
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
754
- };
755
-
756
-
757
- /**
758
- * @param {string} value
759
- * @return {!proto.FileUploadReferencesReq} returns this
760
- */
761
- proto.FileUploadReferencesReq.prototype.setReferencesId = function(value) {
762
- return jspb.Message.setProto3StringField(this, 1, value);
763
- };
764
-
765
-
766
- /**
767
- * optional string url = 2;
768
- * @return {string}
769
- */
770
- proto.FileUploadReferencesReq.prototype.getUrl = function() {
771
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
772
- };
773
-
774
-
775
- /**
776
- * @param {string} value
777
- * @return {!proto.FileUploadReferencesReq} returns this
778
- */
779
- proto.FileUploadReferencesReq.prototype.setUrl = function(value) {
780
- return jspb.Message.setProto3StringField(this, 2, value);
781
- };
782
-
783
-
784
- /**
785
- * optional string file_name = 3;
786
- * @return {string}
787
- */
788
- proto.FileUploadReferencesReq.prototype.getFileName = function() {
789
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
790
- };
791
-
792
-
793
- /**
794
- * @param {string} value
795
- * @return {!proto.FileUploadReferencesReq} returns this
796
- */
797
- proto.FileUploadReferencesReq.prototype.setFileName = function(value) {
798
- return jspb.Message.setProto3StringField(this, 3, value);
799
- };
800
-
801
-
802
- /**
803
- * optional string name = 4;
804
- * @return {string}
805
- */
806
- proto.FileUploadReferencesReq.prototype.getName = function() {
807
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
808
- };
809
-
810
-
811
- /**
812
- * @param {string} value
813
- * @return {!proto.FileUploadReferencesReq} returns this
814
- */
815
- proto.FileUploadReferencesReq.prototype.setName = function(value) {
816
- return jspb.Message.setProto3StringField(this, 4, value);
817
- };
818
-
819
-
820
- /**
821
- * optional string description = 5;
822
- * @return {string}
823
- */
824
- proto.FileUploadReferencesReq.prototype.getDescription = function() {
825
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
826
- };
827
-
828
-
829
- /**
830
- * @param {string} value
831
- * @return {!proto.FileUploadReferencesReq} returns this
832
- */
833
- proto.FileUploadReferencesReq.prototype.setDescription = function(value) {
834
- return jspb.Message.setProto3StringField(this, 5, value);
835
- };
836
-
837
-
838
- /**
839
- * optional string document_type = 6;
840
- * @return {string}
841
- */
842
- proto.FileUploadReferencesReq.prototype.getDocumentType = function() {
843
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
844
- };
845
-
846
-
847
- /**
848
- * @param {string} value
849
- * @return {!proto.FileUploadReferencesReq} returns this
850
- */
851
- proto.FileUploadReferencesReq.prototype.setDocumentType = function(value) {
852
- return jspb.Message.setProto3StringField(this, 6, value);
853
- };
854
-
855
-
856
-
857
-
858
-
859
- if (jspb.Message.GENERATE_TO_OBJECT) {
860
- /**
861
- * Creates an object representation of this proto.
862
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
863
- * Optional fields that are not set will be set to undefined.
864
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
865
- * For the list of reserved names please see:
866
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
867
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
868
- * JSPB instance for transitional soy proto support:
869
- * http://goto/soy-param-migration
870
- * @return {!Object}
871
- */
872
- proto.FileUploadRes.prototype.toObject = function(opt_includeInstance) {
873
- return proto.FileUploadRes.toObject(opt_includeInstance, this);
874
- };
875
-
876
-
877
- /**
878
- * Static version of the {@see toObject} method.
879
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
880
- * the JSPB instance for transitional soy proto support:
881
- * http://goto/soy-param-migration
882
- * @param {!proto.FileUploadRes} msg The msg instance to transform.
883
- * @return {!Object}
884
- * @suppress {unusedLocalVariables} f is only used for nested messages
885
- */
886
- proto.FileUploadRes.toObject = function(includeInstance, msg) {
887
- var f, obj = {
888
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
889
- url: jspb.Message.getFieldWithDefault(msg, 2, ""),
890
- fileName: jspb.Message.getFieldWithDefault(msg, 3, ""),
891
- name: jspb.Message.getFieldWithDefault(msg, 4, ""),
892
- description: jspb.Message.getFieldWithDefault(msg, 5, ""),
893
- documentType: jspb.Message.getFieldWithDefault(msg, 6, "")
894
- };
895
-
896
- if (includeInstance) {
897
- obj.$jspbMessageInstance = msg;
898
- }
899
- return obj;
900
- };
901
- }
902
-
903
-
904
- /**
905
- * Deserializes binary data (in protobuf wire format).
906
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
907
- * @return {!proto.FileUploadRes}
908
- */
909
- proto.FileUploadRes.deserializeBinary = function(bytes) {
910
- var reader = new jspb.BinaryReader(bytes);
911
- var msg = new proto.FileUploadRes;
912
- return proto.FileUploadRes.deserializeBinaryFromReader(msg, reader);
913
- };
914
-
915
-
916
- /**
917
- * Deserializes binary data (in protobuf wire format) from the
918
- * given reader into the given message object.
919
- * @param {!proto.FileUploadRes} msg The message object to deserialize into.
920
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
921
- * @return {!proto.FileUploadRes}
922
- */
923
- proto.FileUploadRes.deserializeBinaryFromReader = function(msg, reader) {
924
- while (reader.nextField()) {
925
- if (reader.isEndGroup()) {
926
- break;
927
- }
928
- var field = reader.getFieldNumber();
929
- switch (field) {
930
- case 1:
931
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
932
- msg.setReferencesId(value);
933
- break;
934
- case 2:
935
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
936
- msg.setUrl(value);
937
- break;
938
- case 3:
939
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
940
- msg.setFileName(value);
941
- break;
942
- case 4:
943
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
944
- msg.setName(value);
945
- break;
946
- case 5:
947
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
948
- msg.setDescription(value);
949
- break;
950
- case 6:
951
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
952
- msg.setDocumentType(value);
953
- break;
954
- default:
955
- reader.skipField();
956
- break;
957
- }
958
- }
959
- return msg;
960
- };
961
-
962
-
963
- /**
964
- * Serializes the message to binary data (in protobuf wire format).
965
- * @return {!Uint8Array}
966
- */
967
- proto.FileUploadRes.prototype.serializeBinary = function() {
968
- var writer = new jspb.BinaryWriter();
969
- proto.FileUploadRes.serializeBinaryToWriter(this, writer);
970
- return writer.getResultBuffer();
971
- };
972
-
973
-
974
- /**
975
- * Serializes the given message to binary data (in protobuf wire
976
- * format), writing to the given BinaryWriter.
977
- * @param {!proto.FileUploadRes} message
978
- * @param {!jspb.BinaryWriter} writer
979
- * @suppress {unusedLocalVariables} f is only used for nested messages
980
- */
981
- proto.FileUploadRes.serializeBinaryToWriter = function(message, writer) {
982
- var f = undefined;
983
- f = message.getReferencesId();
984
- if (f.length > 0) {
985
- writer.writeString(
986
- 1,
987
- f
988
- );
989
- }
990
- f = message.getUrl();
991
- if (f.length > 0) {
992
- writer.writeString(
993
- 2,
994
- f
995
- );
996
- }
997
- f = message.getFileName();
998
- if (f.length > 0) {
999
- writer.writeString(
1000
- 3,
1001
- f
1002
- );
1003
- }
1004
- f = message.getName();
1005
- if (f.length > 0) {
1006
- writer.writeString(
1007
- 4,
1008
- f
1009
- );
1010
- }
1011
- f = message.getDescription();
1012
- if (f.length > 0) {
1013
- writer.writeString(
1014
- 5,
1015
- f
1016
- );
1017
- }
1018
- f = message.getDocumentType();
1019
- if (f.length > 0) {
1020
- writer.writeString(
1021
- 6,
1022
- f
1023
- );
1024
- }
1025
- };
1026
-
1027
-
1028
- /**
1029
- * optional string references_id = 1;
1030
- * @return {string}
1031
- */
1032
- proto.FileUploadRes.prototype.getReferencesId = function() {
1033
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1034
- };
1035
-
1036
-
1037
- /**
1038
- * @param {string} value
1039
- * @return {!proto.FileUploadRes} returns this
1040
- */
1041
- proto.FileUploadRes.prototype.setReferencesId = function(value) {
1042
- return jspb.Message.setProto3StringField(this, 1, value);
1043
- };
1044
-
1045
-
1046
- /**
1047
- * optional string url = 2;
1048
- * @return {string}
1049
- */
1050
- proto.FileUploadRes.prototype.getUrl = function() {
1051
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1052
- };
1053
-
1054
-
1055
- /**
1056
- * @param {string} value
1057
- * @return {!proto.FileUploadRes} returns this
1058
- */
1059
- proto.FileUploadRes.prototype.setUrl = function(value) {
1060
- return jspb.Message.setProto3StringField(this, 2, value);
1061
- };
1062
-
1063
-
1064
- /**
1065
- * optional string file_name = 3;
1066
- * @return {string}
1067
- */
1068
- proto.FileUploadRes.prototype.getFileName = function() {
1069
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1070
- };
1071
-
1072
-
1073
- /**
1074
- * @param {string} value
1075
- * @return {!proto.FileUploadRes} returns this
1076
- */
1077
- proto.FileUploadRes.prototype.setFileName = function(value) {
1078
- return jspb.Message.setProto3StringField(this, 3, value);
1079
- };
1080
-
1081
-
1082
- /**
1083
- * optional string name = 4;
1084
- * @return {string}
1085
- */
1086
- proto.FileUploadRes.prototype.getName = function() {
1087
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1088
- };
1089
-
1090
-
1091
- /**
1092
- * @param {string} value
1093
- * @return {!proto.FileUploadRes} returns this
1094
- */
1095
- proto.FileUploadRes.prototype.setName = function(value) {
1096
- return jspb.Message.setProto3StringField(this, 4, value);
1097
- };
1098
-
1099
-
1100
- /**
1101
- * optional string description = 5;
1102
- * @return {string}
1103
- */
1104
- proto.FileUploadRes.prototype.getDescription = function() {
1105
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1106
- };
1107
-
1108
-
1109
- /**
1110
- * @param {string} value
1111
- * @return {!proto.FileUploadRes} returns this
1112
- */
1113
- proto.FileUploadRes.prototype.setDescription = function(value) {
1114
- return jspb.Message.setProto3StringField(this, 5, value);
1115
- };
1116
-
1117
-
1118
- /**
1119
- * optional string document_type = 6;
1120
- * @return {string}
1121
- */
1122
- proto.FileUploadRes.prototype.getDocumentType = function() {
1123
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1124
- };
1125
-
1126
-
1127
- /**
1128
- * @param {string} value
1129
- * @return {!proto.FileUploadRes} returns this
1130
- */
1131
- proto.FileUploadRes.prototype.setDocumentType = function(value) {
1132
- return jspb.Message.setProto3StringField(this, 6, value);
1133
- };
1134
-
1135
-
1136
- goog.object.extend(exports, proto);