@aldiokta/protocgen 1.0.75 → 1.0.76
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.
- package/package.json +1 -1
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +66 -0
- package/prisca/v1/core/file_upload/file_upload_pb.js +864 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +1 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +112 -4
package/package.json
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_core_file_upload_file_upload_pb = require('../../../../prisca/v1/core/file_upload/file_upload_pb.js');
|
|
6
|
+
|
|
7
|
+
function serialize_prisca_v1_core_file_upload_FileUploadRequest(arg) {
|
|
8
|
+
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.FileUploadRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type prisca.v1.core.file_upload.FileUploadRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_prisca_v1_core_file_upload_FileUploadRequest(buffer_arg) {
|
|
15
|
+
return prisca_v1_core_file_upload_file_upload_pb.FileUploadRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_prisca_v1_core_file_upload_FileUploadResponse(arg) {
|
|
19
|
+
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.FileUploadResponse)) {
|
|
20
|
+
throw new Error('Expected argument of type prisca.v1.core.file_upload.FileUploadResponse');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_prisca_v1_core_file_upload_FileUploadResponse(buffer_arg) {
|
|
26
|
+
return prisca_v1_core_file_upload_file_upload_pb.FileUploadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function serialize_prisca_v1_core_file_upload_SaveFileRequest(arg) {
|
|
30
|
+
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.SaveFileRequest)) {
|
|
31
|
+
throw new Error('Expected argument of type prisca.v1.core.file_upload.SaveFileRequest');
|
|
32
|
+
}
|
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function deserialize_prisca_v1_core_file_upload_SaveFileRequest(buffer_arg) {
|
|
37
|
+
return prisca_v1_core_file_upload_file_upload_pb.SaveFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var FileServiceService = exports.FileServiceService = {
|
|
42
|
+
upload: {
|
|
43
|
+
path: '/prisca.v1.core.file_upload.FileService/Upload',
|
|
44
|
+
requestStream: true,
|
|
45
|
+
responseStream: false,
|
|
46
|
+
requestType: prisca_v1_core_file_upload_file_upload_pb.FileUploadRequest,
|
|
47
|
+
responseType: prisca_v1_core_file_upload_file_upload_pb.FileUploadResponse,
|
|
48
|
+
requestSerialize: serialize_prisca_v1_core_file_upload_FileUploadRequest,
|
|
49
|
+
requestDeserialize: deserialize_prisca_v1_core_file_upload_FileUploadRequest,
|
|
50
|
+
responseSerialize: serialize_prisca_v1_core_file_upload_FileUploadResponse,
|
|
51
|
+
responseDeserialize: deserialize_prisca_v1_core_file_upload_FileUploadResponse,
|
|
52
|
+
},
|
|
53
|
+
saveFile: {
|
|
54
|
+
path: '/prisca.v1.core.file_upload.FileService/SaveFile',
|
|
55
|
+
requestStream: false,
|
|
56
|
+
responseStream: false,
|
|
57
|
+
requestType: prisca_v1_core_file_upload_file_upload_pb.SaveFileRequest,
|
|
58
|
+
responseType: prisca_v1_core_file_upload_file_upload_pb.FileUploadResponse,
|
|
59
|
+
requestSerialize: serialize_prisca_v1_core_file_upload_SaveFileRequest,
|
|
60
|
+
requestDeserialize: deserialize_prisca_v1_core_file_upload_SaveFileRequest,
|
|
61
|
+
responseSerialize: serialize_prisca_v1_core_file_upload_FileUploadResponse,
|
|
62
|
+
responseDeserialize: deserialize_prisca_v1_core_file_upload_FileUploadResponse,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
exports.FileServiceClient = grpc.makeGenericClientConstructor(FileServiceService, 'FileService');
|
|
@@ -0,0 +1,864 @@
|
|
|
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.prisca.v1.core.file_upload.FileUploadReq', null, global);
|
|
25
|
+
goog.exportSymbol('proto.prisca.v1.core.file_upload.FileUploadRequest', null, global);
|
|
26
|
+
goog.exportSymbol('proto.prisca.v1.core.file_upload.FileUploadResponse', null, global);
|
|
27
|
+
goog.exportSymbol('proto.prisca.v1.core.file_upload.SaveFileRequest', null, global);
|
|
28
|
+
/**
|
|
29
|
+
* Generated by JsPbCodeGenerator.
|
|
30
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
31
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
32
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
33
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
34
|
+
* valid.
|
|
35
|
+
* @extends {jspb.Message}
|
|
36
|
+
* @constructor
|
|
37
|
+
*/
|
|
38
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest = function(opt_data) {
|
|
39
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
40
|
+
};
|
|
41
|
+
goog.inherits(proto.prisca.v1.core.file_upload.FileUploadRequest, jspb.Message);
|
|
42
|
+
if (goog.DEBUG && !COMPILED) {
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* @override
|
|
46
|
+
*/
|
|
47
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.displayName = 'proto.prisca.v1.core.file_upload.FileUploadRequest';
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Generated by JsPbCodeGenerator.
|
|
51
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
52
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
53
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
54
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
55
|
+
* valid.
|
|
56
|
+
* @extends {jspb.Message}
|
|
57
|
+
* @constructor
|
|
58
|
+
*/
|
|
59
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse = function(opt_data) {
|
|
60
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.prisca.v1.core.file_upload.FileUploadResponse.repeatedFields_, null);
|
|
61
|
+
};
|
|
62
|
+
goog.inherits(proto.prisca.v1.core.file_upload.FileUploadResponse, jspb.Message);
|
|
63
|
+
if (goog.DEBUG && !COMPILED) {
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
* @override
|
|
67
|
+
*/
|
|
68
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.displayName = 'proto.prisca.v1.core.file_upload.FileUploadResponse';
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Generated by JsPbCodeGenerator.
|
|
72
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
73
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
74
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
75
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
76
|
+
* valid.
|
|
77
|
+
* @extends {jspb.Message}
|
|
78
|
+
* @constructor
|
|
79
|
+
*/
|
|
80
|
+
proto.prisca.v1.core.file_upload.FileUploadReq = function(opt_data) {
|
|
81
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
82
|
+
};
|
|
83
|
+
goog.inherits(proto.prisca.v1.core.file_upload.FileUploadReq, jspb.Message);
|
|
84
|
+
if (goog.DEBUG && !COMPILED) {
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
* @override
|
|
88
|
+
*/
|
|
89
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.displayName = 'proto.prisca.v1.core.file_upload.FileUploadReq';
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Generated by JsPbCodeGenerator.
|
|
93
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
94
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
95
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
96
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
97
|
+
* valid.
|
|
98
|
+
* @extends {jspb.Message}
|
|
99
|
+
* @constructor
|
|
100
|
+
*/
|
|
101
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest = function(opt_data) {
|
|
102
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.prisca.v1.core.file_upload.SaveFileRequest.repeatedFields_, null);
|
|
103
|
+
};
|
|
104
|
+
goog.inherits(proto.prisca.v1.core.file_upload.SaveFileRequest, jspb.Message);
|
|
105
|
+
if (goog.DEBUG && !COMPILED) {
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
* @override
|
|
109
|
+
*/
|
|
110
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.displayName = 'proto.prisca.v1.core.file_upload.SaveFileRequest';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
116
|
+
/**
|
|
117
|
+
* Creates an object representation of this proto.
|
|
118
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
119
|
+
* Optional fields that are not set will be set to undefined.
|
|
120
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
121
|
+
* For the list of reserved names please see:
|
|
122
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
123
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
124
|
+
* JSPB instance for transitional soy proto support:
|
|
125
|
+
* http://goto/soy-param-migration
|
|
126
|
+
* @return {!Object}
|
|
127
|
+
*/
|
|
128
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.toObject = function(opt_includeInstance) {
|
|
129
|
+
return proto.prisca.v1.core.file_upload.FileUploadRequest.toObject(opt_includeInstance, this);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Static version of the {@see toObject} method.
|
|
135
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
136
|
+
* the JSPB instance for transitional soy proto support:
|
|
137
|
+
* http://goto/soy-param-migration
|
|
138
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadRequest} msg The msg instance to transform.
|
|
139
|
+
* @return {!Object}
|
|
140
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
141
|
+
*/
|
|
142
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.toObject = function(includeInstance, msg) {
|
|
143
|
+
var f, obj = {
|
|
144
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
145
|
+
chunk: msg.getChunk_asB64(),
|
|
146
|
+
documentReferences: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
if (includeInstance) {
|
|
150
|
+
obj.$jspbMessageInstance = msg;
|
|
151
|
+
}
|
|
152
|
+
return obj;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Deserializes binary data (in protobuf wire format).
|
|
159
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
160
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadRequest}
|
|
161
|
+
*/
|
|
162
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.deserializeBinary = function(bytes) {
|
|
163
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
164
|
+
var msg = new proto.prisca.v1.core.file_upload.FileUploadRequest;
|
|
165
|
+
return proto.prisca.v1.core.file_upload.FileUploadRequest.deserializeBinaryFromReader(msg, reader);
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
171
|
+
* given reader into the given message object.
|
|
172
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadRequest} msg The message object to deserialize into.
|
|
173
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
174
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadRequest}
|
|
175
|
+
*/
|
|
176
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
177
|
+
while (reader.nextField()) {
|
|
178
|
+
if (reader.isEndGroup()) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
var field = reader.getFieldNumber();
|
|
182
|
+
switch (field) {
|
|
183
|
+
case 1:
|
|
184
|
+
var value = /** @type {string} */ (reader.readString());
|
|
185
|
+
msg.setFileName(value);
|
|
186
|
+
break;
|
|
187
|
+
case 2:
|
|
188
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
189
|
+
msg.setChunk(value);
|
|
190
|
+
break;
|
|
191
|
+
case 3:
|
|
192
|
+
var value = /** @type {string} */ (reader.readString());
|
|
193
|
+
msg.setDocumentReferences(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.prisca.v1.core.file_upload.FileUploadRequest.prototype.serializeBinary = function() {
|
|
209
|
+
var writer = new jspb.BinaryWriter();
|
|
210
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.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.prisca.v1.core.file_upload.FileUploadRequest} message
|
|
219
|
+
* @param {!jspb.BinaryWriter} writer
|
|
220
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
221
|
+
*/
|
|
222
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.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.getChunk_asU8();
|
|
232
|
+
if (f.length > 0) {
|
|
233
|
+
writer.writeBytes(
|
|
234
|
+
2,
|
|
235
|
+
f
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
f = message.getDocumentReferences();
|
|
239
|
+
if (f.length > 0) {
|
|
240
|
+
writer.writeString(
|
|
241
|
+
3,
|
|
242
|
+
f
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* optional string file_name = 1;
|
|
250
|
+
* @return {string}
|
|
251
|
+
*/
|
|
252
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.getFileName = function() {
|
|
253
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @param {string} value
|
|
259
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadRequest} returns this
|
|
260
|
+
*/
|
|
261
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.setFileName = function(value) {
|
|
262
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* optional bytes chunk = 2;
|
|
268
|
+
* @return {!(string|Uint8Array)}
|
|
269
|
+
*/
|
|
270
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.getChunk = function() {
|
|
271
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* optional bytes chunk = 2;
|
|
277
|
+
* This is a type-conversion wrapper around `getChunk()`
|
|
278
|
+
* @return {string}
|
|
279
|
+
*/
|
|
280
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.getChunk_asB64 = function() {
|
|
281
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
282
|
+
this.getChunk()));
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* optional bytes chunk = 2;
|
|
288
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
289
|
+
* @see http://caniuse.com/Uint8Array
|
|
290
|
+
* This is a type-conversion wrapper around `getChunk()`
|
|
291
|
+
* @return {!Uint8Array}
|
|
292
|
+
*/
|
|
293
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.getChunk_asU8 = function() {
|
|
294
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
295
|
+
this.getChunk()));
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @param {!(string|Uint8Array)} value
|
|
301
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadRequest} returns this
|
|
302
|
+
*/
|
|
303
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.setChunk = function(value) {
|
|
304
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* optional string document_references = 3;
|
|
310
|
+
* @return {string}
|
|
311
|
+
*/
|
|
312
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.getDocumentReferences = function() {
|
|
313
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @param {string} value
|
|
319
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadRequest} returns this
|
|
320
|
+
*/
|
|
321
|
+
proto.prisca.v1.core.file_upload.FileUploadRequest.prototype.setDocumentReferences = function(value) {
|
|
322
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* List of repeated fields within this message type.
|
|
329
|
+
* @private {!Array<number>}
|
|
330
|
+
* @const
|
|
331
|
+
*/
|
|
332
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.repeatedFields_ = [1];
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
337
|
+
/**
|
|
338
|
+
* Creates an object representation of this proto.
|
|
339
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
340
|
+
* Optional fields that are not set will be set to undefined.
|
|
341
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
342
|
+
* For the list of reserved names please see:
|
|
343
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
344
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
345
|
+
* JSPB instance for transitional soy proto support:
|
|
346
|
+
* http://goto/soy-param-migration
|
|
347
|
+
* @return {!Object}
|
|
348
|
+
*/
|
|
349
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.prototype.toObject = function(opt_includeInstance) {
|
|
350
|
+
return proto.prisca.v1.core.file_upload.FileUploadResponse.toObject(opt_includeInstance, this);
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Static version of the {@see toObject} method.
|
|
356
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
357
|
+
* the JSPB instance for transitional soy proto support:
|
|
358
|
+
* http://goto/soy-param-migration
|
|
359
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadResponse} msg The msg instance to transform.
|
|
360
|
+
* @return {!Object}
|
|
361
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
362
|
+
*/
|
|
363
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.toObject = function(includeInstance, msg) {
|
|
364
|
+
var f, obj = {
|
|
365
|
+
fileIdList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
366
|
+
message: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
if (includeInstance) {
|
|
370
|
+
obj.$jspbMessageInstance = msg;
|
|
371
|
+
}
|
|
372
|
+
return obj;
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Deserializes binary data (in protobuf wire format).
|
|
379
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
380
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadResponse}
|
|
381
|
+
*/
|
|
382
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.deserializeBinary = function(bytes) {
|
|
383
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
384
|
+
var msg = new proto.prisca.v1.core.file_upload.FileUploadResponse;
|
|
385
|
+
return proto.prisca.v1.core.file_upload.FileUploadResponse.deserializeBinaryFromReader(msg, reader);
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
391
|
+
* given reader into the given message object.
|
|
392
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadResponse} msg The message object to deserialize into.
|
|
393
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
394
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadResponse}
|
|
395
|
+
*/
|
|
396
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
397
|
+
while (reader.nextField()) {
|
|
398
|
+
if (reader.isEndGroup()) {
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
var field = reader.getFieldNumber();
|
|
402
|
+
switch (field) {
|
|
403
|
+
case 1:
|
|
404
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
405
|
+
for (var i = 0; i < values.length; i++) {
|
|
406
|
+
msg.addFileId(values[i]);
|
|
407
|
+
}
|
|
408
|
+
break;
|
|
409
|
+
case 2:
|
|
410
|
+
var value = /** @type {string} */ (reader.readString());
|
|
411
|
+
msg.setMessage(value);
|
|
412
|
+
break;
|
|
413
|
+
default:
|
|
414
|
+
reader.skipField();
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return msg;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
424
|
+
* @return {!Uint8Array}
|
|
425
|
+
*/
|
|
426
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.prototype.serializeBinary = function() {
|
|
427
|
+
var writer = new jspb.BinaryWriter();
|
|
428
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.serializeBinaryToWriter(this, writer);
|
|
429
|
+
return writer.getResultBuffer();
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
435
|
+
* format), writing to the given BinaryWriter.
|
|
436
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadResponse} message
|
|
437
|
+
* @param {!jspb.BinaryWriter} writer
|
|
438
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
439
|
+
*/
|
|
440
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
441
|
+
var f = undefined;
|
|
442
|
+
f = message.getFileIdList();
|
|
443
|
+
if (f.length > 0) {
|
|
444
|
+
writer.writePackedInt32(
|
|
445
|
+
1,
|
|
446
|
+
f
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
f = message.getMessage();
|
|
450
|
+
if (f.length > 0) {
|
|
451
|
+
writer.writeString(
|
|
452
|
+
2,
|
|
453
|
+
f
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* repeated int32 file_id = 1;
|
|
461
|
+
* @return {!Array<number>}
|
|
462
|
+
*/
|
|
463
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.prototype.getFileIdList = function() {
|
|
464
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @param {!Array<number>} value
|
|
470
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadResponse} returns this
|
|
471
|
+
*/
|
|
472
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.prototype.setFileIdList = function(value) {
|
|
473
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @param {number} value
|
|
479
|
+
* @param {number=} opt_index
|
|
480
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadResponse} returns this
|
|
481
|
+
*/
|
|
482
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.prototype.addFileId = function(value, opt_index) {
|
|
483
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Clears the list making it empty but non-null.
|
|
489
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadResponse} returns this
|
|
490
|
+
*/
|
|
491
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.prototype.clearFileIdList = function() {
|
|
492
|
+
return this.setFileIdList([]);
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* optional string message = 2;
|
|
498
|
+
* @return {string}
|
|
499
|
+
*/
|
|
500
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.prototype.getMessage = function() {
|
|
501
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* @param {string} value
|
|
507
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadResponse} returns this
|
|
508
|
+
*/
|
|
509
|
+
proto.prisca.v1.core.file_upload.FileUploadResponse.prototype.setMessage = function(value) {
|
|
510
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
518
|
+
/**
|
|
519
|
+
* Creates an object representation of this proto.
|
|
520
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
521
|
+
* Optional fields that are not set will be set to undefined.
|
|
522
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
523
|
+
* For the list of reserved names please see:
|
|
524
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
525
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
526
|
+
* JSPB instance for transitional soy proto support:
|
|
527
|
+
* http://goto/soy-param-migration
|
|
528
|
+
* @return {!Object}
|
|
529
|
+
*/
|
|
530
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.prototype.toObject = function(opt_includeInstance) {
|
|
531
|
+
return proto.prisca.v1.core.file_upload.FileUploadReq.toObject(opt_includeInstance, this);
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Static version of the {@see toObject} method.
|
|
537
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
538
|
+
* the JSPB instance for transitional soy proto support:
|
|
539
|
+
* http://goto/soy-param-migration
|
|
540
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadReq} msg The msg instance to transform.
|
|
541
|
+
* @return {!Object}
|
|
542
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
543
|
+
*/
|
|
544
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.toObject = function(includeInstance, msg) {
|
|
545
|
+
var f, obj = {
|
|
546
|
+
description: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
547
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
548
|
+
url: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
if (includeInstance) {
|
|
552
|
+
obj.$jspbMessageInstance = msg;
|
|
553
|
+
}
|
|
554
|
+
return obj;
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Deserializes binary data (in protobuf wire format).
|
|
561
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
562
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadReq}
|
|
563
|
+
*/
|
|
564
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.deserializeBinary = function(bytes) {
|
|
565
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
566
|
+
var msg = new proto.prisca.v1.core.file_upload.FileUploadReq;
|
|
567
|
+
return proto.prisca.v1.core.file_upload.FileUploadReq.deserializeBinaryFromReader(msg, reader);
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
573
|
+
* given reader into the given message object.
|
|
574
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadReq} msg The message object to deserialize into.
|
|
575
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
576
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadReq}
|
|
577
|
+
*/
|
|
578
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
579
|
+
while (reader.nextField()) {
|
|
580
|
+
if (reader.isEndGroup()) {
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
var field = reader.getFieldNumber();
|
|
584
|
+
switch (field) {
|
|
585
|
+
case 1:
|
|
586
|
+
var value = /** @type {string} */ (reader.readString());
|
|
587
|
+
msg.setDescription(value);
|
|
588
|
+
break;
|
|
589
|
+
case 2:
|
|
590
|
+
var value = /** @type {string} */ (reader.readString());
|
|
591
|
+
msg.setName(value);
|
|
592
|
+
break;
|
|
593
|
+
case 3:
|
|
594
|
+
var value = /** @type {string} */ (reader.readString());
|
|
595
|
+
msg.setUrl(value);
|
|
596
|
+
break;
|
|
597
|
+
default:
|
|
598
|
+
reader.skipField();
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
return msg;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
608
|
+
* @return {!Uint8Array}
|
|
609
|
+
*/
|
|
610
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.prototype.serializeBinary = function() {
|
|
611
|
+
var writer = new jspb.BinaryWriter();
|
|
612
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.serializeBinaryToWriter(this, writer);
|
|
613
|
+
return writer.getResultBuffer();
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
619
|
+
* format), writing to the given BinaryWriter.
|
|
620
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadReq} message
|
|
621
|
+
* @param {!jspb.BinaryWriter} writer
|
|
622
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
623
|
+
*/
|
|
624
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.serializeBinaryToWriter = function(message, writer) {
|
|
625
|
+
var f = undefined;
|
|
626
|
+
f = message.getDescription();
|
|
627
|
+
if (f.length > 0) {
|
|
628
|
+
writer.writeString(
|
|
629
|
+
1,
|
|
630
|
+
f
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
f = message.getName();
|
|
634
|
+
if (f.length > 0) {
|
|
635
|
+
writer.writeString(
|
|
636
|
+
2,
|
|
637
|
+
f
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
f = message.getUrl();
|
|
641
|
+
if (f.length > 0) {
|
|
642
|
+
writer.writeString(
|
|
643
|
+
3,
|
|
644
|
+
f
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* optional string description = 1;
|
|
652
|
+
* @return {string}
|
|
653
|
+
*/
|
|
654
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.prototype.getDescription = function() {
|
|
655
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* @param {string} value
|
|
661
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadReq} returns this
|
|
662
|
+
*/
|
|
663
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.prototype.setDescription = function(value) {
|
|
664
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* optional string name = 2;
|
|
670
|
+
* @return {string}
|
|
671
|
+
*/
|
|
672
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.prototype.getName = function() {
|
|
673
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* @param {string} value
|
|
679
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadReq} returns this
|
|
680
|
+
*/
|
|
681
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.prototype.setName = function(value) {
|
|
682
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* optional string url = 3;
|
|
688
|
+
* @return {string}
|
|
689
|
+
*/
|
|
690
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.prototype.getUrl = function() {
|
|
691
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* @param {string} value
|
|
697
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadReq} returns this
|
|
698
|
+
*/
|
|
699
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.prototype.setUrl = function(value) {
|
|
700
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* List of repeated fields within this message type.
|
|
707
|
+
* @private {!Array<number>}
|
|
708
|
+
* @const
|
|
709
|
+
*/
|
|
710
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.repeatedFields_ = [1];
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
715
|
+
/**
|
|
716
|
+
* Creates an object representation of this proto.
|
|
717
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
718
|
+
* Optional fields that are not set will be set to undefined.
|
|
719
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
720
|
+
* For the list of reserved names please see:
|
|
721
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
722
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
723
|
+
* JSPB instance for transitional soy proto support:
|
|
724
|
+
* http://goto/soy-param-migration
|
|
725
|
+
* @return {!Object}
|
|
726
|
+
*/
|
|
727
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.prototype.toObject = function(opt_includeInstance) {
|
|
728
|
+
return proto.prisca.v1.core.file_upload.SaveFileRequest.toObject(opt_includeInstance, this);
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Static version of the {@see toObject} method.
|
|
734
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
735
|
+
* the JSPB instance for transitional soy proto support:
|
|
736
|
+
* http://goto/soy-param-migration
|
|
737
|
+
* @param {!proto.prisca.v1.core.file_upload.SaveFileRequest} msg The msg instance to transform.
|
|
738
|
+
* @return {!Object}
|
|
739
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
740
|
+
*/
|
|
741
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.toObject = function(includeInstance, msg) {
|
|
742
|
+
var f, obj = {
|
|
743
|
+
urlsList: jspb.Message.toObjectList(msg.getUrlsList(),
|
|
744
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.toObject, includeInstance)
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
if (includeInstance) {
|
|
748
|
+
obj.$jspbMessageInstance = msg;
|
|
749
|
+
}
|
|
750
|
+
return obj;
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Deserializes binary data (in protobuf wire format).
|
|
757
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
758
|
+
* @return {!proto.prisca.v1.core.file_upload.SaveFileRequest}
|
|
759
|
+
*/
|
|
760
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.deserializeBinary = function(bytes) {
|
|
761
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
762
|
+
var msg = new proto.prisca.v1.core.file_upload.SaveFileRequest;
|
|
763
|
+
return proto.prisca.v1.core.file_upload.SaveFileRequest.deserializeBinaryFromReader(msg, reader);
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
769
|
+
* given reader into the given message object.
|
|
770
|
+
* @param {!proto.prisca.v1.core.file_upload.SaveFileRequest} msg The message object to deserialize into.
|
|
771
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
772
|
+
* @return {!proto.prisca.v1.core.file_upload.SaveFileRequest}
|
|
773
|
+
*/
|
|
774
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
775
|
+
while (reader.nextField()) {
|
|
776
|
+
if (reader.isEndGroup()) {
|
|
777
|
+
break;
|
|
778
|
+
}
|
|
779
|
+
var field = reader.getFieldNumber();
|
|
780
|
+
switch (field) {
|
|
781
|
+
case 1:
|
|
782
|
+
var value = new proto.prisca.v1.core.file_upload.FileUploadReq;
|
|
783
|
+
reader.readMessage(value,proto.prisca.v1.core.file_upload.FileUploadReq.deserializeBinaryFromReader);
|
|
784
|
+
msg.addUrls(value);
|
|
785
|
+
break;
|
|
786
|
+
default:
|
|
787
|
+
reader.skipField();
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
return msg;
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
797
|
+
* @return {!Uint8Array}
|
|
798
|
+
*/
|
|
799
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.prototype.serializeBinary = function() {
|
|
800
|
+
var writer = new jspb.BinaryWriter();
|
|
801
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.serializeBinaryToWriter(this, writer);
|
|
802
|
+
return writer.getResultBuffer();
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
808
|
+
* format), writing to the given BinaryWriter.
|
|
809
|
+
* @param {!proto.prisca.v1.core.file_upload.SaveFileRequest} message
|
|
810
|
+
* @param {!jspb.BinaryWriter} writer
|
|
811
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
812
|
+
*/
|
|
813
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.serializeBinaryToWriter = function(message, writer) {
|
|
814
|
+
var f = undefined;
|
|
815
|
+
f = message.getUrlsList();
|
|
816
|
+
if (f.length > 0) {
|
|
817
|
+
writer.writeRepeatedMessage(
|
|
818
|
+
1,
|
|
819
|
+
f,
|
|
820
|
+
proto.prisca.v1.core.file_upload.FileUploadReq.serializeBinaryToWriter
|
|
821
|
+
);
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* repeated FileUploadReq urls = 1;
|
|
828
|
+
* @return {!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>}
|
|
829
|
+
*/
|
|
830
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.prototype.getUrlsList = function() {
|
|
831
|
+
return /** @type{!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>} */ (
|
|
832
|
+
jspb.Message.getRepeatedWrapperField(this, proto.prisca.v1.core.file_upload.FileUploadReq, 1));
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* @param {!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>} value
|
|
838
|
+
* @return {!proto.prisca.v1.core.file_upload.SaveFileRequest} returns this
|
|
839
|
+
*/
|
|
840
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.prototype.setUrlsList = function(value) {
|
|
841
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadReq=} opt_value
|
|
847
|
+
* @param {number=} opt_index
|
|
848
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadReq}
|
|
849
|
+
*/
|
|
850
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.prototype.addUrls = function(opt_value, opt_index) {
|
|
851
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.file_upload.FileUploadReq, opt_index);
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Clears the list making it empty but non-null.
|
|
857
|
+
* @return {!proto.prisca.v1.core.file_upload.SaveFileRequest} returns this
|
|
858
|
+
*/
|
|
859
|
+
proto.prisca.v1.core.file_upload.SaveFileRequest.prototype.clearUrlsList = function() {
|
|
860
|
+
return this.setUrlsList([]);
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
goog.object.extend(exports, proto.prisca.v1.core.file_upload);
|
|
@@ -7,6 +7,7 @@ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta
|
|
|
7
7
|
var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
|
|
8
8
|
var prisca_v1_document_type_document_type_pb = require('../../../prisca/v1/document_type/document_type_pb.js');
|
|
9
9
|
var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
|
|
10
|
+
var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
|
|
10
11
|
|
|
11
12
|
function serialize_CreatePurchaseRequisitionTemplateRequest(arg) {
|
|
12
13
|
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.CreatePurchaseRequisitionTemplateRequest)) {
|
|
@@ -29,6 +29,8 @@ var prisca_v1_document_type_document_type_pb = require('../../../prisca/v1/docum
|
|
|
29
29
|
goog.object.extend(proto, prisca_v1_document_type_document_type_pb);
|
|
30
30
|
var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
|
|
31
31
|
goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
|
|
32
|
+
var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
|
|
33
|
+
goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
|
|
32
34
|
goog.exportSymbol('proto.BasePurchaseRequisitionItemDetail', null, global);
|
|
33
35
|
goog.exportSymbol('proto.BasePurchaseRequisitionItemTrx', null, global);
|
|
34
36
|
goog.exportSymbol('proto.BasePurchaseRequisitionTrx', null, global);
|
|
@@ -915,7 +917,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
915
917
|
* @private {!Array<number>}
|
|
916
918
|
* @const
|
|
917
919
|
*/
|
|
918
|
-
proto.PurchaseRequisitionTrx.repeatedFields_ = [14];
|
|
920
|
+
proto.PurchaseRequisitionTrx.repeatedFields_ = [14,27];
|
|
919
921
|
|
|
920
922
|
|
|
921
923
|
|
|
@@ -974,7 +976,9 @@ documentType: (f = msg.getDocumentType()) && prisca_v1_document_type_document_ty
|
|
|
974
976
|
status: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
975
977
|
createdBy: jspb.Message.getFieldWithDefault(msg, 24, ""),
|
|
976
978
|
updatedBy: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
977
|
-
justification: jspb.Message.getFieldWithDefault(msg, 26, "")
|
|
979
|
+
justification: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
|
980
|
+
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
981
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.toObject, includeInstance)
|
|
978
982
|
};
|
|
979
983
|
|
|
980
984
|
if (includeInstance) {
|
|
@@ -1117,6 +1121,11 @@ proto.PurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, reader)
|
|
|
1117
1121
|
var value = /** @type {string} */ (reader.readString());
|
|
1118
1122
|
msg.setJustification(value);
|
|
1119
1123
|
break;
|
|
1124
|
+
case 27:
|
|
1125
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReq;
|
|
1126
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.deserializeBinaryFromReader);
|
|
1127
|
+
msg.addFiles(value);
|
|
1128
|
+
break;
|
|
1120
1129
|
default:
|
|
1121
1130
|
reader.skipField();
|
|
1122
1131
|
break;
|
|
@@ -1330,6 +1339,14 @@ proto.PurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer)
|
|
|
1330
1339
|
f
|
|
1331
1340
|
);
|
|
1332
1341
|
}
|
|
1342
|
+
f = message.getFilesList();
|
|
1343
|
+
if (f.length > 0) {
|
|
1344
|
+
writer.writeRepeatedMessage(
|
|
1345
|
+
27,
|
|
1346
|
+
f,
|
|
1347
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.serializeBinaryToWriter
|
|
1348
|
+
);
|
|
1349
|
+
}
|
|
1333
1350
|
};
|
|
1334
1351
|
|
|
1335
1352
|
|
|
@@ -1840,6 +1857,44 @@ proto.PurchaseRequisitionTrx.prototype.setJustification = function(value) {
|
|
|
1840
1857
|
};
|
|
1841
1858
|
|
|
1842
1859
|
|
|
1860
|
+
/**
|
|
1861
|
+
* repeated prisca.v1.core.file_upload.FileUploadReq files = 27;
|
|
1862
|
+
* @return {!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>}
|
|
1863
|
+
*/
|
|
1864
|
+
proto.PurchaseRequisitionTrx.prototype.getFilesList = function() {
|
|
1865
|
+
return /** @type{!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>} */ (
|
|
1866
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReq, 27));
|
|
1867
|
+
};
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* @param {!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>} value
|
|
1872
|
+
* @return {!proto.PurchaseRequisitionTrx} returns this
|
|
1873
|
+
*/
|
|
1874
|
+
proto.PurchaseRequisitionTrx.prototype.setFilesList = function(value) {
|
|
1875
|
+
return jspb.Message.setRepeatedWrapperField(this, 27, value);
|
|
1876
|
+
};
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadReq=} opt_value
|
|
1881
|
+
* @param {number=} opt_index
|
|
1882
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadReq}
|
|
1883
|
+
*/
|
|
1884
|
+
proto.PurchaseRequisitionTrx.prototype.addFiles = function(opt_value, opt_index) {
|
|
1885
|
+
return jspb.Message.addToRepeatedWrapperField(this, 27, opt_value, proto.prisca.v1.core.file_upload.FileUploadReq, opt_index);
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
/**
|
|
1890
|
+
* Clears the list making it empty but non-null.
|
|
1891
|
+
* @return {!proto.PurchaseRequisitionTrx} returns this
|
|
1892
|
+
*/
|
|
1893
|
+
proto.PurchaseRequisitionTrx.prototype.clearFilesList = function() {
|
|
1894
|
+
return this.setFilesList([]);
|
|
1895
|
+
};
|
|
1896
|
+
|
|
1897
|
+
|
|
1843
1898
|
|
|
1844
1899
|
/**
|
|
1845
1900
|
* List of repeated fields within this message type.
|
|
@@ -3066,7 +3121,7 @@ proto.PurchaseRequisitionItemDetail.prototype.setUpdatedAt = function(value) {
|
|
|
3066
3121
|
* @private {!Array<number>}
|
|
3067
3122
|
* @const
|
|
3068
3123
|
*/
|
|
3069
|
-
proto.BasePurchaseRequisitionTrx.repeatedFields_ = [13];
|
|
3124
|
+
proto.BasePurchaseRequisitionTrx.repeatedFields_ = [13,18];
|
|
3070
3125
|
|
|
3071
3126
|
|
|
3072
3127
|
|
|
@@ -3116,7 +3171,9 @@ purchaseRequisitionItemsList: jspb.Message.toObjectList(msg.getPurchaseRequisiti
|
|
|
3116
3171
|
documentTypeRef: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
3117
3172
|
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
3118
3173
|
status: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
3119
|
-
justification: jspb.Message.getFieldWithDefault(msg, 17, "")
|
|
3174
|
+
justification: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
3175
|
+
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
3176
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.toObject, includeInstance)
|
|
3120
3177
|
};
|
|
3121
3178
|
|
|
3122
3179
|
if (includeInstance) {
|
|
@@ -3222,6 +3279,11 @@ proto.BasePurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, rea
|
|
|
3222
3279
|
var value = /** @type {string} */ (reader.readString());
|
|
3223
3280
|
msg.setJustification(value);
|
|
3224
3281
|
break;
|
|
3282
|
+
case 18:
|
|
3283
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReq;
|
|
3284
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.deserializeBinaryFromReader);
|
|
3285
|
+
msg.addFiles(value);
|
|
3286
|
+
break;
|
|
3225
3287
|
default:
|
|
3226
3288
|
reader.skipField();
|
|
3227
3289
|
break;
|
|
@@ -3371,6 +3433,14 @@ proto.BasePurchaseRequisitionTrx.serializeBinaryToWriter = function(message, wri
|
|
|
3371
3433
|
f
|
|
3372
3434
|
);
|
|
3373
3435
|
}
|
|
3436
|
+
f = message.getFilesList();
|
|
3437
|
+
if (f.length > 0) {
|
|
3438
|
+
writer.writeRepeatedMessage(
|
|
3439
|
+
18,
|
|
3440
|
+
f,
|
|
3441
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.serializeBinaryToWriter
|
|
3442
|
+
);
|
|
3443
|
+
}
|
|
3374
3444
|
};
|
|
3375
3445
|
|
|
3376
3446
|
|
|
@@ -3700,6 +3770,44 @@ proto.BasePurchaseRequisitionTrx.prototype.setJustification = function(value) {
|
|
|
3700
3770
|
};
|
|
3701
3771
|
|
|
3702
3772
|
|
|
3773
|
+
/**
|
|
3774
|
+
* repeated prisca.v1.core.file_upload.FileUploadReq files = 18;
|
|
3775
|
+
* @return {!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>}
|
|
3776
|
+
*/
|
|
3777
|
+
proto.BasePurchaseRequisitionTrx.prototype.getFilesList = function() {
|
|
3778
|
+
return /** @type{!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>} */ (
|
|
3779
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReq, 18));
|
|
3780
|
+
};
|
|
3781
|
+
|
|
3782
|
+
|
|
3783
|
+
/**
|
|
3784
|
+
* @param {!Array<!proto.prisca.v1.core.file_upload.FileUploadReq>} value
|
|
3785
|
+
* @return {!proto.BasePurchaseRequisitionTrx} returns this
|
|
3786
|
+
*/
|
|
3787
|
+
proto.BasePurchaseRequisitionTrx.prototype.setFilesList = function(value) {
|
|
3788
|
+
return jspb.Message.setRepeatedWrapperField(this, 18, value);
|
|
3789
|
+
};
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
/**
|
|
3793
|
+
* @param {!proto.prisca.v1.core.file_upload.FileUploadReq=} opt_value
|
|
3794
|
+
* @param {number=} opt_index
|
|
3795
|
+
* @return {!proto.prisca.v1.core.file_upload.FileUploadReq}
|
|
3796
|
+
*/
|
|
3797
|
+
proto.BasePurchaseRequisitionTrx.prototype.addFiles = function(opt_value, opt_index) {
|
|
3798
|
+
return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.prisca.v1.core.file_upload.FileUploadReq, opt_index);
|
|
3799
|
+
};
|
|
3800
|
+
|
|
3801
|
+
|
|
3802
|
+
/**
|
|
3803
|
+
* Clears the list making it empty but non-null.
|
|
3804
|
+
* @return {!proto.BasePurchaseRequisitionTrx} returns this
|
|
3805
|
+
*/
|
|
3806
|
+
proto.BasePurchaseRequisitionTrx.prototype.clearFilesList = function() {
|
|
3807
|
+
return this.setFilesList([]);
|
|
3808
|
+
};
|
|
3809
|
+
|
|
3810
|
+
|
|
3703
3811
|
|
|
3704
3812
|
/**
|
|
3705
3813
|
* List of repeated fields within this message type.
|