protobuf-platform 1.1.74 → 1.1.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/scheduler/scheduler.proto +48 -2
- package/scheduler/scheduler_grpc_pb.js +122 -0
- package/scheduler/scheduler_pb.js +1978 -0
- package/user/user.proto +3 -2
- package/user/user_pb.js +91 -7
@@ -21,8 +21,15 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.scheduler.GetTaskRequest', null, global);
|
25
|
+
goog.exportSymbol('proto.scheduler.PaginationRequest', null, global);
|
24
26
|
goog.exportSymbol('proto.scheduler.PingRequest', null, global);
|
25
27
|
goog.exportSymbol('proto.scheduler.PongResponse', null, global);
|
28
|
+
goog.exportSymbol('proto.scheduler.TaskItem', null, global);
|
29
|
+
goog.exportSymbol('proto.scheduler.TaskItemsResponse', null, global);
|
30
|
+
goog.exportSymbol('proto.scheduler.TaskRequest', null, global);
|
31
|
+
goog.exportSymbol('proto.scheduler.TaskResponse', null, global);
|
32
|
+
goog.exportSymbol('proto.scheduler.TaskStatusResponse', null, global);
|
26
33
|
/**
|
27
34
|
* Generated by JsPbCodeGenerator.
|
28
35
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -65,6 +72,153 @@ if (goog.DEBUG && !COMPILED) {
|
|
65
72
|
*/
|
66
73
|
proto.scheduler.PongResponse.displayName = 'proto.scheduler.PongResponse';
|
67
74
|
}
|
75
|
+
/**
|
76
|
+
* Generated by JsPbCodeGenerator.
|
77
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
78
|
+
* server response, or constructed directly in Javascript. The array is used
|
79
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
80
|
+
* If no data is provided, the constructed object will be empty, but still
|
81
|
+
* valid.
|
82
|
+
* @extends {jspb.Message}
|
83
|
+
* @constructor
|
84
|
+
*/
|
85
|
+
proto.scheduler.PaginationRequest = function(opt_data) {
|
86
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
87
|
+
};
|
88
|
+
goog.inherits(proto.scheduler.PaginationRequest, jspb.Message);
|
89
|
+
if (goog.DEBUG && !COMPILED) {
|
90
|
+
/**
|
91
|
+
* @public
|
92
|
+
* @override
|
93
|
+
*/
|
94
|
+
proto.scheduler.PaginationRequest.displayName = 'proto.scheduler.PaginationRequest';
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
* Generated by JsPbCodeGenerator.
|
98
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
99
|
+
* server response, or constructed directly in Javascript. The array is used
|
100
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
101
|
+
* If no data is provided, the constructed object will be empty, but still
|
102
|
+
* valid.
|
103
|
+
* @extends {jspb.Message}
|
104
|
+
* @constructor
|
105
|
+
*/
|
106
|
+
proto.scheduler.TaskRequest = function(opt_data) {
|
107
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.scheduler.TaskRequest.repeatedFields_, null);
|
108
|
+
};
|
109
|
+
goog.inherits(proto.scheduler.TaskRequest, jspb.Message);
|
110
|
+
if (goog.DEBUG && !COMPILED) {
|
111
|
+
/**
|
112
|
+
* @public
|
113
|
+
* @override
|
114
|
+
*/
|
115
|
+
proto.scheduler.TaskRequest.displayName = 'proto.scheduler.TaskRequest';
|
116
|
+
}
|
117
|
+
/**
|
118
|
+
* Generated by JsPbCodeGenerator.
|
119
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
120
|
+
* server response, or constructed directly in Javascript. The array is used
|
121
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
122
|
+
* If no data is provided, the constructed object will be empty, but still
|
123
|
+
* valid.
|
124
|
+
* @extends {jspb.Message}
|
125
|
+
* @constructor
|
126
|
+
*/
|
127
|
+
proto.scheduler.TaskItem = function(opt_data) {
|
128
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
129
|
+
};
|
130
|
+
goog.inherits(proto.scheduler.TaskItem, jspb.Message);
|
131
|
+
if (goog.DEBUG && !COMPILED) {
|
132
|
+
/**
|
133
|
+
* @public
|
134
|
+
* @override
|
135
|
+
*/
|
136
|
+
proto.scheduler.TaskItem.displayName = 'proto.scheduler.TaskItem';
|
137
|
+
}
|
138
|
+
/**
|
139
|
+
* Generated by JsPbCodeGenerator.
|
140
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
141
|
+
* server response, or constructed directly in Javascript. The array is used
|
142
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
143
|
+
* If no data is provided, the constructed object will be empty, but still
|
144
|
+
* valid.
|
145
|
+
* @extends {jspb.Message}
|
146
|
+
* @constructor
|
147
|
+
*/
|
148
|
+
proto.scheduler.TaskResponse = function(opt_data) {
|
149
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
150
|
+
};
|
151
|
+
goog.inherits(proto.scheduler.TaskResponse, jspb.Message);
|
152
|
+
if (goog.DEBUG && !COMPILED) {
|
153
|
+
/**
|
154
|
+
* @public
|
155
|
+
* @override
|
156
|
+
*/
|
157
|
+
proto.scheduler.TaskResponse.displayName = 'proto.scheduler.TaskResponse';
|
158
|
+
}
|
159
|
+
/**
|
160
|
+
* Generated by JsPbCodeGenerator.
|
161
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
162
|
+
* server response, or constructed directly in Javascript. The array is used
|
163
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
164
|
+
* If no data is provided, the constructed object will be empty, but still
|
165
|
+
* valid.
|
166
|
+
* @extends {jspb.Message}
|
167
|
+
* @constructor
|
168
|
+
*/
|
169
|
+
proto.scheduler.GetTaskRequest = function(opt_data) {
|
170
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
171
|
+
};
|
172
|
+
goog.inherits(proto.scheduler.GetTaskRequest, jspb.Message);
|
173
|
+
if (goog.DEBUG && !COMPILED) {
|
174
|
+
/**
|
175
|
+
* @public
|
176
|
+
* @override
|
177
|
+
*/
|
178
|
+
proto.scheduler.GetTaskRequest.displayName = 'proto.scheduler.GetTaskRequest';
|
179
|
+
}
|
180
|
+
/**
|
181
|
+
* Generated by JsPbCodeGenerator.
|
182
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
183
|
+
* server response, or constructed directly in Javascript. The array is used
|
184
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
185
|
+
* If no data is provided, the constructed object will be empty, but still
|
186
|
+
* valid.
|
187
|
+
* @extends {jspb.Message}
|
188
|
+
* @constructor
|
189
|
+
*/
|
190
|
+
proto.scheduler.TaskStatusResponse = function(opt_data) {
|
191
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
192
|
+
};
|
193
|
+
goog.inherits(proto.scheduler.TaskStatusResponse, jspb.Message);
|
194
|
+
if (goog.DEBUG && !COMPILED) {
|
195
|
+
/**
|
196
|
+
* @public
|
197
|
+
* @override
|
198
|
+
*/
|
199
|
+
proto.scheduler.TaskStatusResponse.displayName = 'proto.scheduler.TaskStatusResponse';
|
200
|
+
}
|
201
|
+
/**
|
202
|
+
* Generated by JsPbCodeGenerator.
|
203
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
204
|
+
* server response, or constructed directly in Javascript. The array is used
|
205
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
206
|
+
* If no data is provided, the constructed object will be empty, but still
|
207
|
+
* valid.
|
208
|
+
* @extends {jspb.Message}
|
209
|
+
* @constructor
|
210
|
+
*/
|
211
|
+
proto.scheduler.TaskItemsResponse = function(opt_data) {
|
212
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.scheduler.TaskItemsResponse.repeatedFields_, null);
|
213
|
+
};
|
214
|
+
goog.inherits(proto.scheduler.TaskItemsResponse, jspb.Message);
|
215
|
+
if (goog.DEBUG && !COMPILED) {
|
216
|
+
/**
|
217
|
+
* @public
|
218
|
+
* @override
|
219
|
+
*/
|
220
|
+
proto.scheduler.TaskItemsResponse.displayName = 'proto.scheduler.TaskItemsResponse';
|
221
|
+
}
|
68
222
|
|
69
223
|
|
70
224
|
|
@@ -325,4 +479,1828 @@ proto.scheduler.PongResponse.prototype.setPong = function(value) {
|
|
325
479
|
};
|
326
480
|
|
327
481
|
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
486
|
+
/**
|
487
|
+
* Creates an object representation of this proto.
|
488
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
489
|
+
* Optional fields that are not set will be set to undefined.
|
490
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
491
|
+
* For the list of reserved names please see:
|
492
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
493
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
494
|
+
* JSPB instance for transitional soy proto support:
|
495
|
+
* http://goto/soy-param-migration
|
496
|
+
* @return {!Object}
|
497
|
+
*/
|
498
|
+
proto.scheduler.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
|
499
|
+
return proto.scheduler.PaginationRequest.toObject(opt_includeInstance, this);
|
500
|
+
};
|
501
|
+
|
502
|
+
|
503
|
+
/**
|
504
|
+
* Static version of the {@see toObject} method.
|
505
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
506
|
+
* the JSPB instance for transitional soy proto support:
|
507
|
+
* http://goto/soy-param-migration
|
508
|
+
* @param {!proto.scheduler.PaginationRequest} msg The msg instance to transform.
|
509
|
+
* @return {!Object}
|
510
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
511
|
+
*/
|
512
|
+
proto.scheduler.PaginationRequest.toObject = function(includeInstance, msg) {
|
513
|
+
var f, obj = {
|
514
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
515
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
516
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, "")
|
517
|
+
};
|
518
|
+
|
519
|
+
if (includeInstance) {
|
520
|
+
obj.$jspbMessageInstance = msg;
|
521
|
+
}
|
522
|
+
return obj;
|
523
|
+
};
|
524
|
+
}
|
525
|
+
|
526
|
+
|
527
|
+
/**
|
528
|
+
* Deserializes binary data (in protobuf wire format).
|
529
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
530
|
+
* @return {!proto.scheduler.PaginationRequest}
|
531
|
+
*/
|
532
|
+
proto.scheduler.PaginationRequest.deserializeBinary = function(bytes) {
|
533
|
+
var reader = new jspb.BinaryReader(bytes);
|
534
|
+
var msg = new proto.scheduler.PaginationRequest;
|
535
|
+
return proto.scheduler.PaginationRequest.deserializeBinaryFromReader(msg, reader);
|
536
|
+
};
|
537
|
+
|
538
|
+
|
539
|
+
/**
|
540
|
+
* Deserializes binary data (in protobuf wire format) from the
|
541
|
+
* given reader into the given message object.
|
542
|
+
* @param {!proto.scheduler.PaginationRequest} msg The message object to deserialize into.
|
543
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
544
|
+
* @return {!proto.scheduler.PaginationRequest}
|
545
|
+
*/
|
546
|
+
proto.scheduler.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
547
|
+
while (reader.nextField()) {
|
548
|
+
if (reader.isEndGroup()) {
|
549
|
+
break;
|
550
|
+
}
|
551
|
+
var field = reader.getFieldNumber();
|
552
|
+
switch (field) {
|
553
|
+
case 1:
|
554
|
+
var value = /** @type {number} */ (reader.readInt32());
|
555
|
+
msg.setLimit(value);
|
556
|
+
break;
|
557
|
+
case 2:
|
558
|
+
var value = /** @type {number} */ (reader.readInt32());
|
559
|
+
msg.setOffset(value);
|
560
|
+
break;
|
561
|
+
case 3:
|
562
|
+
var value = /** @type {string} */ (reader.readString());
|
563
|
+
msg.setOrder(value);
|
564
|
+
break;
|
565
|
+
default:
|
566
|
+
reader.skipField();
|
567
|
+
break;
|
568
|
+
}
|
569
|
+
}
|
570
|
+
return msg;
|
571
|
+
};
|
572
|
+
|
573
|
+
|
574
|
+
/**
|
575
|
+
* Serializes the message to binary data (in protobuf wire format).
|
576
|
+
* @return {!Uint8Array}
|
577
|
+
*/
|
578
|
+
proto.scheduler.PaginationRequest.prototype.serializeBinary = function() {
|
579
|
+
var writer = new jspb.BinaryWriter();
|
580
|
+
proto.scheduler.PaginationRequest.serializeBinaryToWriter(this, writer);
|
581
|
+
return writer.getResultBuffer();
|
582
|
+
};
|
583
|
+
|
584
|
+
|
585
|
+
/**
|
586
|
+
* Serializes the given message to binary data (in protobuf wire
|
587
|
+
* format), writing to the given BinaryWriter.
|
588
|
+
* @param {!proto.scheduler.PaginationRequest} message
|
589
|
+
* @param {!jspb.BinaryWriter} writer
|
590
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
591
|
+
*/
|
592
|
+
proto.scheduler.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
|
593
|
+
var f = undefined;
|
594
|
+
f = message.getLimit();
|
595
|
+
if (f !== 0) {
|
596
|
+
writer.writeInt32(
|
597
|
+
1,
|
598
|
+
f
|
599
|
+
);
|
600
|
+
}
|
601
|
+
f = message.getOffset();
|
602
|
+
if (f !== 0) {
|
603
|
+
writer.writeInt32(
|
604
|
+
2,
|
605
|
+
f
|
606
|
+
);
|
607
|
+
}
|
608
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
609
|
+
if (f != null) {
|
610
|
+
writer.writeString(
|
611
|
+
3,
|
612
|
+
f
|
613
|
+
);
|
614
|
+
}
|
615
|
+
};
|
616
|
+
|
617
|
+
|
618
|
+
/**
|
619
|
+
* optional int32 limit = 1;
|
620
|
+
* @return {number}
|
621
|
+
*/
|
622
|
+
proto.scheduler.PaginationRequest.prototype.getLimit = function() {
|
623
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
624
|
+
};
|
625
|
+
|
626
|
+
|
627
|
+
/**
|
628
|
+
* @param {number} value
|
629
|
+
* @return {!proto.scheduler.PaginationRequest} returns this
|
630
|
+
*/
|
631
|
+
proto.scheduler.PaginationRequest.prototype.setLimit = function(value) {
|
632
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
633
|
+
};
|
634
|
+
|
635
|
+
|
636
|
+
/**
|
637
|
+
* optional int32 offset = 2;
|
638
|
+
* @return {number}
|
639
|
+
*/
|
640
|
+
proto.scheduler.PaginationRequest.prototype.getOffset = function() {
|
641
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
642
|
+
};
|
643
|
+
|
644
|
+
|
645
|
+
/**
|
646
|
+
* @param {number} value
|
647
|
+
* @return {!proto.scheduler.PaginationRequest} returns this
|
648
|
+
*/
|
649
|
+
proto.scheduler.PaginationRequest.prototype.setOffset = function(value) {
|
650
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
651
|
+
};
|
652
|
+
|
653
|
+
|
654
|
+
/**
|
655
|
+
* optional string order = 3;
|
656
|
+
* @return {string}
|
657
|
+
*/
|
658
|
+
proto.scheduler.PaginationRequest.prototype.getOrder = function() {
|
659
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
660
|
+
};
|
661
|
+
|
662
|
+
|
663
|
+
/**
|
664
|
+
* @param {string} value
|
665
|
+
* @return {!proto.scheduler.PaginationRequest} returns this
|
666
|
+
*/
|
667
|
+
proto.scheduler.PaginationRequest.prototype.setOrder = function(value) {
|
668
|
+
return jspb.Message.setField(this, 3, value);
|
669
|
+
};
|
670
|
+
|
671
|
+
|
672
|
+
/**
|
673
|
+
* Clears the field making it undefined.
|
674
|
+
* @return {!proto.scheduler.PaginationRequest} returns this
|
675
|
+
*/
|
676
|
+
proto.scheduler.PaginationRequest.prototype.clearOrder = function() {
|
677
|
+
return jspb.Message.setField(this, 3, undefined);
|
678
|
+
};
|
679
|
+
|
680
|
+
|
681
|
+
/**
|
682
|
+
* Returns whether this field is set.
|
683
|
+
* @return {boolean}
|
684
|
+
*/
|
685
|
+
proto.scheduler.PaginationRequest.prototype.hasOrder = function() {
|
686
|
+
return jspb.Message.getField(this, 3) != null;
|
687
|
+
};
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
/**
|
692
|
+
* List of repeated fields within this message type.
|
693
|
+
* @private {!Array<number>}
|
694
|
+
* @const
|
695
|
+
*/
|
696
|
+
proto.scheduler.TaskRequest.repeatedFields_ = [7,8];
|
697
|
+
|
698
|
+
|
699
|
+
|
700
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
701
|
+
/**
|
702
|
+
* Creates an object representation of this proto.
|
703
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
704
|
+
* Optional fields that are not set will be set to undefined.
|
705
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
706
|
+
* For the list of reserved names please see:
|
707
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
708
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
709
|
+
* JSPB instance for transitional soy proto support:
|
710
|
+
* http://goto/soy-param-migration
|
711
|
+
* @return {!Object}
|
712
|
+
*/
|
713
|
+
proto.scheduler.TaskRequest.prototype.toObject = function(opt_includeInstance) {
|
714
|
+
return proto.scheduler.TaskRequest.toObject(opt_includeInstance, this);
|
715
|
+
};
|
716
|
+
|
717
|
+
|
718
|
+
/**
|
719
|
+
* Static version of the {@see toObject} method.
|
720
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
721
|
+
* the JSPB instance for transitional soy proto support:
|
722
|
+
* http://goto/soy-param-migration
|
723
|
+
* @param {!proto.scheduler.TaskRequest} msg The msg instance to transform.
|
724
|
+
* @return {!Object}
|
725
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
726
|
+
*/
|
727
|
+
proto.scheduler.TaskRequest.toObject = function(includeInstance, msg) {
|
728
|
+
var f, obj = {
|
729
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
730
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
731
|
+
service: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
732
|
+
type: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
733
|
+
scheduleType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
734
|
+
intervalMinutes: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
735
|
+
specificTimesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
736
|
+
daysList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
|
737
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
738
|
+
};
|
739
|
+
|
740
|
+
if (includeInstance) {
|
741
|
+
obj.$jspbMessageInstance = msg;
|
742
|
+
}
|
743
|
+
return obj;
|
744
|
+
};
|
745
|
+
}
|
746
|
+
|
747
|
+
|
748
|
+
/**
|
749
|
+
* Deserializes binary data (in protobuf wire format).
|
750
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
751
|
+
* @return {!proto.scheduler.TaskRequest}
|
752
|
+
*/
|
753
|
+
proto.scheduler.TaskRequest.deserializeBinary = function(bytes) {
|
754
|
+
var reader = new jspb.BinaryReader(bytes);
|
755
|
+
var msg = new proto.scheduler.TaskRequest;
|
756
|
+
return proto.scheduler.TaskRequest.deserializeBinaryFromReader(msg, reader);
|
757
|
+
};
|
758
|
+
|
759
|
+
|
760
|
+
/**
|
761
|
+
* Deserializes binary data (in protobuf wire format) from the
|
762
|
+
* given reader into the given message object.
|
763
|
+
* @param {!proto.scheduler.TaskRequest} msg The message object to deserialize into.
|
764
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
765
|
+
* @return {!proto.scheduler.TaskRequest}
|
766
|
+
*/
|
767
|
+
proto.scheduler.TaskRequest.deserializeBinaryFromReader = function(msg, reader) {
|
768
|
+
while (reader.nextField()) {
|
769
|
+
if (reader.isEndGroup()) {
|
770
|
+
break;
|
771
|
+
}
|
772
|
+
var field = reader.getFieldNumber();
|
773
|
+
switch (field) {
|
774
|
+
case 1:
|
775
|
+
var value = /** @type {number} */ (reader.readInt32());
|
776
|
+
msg.setId(value);
|
777
|
+
break;
|
778
|
+
case 2:
|
779
|
+
var value = /** @type {string} */ (reader.readString());
|
780
|
+
msg.setTitle(value);
|
781
|
+
break;
|
782
|
+
case 3:
|
783
|
+
var value = /** @type {string} */ (reader.readString());
|
784
|
+
msg.setService(value);
|
785
|
+
break;
|
786
|
+
case 4:
|
787
|
+
var value = /** @type {string} */ (reader.readString());
|
788
|
+
msg.setType(value);
|
789
|
+
break;
|
790
|
+
case 5:
|
791
|
+
var value = /** @type {string} */ (reader.readString());
|
792
|
+
msg.setScheduleType(value);
|
793
|
+
break;
|
794
|
+
case 6:
|
795
|
+
var value = /** @type {number} */ (reader.readInt32());
|
796
|
+
msg.setIntervalMinutes(value);
|
797
|
+
break;
|
798
|
+
case 7:
|
799
|
+
var value = /** @type {string} */ (reader.readString());
|
800
|
+
msg.addSpecificTimes(value);
|
801
|
+
break;
|
802
|
+
case 8:
|
803
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
804
|
+
for (var i = 0; i < values.length; i++) {
|
805
|
+
msg.addDays(values[i]);
|
806
|
+
}
|
807
|
+
break;
|
808
|
+
case 9:
|
809
|
+
var value = /** @type {number} */ (reader.readInt32());
|
810
|
+
msg.setIsActive(value);
|
811
|
+
break;
|
812
|
+
default:
|
813
|
+
reader.skipField();
|
814
|
+
break;
|
815
|
+
}
|
816
|
+
}
|
817
|
+
return msg;
|
818
|
+
};
|
819
|
+
|
820
|
+
|
821
|
+
/**
|
822
|
+
* Serializes the message to binary data (in protobuf wire format).
|
823
|
+
* @return {!Uint8Array}
|
824
|
+
*/
|
825
|
+
proto.scheduler.TaskRequest.prototype.serializeBinary = function() {
|
826
|
+
var writer = new jspb.BinaryWriter();
|
827
|
+
proto.scheduler.TaskRequest.serializeBinaryToWriter(this, writer);
|
828
|
+
return writer.getResultBuffer();
|
829
|
+
};
|
830
|
+
|
831
|
+
|
832
|
+
/**
|
833
|
+
* Serializes the given message to binary data (in protobuf wire
|
834
|
+
* format), writing to the given BinaryWriter.
|
835
|
+
* @param {!proto.scheduler.TaskRequest} message
|
836
|
+
* @param {!jspb.BinaryWriter} writer
|
837
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
838
|
+
*/
|
839
|
+
proto.scheduler.TaskRequest.serializeBinaryToWriter = function(message, writer) {
|
840
|
+
var f = undefined;
|
841
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
842
|
+
if (f != null) {
|
843
|
+
writer.writeInt32(
|
844
|
+
1,
|
845
|
+
f
|
846
|
+
);
|
847
|
+
}
|
848
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
849
|
+
if (f != null) {
|
850
|
+
writer.writeString(
|
851
|
+
2,
|
852
|
+
f
|
853
|
+
);
|
854
|
+
}
|
855
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
856
|
+
if (f != null) {
|
857
|
+
writer.writeString(
|
858
|
+
3,
|
859
|
+
f
|
860
|
+
);
|
861
|
+
}
|
862
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
863
|
+
if (f != null) {
|
864
|
+
writer.writeString(
|
865
|
+
4,
|
866
|
+
f
|
867
|
+
);
|
868
|
+
}
|
869
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
870
|
+
if (f != null) {
|
871
|
+
writer.writeString(
|
872
|
+
5,
|
873
|
+
f
|
874
|
+
);
|
875
|
+
}
|
876
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
877
|
+
if (f != null) {
|
878
|
+
writer.writeInt32(
|
879
|
+
6,
|
880
|
+
f
|
881
|
+
);
|
882
|
+
}
|
883
|
+
f = message.getSpecificTimesList();
|
884
|
+
if (f.length > 0) {
|
885
|
+
writer.writeRepeatedString(
|
886
|
+
7,
|
887
|
+
f
|
888
|
+
);
|
889
|
+
}
|
890
|
+
f = message.getDaysList();
|
891
|
+
if (f.length > 0) {
|
892
|
+
writer.writePackedInt32(
|
893
|
+
8,
|
894
|
+
f
|
895
|
+
);
|
896
|
+
}
|
897
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
898
|
+
if (f != null) {
|
899
|
+
writer.writeInt32(
|
900
|
+
9,
|
901
|
+
f
|
902
|
+
);
|
903
|
+
}
|
904
|
+
};
|
905
|
+
|
906
|
+
|
907
|
+
/**
|
908
|
+
* optional int32 id = 1;
|
909
|
+
* @return {number}
|
910
|
+
*/
|
911
|
+
proto.scheduler.TaskRequest.prototype.getId = function() {
|
912
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
913
|
+
};
|
914
|
+
|
915
|
+
|
916
|
+
/**
|
917
|
+
* @param {number} value
|
918
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
919
|
+
*/
|
920
|
+
proto.scheduler.TaskRequest.prototype.setId = function(value) {
|
921
|
+
return jspb.Message.setField(this, 1, value);
|
922
|
+
};
|
923
|
+
|
924
|
+
|
925
|
+
/**
|
926
|
+
* Clears the field making it undefined.
|
927
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
928
|
+
*/
|
929
|
+
proto.scheduler.TaskRequest.prototype.clearId = function() {
|
930
|
+
return jspb.Message.setField(this, 1, undefined);
|
931
|
+
};
|
932
|
+
|
933
|
+
|
934
|
+
/**
|
935
|
+
* Returns whether this field is set.
|
936
|
+
* @return {boolean}
|
937
|
+
*/
|
938
|
+
proto.scheduler.TaskRequest.prototype.hasId = function() {
|
939
|
+
return jspb.Message.getField(this, 1) != null;
|
940
|
+
};
|
941
|
+
|
942
|
+
|
943
|
+
/**
|
944
|
+
* optional string title = 2;
|
945
|
+
* @return {string}
|
946
|
+
*/
|
947
|
+
proto.scheduler.TaskRequest.prototype.getTitle = function() {
|
948
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
949
|
+
};
|
950
|
+
|
951
|
+
|
952
|
+
/**
|
953
|
+
* @param {string} value
|
954
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
955
|
+
*/
|
956
|
+
proto.scheduler.TaskRequest.prototype.setTitle = function(value) {
|
957
|
+
return jspb.Message.setField(this, 2, value);
|
958
|
+
};
|
959
|
+
|
960
|
+
|
961
|
+
/**
|
962
|
+
* Clears the field making it undefined.
|
963
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
964
|
+
*/
|
965
|
+
proto.scheduler.TaskRequest.prototype.clearTitle = function() {
|
966
|
+
return jspb.Message.setField(this, 2, undefined);
|
967
|
+
};
|
968
|
+
|
969
|
+
|
970
|
+
/**
|
971
|
+
* Returns whether this field is set.
|
972
|
+
* @return {boolean}
|
973
|
+
*/
|
974
|
+
proto.scheduler.TaskRequest.prototype.hasTitle = function() {
|
975
|
+
return jspb.Message.getField(this, 2) != null;
|
976
|
+
};
|
977
|
+
|
978
|
+
|
979
|
+
/**
|
980
|
+
* optional string service = 3;
|
981
|
+
* @return {string}
|
982
|
+
*/
|
983
|
+
proto.scheduler.TaskRequest.prototype.getService = function() {
|
984
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
985
|
+
};
|
986
|
+
|
987
|
+
|
988
|
+
/**
|
989
|
+
* @param {string} value
|
990
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
991
|
+
*/
|
992
|
+
proto.scheduler.TaskRequest.prototype.setService = function(value) {
|
993
|
+
return jspb.Message.setField(this, 3, value);
|
994
|
+
};
|
995
|
+
|
996
|
+
|
997
|
+
/**
|
998
|
+
* Clears the field making it undefined.
|
999
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1000
|
+
*/
|
1001
|
+
proto.scheduler.TaskRequest.prototype.clearService = function() {
|
1002
|
+
return jspb.Message.setField(this, 3, undefined);
|
1003
|
+
};
|
1004
|
+
|
1005
|
+
|
1006
|
+
/**
|
1007
|
+
* Returns whether this field is set.
|
1008
|
+
* @return {boolean}
|
1009
|
+
*/
|
1010
|
+
proto.scheduler.TaskRequest.prototype.hasService = function() {
|
1011
|
+
return jspb.Message.getField(this, 3) != null;
|
1012
|
+
};
|
1013
|
+
|
1014
|
+
|
1015
|
+
/**
|
1016
|
+
* optional string type = 4;
|
1017
|
+
* @return {string}
|
1018
|
+
*/
|
1019
|
+
proto.scheduler.TaskRequest.prototype.getType = function() {
|
1020
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1021
|
+
};
|
1022
|
+
|
1023
|
+
|
1024
|
+
/**
|
1025
|
+
* @param {string} value
|
1026
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1027
|
+
*/
|
1028
|
+
proto.scheduler.TaskRequest.prototype.setType = function(value) {
|
1029
|
+
return jspb.Message.setField(this, 4, value);
|
1030
|
+
};
|
1031
|
+
|
1032
|
+
|
1033
|
+
/**
|
1034
|
+
* Clears the field making it undefined.
|
1035
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1036
|
+
*/
|
1037
|
+
proto.scheduler.TaskRequest.prototype.clearType = function() {
|
1038
|
+
return jspb.Message.setField(this, 4, undefined);
|
1039
|
+
};
|
1040
|
+
|
1041
|
+
|
1042
|
+
/**
|
1043
|
+
* Returns whether this field is set.
|
1044
|
+
* @return {boolean}
|
1045
|
+
*/
|
1046
|
+
proto.scheduler.TaskRequest.prototype.hasType = function() {
|
1047
|
+
return jspb.Message.getField(this, 4) != null;
|
1048
|
+
};
|
1049
|
+
|
1050
|
+
|
1051
|
+
/**
|
1052
|
+
* optional string schedule_type = 5;
|
1053
|
+
* @return {string}
|
1054
|
+
*/
|
1055
|
+
proto.scheduler.TaskRequest.prototype.getScheduleType = function() {
|
1056
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
1057
|
+
};
|
1058
|
+
|
1059
|
+
|
1060
|
+
/**
|
1061
|
+
* @param {string} value
|
1062
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1063
|
+
*/
|
1064
|
+
proto.scheduler.TaskRequest.prototype.setScheduleType = function(value) {
|
1065
|
+
return jspb.Message.setField(this, 5, value);
|
1066
|
+
};
|
1067
|
+
|
1068
|
+
|
1069
|
+
/**
|
1070
|
+
* Clears the field making it undefined.
|
1071
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1072
|
+
*/
|
1073
|
+
proto.scheduler.TaskRequest.prototype.clearScheduleType = function() {
|
1074
|
+
return jspb.Message.setField(this, 5, undefined);
|
1075
|
+
};
|
1076
|
+
|
1077
|
+
|
1078
|
+
/**
|
1079
|
+
* Returns whether this field is set.
|
1080
|
+
* @return {boolean}
|
1081
|
+
*/
|
1082
|
+
proto.scheduler.TaskRequest.prototype.hasScheduleType = function() {
|
1083
|
+
return jspb.Message.getField(this, 5) != null;
|
1084
|
+
};
|
1085
|
+
|
1086
|
+
|
1087
|
+
/**
|
1088
|
+
* optional int32 interval_minutes = 6;
|
1089
|
+
* @return {number}
|
1090
|
+
*/
|
1091
|
+
proto.scheduler.TaskRequest.prototype.getIntervalMinutes = function() {
|
1092
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
1093
|
+
};
|
1094
|
+
|
1095
|
+
|
1096
|
+
/**
|
1097
|
+
* @param {number} value
|
1098
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1099
|
+
*/
|
1100
|
+
proto.scheduler.TaskRequest.prototype.setIntervalMinutes = function(value) {
|
1101
|
+
return jspb.Message.setField(this, 6, value);
|
1102
|
+
};
|
1103
|
+
|
1104
|
+
|
1105
|
+
/**
|
1106
|
+
* Clears the field making it undefined.
|
1107
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1108
|
+
*/
|
1109
|
+
proto.scheduler.TaskRequest.prototype.clearIntervalMinutes = function() {
|
1110
|
+
return jspb.Message.setField(this, 6, undefined);
|
1111
|
+
};
|
1112
|
+
|
1113
|
+
|
1114
|
+
/**
|
1115
|
+
* Returns whether this field is set.
|
1116
|
+
* @return {boolean}
|
1117
|
+
*/
|
1118
|
+
proto.scheduler.TaskRequest.prototype.hasIntervalMinutes = function() {
|
1119
|
+
return jspb.Message.getField(this, 6) != null;
|
1120
|
+
};
|
1121
|
+
|
1122
|
+
|
1123
|
+
/**
|
1124
|
+
* repeated string specific_times = 7;
|
1125
|
+
* @return {!Array<string>}
|
1126
|
+
*/
|
1127
|
+
proto.scheduler.TaskRequest.prototype.getSpecificTimesList = function() {
|
1128
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
1129
|
+
};
|
1130
|
+
|
1131
|
+
|
1132
|
+
/**
|
1133
|
+
* @param {!Array<string>} value
|
1134
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1135
|
+
*/
|
1136
|
+
proto.scheduler.TaskRequest.prototype.setSpecificTimesList = function(value) {
|
1137
|
+
return jspb.Message.setField(this, 7, value || []);
|
1138
|
+
};
|
1139
|
+
|
1140
|
+
|
1141
|
+
/**
|
1142
|
+
* @param {string} value
|
1143
|
+
* @param {number=} opt_index
|
1144
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1145
|
+
*/
|
1146
|
+
proto.scheduler.TaskRequest.prototype.addSpecificTimes = function(value, opt_index) {
|
1147
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
1148
|
+
};
|
1149
|
+
|
1150
|
+
|
1151
|
+
/**
|
1152
|
+
* Clears the list making it empty but non-null.
|
1153
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1154
|
+
*/
|
1155
|
+
proto.scheduler.TaskRequest.prototype.clearSpecificTimesList = function() {
|
1156
|
+
return this.setSpecificTimesList([]);
|
1157
|
+
};
|
1158
|
+
|
1159
|
+
|
1160
|
+
/**
|
1161
|
+
* repeated int32 days = 8;
|
1162
|
+
* @return {!Array<number>}
|
1163
|
+
*/
|
1164
|
+
proto.scheduler.TaskRequest.prototype.getDaysList = function() {
|
1165
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 8));
|
1166
|
+
};
|
1167
|
+
|
1168
|
+
|
1169
|
+
/**
|
1170
|
+
* @param {!Array<number>} value
|
1171
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1172
|
+
*/
|
1173
|
+
proto.scheduler.TaskRequest.prototype.setDaysList = function(value) {
|
1174
|
+
return jspb.Message.setField(this, 8, value || []);
|
1175
|
+
};
|
1176
|
+
|
1177
|
+
|
1178
|
+
/**
|
1179
|
+
* @param {number} value
|
1180
|
+
* @param {number=} opt_index
|
1181
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1182
|
+
*/
|
1183
|
+
proto.scheduler.TaskRequest.prototype.addDays = function(value, opt_index) {
|
1184
|
+
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
1185
|
+
};
|
1186
|
+
|
1187
|
+
|
1188
|
+
/**
|
1189
|
+
* Clears the list making it empty but non-null.
|
1190
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1191
|
+
*/
|
1192
|
+
proto.scheduler.TaskRequest.prototype.clearDaysList = function() {
|
1193
|
+
return this.setDaysList([]);
|
1194
|
+
};
|
1195
|
+
|
1196
|
+
|
1197
|
+
/**
|
1198
|
+
* optional int32 is_active = 9;
|
1199
|
+
* @return {number}
|
1200
|
+
*/
|
1201
|
+
proto.scheduler.TaskRequest.prototype.getIsActive = function() {
|
1202
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
1203
|
+
};
|
1204
|
+
|
1205
|
+
|
1206
|
+
/**
|
1207
|
+
* @param {number} value
|
1208
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1209
|
+
*/
|
1210
|
+
proto.scheduler.TaskRequest.prototype.setIsActive = function(value) {
|
1211
|
+
return jspb.Message.setField(this, 9, value);
|
1212
|
+
};
|
1213
|
+
|
1214
|
+
|
1215
|
+
/**
|
1216
|
+
* Clears the field making it undefined.
|
1217
|
+
* @return {!proto.scheduler.TaskRequest} returns this
|
1218
|
+
*/
|
1219
|
+
proto.scheduler.TaskRequest.prototype.clearIsActive = function() {
|
1220
|
+
return jspb.Message.setField(this, 9, undefined);
|
1221
|
+
};
|
1222
|
+
|
1223
|
+
|
1224
|
+
/**
|
1225
|
+
* Returns whether this field is set.
|
1226
|
+
* @return {boolean}
|
1227
|
+
*/
|
1228
|
+
proto.scheduler.TaskRequest.prototype.hasIsActive = function() {
|
1229
|
+
return jspb.Message.getField(this, 9) != null;
|
1230
|
+
};
|
1231
|
+
|
1232
|
+
|
1233
|
+
|
1234
|
+
|
1235
|
+
|
1236
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1237
|
+
/**
|
1238
|
+
* Creates an object representation of this proto.
|
1239
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1240
|
+
* Optional fields that are not set will be set to undefined.
|
1241
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1242
|
+
* For the list of reserved names please see:
|
1243
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1244
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1245
|
+
* JSPB instance for transitional soy proto support:
|
1246
|
+
* http://goto/soy-param-migration
|
1247
|
+
* @return {!Object}
|
1248
|
+
*/
|
1249
|
+
proto.scheduler.TaskItem.prototype.toObject = function(opt_includeInstance) {
|
1250
|
+
return proto.scheduler.TaskItem.toObject(opt_includeInstance, this);
|
1251
|
+
};
|
1252
|
+
|
1253
|
+
|
1254
|
+
/**
|
1255
|
+
* Static version of the {@see toObject} method.
|
1256
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1257
|
+
* the JSPB instance for transitional soy proto support:
|
1258
|
+
* http://goto/soy-param-migration
|
1259
|
+
* @param {!proto.scheduler.TaskItem} msg The msg instance to transform.
|
1260
|
+
* @return {!Object}
|
1261
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1262
|
+
*/
|
1263
|
+
proto.scheduler.TaskItem.toObject = function(includeInstance, msg) {
|
1264
|
+
var f, obj = {
|
1265
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1266
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1267
|
+
service: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1268
|
+
type: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1269
|
+
scheduleConfig: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
1270
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
1271
|
+
};
|
1272
|
+
|
1273
|
+
if (includeInstance) {
|
1274
|
+
obj.$jspbMessageInstance = msg;
|
1275
|
+
}
|
1276
|
+
return obj;
|
1277
|
+
};
|
1278
|
+
}
|
1279
|
+
|
1280
|
+
|
1281
|
+
/**
|
1282
|
+
* Deserializes binary data (in protobuf wire format).
|
1283
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1284
|
+
* @return {!proto.scheduler.TaskItem}
|
1285
|
+
*/
|
1286
|
+
proto.scheduler.TaskItem.deserializeBinary = function(bytes) {
|
1287
|
+
var reader = new jspb.BinaryReader(bytes);
|
1288
|
+
var msg = new proto.scheduler.TaskItem;
|
1289
|
+
return proto.scheduler.TaskItem.deserializeBinaryFromReader(msg, reader);
|
1290
|
+
};
|
1291
|
+
|
1292
|
+
|
1293
|
+
/**
|
1294
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1295
|
+
* given reader into the given message object.
|
1296
|
+
* @param {!proto.scheduler.TaskItem} msg The message object to deserialize into.
|
1297
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1298
|
+
* @return {!proto.scheduler.TaskItem}
|
1299
|
+
*/
|
1300
|
+
proto.scheduler.TaskItem.deserializeBinaryFromReader = function(msg, reader) {
|
1301
|
+
while (reader.nextField()) {
|
1302
|
+
if (reader.isEndGroup()) {
|
1303
|
+
break;
|
1304
|
+
}
|
1305
|
+
var field = reader.getFieldNumber();
|
1306
|
+
switch (field) {
|
1307
|
+
case 1:
|
1308
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1309
|
+
msg.setId(value);
|
1310
|
+
break;
|
1311
|
+
case 2:
|
1312
|
+
var value = /** @type {string} */ (reader.readString());
|
1313
|
+
msg.setTitle(value);
|
1314
|
+
break;
|
1315
|
+
case 3:
|
1316
|
+
var value = /** @type {string} */ (reader.readString());
|
1317
|
+
msg.setService(value);
|
1318
|
+
break;
|
1319
|
+
case 4:
|
1320
|
+
var value = /** @type {string} */ (reader.readString());
|
1321
|
+
msg.setType(value);
|
1322
|
+
break;
|
1323
|
+
case 5:
|
1324
|
+
var value = /** @type {string} */ (reader.readString());
|
1325
|
+
msg.setScheduleConfig(value);
|
1326
|
+
break;
|
1327
|
+
case 6:
|
1328
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1329
|
+
msg.setIsActive(value);
|
1330
|
+
break;
|
1331
|
+
default:
|
1332
|
+
reader.skipField();
|
1333
|
+
break;
|
1334
|
+
}
|
1335
|
+
}
|
1336
|
+
return msg;
|
1337
|
+
};
|
1338
|
+
|
1339
|
+
|
1340
|
+
/**
|
1341
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1342
|
+
* @return {!Uint8Array}
|
1343
|
+
*/
|
1344
|
+
proto.scheduler.TaskItem.prototype.serializeBinary = function() {
|
1345
|
+
var writer = new jspb.BinaryWriter();
|
1346
|
+
proto.scheduler.TaskItem.serializeBinaryToWriter(this, writer);
|
1347
|
+
return writer.getResultBuffer();
|
1348
|
+
};
|
1349
|
+
|
1350
|
+
|
1351
|
+
/**
|
1352
|
+
* Serializes the given message to binary data (in protobuf wire
|
1353
|
+
* format), writing to the given BinaryWriter.
|
1354
|
+
* @param {!proto.scheduler.TaskItem} message
|
1355
|
+
* @param {!jspb.BinaryWriter} writer
|
1356
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1357
|
+
*/
|
1358
|
+
proto.scheduler.TaskItem.serializeBinaryToWriter = function(message, writer) {
|
1359
|
+
var f = undefined;
|
1360
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1361
|
+
if (f != null) {
|
1362
|
+
writer.writeInt32(
|
1363
|
+
1,
|
1364
|
+
f
|
1365
|
+
);
|
1366
|
+
}
|
1367
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1368
|
+
if (f != null) {
|
1369
|
+
writer.writeString(
|
1370
|
+
2,
|
1371
|
+
f
|
1372
|
+
);
|
1373
|
+
}
|
1374
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1375
|
+
if (f != null) {
|
1376
|
+
writer.writeString(
|
1377
|
+
3,
|
1378
|
+
f
|
1379
|
+
);
|
1380
|
+
}
|
1381
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1382
|
+
if (f != null) {
|
1383
|
+
writer.writeString(
|
1384
|
+
4,
|
1385
|
+
f
|
1386
|
+
);
|
1387
|
+
}
|
1388
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
1389
|
+
if (f != null) {
|
1390
|
+
writer.writeString(
|
1391
|
+
5,
|
1392
|
+
f
|
1393
|
+
);
|
1394
|
+
}
|
1395
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
1396
|
+
if (f != null) {
|
1397
|
+
writer.writeInt32(
|
1398
|
+
6,
|
1399
|
+
f
|
1400
|
+
);
|
1401
|
+
}
|
1402
|
+
};
|
1403
|
+
|
1404
|
+
|
1405
|
+
/**
|
1406
|
+
* optional int32 id = 1;
|
1407
|
+
* @return {number}
|
1408
|
+
*/
|
1409
|
+
proto.scheduler.TaskItem.prototype.getId = function() {
|
1410
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1411
|
+
};
|
1412
|
+
|
1413
|
+
|
1414
|
+
/**
|
1415
|
+
* @param {number} value
|
1416
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1417
|
+
*/
|
1418
|
+
proto.scheduler.TaskItem.prototype.setId = function(value) {
|
1419
|
+
return jspb.Message.setField(this, 1, value);
|
1420
|
+
};
|
1421
|
+
|
1422
|
+
|
1423
|
+
/**
|
1424
|
+
* Clears the field making it undefined.
|
1425
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1426
|
+
*/
|
1427
|
+
proto.scheduler.TaskItem.prototype.clearId = function() {
|
1428
|
+
return jspb.Message.setField(this, 1, undefined);
|
1429
|
+
};
|
1430
|
+
|
1431
|
+
|
1432
|
+
/**
|
1433
|
+
* Returns whether this field is set.
|
1434
|
+
* @return {boolean}
|
1435
|
+
*/
|
1436
|
+
proto.scheduler.TaskItem.prototype.hasId = function() {
|
1437
|
+
return jspb.Message.getField(this, 1) != null;
|
1438
|
+
};
|
1439
|
+
|
1440
|
+
|
1441
|
+
/**
|
1442
|
+
* optional string title = 2;
|
1443
|
+
* @return {string}
|
1444
|
+
*/
|
1445
|
+
proto.scheduler.TaskItem.prototype.getTitle = function() {
|
1446
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1447
|
+
};
|
1448
|
+
|
1449
|
+
|
1450
|
+
/**
|
1451
|
+
* @param {string} value
|
1452
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1453
|
+
*/
|
1454
|
+
proto.scheduler.TaskItem.prototype.setTitle = function(value) {
|
1455
|
+
return jspb.Message.setField(this, 2, value);
|
1456
|
+
};
|
1457
|
+
|
1458
|
+
|
1459
|
+
/**
|
1460
|
+
* Clears the field making it undefined.
|
1461
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1462
|
+
*/
|
1463
|
+
proto.scheduler.TaskItem.prototype.clearTitle = function() {
|
1464
|
+
return jspb.Message.setField(this, 2, undefined);
|
1465
|
+
};
|
1466
|
+
|
1467
|
+
|
1468
|
+
/**
|
1469
|
+
* Returns whether this field is set.
|
1470
|
+
* @return {boolean}
|
1471
|
+
*/
|
1472
|
+
proto.scheduler.TaskItem.prototype.hasTitle = function() {
|
1473
|
+
return jspb.Message.getField(this, 2) != null;
|
1474
|
+
};
|
1475
|
+
|
1476
|
+
|
1477
|
+
/**
|
1478
|
+
* optional string service = 3;
|
1479
|
+
* @return {string}
|
1480
|
+
*/
|
1481
|
+
proto.scheduler.TaskItem.prototype.getService = function() {
|
1482
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1483
|
+
};
|
1484
|
+
|
1485
|
+
|
1486
|
+
/**
|
1487
|
+
* @param {string} value
|
1488
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1489
|
+
*/
|
1490
|
+
proto.scheduler.TaskItem.prototype.setService = function(value) {
|
1491
|
+
return jspb.Message.setField(this, 3, value);
|
1492
|
+
};
|
1493
|
+
|
1494
|
+
|
1495
|
+
/**
|
1496
|
+
* Clears the field making it undefined.
|
1497
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1498
|
+
*/
|
1499
|
+
proto.scheduler.TaskItem.prototype.clearService = function() {
|
1500
|
+
return jspb.Message.setField(this, 3, undefined);
|
1501
|
+
};
|
1502
|
+
|
1503
|
+
|
1504
|
+
/**
|
1505
|
+
* Returns whether this field is set.
|
1506
|
+
* @return {boolean}
|
1507
|
+
*/
|
1508
|
+
proto.scheduler.TaskItem.prototype.hasService = function() {
|
1509
|
+
return jspb.Message.getField(this, 3) != null;
|
1510
|
+
};
|
1511
|
+
|
1512
|
+
|
1513
|
+
/**
|
1514
|
+
* optional string type = 4;
|
1515
|
+
* @return {string}
|
1516
|
+
*/
|
1517
|
+
proto.scheduler.TaskItem.prototype.getType = function() {
|
1518
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1519
|
+
};
|
1520
|
+
|
1521
|
+
|
1522
|
+
/**
|
1523
|
+
* @param {string} value
|
1524
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1525
|
+
*/
|
1526
|
+
proto.scheduler.TaskItem.prototype.setType = function(value) {
|
1527
|
+
return jspb.Message.setField(this, 4, value);
|
1528
|
+
};
|
1529
|
+
|
1530
|
+
|
1531
|
+
/**
|
1532
|
+
* Clears the field making it undefined.
|
1533
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1534
|
+
*/
|
1535
|
+
proto.scheduler.TaskItem.prototype.clearType = function() {
|
1536
|
+
return jspb.Message.setField(this, 4, undefined);
|
1537
|
+
};
|
1538
|
+
|
1539
|
+
|
1540
|
+
/**
|
1541
|
+
* Returns whether this field is set.
|
1542
|
+
* @return {boolean}
|
1543
|
+
*/
|
1544
|
+
proto.scheduler.TaskItem.prototype.hasType = function() {
|
1545
|
+
return jspb.Message.getField(this, 4) != null;
|
1546
|
+
};
|
1547
|
+
|
1548
|
+
|
1549
|
+
/**
|
1550
|
+
* optional string schedule_config = 5;
|
1551
|
+
* @return {string}
|
1552
|
+
*/
|
1553
|
+
proto.scheduler.TaskItem.prototype.getScheduleConfig = function() {
|
1554
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
1555
|
+
};
|
1556
|
+
|
1557
|
+
|
1558
|
+
/**
|
1559
|
+
* @param {string} value
|
1560
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1561
|
+
*/
|
1562
|
+
proto.scheduler.TaskItem.prototype.setScheduleConfig = function(value) {
|
1563
|
+
return jspb.Message.setField(this, 5, value);
|
1564
|
+
};
|
1565
|
+
|
1566
|
+
|
1567
|
+
/**
|
1568
|
+
* Clears the field making it undefined.
|
1569
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1570
|
+
*/
|
1571
|
+
proto.scheduler.TaskItem.prototype.clearScheduleConfig = function() {
|
1572
|
+
return jspb.Message.setField(this, 5, undefined);
|
1573
|
+
};
|
1574
|
+
|
1575
|
+
|
1576
|
+
/**
|
1577
|
+
* Returns whether this field is set.
|
1578
|
+
* @return {boolean}
|
1579
|
+
*/
|
1580
|
+
proto.scheduler.TaskItem.prototype.hasScheduleConfig = function() {
|
1581
|
+
return jspb.Message.getField(this, 5) != null;
|
1582
|
+
};
|
1583
|
+
|
1584
|
+
|
1585
|
+
/**
|
1586
|
+
* optional int32 is_active = 6;
|
1587
|
+
* @return {number}
|
1588
|
+
*/
|
1589
|
+
proto.scheduler.TaskItem.prototype.getIsActive = function() {
|
1590
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
1591
|
+
};
|
1592
|
+
|
1593
|
+
|
1594
|
+
/**
|
1595
|
+
* @param {number} value
|
1596
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1597
|
+
*/
|
1598
|
+
proto.scheduler.TaskItem.prototype.setIsActive = function(value) {
|
1599
|
+
return jspb.Message.setField(this, 6, value);
|
1600
|
+
};
|
1601
|
+
|
1602
|
+
|
1603
|
+
/**
|
1604
|
+
* Clears the field making it undefined.
|
1605
|
+
* @return {!proto.scheduler.TaskItem} returns this
|
1606
|
+
*/
|
1607
|
+
proto.scheduler.TaskItem.prototype.clearIsActive = function() {
|
1608
|
+
return jspb.Message.setField(this, 6, undefined);
|
1609
|
+
};
|
1610
|
+
|
1611
|
+
|
1612
|
+
/**
|
1613
|
+
* Returns whether this field is set.
|
1614
|
+
* @return {boolean}
|
1615
|
+
*/
|
1616
|
+
proto.scheduler.TaskItem.prototype.hasIsActive = function() {
|
1617
|
+
return jspb.Message.getField(this, 6) != null;
|
1618
|
+
};
|
1619
|
+
|
1620
|
+
|
1621
|
+
|
1622
|
+
|
1623
|
+
|
1624
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1625
|
+
/**
|
1626
|
+
* Creates an object representation of this proto.
|
1627
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1628
|
+
* Optional fields that are not set will be set to undefined.
|
1629
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1630
|
+
* For the list of reserved names please see:
|
1631
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1632
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1633
|
+
* JSPB instance for transitional soy proto support:
|
1634
|
+
* http://goto/soy-param-migration
|
1635
|
+
* @return {!Object}
|
1636
|
+
*/
|
1637
|
+
proto.scheduler.TaskResponse.prototype.toObject = function(opt_includeInstance) {
|
1638
|
+
return proto.scheduler.TaskResponse.toObject(opt_includeInstance, this);
|
1639
|
+
};
|
1640
|
+
|
1641
|
+
|
1642
|
+
/**
|
1643
|
+
* Static version of the {@see toObject} method.
|
1644
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1645
|
+
* the JSPB instance for transitional soy proto support:
|
1646
|
+
* http://goto/soy-param-migration
|
1647
|
+
* @param {!proto.scheduler.TaskResponse} msg The msg instance to transform.
|
1648
|
+
* @return {!Object}
|
1649
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1650
|
+
*/
|
1651
|
+
proto.scheduler.TaskResponse.toObject = function(includeInstance, msg) {
|
1652
|
+
var f, obj = {
|
1653
|
+
data: (f = msg.getData()) && proto.scheduler.TaskItem.toObject(includeInstance, f)
|
1654
|
+
};
|
1655
|
+
|
1656
|
+
if (includeInstance) {
|
1657
|
+
obj.$jspbMessageInstance = msg;
|
1658
|
+
}
|
1659
|
+
return obj;
|
1660
|
+
};
|
1661
|
+
}
|
1662
|
+
|
1663
|
+
|
1664
|
+
/**
|
1665
|
+
* Deserializes binary data (in protobuf wire format).
|
1666
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1667
|
+
* @return {!proto.scheduler.TaskResponse}
|
1668
|
+
*/
|
1669
|
+
proto.scheduler.TaskResponse.deserializeBinary = function(bytes) {
|
1670
|
+
var reader = new jspb.BinaryReader(bytes);
|
1671
|
+
var msg = new proto.scheduler.TaskResponse;
|
1672
|
+
return proto.scheduler.TaskResponse.deserializeBinaryFromReader(msg, reader);
|
1673
|
+
};
|
1674
|
+
|
1675
|
+
|
1676
|
+
/**
|
1677
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1678
|
+
* given reader into the given message object.
|
1679
|
+
* @param {!proto.scheduler.TaskResponse} msg The message object to deserialize into.
|
1680
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1681
|
+
* @return {!proto.scheduler.TaskResponse}
|
1682
|
+
*/
|
1683
|
+
proto.scheduler.TaskResponse.deserializeBinaryFromReader = function(msg, reader) {
|
1684
|
+
while (reader.nextField()) {
|
1685
|
+
if (reader.isEndGroup()) {
|
1686
|
+
break;
|
1687
|
+
}
|
1688
|
+
var field = reader.getFieldNumber();
|
1689
|
+
switch (field) {
|
1690
|
+
case 1:
|
1691
|
+
var value = new proto.scheduler.TaskItem;
|
1692
|
+
reader.readMessage(value,proto.scheduler.TaskItem.deserializeBinaryFromReader);
|
1693
|
+
msg.setData(value);
|
1694
|
+
break;
|
1695
|
+
default:
|
1696
|
+
reader.skipField();
|
1697
|
+
break;
|
1698
|
+
}
|
1699
|
+
}
|
1700
|
+
return msg;
|
1701
|
+
};
|
1702
|
+
|
1703
|
+
|
1704
|
+
/**
|
1705
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1706
|
+
* @return {!Uint8Array}
|
1707
|
+
*/
|
1708
|
+
proto.scheduler.TaskResponse.prototype.serializeBinary = function() {
|
1709
|
+
var writer = new jspb.BinaryWriter();
|
1710
|
+
proto.scheduler.TaskResponse.serializeBinaryToWriter(this, writer);
|
1711
|
+
return writer.getResultBuffer();
|
1712
|
+
};
|
1713
|
+
|
1714
|
+
|
1715
|
+
/**
|
1716
|
+
* Serializes the given message to binary data (in protobuf wire
|
1717
|
+
* format), writing to the given BinaryWriter.
|
1718
|
+
* @param {!proto.scheduler.TaskResponse} message
|
1719
|
+
* @param {!jspb.BinaryWriter} writer
|
1720
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1721
|
+
*/
|
1722
|
+
proto.scheduler.TaskResponse.serializeBinaryToWriter = function(message, writer) {
|
1723
|
+
var f = undefined;
|
1724
|
+
f = message.getData();
|
1725
|
+
if (f != null) {
|
1726
|
+
writer.writeMessage(
|
1727
|
+
1,
|
1728
|
+
f,
|
1729
|
+
proto.scheduler.TaskItem.serializeBinaryToWriter
|
1730
|
+
);
|
1731
|
+
}
|
1732
|
+
};
|
1733
|
+
|
1734
|
+
|
1735
|
+
/**
|
1736
|
+
* optional TaskItem data = 1;
|
1737
|
+
* @return {?proto.scheduler.TaskItem}
|
1738
|
+
*/
|
1739
|
+
proto.scheduler.TaskResponse.prototype.getData = function() {
|
1740
|
+
return /** @type{?proto.scheduler.TaskItem} */ (
|
1741
|
+
jspb.Message.getWrapperField(this, proto.scheduler.TaskItem, 1));
|
1742
|
+
};
|
1743
|
+
|
1744
|
+
|
1745
|
+
/**
|
1746
|
+
* @param {?proto.scheduler.TaskItem|undefined} value
|
1747
|
+
* @return {!proto.scheduler.TaskResponse} returns this
|
1748
|
+
*/
|
1749
|
+
proto.scheduler.TaskResponse.prototype.setData = function(value) {
|
1750
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
1751
|
+
};
|
1752
|
+
|
1753
|
+
|
1754
|
+
/**
|
1755
|
+
* Clears the message field making it undefined.
|
1756
|
+
* @return {!proto.scheduler.TaskResponse} returns this
|
1757
|
+
*/
|
1758
|
+
proto.scheduler.TaskResponse.prototype.clearData = function() {
|
1759
|
+
return this.setData(undefined);
|
1760
|
+
};
|
1761
|
+
|
1762
|
+
|
1763
|
+
/**
|
1764
|
+
* Returns whether this field is set.
|
1765
|
+
* @return {boolean}
|
1766
|
+
*/
|
1767
|
+
proto.scheduler.TaskResponse.prototype.hasData = function() {
|
1768
|
+
return jspb.Message.getField(this, 1) != null;
|
1769
|
+
};
|
1770
|
+
|
1771
|
+
|
1772
|
+
|
1773
|
+
|
1774
|
+
|
1775
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1776
|
+
/**
|
1777
|
+
* Creates an object representation of this proto.
|
1778
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1779
|
+
* Optional fields that are not set will be set to undefined.
|
1780
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1781
|
+
* For the list of reserved names please see:
|
1782
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1783
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1784
|
+
* JSPB instance for transitional soy proto support:
|
1785
|
+
* http://goto/soy-param-migration
|
1786
|
+
* @return {!Object}
|
1787
|
+
*/
|
1788
|
+
proto.scheduler.GetTaskRequest.prototype.toObject = function(opt_includeInstance) {
|
1789
|
+
return proto.scheduler.GetTaskRequest.toObject(opt_includeInstance, this);
|
1790
|
+
};
|
1791
|
+
|
1792
|
+
|
1793
|
+
/**
|
1794
|
+
* Static version of the {@see toObject} method.
|
1795
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1796
|
+
* the JSPB instance for transitional soy proto support:
|
1797
|
+
* http://goto/soy-param-migration
|
1798
|
+
* @param {!proto.scheduler.GetTaskRequest} msg The msg instance to transform.
|
1799
|
+
* @return {!Object}
|
1800
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1801
|
+
*/
|
1802
|
+
proto.scheduler.GetTaskRequest.toObject = function(includeInstance, msg) {
|
1803
|
+
var f, obj = {
|
1804
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
1805
|
+
};
|
1806
|
+
|
1807
|
+
if (includeInstance) {
|
1808
|
+
obj.$jspbMessageInstance = msg;
|
1809
|
+
}
|
1810
|
+
return obj;
|
1811
|
+
};
|
1812
|
+
}
|
1813
|
+
|
1814
|
+
|
1815
|
+
/**
|
1816
|
+
* Deserializes binary data (in protobuf wire format).
|
1817
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1818
|
+
* @return {!proto.scheduler.GetTaskRequest}
|
1819
|
+
*/
|
1820
|
+
proto.scheduler.GetTaskRequest.deserializeBinary = function(bytes) {
|
1821
|
+
var reader = new jspb.BinaryReader(bytes);
|
1822
|
+
var msg = new proto.scheduler.GetTaskRequest;
|
1823
|
+
return proto.scheduler.GetTaskRequest.deserializeBinaryFromReader(msg, reader);
|
1824
|
+
};
|
1825
|
+
|
1826
|
+
|
1827
|
+
/**
|
1828
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1829
|
+
* given reader into the given message object.
|
1830
|
+
* @param {!proto.scheduler.GetTaskRequest} msg The message object to deserialize into.
|
1831
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1832
|
+
* @return {!proto.scheduler.GetTaskRequest}
|
1833
|
+
*/
|
1834
|
+
proto.scheduler.GetTaskRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1835
|
+
while (reader.nextField()) {
|
1836
|
+
if (reader.isEndGroup()) {
|
1837
|
+
break;
|
1838
|
+
}
|
1839
|
+
var field = reader.getFieldNumber();
|
1840
|
+
switch (field) {
|
1841
|
+
case 1:
|
1842
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1843
|
+
msg.setId(value);
|
1844
|
+
break;
|
1845
|
+
default:
|
1846
|
+
reader.skipField();
|
1847
|
+
break;
|
1848
|
+
}
|
1849
|
+
}
|
1850
|
+
return msg;
|
1851
|
+
};
|
1852
|
+
|
1853
|
+
|
1854
|
+
/**
|
1855
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1856
|
+
* @return {!Uint8Array}
|
1857
|
+
*/
|
1858
|
+
proto.scheduler.GetTaskRequest.prototype.serializeBinary = function() {
|
1859
|
+
var writer = new jspb.BinaryWriter();
|
1860
|
+
proto.scheduler.GetTaskRequest.serializeBinaryToWriter(this, writer);
|
1861
|
+
return writer.getResultBuffer();
|
1862
|
+
};
|
1863
|
+
|
1864
|
+
|
1865
|
+
/**
|
1866
|
+
* Serializes the given message to binary data (in protobuf wire
|
1867
|
+
* format), writing to the given BinaryWriter.
|
1868
|
+
* @param {!proto.scheduler.GetTaskRequest} message
|
1869
|
+
* @param {!jspb.BinaryWriter} writer
|
1870
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1871
|
+
*/
|
1872
|
+
proto.scheduler.GetTaskRequest.serializeBinaryToWriter = function(message, writer) {
|
1873
|
+
var f = undefined;
|
1874
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1875
|
+
if (f != null) {
|
1876
|
+
writer.writeInt32(
|
1877
|
+
1,
|
1878
|
+
f
|
1879
|
+
);
|
1880
|
+
}
|
1881
|
+
};
|
1882
|
+
|
1883
|
+
|
1884
|
+
/**
|
1885
|
+
* optional int32 id = 1;
|
1886
|
+
* @return {number}
|
1887
|
+
*/
|
1888
|
+
proto.scheduler.GetTaskRequest.prototype.getId = function() {
|
1889
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1890
|
+
};
|
1891
|
+
|
1892
|
+
|
1893
|
+
/**
|
1894
|
+
* @param {number} value
|
1895
|
+
* @return {!proto.scheduler.GetTaskRequest} returns this
|
1896
|
+
*/
|
1897
|
+
proto.scheduler.GetTaskRequest.prototype.setId = function(value) {
|
1898
|
+
return jspb.Message.setField(this, 1, value);
|
1899
|
+
};
|
1900
|
+
|
1901
|
+
|
1902
|
+
/**
|
1903
|
+
* Clears the field making it undefined.
|
1904
|
+
* @return {!proto.scheduler.GetTaskRequest} returns this
|
1905
|
+
*/
|
1906
|
+
proto.scheduler.GetTaskRequest.prototype.clearId = function() {
|
1907
|
+
return jspb.Message.setField(this, 1, undefined);
|
1908
|
+
};
|
1909
|
+
|
1910
|
+
|
1911
|
+
/**
|
1912
|
+
* Returns whether this field is set.
|
1913
|
+
* @return {boolean}
|
1914
|
+
*/
|
1915
|
+
proto.scheduler.GetTaskRequest.prototype.hasId = function() {
|
1916
|
+
return jspb.Message.getField(this, 1) != null;
|
1917
|
+
};
|
1918
|
+
|
1919
|
+
|
1920
|
+
|
1921
|
+
|
1922
|
+
|
1923
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1924
|
+
/**
|
1925
|
+
* Creates an object representation of this proto.
|
1926
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1927
|
+
* Optional fields that are not set will be set to undefined.
|
1928
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1929
|
+
* For the list of reserved names please see:
|
1930
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1931
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1932
|
+
* JSPB instance for transitional soy proto support:
|
1933
|
+
* http://goto/soy-param-migration
|
1934
|
+
* @return {!Object}
|
1935
|
+
*/
|
1936
|
+
proto.scheduler.TaskStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
1937
|
+
return proto.scheduler.TaskStatusResponse.toObject(opt_includeInstance, this);
|
1938
|
+
};
|
1939
|
+
|
1940
|
+
|
1941
|
+
/**
|
1942
|
+
* Static version of the {@see toObject} method.
|
1943
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1944
|
+
* the JSPB instance for transitional soy proto support:
|
1945
|
+
* http://goto/soy-param-migration
|
1946
|
+
* @param {!proto.scheduler.TaskStatusResponse} msg The msg instance to transform.
|
1947
|
+
* @return {!Object}
|
1948
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1949
|
+
*/
|
1950
|
+
proto.scheduler.TaskStatusResponse.toObject = function(includeInstance, msg) {
|
1951
|
+
var f, obj = {
|
1952
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
1953
|
+
};
|
1954
|
+
|
1955
|
+
if (includeInstance) {
|
1956
|
+
obj.$jspbMessageInstance = msg;
|
1957
|
+
}
|
1958
|
+
return obj;
|
1959
|
+
};
|
1960
|
+
}
|
1961
|
+
|
1962
|
+
|
1963
|
+
/**
|
1964
|
+
* Deserializes binary data (in protobuf wire format).
|
1965
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1966
|
+
* @return {!proto.scheduler.TaskStatusResponse}
|
1967
|
+
*/
|
1968
|
+
proto.scheduler.TaskStatusResponse.deserializeBinary = function(bytes) {
|
1969
|
+
var reader = new jspb.BinaryReader(bytes);
|
1970
|
+
var msg = new proto.scheduler.TaskStatusResponse;
|
1971
|
+
return proto.scheduler.TaskStatusResponse.deserializeBinaryFromReader(msg, reader);
|
1972
|
+
};
|
1973
|
+
|
1974
|
+
|
1975
|
+
/**
|
1976
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1977
|
+
* given reader into the given message object.
|
1978
|
+
* @param {!proto.scheduler.TaskStatusResponse} msg The message object to deserialize into.
|
1979
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1980
|
+
* @return {!proto.scheduler.TaskStatusResponse}
|
1981
|
+
*/
|
1982
|
+
proto.scheduler.TaskStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
1983
|
+
while (reader.nextField()) {
|
1984
|
+
if (reader.isEndGroup()) {
|
1985
|
+
break;
|
1986
|
+
}
|
1987
|
+
var field = reader.getFieldNumber();
|
1988
|
+
switch (field) {
|
1989
|
+
case 1:
|
1990
|
+
var value = /** @type {string} */ (reader.readString());
|
1991
|
+
msg.setStatus(value);
|
1992
|
+
break;
|
1993
|
+
default:
|
1994
|
+
reader.skipField();
|
1995
|
+
break;
|
1996
|
+
}
|
1997
|
+
}
|
1998
|
+
return msg;
|
1999
|
+
};
|
2000
|
+
|
2001
|
+
|
2002
|
+
/**
|
2003
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2004
|
+
* @return {!Uint8Array}
|
2005
|
+
*/
|
2006
|
+
proto.scheduler.TaskStatusResponse.prototype.serializeBinary = function() {
|
2007
|
+
var writer = new jspb.BinaryWriter();
|
2008
|
+
proto.scheduler.TaskStatusResponse.serializeBinaryToWriter(this, writer);
|
2009
|
+
return writer.getResultBuffer();
|
2010
|
+
};
|
2011
|
+
|
2012
|
+
|
2013
|
+
/**
|
2014
|
+
* Serializes the given message to binary data (in protobuf wire
|
2015
|
+
* format), writing to the given BinaryWriter.
|
2016
|
+
* @param {!proto.scheduler.TaskStatusResponse} message
|
2017
|
+
* @param {!jspb.BinaryWriter} writer
|
2018
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019
|
+
*/
|
2020
|
+
proto.scheduler.TaskStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
2021
|
+
var f = undefined;
|
2022
|
+
f = message.getStatus();
|
2023
|
+
if (f.length > 0) {
|
2024
|
+
writer.writeString(
|
2025
|
+
1,
|
2026
|
+
f
|
2027
|
+
);
|
2028
|
+
}
|
2029
|
+
};
|
2030
|
+
|
2031
|
+
|
2032
|
+
/**
|
2033
|
+
* optional string status = 1;
|
2034
|
+
* @return {string}
|
2035
|
+
*/
|
2036
|
+
proto.scheduler.TaskStatusResponse.prototype.getStatus = function() {
|
2037
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2038
|
+
};
|
2039
|
+
|
2040
|
+
|
2041
|
+
/**
|
2042
|
+
* @param {string} value
|
2043
|
+
* @return {!proto.scheduler.TaskStatusResponse} returns this
|
2044
|
+
*/
|
2045
|
+
proto.scheduler.TaskStatusResponse.prototype.setStatus = function(value) {
|
2046
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
2047
|
+
};
|
2048
|
+
|
2049
|
+
|
2050
|
+
|
2051
|
+
/**
|
2052
|
+
* List of repeated fields within this message type.
|
2053
|
+
* @private {!Array<number>}
|
2054
|
+
* @const
|
2055
|
+
*/
|
2056
|
+
proto.scheduler.TaskItemsResponse.repeatedFields_ = [1];
|
2057
|
+
|
2058
|
+
|
2059
|
+
|
2060
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2061
|
+
/**
|
2062
|
+
* Creates an object representation of this proto.
|
2063
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2064
|
+
* Optional fields that are not set will be set to undefined.
|
2065
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2066
|
+
* For the list of reserved names please see:
|
2067
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2068
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2069
|
+
* JSPB instance for transitional soy proto support:
|
2070
|
+
* http://goto/soy-param-migration
|
2071
|
+
* @return {!Object}
|
2072
|
+
*/
|
2073
|
+
proto.scheduler.TaskItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
2074
|
+
return proto.scheduler.TaskItemsResponse.toObject(opt_includeInstance, this);
|
2075
|
+
};
|
2076
|
+
|
2077
|
+
|
2078
|
+
/**
|
2079
|
+
* Static version of the {@see toObject} method.
|
2080
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2081
|
+
* the JSPB instance for transitional soy proto support:
|
2082
|
+
* http://goto/soy-param-migration
|
2083
|
+
* @param {!proto.scheduler.TaskItemsResponse} msg The msg instance to transform.
|
2084
|
+
* @return {!Object}
|
2085
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2086
|
+
*/
|
2087
|
+
proto.scheduler.TaskItemsResponse.toObject = function(includeInstance, msg) {
|
2088
|
+
var f, obj = {
|
2089
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
2090
|
+
proto.scheduler.TaskItem.toObject, includeInstance),
|
2091
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2092
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
2093
|
+
};
|
2094
|
+
|
2095
|
+
if (includeInstance) {
|
2096
|
+
obj.$jspbMessageInstance = msg;
|
2097
|
+
}
|
2098
|
+
return obj;
|
2099
|
+
};
|
2100
|
+
}
|
2101
|
+
|
2102
|
+
|
2103
|
+
/**
|
2104
|
+
* Deserializes binary data (in protobuf wire format).
|
2105
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2106
|
+
* @return {!proto.scheduler.TaskItemsResponse}
|
2107
|
+
*/
|
2108
|
+
proto.scheduler.TaskItemsResponse.deserializeBinary = function(bytes) {
|
2109
|
+
var reader = new jspb.BinaryReader(bytes);
|
2110
|
+
var msg = new proto.scheduler.TaskItemsResponse;
|
2111
|
+
return proto.scheduler.TaskItemsResponse.deserializeBinaryFromReader(msg, reader);
|
2112
|
+
};
|
2113
|
+
|
2114
|
+
|
2115
|
+
/**
|
2116
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2117
|
+
* given reader into the given message object.
|
2118
|
+
* @param {!proto.scheduler.TaskItemsResponse} msg The message object to deserialize into.
|
2119
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2120
|
+
* @return {!proto.scheduler.TaskItemsResponse}
|
2121
|
+
*/
|
2122
|
+
proto.scheduler.TaskItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2123
|
+
while (reader.nextField()) {
|
2124
|
+
if (reader.isEndGroup()) {
|
2125
|
+
break;
|
2126
|
+
}
|
2127
|
+
var field = reader.getFieldNumber();
|
2128
|
+
switch (field) {
|
2129
|
+
case 1:
|
2130
|
+
var value = new proto.scheduler.TaskItem;
|
2131
|
+
reader.readMessage(value,proto.scheduler.TaskItem.deserializeBinaryFromReader);
|
2132
|
+
msg.addItems(value);
|
2133
|
+
break;
|
2134
|
+
case 2:
|
2135
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2136
|
+
msg.setTotalPages(value);
|
2137
|
+
break;
|
2138
|
+
case 3:
|
2139
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2140
|
+
msg.setTotalItems(value);
|
2141
|
+
break;
|
2142
|
+
default:
|
2143
|
+
reader.skipField();
|
2144
|
+
break;
|
2145
|
+
}
|
2146
|
+
}
|
2147
|
+
return msg;
|
2148
|
+
};
|
2149
|
+
|
2150
|
+
|
2151
|
+
/**
|
2152
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2153
|
+
* @return {!Uint8Array}
|
2154
|
+
*/
|
2155
|
+
proto.scheduler.TaskItemsResponse.prototype.serializeBinary = function() {
|
2156
|
+
var writer = new jspb.BinaryWriter();
|
2157
|
+
proto.scheduler.TaskItemsResponse.serializeBinaryToWriter(this, writer);
|
2158
|
+
return writer.getResultBuffer();
|
2159
|
+
};
|
2160
|
+
|
2161
|
+
|
2162
|
+
/**
|
2163
|
+
* Serializes the given message to binary data (in protobuf wire
|
2164
|
+
* format), writing to the given BinaryWriter.
|
2165
|
+
* @param {!proto.scheduler.TaskItemsResponse} message
|
2166
|
+
* @param {!jspb.BinaryWriter} writer
|
2167
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2168
|
+
*/
|
2169
|
+
proto.scheduler.TaskItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
2170
|
+
var f = undefined;
|
2171
|
+
f = message.getItemsList();
|
2172
|
+
if (f.length > 0) {
|
2173
|
+
writer.writeRepeatedMessage(
|
2174
|
+
1,
|
2175
|
+
f,
|
2176
|
+
proto.scheduler.TaskItem.serializeBinaryToWriter
|
2177
|
+
);
|
2178
|
+
}
|
2179
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
2180
|
+
if (f != null) {
|
2181
|
+
writer.writeInt32(
|
2182
|
+
2,
|
2183
|
+
f
|
2184
|
+
);
|
2185
|
+
}
|
2186
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
2187
|
+
if (f != null) {
|
2188
|
+
writer.writeInt32(
|
2189
|
+
3,
|
2190
|
+
f
|
2191
|
+
);
|
2192
|
+
}
|
2193
|
+
};
|
2194
|
+
|
2195
|
+
|
2196
|
+
/**
|
2197
|
+
* repeated TaskItem items = 1;
|
2198
|
+
* @return {!Array<!proto.scheduler.TaskItem>}
|
2199
|
+
*/
|
2200
|
+
proto.scheduler.TaskItemsResponse.prototype.getItemsList = function() {
|
2201
|
+
return /** @type{!Array<!proto.scheduler.TaskItem>} */ (
|
2202
|
+
jspb.Message.getRepeatedWrapperField(this, proto.scheduler.TaskItem, 1));
|
2203
|
+
};
|
2204
|
+
|
2205
|
+
|
2206
|
+
/**
|
2207
|
+
* @param {!Array<!proto.scheduler.TaskItem>} value
|
2208
|
+
* @return {!proto.scheduler.TaskItemsResponse} returns this
|
2209
|
+
*/
|
2210
|
+
proto.scheduler.TaskItemsResponse.prototype.setItemsList = function(value) {
|
2211
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
2212
|
+
};
|
2213
|
+
|
2214
|
+
|
2215
|
+
/**
|
2216
|
+
* @param {!proto.scheduler.TaskItem=} opt_value
|
2217
|
+
* @param {number=} opt_index
|
2218
|
+
* @return {!proto.scheduler.TaskItem}
|
2219
|
+
*/
|
2220
|
+
proto.scheduler.TaskItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
2221
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.scheduler.TaskItem, opt_index);
|
2222
|
+
};
|
2223
|
+
|
2224
|
+
|
2225
|
+
/**
|
2226
|
+
* Clears the list making it empty but non-null.
|
2227
|
+
* @return {!proto.scheduler.TaskItemsResponse} returns this
|
2228
|
+
*/
|
2229
|
+
proto.scheduler.TaskItemsResponse.prototype.clearItemsList = function() {
|
2230
|
+
return this.setItemsList([]);
|
2231
|
+
};
|
2232
|
+
|
2233
|
+
|
2234
|
+
/**
|
2235
|
+
* optional int32 total_pages = 2;
|
2236
|
+
* @return {number}
|
2237
|
+
*/
|
2238
|
+
proto.scheduler.TaskItemsResponse.prototype.getTotalPages = function() {
|
2239
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2240
|
+
};
|
2241
|
+
|
2242
|
+
|
2243
|
+
/**
|
2244
|
+
* @param {number} value
|
2245
|
+
* @return {!proto.scheduler.TaskItemsResponse} returns this
|
2246
|
+
*/
|
2247
|
+
proto.scheduler.TaskItemsResponse.prototype.setTotalPages = function(value) {
|
2248
|
+
return jspb.Message.setField(this, 2, value);
|
2249
|
+
};
|
2250
|
+
|
2251
|
+
|
2252
|
+
/**
|
2253
|
+
* Clears the field making it undefined.
|
2254
|
+
* @return {!proto.scheduler.TaskItemsResponse} returns this
|
2255
|
+
*/
|
2256
|
+
proto.scheduler.TaskItemsResponse.prototype.clearTotalPages = function() {
|
2257
|
+
return jspb.Message.setField(this, 2, undefined);
|
2258
|
+
};
|
2259
|
+
|
2260
|
+
|
2261
|
+
/**
|
2262
|
+
* Returns whether this field is set.
|
2263
|
+
* @return {boolean}
|
2264
|
+
*/
|
2265
|
+
proto.scheduler.TaskItemsResponse.prototype.hasTotalPages = function() {
|
2266
|
+
return jspb.Message.getField(this, 2) != null;
|
2267
|
+
};
|
2268
|
+
|
2269
|
+
|
2270
|
+
/**
|
2271
|
+
* optional int32 total_items = 3;
|
2272
|
+
* @return {number}
|
2273
|
+
*/
|
2274
|
+
proto.scheduler.TaskItemsResponse.prototype.getTotalItems = function() {
|
2275
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
2276
|
+
};
|
2277
|
+
|
2278
|
+
|
2279
|
+
/**
|
2280
|
+
* @param {number} value
|
2281
|
+
* @return {!proto.scheduler.TaskItemsResponse} returns this
|
2282
|
+
*/
|
2283
|
+
proto.scheduler.TaskItemsResponse.prototype.setTotalItems = function(value) {
|
2284
|
+
return jspb.Message.setField(this, 3, value);
|
2285
|
+
};
|
2286
|
+
|
2287
|
+
|
2288
|
+
/**
|
2289
|
+
* Clears the field making it undefined.
|
2290
|
+
* @return {!proto.scheduler.TaskItemsResponse} returns this
|
2291
|
+
*/
|
2292
|
+
proto.scheduler.TaskItemsResponse.prototype.clearTotalItems = function() {
|
2293
|
+
return jspb.Message.setField(this, 3, undefined);
|
2294
|
+
};
|
2295
|
+
|
2296
|
+
|
2297
|
+
/**
|
2298
|
+
* Returns whether this field is set.
|
2299
|
+
* @return {boolean}
|
2300
|
+
*/
|
2301
|
+
proto.scheduler.TaskItemsResponse.prototype.hasTotalItems = function() {
|
2302
|
+
return jspb.Message.getField(this, 3) != null;
|
2303
|
+
};
|
2304
|
+
|
2305
|
+
|
328
2306
|
goog.object.extend(exports, proto.scheduler);
|