@aceplus/smartace-api 3.6.0-alpha.4 → 3.6.0-alpha.6

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.
@@ -0,0 +1,1724 @@
1
+ // source: spic.open_request.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
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
27
+ goog.object.extend(proto, platform_pagination_pb);
28
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
29
+ goog.object.extend(proto, google_api_annotations_pb);
30
+ goog.exportSymbol('proto.Spic.OpenRequestProto', null, global);
31
+ goog.exportSymbol('proto.Spic.OpenRequestProto.CreateRequest', null, global);
32
+ goog.exportSymbol('proto.Spic.OpenRequestProto.DeactivateRequest', null, global);
33
+ goog.exportSymbol('proto.Spic.OpenRequestProto.OpenRequestType', null, global);
34
+ goog.exportSymbol('proto.Spic.OpenRequestProto.SearchReply', null, global);
35
+ goog.exportSymbol('proto.Spic.OpenRequestProto.SearchRequest', null, global);
36
+ /**
37
+ * Generated by JsPbCodeGenerator.
38
+ * @param {Array=} opt_data Optional initial data array, typically from a
39
+ * server response, or constructed directly in Javascript. The array is used
40
+ * in place and becomes part of the constructed object. It is not cloned.
41
+ * If no data is provided, the constructed object will be empty, but still
42
+ * valid.
43
+ * @extends {jspb.Message}
44
+ * @constructor
45
+ */
46
+ proto.Spic.OpenRequestProto = function(opt_data) {
47
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
48
+ };
49
+ goog.inherits(proto.Spic.OpenRequestProto, jspb.Message);
50
+ if (goog.DEBUG && !COMPILED) {
51
+ /**
52
+ * @public
53
+ * @override
54
+ */
55
+ proto.Spic.OpenRequestProto.displayName = 'proto.Spic.OpenRequestProto';
56
+ }
57
+ /**
58
+ * Generated by JsPbCodeGenerator.
59
+ * @param {Array=} opt_data Optional initial data array, typically from a
60
+ * server response, or constructed directly in Javascript. The array is used
61
+ * in place and becomes part of the constructed object. It is not cloned.
62
+ * If no data is provided, the constructed object will be empty, but still
63
+ * valid.
64
+ * @extends {jspb.Message}
65
+ * @constructor
66
+ */
67
+ proto.Spic.OpenRequestProto.CreateRequest = function(opt_data) {
68
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
69
+ };
70
+ goog.inherits(proto.Spic.OpenRequestProto.CreateRequest, jspb.Message);
71
+ if (goog.DEBUG && !COMPILED) {
72
+ /**
73
+ * @public
74
+ * @override
75
+ */
76
+ proto.Spic.OpenRequestProto.CreateRequest.displayName = 'proto.Spic.OpenRequestProto.CreateRequest';
77
+ }
78
+ /**
79
+ * Generated by JsPbCodeGenerator.
80
+ * @param {Array=} opt_data Optional initial data array, typically from a
81
+ * server response, or constructed directly in Javascript. The array is used
82
+ * in place and becomes part of the constructed object. It is not cloned.
83
+ * If no data is provided, the constructed object will be empty, but still
84
+ * valid.
85
+ * @extends {jspb.Message}
86
+ * @constructor
87
+ */
88
+ proto.Spic.OpenRequestProto.DeactivateRequest = function(opt_data) {
89
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
90
+ };
91
+ goog.inherits(proto.Spic.OpenRequestProto.DeactivateRequest, jspb.Message);
92
+ if (goog.DEBUG && !COMPILED) {
93
+ /**
94
+ * @public
95
+ * @override
96
+ */
97
+ proto.Spic.OpenRequestProto.DeactivateRequest.displayName = 'proto.Spic.OpenRequestProto.DeactivateRequest';
98
+ }
99
+ /**
100
+ * Generated by JsPbCodeGenerator.
101
+ * @param {Array=} opt_data Optional initial data array, typically from a
102
+ * server response, or constructed directly in Javascript. The array is used
103
+ * in place and becomes part of the constructed object. It is not cloned.
104
+ * If no data is provided, the constructed object will be empty, but still
105
+ * valid.
106
+ * @extends {jspb.Message}
107
+ * @constructor
108
+ */
109
+ proto.Spic.OpenRequestProto.SearchRequest = function(opt_data) {
110
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.OpenRequestProto.SearchRequest.repeatedFields_, null);
111
+ };
112
+ goog.inherits(proto.Spic.OpenRequestProto.SearchRequest, jspb.Message);
113
+ if (goog.DEBUG && !COMPILED) {
114
+ /**
115
+ * @public
116
+ * @override
117
+ */
118
+ proto.Spic.OpenRequestProto.SearchRequest.displayName = 'proto.Spic.OpenRequestProto.SearchRequest';
119
+ }
120
+ /**
121
+ * Generated by JsPbCodeGenerator.
122
+ * @param {Array=} opt_data Optional initial data array, typically from a
123
+ * server response, or constructed directly in Javascript. The array is used
124
+ * in place and becomes part of the constructed object. It is not cloned.
125
+ * If no data is provided, the constructed object will be empty, but still
126
+ * valid.
127
+ * @extends {jspb.Message}
128
+ * @constructor
129
+ */
130
+ proto.Spic.OpenRequestProto.SearchReply = function(opt_data) {
131
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.OpenRequestProto.SearchReply.repeatedFields_, null);
132
+ };
133
+ goog.inherits(proto.Spic.OpenRequestProto.SearchReply, jspb.Message);
134
+ if (goog.DEBUG && !COMPILED) {
135
+ /**
136
+ * @public
137
+ * @override
138
+ */
139
+ proto.Spic.OpenRequestProto.SearchReply.displayName = 'proto.Spic.OpenRequestProto.SearchReply';
140
+ }
141
+
142
+
143
+
144
+ if (jspb.Message.GENERATE_TO_OBJECT) {
145
+ /**
146
+ * Creates an object representation of this proto.
147
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
148
+ * Optional fields that are not set will be set to undefined.
149
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
150
+ * For the list of reserved names please see:
151
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
152
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
153
+ * JSPB instance for transitional soy proto support:
154
+ * http://goto/soy-param-migration
155
+ * @return {!Object}
156
+ */
157
+ proto.Spic.OpenRequestProto.prototype.toObject = function(opt_includeInstance) {
158
+ return proto.Spic.OpenRequestProto.toObject(opt_includeInstance, this);
159
+ };
160
+
161
+
162
+ /**
163
+ * Static version of the {@see toObject} method.
164
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
165
+ * the JSPB instance for transitional soy proto support:
166
+ * http://goto/soy-param-migration
167
+ * @param {!proto.Spic.OpenRequestProto} msg The msg instance to transform.
168
+ * @return {!Object}
169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
170
+ */
171
+ proto.Spic.OpenRequestProto.toObject = function(includeInstance, msg) {
172
+ var f, obj = {
173
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
174
+ assetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
175
+ requesterId: jspb.Message.getFieldWithDefault(msg, 3, 0),
176
+ active: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
177
+ requestTime: (f = msg.getRequestTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
178
+ validUntil: (f = msg.getValidUntil()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
179
+ type: jspb.Message.getFieldWithDefault(msg, 7, 0),
180
+ contractor: jspb.Message.getFieldWithDefault(msg, 8, ""),
181
+ deactivateafteropening: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
182
+ devicepacketnumber: jspb.Message.getFieldWithDefault(msg, 10, 0)
183
+ };
184
+
185
+ if (includeInstance) {
186
+ obj.$jspbMessageInstance = msg;
187
+ }
188
+ return obj;
189
+ };
190
+ }
191
+
192
+
193
+ /**
194
+ * Deserializes binary data (in protobuf wire format).
195
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
196
+ * @return {!proto.Spic.OpenRequestProto}
197
+ */
198
+ proto.Spic.OpenRequestProto.deserializeBinary = function(bytes) {
199
+ var reader = new jspb.BinaryReader(bytes);
200
+ var msg = new proto.Spic.OpenRequestProto;
201
+ return proto.Spic.OpenRequestProto.deserializeBinaryFromReader(msg, reader);
202
+ };
203
+
204
+
205
+ /**
206
+ * Deserializes binary data (in protobuf wire format) from the
207
+ * given reader into the given message object.
208
+ * @param {!proto.Spic.OpenRequestProto} msg The message object to deserialize into.
209
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
210
+ * @return {!proto.Spic.OpenRequestProto}
211
+ */
212
+ proto.Spic.OpenRequestProto.deserializeBinaryFromReader = function(msg, reader) {
213
+ while (reader.nextField()) {
214
+ if (reader.isEndGroup()) {
215
+ break;
216
+ }
217
+ var field = reader.getFieldNumber();
218
+ switch (field) {
219
+ case 1:
220
+ var value = /** @type {number} */ (reader.readInt64());
221
+ msg.setId(value);
222
+ break;
223
+ case 2:
224
+ var value = /** @type {number} */ (reader.readInt64());
225
+ msg.setAssetId(value);
226
+ break;
227
+ case 3:
228
+ var value = /** @type {number} */ (reader.readInt64());
229
+ msg.setRequesterId(value);
230
+ break;
231
+ case 4:
232
+ var value = /** @type {boolean} */ (reader.readBool());
233
+ msg.setActive(value);
234
+ break;
235
+ case 5:
236
+ var value = new google_protobuf_timestamp_pb.Timestamp;
237
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
238
+ msg.setRequestTime(value);
239
+ break;
240
+ case 6:
241
+ var value = new google_protobuf_timestamp_pb.Timestamp;
242
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
243
+ msg.setValidUntil(value);
244
+ break;
245
+ case 7:
246
+ var value = /** @type {!proto.Spic.OpenRequestProto.OpenRequestType} */ (reader.readEnum());
247
+ msg.setType(value);
248
+ break;
249
+ case 8:
250
+ var value = /** @type {string} */ (reader.readString());
251
+ msg.setContractor(value);
252
+ break;
253
+ case 9:
254
+ var value = /** @type {boolean} */ (reader.readBool());
255
+ msg.setDeactivateafteropening(value);
256
+ break;
257
+ case 10:
258
+ var value = /** @type {number} */ (reader.readInt32());
259
+ msg.setDevicepacketnumber(value);
260
+ break;
261
+ default:
262
+ reader.skipField();
263
+ break;
264
+ }
265
+ }
266
+ return msg;
267
+ };
268
+
269
+
270
+ /**
271
+ * Serializes the message to binary data (in protobuf wire format).
272
+ * @return {!Uint8Array}
273
+ */
274
+ proto.Spic.OpenRequestProto.prototype.serializeBinary = function() {
275
+ var writer = new jspb.BinaryWriter();
276
+ proto.Spic.OpenRequestProto.serializeBinaryToWriter(this, writer);
277
+ return writer.getResultBuffer();
278
+ };
279
+
280
+
281
+ /**
282
+ * Serializes the given message to binary data (in protobuf wire
283
+ * format), writing to the given BinaryWriter.
284
+ * @param {!proto.Spic.OpenRequestProto} message
285
+ * @param {!jspb.BinaryWriter} writer
286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
287
+ */
288
+ proto.Spic.OpenRequestProto.serializeBinaryToWriter = function(message, writer) {
289
+ var f = undefined;
290
+ f = message.getId();
291
+ if (f !== 0) {
292
+ writer.writeInt64(
293
+ 1,
294
+ f
295
+ );
296
+ }
297
+ f = message.getAssetId();
298
+ if (f !== 0) {
299
+ writer.writeInt64(
300
+ 2,
301
+ f
302
+ );
303
+ }
304
+ f = message.getRequesterId();
305
+ if (f !== 0) {
306
+ writer.writeInt64(
307
+ 3,
308
+ f
309
+ );
310
+ }
311
+ f = message.getActive();
312
+ if (f) {
313
+ writer.writeBool(
314
+ 4,
315
+ f
316
+ );
317
+ }
318
+ f = message.getRequestTime();
319
+ if (f != null) {
320
+ writer.writeMessage(
321
+ 5,
322
+ f,
323
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
324
+ );
325
+ }
326
+ f = message.getValidUntil();
327
+ if (f != null) {
328
+ writer.writeMessage(
329
+ 6,
330
+ f,
331
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
332
+ );
333
+ }
334
+ f = message.getType();
335
+ if (f !== 0.0) {
336
+ writer.writeEnum(
337
+ 7,
338
+ f
339
+ );
340
+ }
341
+ f = message.getContractor();
342
+ if (f.length > 0) {
343
+ writer.writeString(
344
+ 8,
345
+ f
346
+ );
347
+ }
348
+ f = message.getDeactivateafteropening();
349
+ if (f) {
350
+ writer.writeBool(
351
+ 9,
352
+ f
353
+ );
354
+ }
355
+ f = message.getDevicepacketnumber();
356
+ if (f !== 0) {
357
+ writer.writeInt32(
358
+ 10,
359
+ f
360
+ );
361
+ }
362
+ };
363
+
364
+
365
+ /**
366
+ * @enum {number}
367
+ */
368
+ proto.Spic.OpenRequestProto.OpenRequestType = {
369
+ APP_OPENING: 0,
370
+ ADMIN_OPENING: 1
371
+ };
372
+
373
+
374
+
375
+
376
+ if (jspb.Message.GENERATE_TO_OBJECT) {
377
+ /**
378
+ * Creates an object representation of this proto.
379
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
380
+ * Optional fields that are not set will be set to undefined.
381
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
382
+ * For the list of reserved names please see:
383
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
384
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
385
+ * JSPB instance for transitional soy proto support:
386
+ * http://goto/soy-param-migration
387
+ * @return {!Object}
388
+ */
389
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
390
+ return proto.Spic.OpenRequestProto.CreateRequest.toObject(opt_includeInstance, this);
391
+ };
392
+
393
+
394
+ /**
395
+ * Static version of the {@see toObject} method.
396
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
397
+ * the JSPB instance for transitional soy proto support:
398
+ * http://goto/soy-param-migration
399
+ * @param {!proto.Spic.OpenRequestProto.CreateRequest} msg The msg instance to transform.
400
+ * @return {!Object}
401
+ * @suppress {unusedLocalVariables} f is only used for nested messages
402
+ */
403
+ proto.Spic.OpenRequestProto.CreateRequest.toObject = function(includeInstance, msg) {
404
+ var f, obj = {
405
+ assetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
406
+ requestTime: (f = msg.getRequestTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
407
+ validUntil: (f = msg.getValidUntil()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
408
+ longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
409
+ latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
410
+ type: jspb.Message.getFieldWithDefault(msg, 7, 0),
411
+ contractor: jspb.Message.getFieldWithDefault(msg, 8, ""),
412
+ deactivateafteropening: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
413
+ };
414
+
415
+ if (includeInstance) {
416
+ obj.$jspbMessageInstance = msg;
417
+ }
418
+ return obj;
419
+ };
420
+ }
421
+
422
+
423
+ /**
424
+ * Deserializes binary data (in protobuf wire format).
425
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
426
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest}
427
+ */
428
+ proto.Spic.OpenRequestProto.CreateRequest.deserializeBinary = function(bytes) {
429
+ var reader = new jspb.BinaryReader(bytes);
430
+ var msg = new proto.Spic.OpenRequestProto.CreateRequest;
431
+ return proto.Spic.OpenRequestProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
432
+ };
433
+
434
+
435
+ /**
436
+ * Deserializes binary data (in protobuf wire format) from the
437
+ * given reader into the given message object.
438
+ * @param {!proto.Spic.OpenRequestProto.CreateRequest} msg The message object to deserialize into.
439
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
440
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest}
441
+ */
442
+ proto.Spic.OpenRequestProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
443
+ while (reader.nextField()) {
444
+ if (reader.isEndGroup()) {
445
+ break;
446
+ }
447
+ var field = reader.getFieldNumber();
448
+ switch (field) {
449
+ case 1:
450
+ var value = /** @type {number} */ (reader.readInt64());
451
+ msg.setAssetId(value);
452
+ break;
453
+ case 3:
454
+ var value = new google_protobuf_timestamp_pb.Timestamp;
455
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
456
+ msg.setRequestTime(value);
457
+ break;
458
+ case 4:
459
+ var value = new google_protobuf_timestamp_pb.Timestamp;
460
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
461
+ msg.setValidUntil(value);
462
+ break;
463
+ case 5:
464
+ var value = /** @type {number} */ (reader.readDouble());
465
+ msg.setLongitude(value);
466
+ break;
467
+ case 6:
468
+ var value = /** @type {number} */ (reader.readDouble());
469
+ msg.setLatitude(value);
470
+ break;
471
+ case 7:
472
+ var value = /** @type {!proto.Spic.OpenRequestProto.OpenRequestType} */ (reader.readEnum());
473
+ msg.setType(value);
474
+ break;
475
+ case 8:
476
+ var value = /** @type {string} */ (reader.readString());
477
+ msg.setContractor(value);
478
+ break;
479
+ case 9:
480
+ var value = /** @type {boolean} */ (reader.readBool());
481
+ msg.setDeactivateafteropening(value);
482
+ break;
483
+ default:
484
+ reader.skipField();
485
+ break;
486
+ }
487
+ }
488
+ return msg;
489
+ };
490
+
491
+
492
+ /**
493
+ * Serializes the message to binary data (in protobuf wire format).
494
+ * @return {!Uint8Array}
495
+ */
496
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.serializeBinary = function() {
497
+ var writer = new jspb.BinaryWriter();
498
+ proto.Spic.OpenRequestProto.CreateRequest.serializeBinaryToWriter(this, writer);
499
+ return writer.getResultBuffer();
500
+ };
501
+
502
+
503
+ /**
504
+ * Serializes the given message to binary data (in protobuf wire
505
+ * format), writing to the given BinaryWriter.
506
+ * @param {!proto.Spic.OpenRequestProto.CreateRequest} message
507
+ * @param {!jspb.BinaryWriter} writer
508
+ * @suppress {unusedLocalVariables} f is only used for nested messages
509
+ */
510
+ proto.Spic.OpenRequestProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
511
+ var f = undefined;
512
+ f = message.getAssetId();
513
+ if (f !== 0) {
514
+ writer.writeInt64(
515
+ 1,
516
+ f
517
+ );
518
+ }
519
+ f = message.getRequestTime();
520
+ if (f != null) {
521
+ writer.writeMessage(
522
+ 3,
523
+ f,
524
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
525
+ );
526
+ }
527
+ f = message.getValidUntil();
528
+ if (f != null) {
529
+ writer.writeMessage(
530
+ 4,
531
+ f,
532
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
533
+ );
534
+ }
535
+ f = message.getLongitude();
536
+ if (f !== 0.0) {
537
+ writer.writeDouble(
538
+ 5,
539
+ f
540
+ );
541
+ }
542
+ f = message.getLatitude();
543
+ if (f !== 0.0) {
544
+ writer.writeDouble(
545
+ 6,
546
+ f
547
+ );
548
+ }
549
+ f = message.getType();
550
+ if (f !== 0.0) {
551
+ writer.writeEnum(
552
+ 7,
553
+ f
554
+ );
555
+ }
556
+ f = message.getContractor();
557
+ if (f.length > 0) {
558
+ writer.writeString(
559
+ 8,
560
+ f
561
+ );
562
+ }
563
+ f = message.getDeactivateafteropening();
564
+ if (f) {
565
+ writer.writeBool(
566
+ 9,
567
+ f
568
+ );
569
+ }
570
+ };
571
+
572
+
573
+ /**
574
+ * optional int64 asset_id = 1;
575
+ * @return {number}
576
+ */
577
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.getAssetId = function() {
578
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
579
+ };
580
+
581
+
582
+ /**
583
+ * @param {number} value
584
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
585
+ */
586
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.setAssetId = function(value) {
587
+ return jspb.Message.setProto3IntField(this, 1, value);
588
+ };
589
+
590
+
591
+ /**
592
+ * optional google.protobuf.Timestamp request_time = 3;
593
+ * @return {?proto.google.protobuf.Timestamp}
594
+ */
595
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.getRequestTime = function() {
596
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
597
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
598
+ };
599
+
600
+
601
+ /**
602
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
603
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
604
+ */
605
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.setRequestTime = function(value) {
606
+ return jspb.Message.setWrapperField(this, 3, value);
607
+ };
608
+
609
+
610
+ /**
611
+ * Clears the message field making it undefined.
612
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
613
+ */
614
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.clearRequestTime = function() {
615
+ return this.setRequestTime(undefined);
616
+ };
617
+
618
+
619
+ /**
620
+ * Returns whether this field is set.
621
+ * @return {boolean}
622
+ */
623
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.hasRequestTime = function() {
624
+ return jspb.Message.getField(this, 3) != null;
625
+ };
626
+
627
+
628
+ /**
629
+ * optional google.protobuf.Timestamp valid_until = 4;
630
+ * @return {?proto.google.protobuf.Timestamp}
631
+ */
632
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.getValidUntil = function() {
633
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
634
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
635
+ };
636
+
637
+
638
+ /**
639
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
640
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
641
+ */
642
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.setValidUntil = function(value) {
643
+ return jspb.Message.setWrapperField(this, 4, value);
644
+ };
645
+
646
+
647
+ /**
648
+ * Clears the message field making it undefined.
649
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
650
+ */
651
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.clearValidUntil = function() {
652
+ return this.setValidUntil(undefined);
653
+ };
654
+
655
+
656
+ /**
657
+ * Returns whether this field is set.
658
+ * @return {boolean}
659
+ */
660
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.hasValidUntil = function() {
661
+ return jspb.Message.getField(this, 4) != null;
662
+ };
663
+
664
+
665
+ /**
666
+ * optional double longitude = 5;
667
+ * @return {number}
668
+ */
669
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.getLongitude = function() {
670
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
671
+ };
672
+
673
+
674
+ /**
675
+ * @param {number} value
676
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
677
+ */
678
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.setLongitude = function(value) {
679
+ return jspb.Message.setProto3FloatField(this, 5, value);
680
+ };
681
+
682
+
683
+ /**
684
+ * optional double latitude = 6;
685
+ * @return {number}
686
+ */
687
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.getLatitude = function() {
688
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
689
+ };
690
+
691
+
692
+ /**
693
+ * @param {number} value
694
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
695
+ */
696
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.setLatitude = function(value) {
697
+ return jspb.Message.setProto3FloatField(this, 6, value);
698
+ };
699
+
700
+
701
+ /**
702
+ * optional OpenRequestType type = 7;
703
+ * @return {!proto.Spic.OpenRequestProto.OpenRequestType}
704
+ */
705
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.getType = function() {
706
+ return /** @type {!proto.Spic.OpenRequestProto.OpenRequestType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
707
+ };
708
+
709
+
710
+ /**
711
+ * @param {!proto.Spic.OpenRequestProto.OpenRequestType} value
712
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
713
+ */
714
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.setType = function(value) {
715
+ return jspb.Message.setProto3EnumField(this, 7, value);
716
+ };
717
+
718
+
719
+ /**
720
+ * optional string contractor = 8;
721
+ * @return {string}
722
+ */
723
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.getContractor = function() {
724
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
725
+ };
726
+
727
+
728
+ /**
729
+ * @param {string} value
730
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
731
+ */
732
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.setContractor = function(value) {
733
+ return jspb.Message.setProto3StringField(this, 8, value);
734
+ };
735
+
736
+
737
+ /**
738
+ * optional bool deactivateAfterOpening = 9;
739
+ * @return {boolean}
740
+ */
741
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.getDeactivateafteropening = function() {
742
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
743
+ };
744
+
745
+
746
+ /**
747
+ * @param {boolean} value
748
+ * @return {!proto.Spic.OpenRequestProto.CreateRequest} returns this
749
+ */
750
+ proto.Spic.OpenRequestProto.CreateRequest.prototype.setDeactivateafteropening = function(value) {
751
+ return jspb.Message.setProto3BooleanField(this, 9, value);
752
+ };
753
+
754
+
755
+
756
+
757
+
758
+ if (jspb.Message.GENERATE_TO_OBJECT) {
759
+ /**
760
+ * Creates an object representation of this proto.
761
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
762
+ * Optional fields that are not set will be set to undefined.
763
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
764
+ * For the list of reserved names please see:
765
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
766
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
767
+ * JSPB instance for transitional soy proto support:
768
+ * http://goto/soy-param-migration
769
+ * @return {!Object}
770
+ */
771
+ proto.Spic.OpenRequestProto.DeactivateRequest.prototype.toObject = function(opt_includeInstance) {
772
+ return proto.Spic.OpenRequestProto.DeactivateRequest.toObject(opt_includeInstance, this);
773
+ };
774
+
775
+
776
+ /**
777
+ * Static version of the {@see toObject} method.
778
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
779
+ * the JSPB instance for transitional soy proto support:
780
+ * http://goto/soy-param-migration
781
+ * @param {!proto.Spic.OpenRequestProto.DeactivateRequest} msg The msg instance to transform.
782
+ * @return {!Object}
783
+ * @suppress {unusedLocalVariables} f is only used for nested messages
784
+ */
785
+ proto.Spic.OpenRequestProto.DeactivateRequest.toObject = function(includeInstance, msg) {
786
+ var f, obj = {
787
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
788
+ };
789
+
790
+ if (includeInstance) {
791
+ obj.$jspbMessageInstance = msg;
792
+ }
793
+ return obj;
794
+ };
795
+ }
796
+
797
+
798
+ /**
799
+ * Deserializes binary data (in protobuf wire format).
800
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
801
+ * @return {!proto.Spic.OpenRequestProto.DeactivateRequest}
802
+ */
803
+ proto.Spic.OpenRequestProto.DeactivateRequest.deserializeBinary = function(bytes) {
804
+ var reader = new jspb.BinaryReader(bytes);
805
+ var msg = new proto.Spic.OpenRequestProto.DeactivateRequest;
806
+ return proto.Spic.OpenRequestProto.DeactivateRequest.deserializeBinaryFromReader(msg, reader);
807
+ };
808
+
809
+
810
+ /**
811
+ * Deserializes binary data (in protobuf wire format) from the
812
+ * given reader into the given message object.
813
+ * @param {!proto.Spic.OpenRequestProto.DeactivateRequest} msg The message object to deserialize into.
814
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
815
+ * @return {!proto.Spic.OpenRequestProto.DeactivateRequest}
816
+ */
817
+ proto.Spic.OpenRequestProto.DeactivateRequest.deserializeBinaryFromReader = function(msg, reader) {
818
+ while (reader.nextField()) {
819
+ if (reader.isEndGroup()) {
820
+ break;
821
+ }
822
+ var field = reader.getFieldNumber();
823
+ switch (field) {
824
+ case 1:
825
+ var value = /** @type {number} */ (reader.readInt64());
826
+ msg.setId(value);
827
+ break;
828
+ default:
829
+ reader.skipField();
830
+ break;
831
+ }
832
+ }
833
+ return msg;
834
+ };
835
+
836
+
837
+ /**
838
+ * Serializes the message to binary data (in protobuf wire format).
839
+ * @return {!Uint8Array}
840
+ */
841
+ proto.Spic.OpenRequestProto.DeactivateRequest.prototype.serializeBinary = function() {
842
+ var writer = new jspb.BinaryWriter();
843
+ proto.Spic.OpenRequestProto.DeactivateRequest.serializeBinaryToWriter(this, writer);
844
+ return writer.getResultBuffer();
845
+ };
846
+
847
+
848
+ /**
849
+ * Serializes the given message to binary data (in protobuf wire
850
+ * format), writing to the given BinaryWriter.
851
+ * @param {!proto.Spic.OpenRequestProto.DeactivateRequest} message
852
+ * @param {!jspb.BinaryWriter} writer
853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
854
+ */
855
+ proto.Spic.OpenRequestProto.DeactivateRequest.serializeBinaryToWriter = function(message, writer) {
856
+ var f = undefined;
857
+ f = message.getId();
858
+ if (f !== 0) {
859
+ writer.writeInt64(
860
+ 1,
861
+ f
862
+ );
863
+ }
864
+ };
865
+
866
+
867
+ /**
868
+ * optional int64 id = 1;
869
+ * @return {number}
870
+ */
871
+ proto.Spic.OpenRequestProto.DeactivateRequest.prototype.getId = function() {
872
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
873
+ };
874
+
875
+
876
+ /**
877
+ * @param {number} value
878
+ * @return {!proto.Spic.OpenRequestProto.DeactivateRequest} returns this
879
+ */
880
+ proto.Spic.OpenRequestProto.DeactivateRequest.prototype.setId = function(value) {
881
+ return jspb.Message.setProto3IntField(this, 1, value);
882
+ };
883
+
884
+
885
+
886
+ /**
887
+ * List of repeated fields within this message type.
888
+ * @private {!Array<number>}
889
+ * @const
890
+ */
891
+ proto.Spic.OpenRequestProto.SearchRequest.repeatedFields_ = [5];
892
+
893
+
894
+
895
+ if (jspb.Message.GENERATE_TO_OBJECT) {
896
+ /**
897
+ * Creates an object representation of this proto.
898
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
899
+ * Optional fields that are not set will be set to undefined.
900
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
901
+ * For the list of reserved names please see:
902
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
903
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
904
+ * JSPB instance for transitional soy proto support:
905
+ * http://goto/soy-param-migration
906
+ * @return {!Object}
907
+ */
908
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
909
+ return proto.Spic.OpenRequestProto.SearchRequest.toObject(opt_includeInstance, this);
910
+ };
911
+
912
+
913
+ /**
914
+ * Static version of the {@see toObject} method.
915
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
916
+ * the JSPB instance for transitional soy proto support:
917
+ * http://goto/soy-param-migration
918
+ * @param {!proto.Spic.OpenRequestProto.SearchRequest} msg The msg instance to transform.
919
+ * @return {!Object}
920
+ * @suppress {unusedLocalVariables} f is only used for nested messages
921
+ */
922
+ proto.Spic.OpenRequestProto.SearchRequest.toObject = function(includeInstance, msg) {
923
+ var f, obj = {
924
+ assetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
925
+ active: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
926
+ page: jspb.Message.getFieldWithDefault(msg, 3, 0),
927
+ count: jspb.Message.getFieldWithDefault(msg, 4, 0),
928
+ typeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
929
+ descorder: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
930
+ dateFrom: (f = msg.getDateFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
931
+ dateTo: (f = msg.getDateTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
932
+ };
933
+
934
+ if (includeInstance) {
935
+ obj.$jspbMessageInstance = msg;
936
+ }
937
+ return obj;
938
+ };
939
+ }
940
+
941
+
942
+ /**
943
+ * Deserializes binary data (in protobuf wire format).
944
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
945
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest}
946
+ */
947
+ proto.Spic.OpenRequestProto.SearchRequest.deserializeBinary = function(bytes) {
948
+ var reader = new jspb.BinaryReader(bytes);
949
+ var msg = new proto.Spic.OpenRequestProto.SearchRequest;
950
+ return proto.Spic.OpenRequestProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
951
+ };
952
+
953
+
954
+ /**
955
+ * Deserializes binary data (in protobuf wire format) from the
956
+ * given reader into the given message object.
957
+ * @param {!proto.Spic.OpenRequestProto.SearchRequest} msg The message object to deserialize into.
958
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
959
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest}
960
+ */
961
+ proto.Spic.OpenRequestProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
962
+ while (reader.nextField()) {
963
+ if (reader.isEndGroup()) {
964
+ break;
965
+ }
966
+ var field = reader.getFieldNumber();
967
+ switch (field) {
968
+ case 1:
969
+ var value = /** @type {number} */ (reader.readInt64());
970
+ msg.setAssetId(value);
971
+ break;
972
+ case 2:
973
+ var value = /** @type {boolean} */ (reader.readBool());
974
+ msg.setActive(value);
975
+ break;
976
+ case 3:
977
+ var value = /** @type {number} */ (reader.readInt32());
978
+ msg.setPage(value);
979
+ break;
980
+ case 4:
981
+ var value = /** @type {number} */ (reader.readInt32());
982
+ msg.setCount(value);
983
+ break;
984
+ case 5:
985
+ var values = /** @type {!Array<!proto.Spic.OpenRequestProto.OpenRequestType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
986
+ for (var i = 0; i < values.length; i++) {
987
+ msg.addType(values[i]);
988
+ }
989
+ break;
990
+ case 6:
991
+ var value = /** @type {boolean} */ (reader.readBool());
992
+ msg.setDescorder(value);
993
+ break;
994
+ case 7:
995
+ var value = new google_protobuf_timestamp_pb.Timestamp;
996
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
997
+ msg.setDateFrom(value);
998
+ break;
999
+ case 8:
1000
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1001
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1002
+ msg.setDateTo(value);
1003
+ break;
1004
+ default:
1005
+ reader.skipField();
1006
+ break;
1007
+ }
1008
+ }
1009
+ return msg;
1010
+ };
1011
+
1012
+
1013
+ /**
1014
+ * Serializes the message to binary data (in protobuf wire format).
1015
+ * @return {!Uint8Array}
1016
+ */
1017
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.serializeBinary = function() {
1018
+ var writer = new jspb.BinaryWriter();
1019
+ proto.Spic.OpenRequestProto.SearchRequest.serializeBinaryToWriter(this, writer);
1020
+ return writer.getResultBuffer();
1021
+ };
1022
+
1023
+
1024
+ /**
1025
+ * Serializes the given message to binary data (in protobuf wire
1026
+ * format), writing to the given BinaryWriter.
1027
+ * @param {!proto.Spic.OpenRequestProto.SearchRequest} message
1028
+ * @param {!jspb.BinaryWriter} writer
1029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1030
+ */
1031
+ proto.Spic.OpenRequestProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
1032
+ var f = undefined;
1033
+ f = message.getAssetId();
1034
+ if (f !== 0) {
1035
+ writer.writeInt64(
1036
+ 1,
1037
+ f
1038
+ );
1039
+ }
1040
+ f = message.getActive();
1041
+ if (f) {
1042
+ writer.writeBool(
1043
+ 2,
1044
+ f
1045
+ );
1046
+ }
1047
+ f = message.getPage();
1048
+ if (f !== 0) {
1049
+ writer.writeInt32(
1050
+ 3,
1051
+ f
1052
+ );
1053
+ }
1054
+ f = message.getCount();
1055
+ if (f !== 0) {
1056
+ writer.writeInt32(
1057
+ 4,
1058
+ f
1059
+ );
1060
+ }
1061
+ f = message.getTypeList();
1062
+ if (f.length > 0) {
1063
+ writer.writePackedEnum(
1064
+ 5,
1065
+ f
1066
+ );
1067
+ }
1068
+ f = message.getDescorder();
1069
+ if (f) {
1070
+ writer.writeBool(
1071
+ 6,
1072
+ f
1073
+ );
1074
+ }
1075
+ f = message.getDateFrom();
1076
+ if (f != null) {
1077
+ writer.writeMessage(
1078
+ 7,
1079
+ f,
1080
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1081
+ );
1082
+ }
1083
+ f = message.getDateTo();
1084
+ if (f != null) {
1085
+ writer.writeMessage(
1086
+ 8,
1087
+ f,
1088
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1089
+ );
1090
+ }
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * optional int64 asset_id = 1;
1096
+ * @return {number}
1097
+ */
1098
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.getAssetId = function() {
1099
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1100
+ };
1101
+
1102
+
1103
+ /**
1104
+ * @param {number} value
1105
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1106
+ */
1107
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.setAssetId = function(value) {
1108
+ return jspb.Message.setProto3IntField(this, 1, value);
1109
+ };
1110
+
1111
+
1112
+ /**
1113
+ * optional bool active = 2;
1114
+ * @return {boolean}
1115
+ */
1116
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.getActive = function() {
1117
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1118
+ };
1119
+
1120
+
1121
+ /**
1122
+ * @param {boolean} value
1123
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1124
+ */
1125
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.setActive = function(value) {
1126
+ return jspb.Message.setProto3BooleanField(this, 2, value);
1127
+ };
1128
+
1129
+
1130
+ /**
1131
+ * optional int32 page = 3;
1132
+ * @return {number}
1133
+ */
1134
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.getPage = function() {
1135
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1136
+ };
1137
+
1138
+
1139
+ /**
1140
+ * @param {number} value
1141
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1142
+ */
1143
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.setPage = function(value) {
1144
+ return jspb.Message.setProto3IntField(this, 3, value);
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * optional int32 count = 4;
1150
+ * @return {number}
1151
+ */
1152
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.getCount = function() {
1153
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1154
+ };
1155
+
1156
+
1157
+ /**
1158
+ * @param {number} value
1159
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1160
+ */
1161
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.setCount = function(value) {
1162
+ return jspb.Message.setProto3IntField(this, 4, value);
1163
+ };
1164
+
1165
+
1166
+ /**
1167
+ * repeated OpenRequestType type = 5;
1168
+ * @return {!Array<!proto.Spic.OpenRequestProto.OpenRequestType>}
1169
+ */
1170
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.getTypeList = function() {
1171
+ return /** @type {!Array<!proto.Spic.OpenRequestProto.OpenRequestType>} */ (jspb.Message.getRepeatedField(this, 5));
1172
+ };
1173
+
1174
+
1175
+ /**
1176
+ * @param {!Array<!proto.Spic.OpenRequestProto.OpenRequestType>} value
1177
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1178
+ */
1179
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.setTypeList = function(value) {
1180
+ return jspb.Message.setField(this, 5, value || []);
1181
+ };
1182
+
1183
+
1184
+ /**
1185
+ * @param {!proto.Spic.OpenRequestProto.OpenRequestType} value
1186
+ * @param {number=} opt_index
1187
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1188
+ */
1189
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.addType = function(value, opt_index) {
1190
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * Clears the list making it empty but non-null.
1196
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1197
+ */
1198
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.clearTypeList = function() {
1199
+ return this.setTypeList([]);
1200
+ };
1201
+
1202
+
1203
+ /**
1204
+ * optional bool descOrder = 6;
1205
+ * @return {boolean}
1206
+ */
1207
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.getDescorder = function() {
1208
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * @param {boolean} value
1214
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1215
+ */
1216
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.setDescorder = function(value) {
1217
+ return jspb.Message.setProto3BooleanField(this, 6, value);
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * optional google.protobuf.Timestamp date_from = 7;
1223
+ * @return {?proto.google.protobuf.Timestamp}
1224
+ */
1225
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.getDateFrom = function() {
1226
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1227
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1233
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1234
+ */
1235
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.setDateFrom = function(value) {
1236
+ return jspb.Message.setWrapperField(this, 7, value);
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * Clears the message field making it undefined.
1242
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1243
+ */
1244
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.clearDateFrom = function() {
1245
+ return this.setDateFrom(undefined);
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * Returns whether this field is set.
1251
+ * @return {boolean}
1252
+ */
1253
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.hasDateFrom = function() {
1254
+ return jspb.Message.getField(this, 7) != null;
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * optional google.protobuf.Timestamp date_to = 8;
1260
+ * @return {?proto.google.protobuf.Timestamp}
1261
+ */
1262
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.getDateTo = function() {
1263
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1264
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1270
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1271
+ */
1272
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.setDateTo = function(value) {
1273
+ return jspb.Message.setWrapperField(this, 8, value);
1274
+ };
1275
+
1276
+
1277
+ /**
1278
+ * Clears the message field making it undefined.
1279
+ * @return {!proto.Spic.OpenRequestProto.SearchRequest} returns this
1280
+ */
1281
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.clearDateTo = function() {
1282
+ return this.setDateTo(undefined);
1283
+ };
1284
+
1285
+
1286
+ /**
1287
+ * Returns whether this field is set.
1288
+ * @return {boolean}
1289
+ */
1290
+ proto.Spic.OpenRequestProto.SearchRequest.prototype.hasDateTo = function() {
1291
+ return jspb.Message.getField(this, 8) != null;
1292
+ };
1293
+
1294
+
1295
+
1296
+ /**
1297
+ * List of repeated fields within this message type.
1298
+ * @private {!Array<number>}
1299
+ * @const
1300
+ */
1301
+ proto.Spic.OpenRequestProto.SearchReply.repeatedFields_ = [1];
1302
+
1303
+
1304
+
1305
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1306
+ /**
1307
+ * Creates an object representation of this proto.
1308
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1309
+ * Optional fields that are not set will be set to undefined.
1310
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1311
+ * For the list of reserved names please see:
1312
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1313
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1314
+ * JSPB instance for transitional soy proto support:
1315
+ * http://goto/soy-param-migration
1316
+ * @return {!Object}
1317
+ */
1318
+ proto.Spic.OpenRequestProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
1319
+ return proto.Spic.OpenRequestProto.SearchReply.toObject(opt_includeInstance, this);
1320
+ };
1321
+
1322
+
1323
+ /**
1324
+ * Static version of the {@see toObject} method.
1325
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1326
+ * the JSPB instance for transitional soy proto support:
1327
+ * http://goto/soy-param-migration
1328
+ * @param {!proto.Spic.OpenRequestProto.SearchReply} msg The msg instance to transform.
1329
+ * @return {!Object}
1330
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1331
+ */
1332
+ proto.Spic.OpenRequestProto.SearchReply.toObject = function(includeInstance, msg) {
1333
+ var f, obj = {
1334
+ openingsList: jspb.Message.toObjectList(msg.getOpeningsList(),
1335
+ proto.Spic.OpenRequestProto.toObject, includeInstance),
1336
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1337
+ };
1338
+
1339
+ if (includeInstance) {
1340
+ obj.$jspbMessageInstance = msg;
1341
+ }
1342
+ return obj;
1343
+ };
1344
+ }
1345
+
1346
+
1347
+ /**
1348
+ * Deserializes binary data (in protobuf wire format).
1349
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1350
+ * @return {!proto.Spic.OpenRequestProto.SearchReply}
1351
+ */
1352
+ proto.Spic.OpenRequestProto.SearchReply.deserializeBinary = function(bytes) {
1353
+ var reader = new jspb.BinaryReader(bytes);
1354
+ var msg = new proto.Spic.OpenRequestProto.SearchReply;
1355
+ return proto.Spic.OpenRequestProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1356
+ };
1357
+
1358
+
1359
+ /**
1360
+ * Deserializes binary data (in protobuf wire format) from the
1361
+ * given reader into the given message object.
1362
+ * @param {!proto.Spic.OpenRequestProto.SearchReply} msg The message object to deserialize into.
1363
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1364
+ * @return {!proto.Spic.OpenRequestProto.SearchReply}
1365
+ */
1366
+ proto.Spic.OpenRequestProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1367
+ while (reader.nextField()) {
1368
+ if (reader.isEndGroup()) {
1369
+ break;
1370
+ }
1371
+ var field = reader.getFieldNumber();
1372
+ switch (field) {
1373
+ case 1:
1374
+ var value = new proto.Spic.OpenRequestProto;
1375
+ reader.readMessage(value,proto.Spic.OpenRequestProto.deserializeBinaryFromReader);
1376
+ msg.addOpenings(value);
1377
+ break;
1378
+ case 2:
1379
+ var value = new platform_pagination_pb.PaginationProto;
1380
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1381
+ msg.setPagination(value);
1382
+ break;
1383
+ default:
1384
+ reader.skipField();
1385
+ break;
1386
+ }
1387
+ }
1388
+ return msg;
1389
+ };
1390
+
1391
+
1392
+ /**
1393
+ * Serializes the message to binary data (in protobuf wire format).
1394
+ * @return {!Uint8Array}
1395
+ */
1396
+ proto.Spic.OpenRequestProto.SearchReply.prototype.serializeBinary = function() {
1397
+ var writer = new jspb.BinaryWriter();
1398
+ proto.Spic.OpenRequestProto.SearchReply.serializeBinaryToWriter(this, writer);
1399
+ return writer.getResultBuffer();
1400
+ };
1401
+
1402
+
1403
+ /**
1404
+ * Serializes the given message to binary data (in protobuf wire
1405
+ * format), writing to the given BinaryWriter.
1406
+ * @param {!proto.Spic.OpenRequestProto.SearchReply} message
1407
+ * @param {!jspb.BinaryWriter} writer
1408
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1409
+ */
1410
+ proto.Spic.OpenRequestProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1411
+ var f = undefined;
1412
+ f = message.getOpeningsList();
1413
+ if (f.length > 0) {
1414
+ writer.writeRepeatedMessage(
1415
+ 1,
1416
+ f,
1417
+ proto.Spic.OpenRequestProto.serializeBinaryToWriter
1418
+ );
1419
+ }
1420
+ f = message.getPagination();
1421
+ if (f != null) {
1422
+ writer.writeMessage(
1423
+ 2,
1424
+ f,
1425
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1426
+ );
1427
+ }
1428
+ };
1429
+
1430
+
1431
+ /**
1432
+ * repeated OpenRequestProto openings = 1;
1433
+ * @return {!Array<!proto.Spic.OpenRequestProto>}
1434
+ */
1435
+ proto.Spic.OpenRequestProto.SearchReply.prototype.getOpeningsList = function() {
1436
+ return /** @type{!Array<!proto.Spic.OpenRequestProto>} */ (
1437
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.OpenRequestProto, 1));
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * @param {!Array<!proto.Spic.OpenRequestProto>} value
1443
+ * @return {!proto.Spic.OpenRequestProto.SearchReply} returns this
1444
+ */
1445
+ proto.Spic.OpenRequestProto.SearchReply.prototype.setOpeningsList = function(value) {
1446
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * @param {!proto.Spic.OpenRequestProto=} opt_value
1452
+ * @param {number=} opt_index
1453
+ * @return {!proto.Spic.OpenRequestProto}
1454
+ */
1455
+ proto.Spic.OpenRequestProto.SearchReply.prototype.addOpenings = function(opt_value, opt_index) {
1456
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.OpenRequestProto, opt_index);
1457
+ };
1458
+
1459
+
1460
+ /**
1461
+ * Clears the list making it empty but non-null.
1462
+ * @return {!proto.Spic.OpenRequestProto.SearchReply} returns this
1463
+ */
1464
+ proto.Spic.OpenRequestProto.SearchReply.prototype.clearOpeningsList = function() {
1465
+ return this.setOpeningsList([]);
1466
+ };
1467
+
1468
+
1469
+ /**
1470
+ * optional Platform.PaginationProto pagination = 2;
1471
+ * @return {?proto.Platform.PaginationProto}
1472
+ */
1473
+ proto.Spic.OpenRequestProto.SearchReply.prototype.getPagination = function() {
1474
+ return /** @type{?proto.Platform.PaginationProto} */ (
1475
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1476
+ };
1477
+
1478
+
1479
+ /**
1480
+ * @param {?proto.Platform.PaginationProto|undefined} value
1481
+ * @return {!proto.Spic.OpenRequestProto.SearchReply} returns this
1482
+ */
1483
+ proto.Spic.OpenRequestProto.SearchReply.prototype.setPagination = function(value) {
1484
+ return jspb.Message.setWrapperField(this, 2, value);
1485
+ };
1486
+
1487
+
1488
+ /**
1489
+ * Clears the message field making it undefined.
1490
+ * @return {!proto.Spic.OpenRequestProto.SearchReply} returns this
1491
+ */
1492
+ proto.Spic.OpenRequestProto.SearchReply.prototype.clearPagination = function() {
1493
+ return this.setPagination(undefined);
1494
+ };
1495
+
1496
+
1497
+ /**
1498
+ * Returns whether this field is set.
1499
+ * @return {boolean}
1500
+ */
1501
+ proto.Spic.OpenRequestProto.SearchReply.prototype.hasPagination = function() {
1502
+ return jspb.Message.getField(this, 2) != null;
1503
+ };
1504
+
1505
+
1506
+ /**
1507
+ * optional int64 id = 1;
1508
+ * @return {number}
1509
+ */
1510
+ proto.Spic.OpenRequestProto.prototype.getId = function() {
1511
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1512
+ };
1513
+
1514
+
1515
+ /**
1516
+ * @param {number} value
1517
+ * @return {!proto.Spic.OpenRequestProto} returns this
1518
+ */
1519
+ proto.Spic.OpenRequestProto.prototype.setId = function(value) {
1520
+ return jspb.Message.setProto3IntField(this, 1, value);
1521
+ };
1522
+
1523
+
1524
+ /**
1525
+ * optional int64 asset_id = 2;
1526
+ * @return {number}
1527
+ */
1528
+ proto.Spic.OpenRequestProto.prototype.getAssetId = function() {
1529
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1530
+ };
1531
+
1532
+
1533
+ /**
1534
+ * @param {number} value
1535
+ * @return {!proto.Spic.OpenRequestProto} returns this
1536
+ */
1537
+ proto.Spic.OpenRequestProto.prototype.setAssetId = function(value) {
1538
+ return jspb.Message.setProto3IntField(this, 2, value);
1539
+ };
1540
+
1541
+
1542
+ /**
1543
+ * optional int64 requester_id = 3;
1544
+ * @return {number}
1545
+ */
1546
+ proto.Spic.OpenRequestProto.prototype.getRequesterId = function() {
1547
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1548
+ };
1549
+
1550
+
1551
+ /**
1552
+ * @param {number} value
1553
+ * @return {!proto.Spic.OpenRequestProto} returns this
1554
+ */
1555
+ proto.Spic.OpenRequestProto.prototype.setRequesterId = function(value) {
1556
+ return jspb.Message.setProto3IntField(this, 3, value);
1557
+ };
1558
+
1559
+
1560
+ /**
1561
+ * optional bool active = 4;
1562
+ * @return {boolean}
1563
+ */
1564
+ proto.Spic.OpenRequestProto.prototype.getActive = function() {
1565
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
1566
+ };
1567
+
1568
+
1569
+ /**
1570
+ * @param {boolean} value
1571
+ * @return {!proto.Spic.OpenRequestProto} returns this
1572
+ */
1573
+ proto.Spic.OpenRequestProto.prototype.setActive = function(value) {
1574
+ return jspb.Message.setProto3BooleanField(this, 4, value);
1575
+ };
1576
+
1577
+
1578
+ /**
1579
+ * optional google.protobuf.Timestamp request_time = 5;
1580
+ * @return {?proto.google.protobuf.Timestamp}
1581
+ */
1582
+ proto.Spic.OpenRequestProto.prototype.getRequestTime = function() {
1583
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1584
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1585
+ };
1586
+
1587
+
1588
+ /**
1589
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1590
+ * @return {!proto.Spic.OpenRequestProto} returns this
1591
+ */
1592
+ proto.Spic.OpenRequestProto.prototype.setRequestTime = function(value) {
1593
+ return jspb.Message.setWrapperField(this, 5, value);
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * Clears the message field making it undefined.
1599
+ * @return {!proto.Spic.OpenRequestProto} returns this
1600
+ */
1601
+ proto.Spic.OpenRequestProto.prototype.clearRequestTime = function() {
1602
+ return this.setRequestTime(undefined);
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * Returns whether this field is set.
1608
+ * @return {boolean}
1609
+ */
1610
+ proto.Spic.OpenRequestProto.prototype.hasRequestTime = function() {
1611
+ return jspb.Message.getField(this, 5) != null;
1612
+ };
1613
+
1614
+
1615
+ /**
1616
+ * optional google.protobuf.Timestamp valid_until = 6;
1617
+ * @return {?proto.google.protobuf.Timestamp}
1618
+ */
1619
+ proto.Spic.OpenRequestProto.prototype.getValidUntil = function() {
1620
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1621
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
1622
+ };
1623
+
1624
+
1625
+ /**
1626
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1627
+ * @return {!proto.Spic.OpenRequestProto} returns this
1628
+ */
1629
+ proto.Spic.OpenRequestProto.prototype.setValidUntil = function(value) {
1630
+ return jspb.Message.setWrapperField(this, 6, value);
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * Clears the message field making it undefined.
1636
+ * @return {!proto.Spic.OpenRequestProto} returns this
1637
+ */
1638
+ proto.Spic.OpenRequestProto.prototype.clearValidUntil = function() {
1639
+ return this.setValidUntil(undefined);
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * Returns whether this field is set.
1645
+ * @return {boolean}
1646
+ */
1647
+ proto.Spic.OpenRequestProto.prototype.hasValidUntil = function() {
1648
+ return jspb.Message.getField(this, 6) != null;
1649
+ };
1650
+
1651
+
1652
+ /**
1653
+ * optional OpenRequestType type = 7;
1654
+ * @return {!proto.Spic.OpenRequestProto.OpenRequestType}
1655
+ */
1656
+ proto.Spic.OpenRequestProto.prototype.getType = function() {
1657
+ return /** @type {!proto.Spic.OpenRequestProto.OpenRequestType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * @param {!proto.Spic.OpenRequestProto.OpenRequestType} value
1663
+ * @return {!proto.Spic.OpenRequestProto} returns this
1664
+ */
1665
+ proto.Spic.OpenRequestProto.prototype.setType = function(value) {
1666
+ return jspb.Message.setProto3EnumField(this, 7, value);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * optional string contractor = 8;
1672
+ * @return {string}
1673
+ */
1674
+ proto.Spic.OpenRequestProto.prototype.getContractor = function() {
1675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * @param {string} value
1681
+ * @return {!proto.Spic.OpenRequestProto} returns this
1682
+ */
1683
+ proto.Spic.OpenRequestProto.prototype.setContractor = function(value) {
1684
+ return jspb.Message.setProto3StringField(this, 8, value);
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * optional bool deactivateAfterOpening = 9;
1690
+ * @return {boolean}
1691
+ */
1692
+ proto.Spic.OpenRequestProto.prototype.getDeactivateafteropening = function() {
1693
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
1694
+ };
1695
+
1696
+
1697
+ /**
1698
+ * @param {boolean} value
1699
+ * @return {!proto.Spic.OpenRequestProto} returns this
1700
+ */
1701
+ proto.Spic.OpenRequestProto.prototype.setDeactivateafteropening = function(value) {
1702
+ return jspb.Message.setProto3BooleanField(this, 9, value);
1703
+ };
1704
+
1705
+
1706
+ /**
1707
+ * optional int32 devicePacketNumber = 10;
1708
+ * @return {number}
1709
+ */
1710
+ proto.Spic.OpenRequestProto.prototype.getDevicepacketnumber = function() {
1711
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
1712
+ };
1713
+
1714
+
1715
+ /**
1716
+ * @param {number} value
1717
+ * @return {!proto.Spic.OpenRequestProto} returns this
1718
+ */
1719
+ proto.Spic.OpenRequestProto.prototype.setDevicepacketnumber = function(value) {
1720
+ return jspb.Message.setProto3IntField(this, 10, value);
1721
+ };
1722
+
1723
+
1724
+ goog.object.extend(exports, proto.Spic);