Debian Codegraph @

api/v0/mesosproto/scheduler/scheduler.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-gogo.
2 // source: scheduler/scheduler.proto
3 // DO NOT EDIT!
4
5 /*
6 Package scheduler is a generated protocol buffer package.
7
8 It is generated from these files:
9 scheduler/scheduler.proto
10
11 It has these top-level messages:
12 Event
13 Call
14 */
15 package scheduler
16
17 import proto "github.com/gogo/protobuf/proto"
18 import fmt "fmt"
19 import math "math"
20 import mesosproto "github.com/mesos/mesos-go/api/v0/mesosproto"
21
22 // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
23
24 import bytes "bytes"
25
26 import strings "strings"
27 import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
28 import sort "sort"
29 import strconv "strconv"
30 import reflect "reflect"
31
32 import io "io"
33
34 // Reference imports to suppress errors if they are not otherwise used.
35 var _ = proto.Marshal
36 var _ = fmt.Errorf
37 var _ = math.Inf
38
39 // Possible event types, followed by message definitions if
40 // applicable.
41 type Event_Type int32
42
43 const (
44 Event_SUBSCRIBED Event_Type = 1
45 Event_OFFERS Event_Type = 2
46 Event_RESCIND Event_Type = 3
47 Event_UPDATE Event_Type = 4
48 Event_MESSAGE Event_Type = 5
49 Event_FAILURE Event_Type = 6
50 Event_ERROR Event_Type = 7
51 // Periodic message sent by the Mesos master according to
52 // 'Subscribed.heartbeat_interval_seconds'. If the scheduler does
53 // not receive any events (including heartbeats) for an extended
54 // period of time (e.g., 5 x heartbeat_interval_seconds), there is
55 // likely a network partition. In such a case the scheduler should
56 // close the existing subscription connection and resubscribe
57 // using a backoff strategy.
58 Event_HEARTBEAT Event_Type = 8
59 )
60
61 var Event_Type_name = map[int32]string{
62 1: "SUBSCRIBED",
63 2: "OFFERS",
64 3: "RESCIND",
65 4: "UPDATE",
66 5: "MESSAGE",
67 6: "FAILURE",
68 7: "ERROR",
69 8: "HEARTBEAT",
70 }
71 var Event_Type_value = map[string]int32{
72 "SUBSCRIBED": 1,
73 "OFFERS": 2,
74 "RESCIND": 3,
75 "UPDATE": 4,
76 "MESSAGE": 5,
77 "FAILURE": 6,
78 "ERROR": 7,
79 "HEARTBEAT": 8,
80 }
81
82 func (x Event_Type) Enum() *Event_Type {
83 p := new(Event_Type)
84 *p = x
85 return p
86 }
87 func (x Event_Type) String() string {
88 return proto.EnumName(Event_Type_name, int32(x))
89 }
90 func (x *Event_Type) UnmarshalJSON(data []byte) error {
91 value, err := proto.UnmarshalJSONEnum(Event_Type_value, data, "Event_Type")
92 if err != nil {
93 return err
94 }
95 *x = Event_Type(value)
96 return nil
97 }
98
99 // Possible call types, followed by message definitions if
100 // applicable.
101 type Call_Type int32
102
103 const (
104 Call_SUBSCRIBE Call_Type = 1
105 Call_TEARDOWN Call_Type = 2
106 Call_ACCEPT Call_Type = 3
107 Call_DECLINE Call_Type = 4
108 Call_REVIVE Call_Type = 5
109 Call_KILL Call_Type = 6
110 Call_SHUTDOWN Call_Type = 7
111 Call_ACKNOWLEDGE Call_Type = 8
112 Call_RECONCILE Call_Type = 9
113 Call_MESSAGE Call_Type = 10
114 Call_REQUEST Call_Type = 11
115 Call_SUPPRESS Call_Type = 12
116 )
117
118 var Call_Type_name = map[int32]string{
119 1: "SUBSCRIBE",
120 2: "TEARDOWN",
121 3: "ACCEPT",
122 4: "DECLINE",
123 5: "REVIVE",
124 6: "KILL",
125 7: "SHUTDOWN",
126 8: "ACKNOWLEDGE",
127 9: "RECONCILE",
128 10: "MESSAGE",
129 11: "REQUEST",
130 12: "SUPPRESS",
131 }
132 var Call_Type_value = map[string]int32{
133 "SUBSCRIBE": 1,
134 "TEARDOWN": 2,
135 "ACCEPT": 3,
136 "DECLINE": 4,
137 "REVIVE": 5,
138 "KILL": 6,
139 "SHUTDOWN": 7,
140 "ACKNOWLEDGE": 8,
141 "RECONCILE": 9,
142 "MESSAGE": 10,
143 "REQUEST": 11,
144 "SUPPRESS": 12,
145 }
146
147 func (x Call_Type) Enum() *Call_Type {
148 p := new(Call_Type)
149 *p = x
150 return p
151 }
152 func (x Call_Type) String() string {
153 return proto.EnumName(Call_Type_name, int32(x))
154 }
155 func (x *Call_Type) UnmarshalJSON(data []byte) error {
156 value, err := proto.UnmarshalJSONEnum(Call_Type_value, data, "Call_Type")
157 if err != nil {
158 return err
159 }
160 *x = Call_Type(value)
161 return nil
162 }
163
164 // *
165 // Scheduler event API.
166 //
167 // An event is described using the standard protocol buffer "union"
168 // trick, see:
169 // https://developers.google.com/protocol-buffers/docs/techniques#union.
170 type Event struct {
171 // Type of the event, indicates which optional field below should be
172 // present if that type has a nested message definition.
173 Type *Event_Type `protobuf:"varint,1,req,name=type,enum=mesosproto.scheduler.Event_Type" json:"type,omitempty"`
174 Subscribed *Event_Subscribed `protobuf:"bytes,2,opt,name=subscribed" json:"subscribed,omitempty"`
175 Offers *Event_Offers `protobuf:"bytes,3,opt,name=offers" json:"offers,omitempty"`
176 Rescind *Event_Rescind `protobuf:"bytes,4,opt,name=rescind" json:"rescind,omitempty"`
177 Update *Event_Update `protobuf:"bytes,5,opt,name=update" json:"update,omitempty"`
178 Message *Event_Message `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
179 Failure *Event_Failure `protobuf:"bytes,7,opt,name=failure" json:"failure,omitempty"`
180 Error *Event_Error `protobuf:"bytes,8,opt,name=error" json:"error,omitempty"`
181 XXX_unrecognized []byte `json:"-"`
182 }
183
184 func (m *Event) Reset() { *m = Event{} }
185 func (*Event) ProtoMessage() {}
186
187 func (m *Event) GetType() Event_Type {
188 if m != nil && m.Type != nil {
189 return *m.Type
190 }
191 return Event_SUBSCRIBED
192 }
193
194 func (m *Event) GetSubscribed() *Event_Subscribed {
195 if m != nil {
196 return m.Subscribed
197 }
198 return nil
199 }
200
201 func (m *Event) GetOffers() *Event_Offers {
202 if m != nil {
203 return m.Offers
204 }
205 return nil
206 }
207
208 func (m *Event) GetRescind() *Event_Rescind {
209 if m != nil {
210 return m.Rescind
211 }
212 return nil
213 }
214
215 func (m *Event) GetUpdate() *Event_Update {
216 if m != nil {
217 return m.Update
218 }
219 return nil
220 }
221
222 func (m *Event) GetMessage() *Event_Message {
223 if m != nil {
224 return m.Message
225 }
226 return nil
227 }
228
229 func (m *Event) GetFailure() *Event_Failure {
230 if m != nil {
231 return m.Failure
232 }
233 return nil
234 }
235
236 func (m *Event) GetError() *Event_Error {
237 if m != nil {
238 return m.Error
239 }
240 return nil
241 }
242
243 // First event received when the scheduler subscribes.
244 type Event_Subscribed struct {
245 FrameworkId *mesosproto.FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
246 // This value will be set if the master is sending heartbeats. See
247 // the comment above on 'HEARTBEAT' for more details.
248 HeartbeatIntervalSeconds *float64 `protobuf:"fixed64,2,opt,name=heartbeat_interval_seconds" json:"heartbeat_interval_seconds,omitempty"`
249 XXX_unrecognized []byte `json:"-"`
250 }
251
252 func (m *Event_Subscribed) Reset() { *m = Event_Subscribed{} }
253 func (*Event_Subscribed) ProtoMessage() {}
254
255 func (m *Event_Subscribed) GetFrameworkId() *mesosproto.FrameworkID {
256 if m != nil {
257 return m.FrameworkId
258 }
259 return nil
260 }
261
262 func (m *Event_Subscribed) GetHeartbeatIntervalSeconds() float64 {
263 if m != nil && m.HeartbeatIntervalSeconds != nil {
264 return *m.HeartbeatIntervalSeconds
265 }
266 return 0
267 }
268
269 // Received whenever there are new resources that are offered to the
270 // scheduler or resources requested back from the scheduler. Each
271 // offer corresponds to a set of resources on a slave. Until the
272 // scheduler accepts or declines an offer the resources are
273 // considered allocated to the scheduler. Accepting or Declining an
274 // inverse offer informs the allocator of the scheduler's ability to
275 // release the resources without violating an SLA.
276 type Event_Offers struct {
277 Offers []*mesosproto.Offer `protobuf:"bytes,1,rep,name=offers" json:"offers,omitempty"`
278 InverseOffers []*mesosproto.InverseOffer `protobuf:"bytes,2,rep,name=inverse_offers" json:"inverse_offers,omitempty"`
279 XXX_unrecognized []byte `json:"-"`
280 }
281
282 func (m *Event_Offers) Reset() { *m = Event_Offers{} }
283 func (*Event_Offers) ProtoMessage() {}
284
285 func (m *Event_Offers) GetOffers() []*mesosproto.Offer {
286 if m != nil {
287 return m.Offers
288 }
289 return nil
290 }
291
292 func (m *Event_Offers) GetInverseOffers() []*mesosproto.InverseOffer {
293 if m != nil {
294 return m.InverseOffers
295 }
296 return nil
297 }
298
299 // Received when a particular offer is no longer valid (e.g., the
300 // slave corresponding to the offer has been removed) and hence
301 // needs to be rescinded. Any future calls ('Accept' / 'Decline') made
302 // by the scheduler regarding this offer will be invalid.
303 type Event_Rescind struct {
304 OfferId *mesosproto.OfferID `protobuf:"bytes,1,req,name=offer_id" json:"offer_id,omitempty"`
305 XXX_unrecognized []byte `json:"-"`
306 }
307
308 func (m *Event_Rescind) Reset() { *m = Event_Rescind{} }
309 func (*Event_Rescind) ProtoMessage() {}
310
311 func (m *Event_Rescind) GetOfferId() *mesosproto.OfferID {
312 if m != nil {
313 return m.OfferId
314 }
315 return nil
316 }
317
318 // Received whenever there is a status update that is generated by
319 // the executor or slave or master. Status updates should be used by
320 // executors to reliably communicate the status of the tasks that
321 // they manage. It is crucial that a terminal update (see TaskState
322 // in mesos.proto) is sent by the executor as soon as the task
323 // terminates, in order for Mesos to release the resources allocated
324 // to the task. It is also the responsibility of the scheduler to
325 // explicitly acknowledge the receipt of a status update. See
326 // 'Acknowledge' in the 'Call' section below for the semantics.
327 type Event_Update struct {
328 Status *mesosproto.TaskStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"`
329 XXX_unrecognized []byte `json:"-"`
330 }
331
332 func (m *Event_Update) Reset() { *m = Event_Update{} }
333 func (*Event_Update) ProtoMessage() {}
334
335 func (m *Event_Update) GetStatus() *mesosproto.TaskStatus {
336 if m != nil {
337 return m.Status
338 }
339 return nil
340 }
341
342 // Received when a custom message generated by the executor is
343 // forwarded by the master. Note that this message is not
344 // interpreted by Mesos and is only forwarded (without reliability
345 // guarantees) to the scheduler. It is up to the executor to retry
346 // if the message is dropped for any reason.
347 type Event_Message struct {
348 SlaveId *mesosproto.SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
349 ExecutorId *mesosproto.ExecutorID `protobuf:"bytes,2,req,name=executor_id" json:"executor_id,omitempty"`
350 Data []byte `protobuf:"bytes,3,req,name=data" json:"data,omitempty"`
351 XXX_unrecognized []byte `json:"-"`
352 }
353
354 func (m *Event_Message) Reset() { *m = Event_Message{} }
355 func (*Event_Message) ProtoMessage() {}
356
357 func (m *Event_Message) GetSlaveId() *mesosproto.SlaveID {
358 if m != nil {
359 return m.SlaveId
360 }
361 return nil
362 }
363
364 func (m *Event_Message) GetExecutorId() *mesosproto.ExecutorID {
365 if m != nil {
366 return m.ExecutorId
367 }
368 return nil
369 }
370
371 func (m *Event_Message) GetData() []byte {
372 if m != nil {
373 return m.Data
374 }
375 return nil
376 }
377
378 // Received when a slave is removed from the cluster (e.g., failed
379 // health checks) or when an executor is terminated. Note that, this
380 // event coincides with receipt of terminal UPDATE events for any
381 // active tasks belonging to the slave or executor and receipt of
382 // 'Rescind' events for any outstanding offers belonging to the
383 // slave. Note that there is no guaranteed order between the
384 // 'Failure', 'Update' and 'Rescind' events when a slave or executor
385 // is removed.
386 // TODO(vinod): Consider splitting the lost slave and terminated
387 // executor into separate events and ensure it's reliably generated.
388 type Event_Failure struct {
389 SlaveId *mesosproto.SlaveID `protobuf:"bytes,1,opt,name=slave_id" json:"slave_id,omitempty"`
390 // If this was just a failure of an executor on a slave then
391 // 'executor_id' will be set and possibly 'status' (if we were
392 // able to determine the exit status).
393 ExecutorId *mesosproto.ExecutorID `protobuf:"bytes,2,opt,name=executor_id" json:"executor_id,omitempty"`
394 Status *int32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"`
395 XXX_unrecognized []byte `json:"-"`
396 }
397
398 func (m *Event_Failure) Reset() { *m = Event_Failure{} }
399 func (*Event_Failure) ProtoMessage() {}
400
401 func (m *Event_Failure) GetSlaveId() *mesosproto.SlaveID {
402 if m != nil {
403 return m.SlaveId
404 }
405 return nil
406 }
407
408 func (m *Event_Failure) GetExecutorId() *mesosproto.ExecutorID {
409 if m != nil {
410 return m.ExecutorId
411 }
412 return nil
413 }
414
415 func (m *Event_Failure) GetStatus() int32 {
416 if m != nil && m.Status != nil {
417 return *m.Status
418 }
419 return 0
420 }
421
422 // Received when an invalid framework (e.g., unauthenticated,
423 // unauthorized) attempts to subscribe with the master. Error can
424 // also be received if scheduler sends invalid Calls (e.g., not
425 // properly initialized).
426 // TODO(vinod): Remove this once the old scheduler driver is no
427 // longer supported. With HTTP API all errors will be signaled via
428 // HTTP response codes.
429 type Event_Error struct {
430 Message *string `protobuf:"bytes,1,req,name=message" json:"message,omitempty"`
431 XXX_unrecognized []byte `json:"-"`
432 }
433
434 func (m *Event_Error) Reset() { *m = Event_Error{} }
435 func (*Event_Error) ProtoMessage() {}
436
437 func (m *Event_Error) GetMessage() string {
438 if m != nil && m.Message != nil {
439 return *m.Message
440 }
441 return ""
442 }
443
444 // *
445 // Scheduler call API.
446 //
447 // Like Event, a Call is described using the standard protocol buffer
448 // "union" trick (see above).
449 type Call struct {
450 // Identifies who generated this call. Master assigns a framework id
451 // when a new scheduler subscribes for the first time. Once assigned,
452 // the scheduler must set the 'framework_id' here and within its
453 // FrameworkInfo (in any further 'Subscribe' calls). This allows the
454 // master to identify a scheduler correctly across disconnections,
455 // failovers, etc.
456 FrameworkId *mesosproto.FrameworkID `protobuf:"bytes,1,opt,name=framework_id" json:"framework_id,omitempty"`
457 // Type of the call, indicates which optional field below should be
458 // present if that type has a nested message definition.
459 Type *Call_Type `protobuf:"varint,2,req,name=type,enum=mesosproto.scheduler.Call_Type" json:"type,omitempty"`
460 Subscribe *Call_Subscribe `protobuf:"bytes,3,opt,name=subscribe" json:"subscribe,omitempty"`
461 Accept *Call_Accept `protobuf:"bytes,4,opt,name=accept" json:"accept,omitempty"`
462 Decline *Call_Decline `protobuf:"bytes,5,opt,name=decline" json:"decline,omitempty"`
463 Kill *Call_Kill `protobuf:"bytes,6,opt,name=kill" json:"kill,omitempty"`
464 Shutdown *Call_Shutdown `protobuf:"bytes,7,opt,name=shutdown" json:"shutdown,omitempty"`
465 Acknowledge *Call_Acknowledge `protobuf:"bytes,8,opt,name=acknowledge" json:"acknowledge,omitempty"`
466 Reconcile *Call_Reconcile `protobuf:"bytes,9,opt,name=reconcile" json:"reconcile,omitempty"`
467 Message *Call_Message `protobuf:"bytes,10,opt,name=message" json:"message,omitempty"`
468 Request *Call_Request `protobuf:"bytes,11,opt,name=request" json:"request,omitempty"`
469 XXX_unrecognized []byte `json:"-"`
470 }
471
472 func (m *Call) Reset() { *m = Call{} }
473 func (*Call) ProtoMessage() {}
474
475 func (m *Call) GetFrameworkId() *mesosproto.FrameworkID {
476 if m != nil {
477 return m.FrameworkId
478 }
479 return nil
480 }
481
482 func (m *Call) GetType() Call_Type {
483 if m != nil && m.Type != nil {
484 return *m.Type
485 }
486 return Call_SUBSCRIBE
487 }
488
489 func (m *Call) GetSubscribe() *Call_Subscribe {
490 if m != nil {
491 return m.Subscribe
492 }
493 return nil
494 }
495
496 func (m *Call) GetAccept() *Call_Accept {
497 if m != nil {
498 return m.Accept
499 }
500 return nil
501 }
502
503 func (m *Call) GetDecline() *Call_Decline {
504 if m != nil {
505 return m.Decline
506 }
507 return nil
508 }
509
510 func (m *Call) GetKill() *Call_Kill {
511 if m != nil {
512 return m.Kill
513 }
514 return nil
515 }
516
517 func (m *Call) GetShutdown() *Call_Shutdown {
518 if m != nil {
519 return m.Shutdown
520 }
521 return nil
522 }
523
524 func (m *Call) GetAcknowledge() *Call_Acknowledge {
525 if m != nil {
526 return m.Acknowledge
527 }
528 return nil
529 }
530
531 func (m *Call) GetReconcile() *Call_Reconcile {
532 if m != nil {
533 return m.Reconcile
534 }
535 return nil
536 }
537
538 func (m *Call) GetMessage() *Call_Message {
539 if m != nil {
540 return m.Message
541 }
542 return nil
543 }
544
545 func (m *Call) GetRequest() *Call_Request {
546 if m != nil {
547 return m.Request
548 }
549 return nil
550 }
551
552 // Subscribes the scheduler with the master to receive events. A
553 // scheduler must send other calls only after it has received the
554 // SUBCRIBED event.
555 type Call_Subscribe struct {
556 // See the comments below on 'framework_id' on the semantics for
557 // 'framework_info.id'.
558 FrameworkInfo *mesosproto.FrameworkInfo `protobuf:"bytes,1,req,name=framework_info" json:"framework_info,omitempty"`
559 // 'force' field is only relevant when 'framework_info.id' is set.
560 // It tells the master what to do in case an instance of the
561 // scheduler attempts to subscribe when another instance of it is
562 // already connected (e.g., split brain due to network partition).
563 // If 'force' is true, this scheduler instance is allowed and the
564 // old connected scheduler instance is disconnected. If false,
565 // this scheduler instance is disallowed subscription in favor of
566 // the already connected scheduler instance.
567 //
568 // It is recommended to set this to true only when a newly elected
569 // scheduler instance is attempting to subscribe but not when a
570 // scheduler is retrying subscription (e.g., disconnection or
571 // master failover; see sched/sched.cpp for an example).
572 Force *bool `protobuf:"varint,2,opt,name=force" json:"force,omitempty"`
573 XXX_unrecognized []byte `json:"-"`
574 }
575
576 func (m *Call_Subscribe) Reset() { *m = Call_Subscribe{} }
577 func (*Call_Subscribe) ProtoMessage() {}
578
579 func (m *Call_Subscribe) GetFrameworkInfo() *mesosproto.FrameworkInfo {
580 if m != nil {
581 return m.FrameworkInfo
582 }
583 return nil
584 }
585
586 func (m *Call_Subscribe) GetForce() bool {
587 if m != nil && m.Force != nil {
588 return *m.Force
589 }
590 return false
591 }
592
593 // Accepts an offer, performing the specified operations
594 // in a sequential manner.
595 //
596 // E.g. Launch a task with a newly reserved persistent volume:
597 //
598 // Accept {
599 // offer_ids: [ ... ]
600 // operations: [
601 // { type: RESERVE,
602 // reserve: { resources: [ disk(role):2 ] } }
603 // { type: CREATE,
604 // create: { volumes: [ disk(role):1+persistence ] } }
605 // { type: LAUNCH,
606 // launch: { task_infos ... disk(role):1;disk(role):1+persistence } }
607 // ]
608 // }
609 //
610 // Note that any of the offer’s resources not used in the 'Accept'
611 // call (e.g., to launch a task) are considered unused and might be
612 // reoffered to other frameworks. In other words, the same OfferID
613 // cannot be used in more than one 'Accept' call.
614 type Call_Accept struct {
615 OfferIds []*mesosproto.OfferID `protobuf:"bytes,1,rep,name=offer_ids" json:"offer_ids,omitempty"`
616 Operations []*mesosproto.Offer_Operation `protobuf:"bytes,2,rep,name=operations" json:"operations,omitempty"`
617 Filters *mesosproto.Filters `protobuf:"bytes,3,opt,name=filters" json:"filters,omitempty"`
618 XXX_unrecognized []byte `json:"-"`
619 }
620
621 func (m *Call_Accept) Reset() { *m = Call_Accept{} }
622 func (*Call_Accept) ProtoMessage() {}
623
624 func (m *Call_Accept) GetOfferIds() []*mesosproto.OfferID {
625 if m != nil {
626 return m.OfferIds
627 }
628 return nil
629 }
630
631 func (m *Call_Accept) GetOperations() []*mesosproto.Offer_Operation {
632 if m != nil {
633 return m.Operations
634 }
635 return nil
636 }
637
638 func (m *Call_Accept) GetFilters() *mesosproto.Filters {
639 if m != nil {
640 return m.Filters
641 }
642 return nil
643 }
644
645 // Declines an offer, signaling the master to potentially reoffer
646 // the resources to a different framework. Note that this is same
647 // as sending an Accept call with no operations. See comments on
648 // top of 'Accept' for semantics.
649 type Call_Decline struct {
650 OfferIds []*mesosproto.OfferID `protobuf:"bytes,1,rep,name=offer_ids" json:"offer_ids,omitempty"`
651 Filters *mesosproto.Filters `protobuf:"bytes,2,opt,name=filters" json:"filters,omitempty"`
652 XXX_unrecognized []byte `json:"-"`
653 }
654
655 func (m *Call_Decline) Reset() { *m = Call_Decline{} }
656 func (*Call_Decline) ProtoMessage() {}
657
658 func (m *Call_Decline) GetOfferIds() []*mesosproto.OfferID {
659 if m != nil {
660 return m.OfferIds
661 }
662 return nil
663 }
664
665 func (m *Call_Decline) GetFilters() *mesosproto.Filters {
666 if m != nil {
667 return m.Filters
668 }
669 return nil
670 }
671
672 // Kills a specific task. If the scheduler has a custom executor,
673 // the kill is forwarded to the executor and it is up to the
674 // executor to kill the task and send a TASK_KILLED (or TASK_FAILED)
675 // update. Note that Mesos releases the resources for a task once it
676 // receives a terminal update (See TaskState in mesos.proto) for it.
677 // If the task is unknown to the master, a TASK_LOST update is
678 // generated.
679 type Call_Kill struct {
680 TaskId *mesosproto.TaskID `protobuf:"bytes,1,req,name=task_id" json:"task_id,omitempty"`
681 SlaveId *mesosproto.SlaveID `protobuf:"bytes,2,opt,name=slave_id" json:"slave_id,omitempty"`
682 XXX_unrecognized []byte `json:"-"`
683 }
684
685 func (m *Call_Kill) Reset() { *m = Call_Kill{} }
686 func (*Call_Kill) ProtoMessage() {}
687
688 func (m *Call_Kill) GetTaskId() *mesosproto.TaskID {
689 if m != nil {
690 return m.TaskId
691 }
692 return nil
693 }
694
695 func (m *Call_Kill) GetSlaveId() *mesosproto.SlaveID {
696 if m != nil {
697 return m.SlaveId
698 }
699 return nil
700 }
701
702 // Shuts down a custom executor. When the executor gets a shutdown
703 // event, it is expected to kill all its tasks (and send TASK_KILLED
704 // updates) and terminate. If the executor doesn’t terminate within
705 // a certain timeout (configurable via
706 // '--executor_shutdown_grace_period' slave flag), the slave will
707 // forcefully destroy the container (executor and its tasks) and
708 // transition its active tasks to TASK_LOST.
709 type Call_Shutdown struct {
710 ExecutorId *mesosproto.ExecutorID `protobuf:"bytes,1,req,name=executor_id" json:"executor_id,omitempty"`
711 SlaveId *mesosproto.SlaveID `protobuf:"bytes,2,req,name=slave_id" json:"slave_id,omitempty"`
712 XXX_unrecognized []byte `json:"-"`
713 }
714
715 func (m *Call_Shutdown) Reset() { *m = Call_Shutdown{} }
716 func (*Call_Shutdown) ProtoMessage() {}
717
718 func (m *Call_Shutdown) GetExecutorId() *mesosproto.ExecutorID {
719 if m != nil {
720 return m.ExecutorId
721 }
722 return nil
723 }
724
725 func (m *Call_Shutdown) GetSlaveId() *mesosproto.SlaveID {
726 if m != nil {
727 return m.SlaveId
728 }
729 return nil
730 }
731
732 // Acknowledges the receipt of status update. Schedulers are
733 // responsible for explicitly acknowledging the receipt of status
734 // updates that have 'Update.status().uuid()' field set. Such status
735 // updates are retried by the slave until they are acknowledged by
736 // the scheduler.
737 type Call_Acknowledge struct {
738 SlaveId *mesosproto.SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
739 TaskId *mesosproto.TaskID `protobuf:"bytes,2,req,name=task_id" json:"task_id,omitempty"`
740 Uuid []byte `protobuf:"bytes,3,req,name=uuid" json:"uuid,omitempty"`
741 XXX_unrecognized []byte `json:"-"`
742 }
743
744 func (m *Call_Acknowledge) Reset() { *m = Call_Acknowledge{} }
745 func (*Call_Acknowledge) ProtoMessage() {}
746
747 func (m *Call_Acknowledge) GetSlaveId() *mesosproto.SlaveID {
748 if m != nil {
749 return m.SlaveId
750 }
751 return nil
752 }
753
754 func (m *Call_Acknowledge) GetTaskId() *mesosproto.TaskID {
755 if m != nil {
756 return m.TaskId
757 }
758 return nil
759 }
760
761 func (m *Call_Acknowledge) GetUuid() []byte {
762 if m != nil {
763 return m.Uuid
764 }
765 return nil
766 }
767
768 // Allows the scheduler to query the status for non-terminal tasks.
769 // This causes the master to send back the latest task status for
770 // each task in 'tasks', if possible. Tasks that are no longer known
771 // will result in a TASK_LOST update. If 'statuses' is empty, then
772 // the master will send the latest status for each task currently
773 // known.
774 type Call_Reconcile struct {
775 Tasks []*Call_Reconcile_Task `protobuf:"bytes,1,rep,name=tasks" json:"tasks,omitempty"`
776 XXX_unrecognized []byte `json:"-"`
777 }
778
779 func (m *Call_Reconcile) Reset() { *m = Call_Reconcile{} }
780 func (*Call_Reconcile) ProtoMessage() {}
781
782 func (m *Call_Reconcile) GetTasks() []*Call_Reconcile_Task {
783 if m != nil {
784 return m.Tasks
785 }
786 return nil
787 }
788
789 // TODO(vinod): Support arbitrary queries than just state of tasks.
790 type Call_Reconcile_Task struct {
791 TaskId *mesosproto.TaskID `protobuf:"bytes,1,req,name=task_id" json:"task_id,omitempty"`
792 SlaveId *mesosproto.SlaveID `protobuf:"bytes,2,opt,name=slave_id" json:"slave_id,omitempty"`
793 XXX_unrecognized []byte `json:"-"`
794 }
795
796 func (m *Call_Reconcile_Task) Reset() { *m = Call_Reconcile_Task{} }
797 func (*Call_Reconcile_Task) ProtoMessage() {}
798
799 func (m *Call_Reconcile_Task) GetTaskId() *mesosproto.TaskID {
800 if m != nil {
801 return m.TaskId
802 }
803 return nil
804 }
805
806 func (m *Call_Reconcile_Task) GetSlaveId() *mesosproto.SlaveID {
807 if m != nil {
808 return m.SlaveId
809 }
810 return nil
811 }
812
813 // Sends arbitrary binary data to the executor. Note that Mesos
814 // neither interprets this data nor makes any guarantees about the
815 // delivery of this message to the executor.
816 type Call_Message struct {
817 SlaveId *mesosproto.SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
818 ExecutorId *mesosproto.ExecutorID `protobuf:"bytes,2,req,name=executor_id" json:"executor_id,omitempty"`
819 Data []byte `protobuf:"bytes,3,req,name=data" json:"data,omitempty"`
820 XXX_unrecognized []byte `json:"-"`
821 }
822
823 func (m *Call_Message) Reset() { *m = Call_Message{} }
824 func (*Call_Message) ProtoMessage() {}
825
826 func (m *Call_Message) GetSlaveId() *mesosproto.SlaveID {
827 if m != nil {
828 return m.SlaveId
829 }
830 return nil
831 }
832
833 func (m *Call_Message) GetExecutorId() *mesosproto.ExecutorID {
834 if m != nil {
835 return m.ExecutorId
836 }
837 return nil
838 }
839
840 func (m *Call_Message) GetData() []byte {
841 if m != nil {
842 return m.Data
843 }
844 return nil
845 }
846
847 // Requests a specific set of resources from Mesos's allocator. If
848 // the allocator has support for this, corresponding offers will be
849 // sent asynchronously via the OFFERS event(s).
850 //
851 // NOTE: The built-in hierarchical allocator doesn't have support
852 // for this call and hence simply ignores it.
853 type Call_Request struct {
854 Requests []*mesosproto.Request `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"`
855 XXX_unrecognized []byte `json:"-"`
856 }
857
858 func (m *Call_Request) Reset() { *m = Call_Request{} }
859 func (*Call_Request) ProtoMessage() {}
860
861 func (m *Call_Request) GetRequests() []*mesosproto.Request {
862 if m != nil {
863 return m.Requests
864 }
865 return nil
866 }
867
868 func init() {
869 proto.RegisterEnum("mesosproto.scheduler.Event_Type", Event_Type_name, Event_Type_value)
870 proto.RegisterEnum("mesosproto.scheduler.Call_Type", Call_Type_name, Call_Type_value)
871 }
872 func (this *Event) VerboseEqual(that interface{}) error {
873 if that == nil {
874 if this == nil {
875 return nil
876 }
877 return fmt.Errorf("that == nil && this != nil")
878 }
879
880 that1, ok := that.(*Event)
881 if !ok {
882 return fmt.Errorf("that is not of type *Event")
883 }
884 if that1 == nil {
885 if this == nil {
886 return nil
887 }
888 return fmt.Errorf("that is type *Event but is nil && this != nil")
889 } else if this == nil {
890 return fmt.Errorf("that is type *Eventbut is not nil && this == nil")
891 }
892 if this.Type != nil && that1.Type != nil {
893 if *this.Type != *that1.Type {
894 return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type)
895 }
896 } else if this.Type != nil {
897 return fmt.Errorf("this.Type == nil && that.Type != nil")
898 } else if that1.Type != nil {
899 return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
900 }
901 if !this.Subscribed.Equal(that1.Subscribed) {
902 return fmt.Errorf("Subscribed this(%v) Not Equal that(%v)", this.Subscribed, that1.Subscribed)
903 }
904 if !this.Offers.Equal(that1.Offers) {
905 return fmt.Errorf("Offers this(%v) Not Equal that(%v)", this.Offers, that1.Offers)
906 }
907 if !this.Rescind.Equal(that1.Rescind) {
908 return fmt.Errorf("Rescind this(%v) Not Equal that(%v)", this.Rescind, that1.Rescind)
909 }
910 if !this.Update.Equal(that1.Update) {
911 return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update)
912 }
913 if !this.Message.Equal(that1.Message) {
914 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
915 }
916 if !this.Failure.Equal(that1.Failure) {
917 return fmt.Errorf("Failure this(%v) Not Equal that(%v)", this.Failure, that1.Failure)
918 }
919 if !this.Error.Equal(that1.Error) {
920 return fmt.Errorf("Error this(%v) Not Equal that(%v)", this.Error, that1.Error)
921 }
922 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
923 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
924 }
925 return nil
926 }
927 func (this *Event) Equal(that interface{}) bool {
928 if that == nil {
929 if this == nil {
930 return true
931 }
932 return false
933 }
934
935 that1, ok := that.(*Event)
936 if !ok {
937 return false
938 }
939 if that1 == nil {
940 if this == nil {
941 return true
942 }
943 return false
944 } else if this == nil {
945 return false
946 }
947 if this.Type != nil && that1.Type != nil {
948 if *this.Type != *that1.Type {
949 return false
950 }
951 } else if this.Type != nil {
952 return false
953 } else if that1.Type != nil {
954 return false
955 }
956 if !this.Subscribed.Equal(that1.Subscribed) {
957 return false
958 }
959 if !this.Offers.Equal(that1.Offers) {
960 return false
961 }
962 if !this.Rescind.Equal(that1.Rescind) {
963 return false
964 }
965 if !this.Update.Equal(that1.Update) {
966 return false
967 }
968 if !this.Message.Equal(that1.Message) {
969 return false
970 }
971 if !this.Failure.Equal(that1.Failure) {
972 return false
973 }
974 if !this.Error.Equal(that1.Error) {
975 return false
976 }
977 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
978 return false
979 }
980 return true
981 }
982 func (this *Event_Subscribed) VerboseEqual(that interface{}) error {
983 if that == nil {
984 if this == nil {
985 return nil
986 }
987 return fmt.Errorf("that == nil && this != nil")
988 }
989
990 that1, ok := that.(*Event_Subscribed)
991 if !ok {
992 return fmt.Errorf("that is not of type *Event_Subscribed")
993 }
994 if that1 == nil {
995 if this == nil {
996 return nil
997 }
998 return fmt.Errorf("that is type *Event_Subscribed but is nil && this != nil")
999 } else if this == nil {
1000 return fmt.Errorf("that is type *Event_Subscribedbut is not nil && this == nil")
1001 }
1002 if !this.FrameworkId.Equal(that1.FrameworkId) {
1003 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
1004 }
1005 if this.HeartbeatIntervalSeconds != nil && that1.HeartbeatIntervalSeconds != nil {
1006 if *this.HeartbeatIntervalSeconds != *that1.HeartbeatIntervalSeconds {
1007 return fmt.Errorf("HeartbeatIntervalSeconds this(%v) Not Equal that(%v)", *this.HeartbeatIntervalSeconds, *that1.HeartbeatIntervalSeconds)
1008 }
1009 } else if this.HeartbeatIntervalSeconds != nil {
1010 return fmt.Errorf("this.HeartbeatIntervalSeconds == nil && that.HeartbeatIntervalSeconds != nil")
1011 } else if that1.HeartbeatIntervalSeconds != nil {
1012 return fmt.Errorf("HeartbeatIntervalSeconds this(%v) Not Equal that(%v)", this.HeartbeatIntervalSeconds, that1.HeartbeatIntervalSeconds)
1013 }
1014 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1015 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1016 }
1017 return nil
1018 }
1019 func (this *Event_Subscribed) Equal(that interface{}) bool {
1020 if that == nil {
1021 if this == nil {
1022 return true
1023 }
1024 return false
1025 }
1026
1027 that1, ok := that.(*Event_Subscribed)
1028 if !ok {
1029 return false
1030 }
1031 if that1 == nil {
1032 if this == nil {
1033 return true
1034 }
1035 return false
1036 } else if this == nil {
1037 return false
1038 }
1039 if !this.FrameworkId.Equal(that1.FrameworkId) {
1040 return false
1041 }
1042 if this.HeartbeatIntervalSeconds != nil && that1.HeartbeatIntervalSeconds != nil {
1043 if *this.HeartbeatIntervalSeconds != *that1.HeartbeatIntervalSeconds {
1044 return false
1045 }
1046 } else if this.HeartbeatIntervalSeconds != nil {
1047 return false
1048 } else if that1.HeartbeatIntervalSeconds != nil {
1049 return false
1050 }
1051 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1052 return false
1053 }
1054 return true
1055 }
1056 func (this *Event_Offers) VerboseEqual(that interface{}) error {
1057 if that == nil {
1058 if this == nil {
1059 return nil
1060 }
1061 return fmt.Errorf("that == nil && this != nil")
1062 }
1063
1064 that1, ok := that.(*Event_Offers)
1065 if !ok {
1066 return fmt.Errorf("that is not of type *Event_Offers")
1067 }
1068 if that1 == nil {
1069 if this == nil {
1070 return nil
1071 }
1072 return fmt.Errorf("that is type *Event_Offers but is nil && this != nil")
1073 } else if this == nil {
1074 return fmt.Errorf("that is type *Event_Offersbut is not nil && this == nil")
1075 }
1076 if len(this.Offers) != len(that1.Offers) {
1077 return fmt.Errorf("Offers this(%v) Not Equal that(%v)", len(this.Offers), len(that1.Offers))
1078 }
1079 for i := range this.Offers {
1080 if !this.Offers[i].Equal(that1.Offers[i]) {
1081 return fmt.Errorf("Offers this[%v](%v) Not Equal that[%v](%v)", i, this.Offers[i], i, that1.Offers[i])
1082 }
1083 }
1084 if len(this.InverseOffers) != len(that1.InverseOffers) {
1085 return fmt.Errorf("InverseOffers this(%v) Not Equal that(%v)", len(this.InverseOffers), len(that1.InverseOffers))
1086 }
1087 for i := range this.InverseOffers {
1088 if !this.InverseOffers[i].Equal(that1.InverseOffers[i]) {
1089 return fmt.Errorf("InverseOffers this[%v](%v) Not Equal that[%v](%v)", i, this.InverseOffers[i], i, that1.InverseOffers[i])
1090 }
1091 }
1092 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1093 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1094 }
1095 return nil
1096 }
1097 func (this *Event_Offers) Equal(that interface{}) bool {
1098 if that == nil {
1099 if this == nil {
1100 return true
1101 }
1102 return false
1103 }
1104
1105 that1, ok := that.(*Event_Offers)
1106 if !ok {
1107 return false
1108 }
1109 if that1 == nil {
1110 if this == nil {
1111 return true
1112 }
1113 return false
1114 } else if this == nil {
1115 return false
1116 }
1117 if len(this.Offers) != len(that1.Offers) {
1118 return false
1119 }
1120 for i := range this.Offers {
1121 if !this.Offers[i].Equal(that1.Offers[i]) {
1122 return false
1123 }
1124 }
1125 if len(this.InverseOffers) != len(that1.InverseOffers) {
1126 return false
1127 }
1128 for i := range this.InverseOffers {
1129 if !this.InverseOffers[i].Equal(that1.InverseOffers[i]) {
1130 return false
1131 }
1132 }
1133 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1134 return false
1135 }
1136 return true
1137 }
1138 func (this *Event_Rescind) VerboseEqual(that interface{}) error {
1139 if that == nil {
1140 if this == nil {
1141 return nil
1142 }
1143 return fmt.Errorf("that == nil && this != nil")
1144 }
1145
1146 that1, ok := that.(*Event_Rescind)
1147 if !ok {
1148 return fmt.Errorf("that is not of type *Event_Rescind")
1149 }
1150 if that1 == nil {
1151 if this == nil {
1152 return nil
1153 }
1154 return fmt.Errorf("that is type *Event_Rescind but is nil && this != nil")
1155 } else if this == nil {
1156 return fmt.Errorf("that is type *Event_Rescindbut is not nil && this == nil")
1157 }
1158 if !this.OfferId.Equal(that1.OfferId) {
1159 return fmt.Errorf("OfferId this(%v) Not Equal that(%v)", this.OfferId, that1.OfferId)
1160 }
1161 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1162 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1163 }
1164 return nil
1165 }
1166 func (this *Event_Rescind) Equal(that interface{}) bool {
1167 if that == nil {
1168 if this == nil {
1169 return true
1170 }
1171 return false
1172 }
1173
1174 that1, ok := that.(*Event_Rescind)
1175 if !ok {
1176 return false
1177 }
1178 if that1 == nil {
1179 if this == nil {
1180 return true
1181 }
1182 return false
1183 } else if this == nil {
1184 return false
1185 }
1186 if !this.OfferId.Equal(that1.OfferId) {
1187 return false
1188 }
1189 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1190 return false
1191 }
1192 return true
1193 }
1194 func (this *Event_Update) VerboseEqual(that interface{}) error {
1195 if that == nil {
1196 if this == nil {
1197 return nil
1198 }
1199 return fmt.Errorf("that == nil && this != nil")
1200 }
1201
1202 that1, ok := that.(*Event_Update)
1203 if !ok {
1204 return fmt.Errorf("that is not of type *Event_Update")
1205 }
1206 if that1 == nil {
1207 if this == nil {
1208 return nil
1209 }
1210 return fmt.Errorf("that is type *Event_Update but is nil && this != nil")
1211 } else if this == nil {
1212 return fmt.Errorf("that is type *Event_Updatebut is not nil && this == nil")
1213 }
1214 if !this.Status.Equal(that1.Status) {
1215 return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
1216 }
1217 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1218 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1219 }
1220 return nil
1221 }
1222 func (this *Event_Update) Equal(that interface{}) bool {
1223 if that == nil {
1224 if this == nil {
1225 return true
1226 }
1227 return false
1228 }
1229
1230 that1, ok := that.(*Event_Update)
1231 if !ok {
1232 return false
1233 }
1234 if that1 == nil {
1235 if this == nil {
1236 return true
1237 }
1238 return false
1239 } else if this == nil {
1240 return false
1241 }
1242 if !this.Status.Equal(that1.Status) {
1243 return false
1244 }
1245 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1246 return false
1247 }
1248 return true
1249 }
1250 func (this *Event_Message) VerboseEqual(that interface{}) error {
1251 if that == nil {
1252 if this == nil {
1253 return nil
1254 }
1255 return fmt.Errorf("that == nil && this != nil")
1256 }
1257
1258 that1, ok := that.(*Event_Message)
1259 if !ok {
1260 return fmt.Errorf("that is not of type *Event_Message")
1261 }
1262 if that1 == nil {
1263 if this == nil {
1264 return nil
1265 }
1266 return fmt.Errorf("that is type *Event_Message but is nil && this != nil")
1267 } else if this == nil {
1268 return fmt.Errorf("that is type *Event_Messagebut is not nil && this == nil")
1269 }
1270 if !this.SlaveId.Equal(that1.SlaveId) {
1271 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
1272 }
1273 if !this.ExecutorId.Equal(that1.ExecutorId) {
1274 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
1275 }
1276 if !bytes.Equal(this.Data, that1.Data) {
1277 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
1278 }
1279 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1280 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1281 }
1282 return nil
1283 }
1284 func (this *Event_Message) Equal(that interface{}) bool {
1285 if that == nil {
1286 if this == nil {
1287 return true
1288 }
1289 return false
1290 }
1291
1292 that1, ok := that.(*Event_Message)
1293 if !ok {
1294 return false
1295 }
1296 if that1 == nil {
1297 if this == nil {
1298 return true
1299 }
1300 return false
1301 } else if this == nil {
1302 return false
1303 }
1304 if !this.SlaveId.Equal(that1.SlaveId) {
1305 return false
1306 }
1307 if !this.ExecutorId.Equal(that1.ExecutorId) {
1308 return false
1309 }
1310 if !bytes.Equal(this.Data, that1.Data) {
1311 return false
1312 }
1313 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1314 return false
1315 }
1316 return true
1317 }
1318 func (this *Event_Failure) VerboseEqual(that interface{}) error {
1319 if that == nil {
1320 if this == nil {
1321 return nil
1322 }
1323 return fmt.Errorf("that == nil && this != nil")
1324 }
1325
1326 that1, ok := that.(*Event_Failure)
1327 if !ok {
1328 return fmt.Errorf("that is not of type *Event_Failure")
1329 }
1330 if that1 == nil {
1331 if this == nil {
1332 return nil
1333 }
1334 return fmt.Errorf("that is type *Event_Failure but is nil && this != nil")
1335 } else if this == nil {
1336 return fmt.Errorf("that is type *Event_Failurebut is not nil && this == nil")
1337 }
1338 if !this.SlaveId.Equal(that1.SlaveId) {
1339 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
1340 }
1341 if !this.ExecutorId.Equal(that1.ExecutorId) {
1342 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
1343 }
1344 if this.Status != nil && that1.Status != nil {
1345 if *this.Status != *that1.Status {
1346 return fmt.Errorf("Status this(%v) Not Equal that(%v)", *this.Status, *that1.Status)
1347 }
1348 } else if this.Status != nil {
1349 return fmt.Errorf("this.Status == nil && that.Status != nil")
1350 } else if that1.Status != nil {
1351 return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
1352 }
1353 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1354 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1355 }
1356 return nil
1357 }
1358 func (this *Event_Failure) Equal(that interface{}) bool {
1359 if that == nil {
1360 if this == nil {
1361 return true
1362 }
1363 return false
1364 }
1365
1366 that1, ok := that.(*Event_Failure)
1367 if !ok {
1368 return false
1369 }
1370 if that1 == nil {
1371 if this == nil {
1372 return true
1373 }
1374 return false
1375 } else if this == nil {
1376 return false
1377 }
1378 if !this.SlaveId.Equal(that1.SlaveId) {
1379 return false
1380 }
1381 if !this.ExecutorId.Equal(that1.ExecutorId) {
1382 return false
1383 }
1384 if this.Status != nil && that1.Status != nil {
1385 if *this.Status != *that1.Status {
1386 return false
1387 }
1388 } else if this.Status != nil {
1389 return false
1390 } else if that1.Status != nil {
1391 return false
1392 }
1393 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1394 return false
1395 }
1396 return true
1397 }
1398 func (this *Event_Error) VerboseEqual(that interface{}) error {
1399 if that == nil {
1400 if this == nil {
1401 return nil
1402 }
1403 return fmt.Errorf("that == nil && this != nil")
1404 }
1405
1406 that1, ok := that.(*Event_Error)
1407 if !ok {
1408 return fmt.Errorf("that is not of type *Event_Error")
1409 }
1410 if that1 == nil {
1411 if this == nil {
1412 return nil
1413 }
1414 return fmt.Errorf("that is type *Event_Error but is nil && this != nil")
1415 } else if this == nil {
1416 return fmt.Errorf("that is type *Event_Errorbut is not nil && this == nil")
1417 }
1418 if this.Message != nil && that1.Message != nil {
1419 if *this.Message != *that1.Message {
1420 return fmt.Errorf("Message this(%v) Not Equal that(%v)", *this.Message, *that1.Message)
1421 }
1422 } else if this.Message != nil {
1423 return fmt.Errorf("this.Message == nil && that.Message != nil")
1424 } else if that1.Message != nil {
1425 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
1426 }
1427 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1428 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1429 }
1430 return nil
1431 }
1432 func (this *Event_Error) Equal(that interface{}) bool {
1433 if that == nil {
1434 if this == nil {
1435 return true
1436 }
1437 return false
1438 }
1439
1440 that1, ok := that.(*Event_Error)
1441 if !ok {
1442 return false
1443 }
1444 if that1 == nil {
1445 if this == nil {
1446 return true
1447 }
1448 return false
1449 } else if this == nil {
1450 return false
1451 }
1452 if this.Message != nil && that1.Message != nil {
1453 if *this.Message != *that1.Message {
1454 return false
1455 }
1456 } else if this.Message != nil {
1457 return false
1458 } else if that1.Message != nil {
1459 return false
1460 }
1461 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1462 return false
1463 }
1464 return true
1465 }
1466 func (this *Call) VerboseEqual(that interface{}) error {
1467 if that == nil {
1468 if this == nil {
1469 return nil
1470 }
1471 return fmt.Errorf("that == nil && this != nil")
1472 }
1473
1474 that1, ok := that.(*Call)
1475 if !ok {
1476 return fmt.Errorf("that is not of type *Call")
1477 }
1478 if that1 == nil {
1479 if this == nil {
1480 return nil
1481 }
1482 return fmt.Errorf("that is type *Call but is nil && this != nil")
1483 } else if this == nil {
1484 return fmt.Errorf("that is type *Callbut is not nil && this == nil")
1485 }
1486 if !this.FrameworkId.Equal(that1.FrameworkId) {
1487 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
1488 }
1489 if this.Type != nil && that1.Type != nil {
1490 if *this.Type != *that1.Type {
1491 return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type)
1492 }
1493 } else if this.Type != nil {
1494 return fmt.Errorf("this.Type == nil && that.Type != nil")
1495 } else if that1.Type != nil {
1496 return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
1497 }
1498 if !this.Subscribe.Equal(that1.Subscribe) {
1499 return fmt.Errorf("Subscribe this(%v) Not Equal that(%v)", this.Subscribe, that1.Subscribe)
1500 }
1501 if !this.Accept.Equal(that1.Accept) {
1502 return fmt.Errorf("Accept this(%v) Not Equal that(%v)", this.Accept, that1.Accept)
1503 }
1504 if !this.Decline.Equal(that1.Decline) {
1505 return fmt.Errorf("Decline this(%v) Not Equal that(%v)", this.Decline, that1.Decline)
1506 }
1507 if !this.Kill.Equal(that1.Kill) {
1508 return fmt.Errorf("Kill this(%v) Not Equal that(%v)", this.Kill, that1.Kill)
1509 }
1510 if !this.Shutdown.Equal(that1.Shutdown) {
1511 return fmt.Errorf("Shutdown this(%v) Not Equal that(%v)", this.Shutdown, that1.Shutdown)
1512 }
1513 if !this.Acknowledge.Equal(that1.Acknowledge) {
1514 return fmt.Errorf("Acknowledge this(%v) Not Equal that(%v)", this.Acknowledge, that1.Acknowledge)
1515 }
1516 if !this.Reconcile.Equal(that1.Reconcile) {
1517 return fmt.Errorf("Reconcile this(%v) Not Equal that(%v)", this.Reconcile, that1.Reconcile)
1518 }
1519 if !this.Message.Equal(that1.Message) {
1520 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
1521 }
1522 if !this.Request.Equal(that1.Request) {
1523 return fmt.Errorf("Request this(%v) Not Equal that(%v)", this.Request, that1.Request)
1524 }
1525 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1526 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1527 }
1528 return nil
1529 }
1530 func (this *Call) Equal(that interface{}) bool {
1531 if that == nil {
1532 if this == nil {
1533 return true
1534 }
1535 return false
1536 }
1537
1538 that1, ok := that.(*Call)
1539 if !ok {
1540 return false
1541 }
1542 if that1 == nil {
1543 if this == nil {
1544 return true
1545 }
1546 return false
1547 } else if this == nil {
1548 return false
1549 }
1550 if !this.FrameworkId.Equal(that1.FrameworkId) {
1551 return false
1552 }
1553 if this.Type != nil && that1.Type != nil {
1554 if *this.Type != *that1.Type {
1555 return false
1556 }
1557 } else if this.Type != nil {
1558 return false
1559 } else if that1.Type != nil {
1560 return false
1561 }
1562 if !this.Subscribe.Equal(that1.Subscribe) {
1563 return false
1564 }
1565 if !this.Accept.Equal(that1.Accept) {
1566 return false
1567 }
1568 if !this.Decline.Equal(that1.Decline) {
1569 return false
1570 }
1571 if !this.Kill.Equal(that1.Kill) {
1572 return false
1573 }
1574 if !this.Shutdown.Equal(that1.Shutdown) {
1575 return false
1576 }
1577 if !this.Acknowledge.Equal(that1.Acknowledge) {
1578 return false
1579 }
1580 if !this.Reconcile.Equal(that1.Reconcile) {
1581 return false
1582 }
1583 if !this.Message.Equal(that1.Message) {
1584 return false
1585 }
1586 if !this.Request.Equal(that1.Request) {
1587 return false
1588 }
1589 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1590 return false
1591 }
1592 return true
1593 }
1594 func (this *Call_Subscribe) VerboseEqual(that interface{}) error {
1595 if that == nil {
1596 if this == nil {
1597 return nil
1598 }
1599 return fmt.Errorf("that == nil && this != nil")
1600 }
1601
1602 that1, ok := that.(*Call_Subscribe)
1603 if !ok {
1604 return fmt.Errorf("that is not of type *Call_Subscribe")
1605 }
1606 if that1 == nil {
1607 if this == nil {
1608 return nil
1609 }
1610 return fmt.Errorf("that is type *Call_Subscribe but is nil && this != nil")
1611 } else if this == nil {
1612 return fmt.Errorf("that is type *Call_Subscribebut is not nil && this == nil")
1613 }
1614 if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
1615 return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo)
1616 }
1617 if this.Force != nil && that1.Force != nil {
1618 if *this.Force != *that1.Force {
1619 return fmt.Errorf("Force this(%v) Not Equal that(%v)", *this.Force, *that1.Force)
1620 }
1621 } else if this.Force != nil {
1622 return fmt.Errorf("this.Force == nil && that.Force != nil")
1623 } else if that1.Force != nil {
1624 return fmt.Errorf("Force this(%v) Not Equal that(%v)", this.Force, that1.Force)
1625 }
1626 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1627 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1628 }
1629 return nil
1630 }
1631 func (this *Call_Subscribe) Equal(that interface{}) bool {
1632 if that == nil {
1633 if this == nil {
1634 return true
1635 }
1636 return false
1637 }
1638
1639 that1, ok := that.(*Call_Subscribe)
1640 if !ok {
1641 return false
1642 }
1643 if that1 == nil {
1644 if this == nil {
1645 return true
1646 }
1647 return false
1648 } else if this == nil {
1649 return false
1650 }
1651 if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
1652 return false
1653 }
1654 if this.Force != nil && that1.Force != nil {
1655 if *this.Force != *that1.Force {
1656 return false
1657 }
1658 } else if this.Force != nil {
1659 return false
1660 } else if that1.Force != nil {
1661 return false
1662 }
1663 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1664 return false
1665 }
1666 return true
1667 }
1668 func (this *Call_Accept) VerboseEqual(that interface{}) error {
1669 if that == nil {
1670 if this == nil {
1671 return nil
1672 }
1673 return fmt.Errorf("that == nil && this != nil")
1674 }
1675
1676 that1, ok := that.(*Call_Accept)
1677 if !ok {
1678 return fmt.Errorf("that is not of type *Call_Accept")
1679 }
1680 if that1 == nil {
1681 if this == nil {
1682 return nil
1683 }
1684 return fmt.Errorf("that is type *Call_Accept but is nil && this != nil")
1685 } else if this == nil {
1686 return fmt.Errorf("that is type *Call_Acceptbut is not nil && this == nil")
1687 }
1688 if len(this.OfferIds) != len(that1.OfferIds) {
1689 return fmt.Errorf("OfferIds this(%v) Not Equal that(%v)", len(this.OfferIds), len(that1.OfferIds))
1690 }
1691 for i := range this.OfferIds {
1692 if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
1693 return fmt.Errorf("OfferIds this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIds[i], i, that1.OfferIds[i])
1694 }
1695 }
1696 if len(this.Operations) != len(that1.Operations) {
1697 return fmt.Errorf("Operations this(%v) Not Equal that(%v)", len(this.Operations), len(that1.Operations))
1698 }
1699 for i := range this.Operations {
1700 if !this.Operations[i].Equal(that1.Operations[i]) {
1701 return fmt.Errorf("Operations this[%v](%v) Not Equal that[%v](%v)", i, this.Operations[i], i, that1.Operations[i])
1702 }
1703 }
1704 if !this.Filters.Equal(that1.Filters) {
1705 return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
1706 }
1707 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1708 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1709 }
1710 return nil
1711 }
1712 func (this *Call_Accept) Equal(that interface{}) bool {
1713 if that == nil {
1714 if this == nil {
1715 return true
1716 }
1717 return false
1718 }
1719
1720 that1, ok := that.(*Call_Accept)
1721 if !ok {
1722 return false
1723 }
1724 if that1 == nil {
1725 if this == nil {
1726 return true
1727 }
1728 return false
1729 } else if this == nil {
1730 return false
1731 }
1732 if len(this.OfferIds) != len(that1.OfferIds) {
1733 return false
1734 }
1735 for i := range this.OfferIds {
1736 if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
1737 return false
1738 }
1739 }
1740 if len(this.Operations) != len(that1.Operations) {
1741 return false
1742 }
1743 for i := range this.Operations {
1744 if !this.Operations[i].Equal(that1.Operations[i]) {
1745 return false
1746 }
1747 }
1748 if !this.Filters.Equal(that1.Filters) {
1749 return false
1750 }
1751 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1752 return false
1753 }
1754 return true
1755 }
1756 func (this *Call_Decline) VerboseEqual(that interface{}) error {
1757 if that == nil {
1758 if this == nil {
1759 return nil
1760 }
1761 return fmt.Errorf("that == nil && this != nil")
1762 }
1763
1764 that1, ok := that.(*Call_Decline)
1765 if !ok {
1766 return fmt.Errorf("that is not of type *Call_Decline")
1767 }
1768 if that1 == nil {
1769 if this == nil {
1770 return nil
1771 }
1772 return fmt.Errorf("that is type *Call_Decline but is nil && this != nil")
1773 } else if this == nil {
1774 return fmt.Errorf("that is type *Call_Declinebut is not nil && this == nil")
1775 }
1776 if len(this.OfferIds) != len(that1.OfferIds) {
1777 return fmt.Errorf("OfferIds this(%v) Not Equal that(%v)", len(this.OfferIds), len(that1.OfferIds))
1778 }
1779 for i := range this.OfferIds {
1780 if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
1781 return fmt.Errorf("OfferIds this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIds[i], i, that1.OfferIds[i])
1782 }
1783 }
1784 if !this.Filters.Equal(that1.Filters) {
1785 return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
1786 }
1787 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1788 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1789 }
1790 return nil
1791 }
1792 func (this *Call_Decline) Equal(that interface{}) bool {
1793 if that == nil {
1794 if this == nil {
1795 return true
1796 }
1797 return false
1798 }
1799
1800 that1, ok := that.(*Call_Decline)
1801 if !ok {
1802 return false
1803 }
1804 if that1 == nil {
1805 if this == nil {
1806 return true
1807 }
1808 return false
1809 } else if this == nil {
1810 return false
1811 }
1812 if len(this.OfferIds) != len(that1.OfferIds) {
1813 return false
1814 }
1815 for i := range this.OfferIds {
1816 if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
1817 return false
1818 }
1819 }
1820 if !this.Filters.Equal(that1.Filters) {
1821 return false
1822 }
1823 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1824 return false
1825 }
1826 return true
1827 }
1828 func (this *Call_Kill) VerboseEqual(that interface{}) error {
1829 if that == nil {
1830 if this == nil {
1831 return nil
1832 }
1833 return fmt.Errorf("that == nil && this != nil")
1834 }
1835
1836 that1, ok := that.(*Call_Kill)
1837 if !ok {
1838 return fmt.Errorf("that is not of type *Call_Kill")
1839 }
1840 if that1 == nil {
1841 if this == nil {
1842 return nil
1843 }
1844 return fmt.Errorf("that is type *Call_Kill but is nil && this != nil")
1845 } else if this == nil {
1846 return fmt.Errorf("that is type *Call_Killbut is not nil && this == nil")
1847 }
1848 if !this.TaskId.Equal(that1.TaskId) {
1849 return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
1850 }
1851 if !this.SlaveId.Equal(that1.SlaveId) {
1852 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
1853 }
1854 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1855 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1856 }
1857 return nil
1858 }
1859 func (this *Call_Kill) Equal(that interface{}) bool {
1860 if that == nil {
1861 if this == nil {
1862 return true
1863 }
1864 return false
1865 }
1866
1867 that1, ok := that.(*Call_Kill)
1868 if !ok {
1869 return false
1870 }
1871 if that1 == nil {
1872 if this == nil {
1873 return true
1874 }
1875 return false
1876 } else if this == nil {
1877 return false
1878 }
1879 if !this.TaskId.Equal(that1.TaskId) {
1880 return false
1881 }
1882 if !this.SlaveId.Equal(that1.SlaveId) {
1883 return false
1884 }
1885 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1886 return false
1887 }
1888 return true
1889 }
1890 func (this *Call_Shutdown) VerboseEqual(that interface{}) error {
1891 if that == nil {
1892 if this == nil {
1893 return nil
1894 }
1895 return fmt.Errorf("that == nil && this != nil")
1896 }
1897
1898 that1, ok := that.(*Call_Shutdown)
1899 if !ok {
1900 return fmt.Errorf("that is not of type *Call_Shutdown")
1901 }
1902 if that1 == nil {
1903 if this == nil {
1904 return nil
1905 }
1906 return fmt.Errorf("that is type *Call_Shutdown but is nil && this != nil")
1907 } else if this == nil {
1908 return fmt.Errorf("that is type *Call_Shutdownbut is not nil && this == nil")
1909 }
1910 if !this.ExecutorId.Equal(that1.ExecutorId) {
1911 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
1912 }
1913 if !this.SlaveId.Equal(that1.SlaveId) {
1914 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
1915 }
1916 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1917 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1918 }
1919 return nil
1920 }
1921 func (this *Call_Shutdown) Equal(that interface{}) bool {
1922 if that == nil {
1923 if this == nil {
1924 return true
1925 }
1926 return false
1927 }
1928
1929 that1, ok := that.(*Call_Shutdown)
1930 if !ok {
1931 return false
1932 }
1933 if that1 == nil {
1934 if this == nil {
1935 return true
1936 }
1937 return false
1938 } else if this == nil {
1939 return false
1940 }
1941 if !this.ExecutorId.Equal(that1.ExecutorId) {
1942 return false
1943 }
1944 if !this.SlaveId.Equal(that1.SlaveId) {
1945 return false
1946 }
1947 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1948 return false
1949 }
1950 return true
1951 }
1952 func (this *Call_Acknowledge) VerboseEqual(that interface{}) error {
1953 if that == nil {
1954 if this == nil {
1955 return nil
1956 }
1957 return fmt.Errorf("that == nil && this != nil")
1958 }
1959
1960 that1, ok := that.(*Call_Acknowledge)
1961 if !ok {
1962 return fmt.Errorf("that is not of type *Call_Acknowledge")
1963 }
1964 if that1 == nil {
1965 if this == nil {
1966 return nil
1967 }
1968 return fmt.Errorf("that is type *Call_Acknowledge but is nil && this != nil")
1969 } else if this == nil {
1970 return fmt.Errorf("that is type *Call_Acknowledgebut is not nil && this == nil")
1971 }
1972 if !this.SlaveId.Equal(that1.SlaveId) {
1973 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
1974 }
1975 if !this.TaskId.Equal(that1.TaskId) {
1976 return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
1977 }
1978 if !bytes.Equal(this.Uuid, that1.Uuid) {
1979 return fmt.Errorf("Uuid this(%v) Not Equal that(%v)", this.Uuid, that1.Uuid)
1980 }
1981 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1982 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1983 }
1984 return nil
1985 }
1986 func (this *Call_Acknowledge) Equal(that interface{}) bool {
1987 if that == nil {
1988 if this == nil {
1989 return true
1990 }
1991 return false
1992 }
1993
1994 that1, ok := that.(*Call_Acknowledge)
1995 if !ok {
1996 return false
1997 }
1998 if that1 == nil {
1999 if this == nil {
2000 return true
2001 }
2002 return false
2003 } else if this == nil {
2004 return false
2005 }
2006 if !this.SlaveId.Equal(that1.SlaveId) {
2007 return false
2008 }
2009 if !this.TaskId.Equal(that1.TaskId) {
2010 return false
2011 }
2012 if !bytes.Equal(this.Uuid, that1.Uuid) {
2013 return false
2014 }
2015 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2016 return false
2017 }
2018 return true
2019 }
2020 func (this *Call_Reconcile) VerboseEqual(that interface{}) error {
2021 if that == nil {
2022 if this == nil {
2023 return nil
2024 }
2025 return fmt.Errorf("that == nil && this != nil")
2026 }
2027
2028 that1, ok := that.(*Call_Reconcile)
2029 if !ok {
2030 return fmt.Errorf("that is not of type *Call_Reconcile")
2031 }
2032 if that1 == nil {
2033 if this == nil {
2034 return nil
2035 }
2036 return fmt.Errorf("that is type *Call_Reconcile but is nil && this != nil")
2037 } else if this == nil {
2038 return fmt.Errorf("that is type *Call_Reconcilebut is not nil && this == nil")
2039 }
2040 if len(this.Tasks) != len(that1.Tasks) {
2041 return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks))
2042 }
2043 for i := range this.Tasks {
2044 if !this.Tasks[i].Equal(that1.Tasks[i]) {
2045 return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i])
2046 }
2047 }
2048 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2049 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2050 }
2051 return nil
2052 }
2053 func (this *Call_Reconcile) Equal(that interface{}) bool {
2054 if that == nil {
2055 if this == nil {
2056 return true
2057 }
2058 return false
2059 }
2060
2061 that1, ok := that.(*Call_Reconcile)
2062 if !ok {
2063 return false
2064 }
2065 if that1 == nil {
2066 if this == nil {
2067 return true
2068 }
2069 return false
2070 } else if this == nil {
2071 return false
2072 }
2073 if len(this.Tasks) != len(that1.Tasks) {
2074 return false
2075 }
2076 for i := range this.Tasks {
2077 if !this.Tasks[i].Equal(that1.Tasks[i]) {
2078 return false
2079 }
2080 }
2081 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2082 return false
2083 }
2084 return true
2085 }
2086 func (this *Call_Reconcile_Task) VerboseEqual(that interface{}) error {
2087 if that == nil {
2088 if this == nil {
2089 return nil
2090 }
2091 return fmt.Errorf("that == nil && this != nil")
2092 }
2093
2094 that1, ok := that.(*Call_Reconcile_Task)
2095 if !ok {
2096 return fmt.Errorf("that is not of type *Call_Reconcile_Task")
2097 }
2098 if that1 == nil {
2099 if this == nil {
2100 return nil
2101 }
2102 return fmt.Errorf("that is type *Call_Reconcile_Task but is nil && this != nil")
2103 } else if this == nil {
2104 return fmt.Errorf("that is type *Call_Reconcile_Taskbut is not nil && this == nil")
2105 }
2106 if !this.TaskId.Equal(that1.TaskId) {
2107 return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
2108 }
2109 if !this.SlaveId.Equal(that1.SlaveId) {
2110 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
2111 }
2112 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2113 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2114 }
2115 return nil
2116 }
2117 func (this *Call_Reconcile_Task) Equal(that interface{}) bool {
2118 if that == nil {
2119 if this == nil {
2120 return true
2121 }
2122 return false
2123 }
2124
2125 that1, ok := that.(*Call_Reconcile_Task)
2126 if !ok {
2127 return false
2128 }
2129 if that1 == nil {
2130 if this == nil {
2131 return true
2132 }
2133 return false
2134 } else if this == nil {
2135 return false
2136 }
2137 if !this.TaskId.Equal(that1.TaskId) {
2138 return false
2139 }
2140 if !this.SlaveId.Equal(that1.SlaveId) {
2141 return false
2142 }
2143 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2144 return false
2145 }
2146 return true
2147 }
2148 func (this *Call_Message) VerboseEqual(that interface{}) error {
2149 if that == nil {
2150 if this == nil {
2151 return nil
2152 }
2153 return fmt.Errorf("that == nil && this != nil")
2154 }
2155
2156 that1, ok := that.(*Call_Message)
2157 if !ok {
2158 return fmt.Errorf("that is not of type *Call_Message")
2159 }
2160 if that1 == nil {
2161 if this == nil {
2162 return nil
2163 }
2164 return fmt.Errorf("that is type *Call_Message but is nil && this != nil")
2165 } else if this == nil {
2166 return fmt.Errorf("that is type *Call_Messagebut is not nil && this == nil")
2167 }
2168 if !this.SlaveId.Equal(that1.SlaveId) {
2169 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
2170 }
2171 if !this.ExecutorId.Equal(that1.ExecutorId) {
2172 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
2173 }
2174 if !bytes.Equal(this.Data, that1.Data) {
2175 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
2176 }
2177 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2178 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2179 }
2180 return nil
2181 }
2182 func (this *Call_Message) Equal(that interface{}) bool {
2183 if that == nil {
2184 if this == nil {
2185 return true
2186 }
2187 return false
2188 }
2189
2190 that1, ok := that.(*Call_Message)
2191 if !ok {
2192 return false
2193 }
2194 if that1 == nil {
2195 if this == nil {
2196 return true
2197 }
2198 return false
2199 } else if this == nil {
2200 return false
2201 }
2202 if !this.SlaveId.Equal(that1.SlaveId) {
2203 return false
2204 }
2205 if !this.ExecutorId.Equal(that1.ExecutorId) {
2206 return false
2207 }
2208 if !bytes.Equal(this.Data, that1.Data) {
2209 return false
2210 }
2211 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2212 return false
2213 }
2214 return true
2215 }
2216 func (this *Call_Request) VerboseEqual(that interface{}) error {
2217 if that == nil {
2218 if this == nil {
2219 return nil
2220 }
2221 return fmt.Errorf("that == nil && this != nil")
2222 }
2223
2224 that1, ok := that.(*Call_Request)
2225 if !ok {
2226 return fmt.Errorf("that is not of type *Call_Request")
2227 }
2228 if that1 == nil {
2229 if this == nil {
2230 return nil
2231 }
2232 return fmt.Errorf("that is type *Call_Request but is nil && this != nil")
2233 } else if this == nil {
2234 return fmt.Errorf("that is type *Call_Requestbut is not nil && this == nil")
2235 }
2236 if len(this.Requests) != len(that1.Requests) {
2237 return fmt.Errorf("Requests this(%v) Not Equal that(%v)", len(this.Requests), len(that1.Requests))
2238 }
2239 for i := range this.Requests {
2240 if !this.Requests[i].Equal(that1.Requests[i]) {
2241 return fmt.Errorf("Requests this[%v](%v) Not Equal that[%v](%v)", i, this.Requests[i], i, that1.Requests[i])
2242 }
2243 }
2244 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2245 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2246 }
2247 return nil
2248 }
2249 func (this *Call_Request) Equal(that interface{}) bool {
2250 if that == nil {
2251 if this == nil {
2252 return true
2253 }
2254 return false
2255 }
2256
2257 that1, ok := that.(*Call_Request)
2258 if !ok {
2259 return false
2260 }
2261 if that1 == nil {
2262 if this == nil {
2263 return true
2264 }
2265 return false
2266 } else if this == nil {
2267 return false
2268 }
2269 if len(this.Requests) != len(that1.Requests) {
2270 return false
2271 }
2272 for i := range this.Requests {
2273 if !this.Requests[i].Equal(that1.Requests[i]) {
2274 return false
2275 }
2276 }
2277 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2278 return false
2279 }
2280 return true
2281 }
2282 func (this *Event) GoString() string {
2283 if this == nil {
2284 return "nil"
2285 }
2286 s := make([]string, 0, 12)
2287 s = append(s, "&scheduler.Event{")
2288 if this.Type != nil {
2289 s = append(s, "Type: "+valueToGoStringScheduler(this.Type, "scheduler.Event_Type")+",\n")
2290 }
2291 if this.Subscribed != nil {
2292 s = append(s, "Subscribed: "+fmt.Sprintf("%#v", this.Subscribed)+",\n")
2293 }
2294 if this.Offers != nil {
2295 s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n")
2296 }
2297 if this.Rescind != nil {
2298 s = append(s, "Rescind: "+fmt.Sprintf("%#v", this.Rescind)+",\n")
2299 }
2300 if this.Update != nil {
2301 s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n")
2302 }
2303 if this.Message != nil {
2304 s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
2305 }
2306 if this.Failure != nil {
2307 s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n")
2308 }
2309 if this.Error != nil {
2310 s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n")
2311 }
2312 if this.XXX_unrecognized != nil {
2313 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2314 }
2315 s = append(s, "}")
2316 return strings.Join(s, "")
2317 }
2318 func (this *Event_Subscribed) GoString() string {
2319 if this == nil {
2320 return "nil"
2321 }
2322 s := make([]string, 0, 6)
2323 s = append(s, "&scheduler.Event_Subscribed{")
2324 if this.FrameworkId != nil {
2325 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
2326 }
2327 if this.HeartbeatIntervalSeconds != nil {
2328 s = append(s, "HeartbeatIntervalSeconds: "+valueToGoStringScheduler(this.HeartbeatIntervalSeconds, "float64")+",\n")
2329 }
2330 if this.XXX_unrecognized != nil {
2331 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2332 }
2333 s = append(s, "}")
2334 return strings.Join(s, "")
2335 }
2336 func (this *Event_Offers) GoString() string {
2337 if this == nil {
2338 return "nil"
2339 }
2340 s := make([]string, 0, 6)
2341 s = append(s, "&scheduler.Event_Offers{")
2342 if this.Offers != nil {
2343 s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n")
2344 }
2345 if this.InverseOffers != nil {
2346 s = append(s, "InverseOffers: "+fmt.Sprintf("%#v", this.InverseOffers)+",\n")
2347 }
2348 if this.XXX_unrecognized != nil {
2349 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2350 }
2351 s = append(s, "}")
2352 return strings.Join(s, "")
2353 }
2354 func (this *Event_Rescind) GoString() string {
2355 if this == nil {
2356 return "nil"
2357 }
2358 s := make([]string, 0, 5)
2359 s = append(s, "&scheduler.Event_Rescind{")
2360 if this.OfferId != nil {
2361 s = append(s, "OfferId: "+fmt.Sprintf("%#v", this.OfferId)+",\n")
2362 }
2363 if this.XXX_unrecognized != nil {
2364 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2365 }
2366 s = append(s, "}")
2367 return strings.Join(s, "")
2368 }
2369 func (this *Event_Update) GoString() string {
2370 if this == nil {
2371 return "nil"
2372 }
2373 s := make([]string, 0, 5)
2374 s = append(s, "&scheduler.Event_Update{")
2375 if this.Status != nil {
2376 s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
2377 }
2378 if this.XXX_unrecognized != nil {
2379 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2380 }
2381 s = append(s, "}")
2382 return strings.Join(s, "")
2383 }
2384 func (this *Event_Message) GoString() string {
2385 if this == nil {
2386 return "nil"
2387 }
2388 s := make([]string, 0, 7)
2389 s = append(s, "&scheduler.Event_Message{")
2390 if this.SlaveId != nil {
2391 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
2392 }
2393 if this.ExecutorId != nil {
2394 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
2395 }
2396 if this.Data != nil {
2397 s = append(s, "Data: "+valueToGoStringScheduler(this.Data, "byte")+",\n")
2398 }
2399 if this.XXX_unrecognized != nil {
2400 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2401 }
2402 s = append(s, "}")
2403 return strings.Join(s, "")
2404 }
2405 func (this *Event_Failure) GoString() string {
2406 if this == nil {
2407 return "nil"
2408 }
2409 s := make([]string, 0, 7)
2410 s = append(s, "&scheduler.Event_Failure{")
2411 if this.SlaveId != nil {
2412 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
2413 }
2414 if this.ExecutorId != nil {
2415 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
2416 }
2417 if this.Status != nil {
2418 s = append(s, "Status: "+valueToGoStringScheduler(this.Status, "int32")+",\n")
2419 }
2420 if this.XXX_unrecognized != nil {
2421 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2422 }
2423 s = append(s, "}")
2424 return strings.Join(s, "")
2425 }
2426 func (this *Event_Error) GoString() string {
2427 if this == nil {
2428 return "nil"
2429 }
2430 s := make([]string, 0, 5)
2431 s = append(s, "&scheduler.Event_Error{")
2432 if this.Message != nil {
2433 s = append(s, "Message: "+valueToGoStringScheduler(this.Message, "string")+",\n")
2434 }
2435 if this.XXX_unrecognized != nil {
2436 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2437 }
2438 s = append(s, "}")
2439 return strings.Join(s, "")
2440 }
2441 func (this *Call) GoString() string {
2442 if this == nil {
2443 return "nil"
2444 }
2445 s := make([]string, 0, 15)
2446 s = append(s, "&scheduler.Call{")
2447 if this.FrameworkId != nil {
2448 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
2449 }
2450 if this.Type != nil {
2451 s = append(s, "Type: "+valueToGoStringScheduler(this.Type, "scheduler.Call_Type")+",\n")
2452 }
2453 if this.Subscribe != nil {
2454 s = append(s, "Subscribe: "+fmt.Sprintf("%#v", this.Subscribe)+",\n")
2455 }
2456 if this.Accept != nil {
2457 s = append(s, "Accept: "+fmt.Sprintf("%#v", this.Accept)+",\n")
2458 }
2459 if this.Decline != nil {
2460 s = append(s, "Decline: "+fmt.Sprintf("%#v", this.Decline)+",\n")
2461 }
2462 if this.Kill != nil {
2463 s = append(s, "Kill: "+fmt.Sprintf("%#v", this.Kill)+",\n")
2464 }
2465 if this.Shutdown != nil {
2466 s = append(s, "Shutdown: "+fmt.Sprintf("%#v", this.Shutdown)+",\n")
2467 }
2468 if this.Acknowledge != nil {
2469 s = append(s, "Acknowledge: "+fmt.Sprintf("%#v", this.Acknowledge)+",\n")
2470 }
2471 if this.Reconcile != nil {
2472 s = append(s, "Reconcile: "+fmt.Sprintf("%#v", this.Reconcile)+",\n")
2473 }
2474 if this.Message != nil {
2475 s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
2476 }
2477 if this.Request != nil {
2478 s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n")
2479 }
2480 if this.XXX_unrecognized != nil {
2481 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2482 }
2483 s = append(s, "}")
2484 return strings.Join(s, "")
2485 }
2486 func (this *Call_Subscribe) GoString() string {
2487 if this == nil {
2488 return "nil"
2489 }
2490 s := make([]string, 0, 6)
2491 s = append(s, "&scheduler.Call_Subscribe{")
2492 if this.FrameworkInfo != nil {
2493 s = append(s, "FrameworkInfo: "+fmt.Sprintf("%#v", this.FrameworkInfo)+",\n")
2494 }
2495 if this.Force != nil {
2496 s = append(s, "Force: "+valueToGoStringScheduler(this.Force, "bool")+",\n")
2497 }
2498 if this.XXX_unrecognized != nil {
2499 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2500 }
2501 s = append(s, "}")
2502 return strings.Join(s, "")
2503 }
2504 func (this *Call_Accept) GoString() string {
2505 if this == nil {
2506 return "nil"
2507 }
2508 s := make([]string, 0, 7)
2509 s = append(s, "&scheduler.Call_Accept{")
2510 if this.OfferIds != nil {
2511 s = append(s, "OfferIds: "+fmt.Sprintf("%#v", this.OfferIds)+",\n")
2512 }
2513 if this.Operations != nil {
2514 s = append(s, "Operations: "+fmt.Sprintf("%#v", this.Operations)+",\n")
2515 }
2516 if this.Filters != nil {
2517 s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
2518 }
2519 if this.XXX_unrecognized != nil {
2520 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2521 }
2522 s = append(s, "}")
2523 return strings.Join(s, "")
2524 }
2525 func (this *Call_Decline) GoString() string {
2526 if this == nil {
2527 return "nil"
2528 }
2529 s := make([]string, 0, 6)
2530 s = append(s, "&scheduler.Call_Decline{")
2531 if this.OfferIds != nil {
2532 s = append(s, "OfferIds: "+fmt.Sprintf("%#v", this.OfferIds)+",\n")
2533 }
2534 if this.Filters != nil {
2535 s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
2536 }
2537 if this.XXX_unrecognized != nil {
2538 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2539 }
2540 s = append(s, "}")
2541 return strings.Join(s, "")
2542 }
2543 func (this *Call_Kill) GoString() string {
2544 if this == nil {
2545 return "nil"
2546 }
2547 s := make([]string, 0, 6)
2548 s = append(s, "&scheduler.Call_Kill{")
2549 if this.TaskId != nil {
2550 s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
2551 }
2552 if this.SlaveId != nil {
2553 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
2554 }
2555 if this.XXX_unrecognized != nil {
2556 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2557 }
2558 s = append(s, "}")
2559 return strings.Join(s, "")
2560 }
2561 func (this *Call_Shutdown) GoString() string {
2562 if this == nil {
2563 return "nil"
2564 }
2565 s := make([]string, 0, 6)
2566 s = append(s, "&scheduler.Call_Shutdown{")
2567 if this.ExecutorId != nil {
2568 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
2569 }
2570 if this.SlaveId != nil {
2571 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
2572 }
2573 if this.XXX_unrecognized != nil {
2574 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2575 }
2576 s = append(s, "}")
2577 return strings.Join(s, "")
2578 }
2579 func (this *Call_Acknowledge) GoString() string {
2580 if this == nil {
2581 return "nil"
2582 }
2583 s := make([]string, 0, 7)
2584 s = append(s, "&scheduler.Call_Acknowledge{")
2585 if this.SlaveId != nil {
2586 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
2587 }
2588 if this.TaskId != nil {
2589 s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
2590 }
2591 if this.Uuid != nil {
2592 s = append(s, "Uuid: "+valueToGoStringScheduler(this.Uuid, "byte")+",\n")
2593 }
2594 if this.XXX_unrecognized != nil {
2595 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2596 }
2597 s = append(s, "}")
2598 return strings.Join(s, "")
2599 }
2600 func (this *Call_Reconcile) GoString() string {
2601 if this == nil {
2602 return "nil"
2603 }
2604 s := make([]string, 0, 5)
2605 s = append(s, "&scheduler.Call_Reconcile{")
2606 if this.Tasks != nil {
2607 s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n")
2608 }
2609 if this.XXX_unrecognized != nil {
2610 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2611 }
2612 s = append(s, "}")
2613 return strings.Join(s, "")
2614 }
2615 func (this *Call_Reconcile_Task) GoString() string {
2616 if this == nil {
2617 return "nil"
2618 }
2619 s := make([]string, 0, 6)
2620 s = append(s, "&scheduler.Call_Reconcile_Task{")
2621 if this.TaskId != nil {
2622 s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
2623 }
2624 if this.SlaveId != nil {
2625 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
2626 }
2627 if this.XXX_unrecognized != nil {
2628 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2629 }
2630 s = append(s, "}")
2631 return strings.Join(s, "")
2632 }
2633 func (this *Call_Message) GoString() string {
2634 if this == nil {
2635 return "nil"
2636 }
2637 s := make([]string, 0, 7)
2638 s = append(s, "&scheduler.Call_Message{")
2639 if this.SlaveId != nil {
2640 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
2641 }
2642 if this.ExecutorId != nil {
2643 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
2644 }
2645 if this.Data != nil {
2646 s = append(s, "Data: "+valueToGoStringScheduler(this.Data, "byte")+",\n")
2647 }
2648 if this.XXX_unrecognized != nil {
2649 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2650 }
2651 s = append(s, "}")
2652 return strings.Join(s, "")
2653 }
2654 func (this *Call_Request) GoString() string {
2655 if this == nil {
2656 return "nil"
2657 }
2658 s := make([]string, 0, 5)
2659 s = append(s, "&scheduler.Call_Request{")
2660 if this.Requests != nil {
2661 s = append(s, "Requests: "+fmt.Sprintf("%#v", this.Requests)+",\n")
2662 }
2663 if this.XXX_unrecognized != nil {
2664 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
2665 }
2666 s = append(s, "}")
2667 return strings.Join(s, "")
2668 }
2669 func valueToGoStringScheduler(v interface{}, typ string) string {
2670 rv := reflect.ValueOf(v)
2671 if rv.IsNil() {
2672 return "nil"
2673 }
2674 pv := reflect.Indirect(rv).Interface()
2675 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
2676 }
2677 func extensionToGoStringScheduler(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
2678 if e == nil {
2679 return "nil"
2680 }
2681 s := "map[int32]proto.Extension{"
2682 keys := make([]int, 0, len(e))
2683 for k := range e {
2684 keys = append(keys, int(k))
2685 }
2686 sort.Ints(keys)
2687 ss := []string{}
2688 for _, k := range keys {
2689 ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
2690 }
2691 s += strings.Join(ss, ",") + "}"
2692 return s
2693 }
2694 func (m *Event) Marshal() (data []byte, err error) {
2695 size := m.Size()
2696 data = make([]byte, size)
2697 n, err := m.MarshalTo(data)
2698 if err != nil {
2699 return nil, err
2700 }
2701 return data[:n], nil
2702 }
2703
2704 func (m *Event) MarshalTo(data []byte) (int, error) {
2705 var i int
2706 _ = i
2707 var l int
2708 _ = l
2709 if m.Type == nil {
2710 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
2711 } else {
2712 data[i] = 0x8
2713 i++
2714 i = encodeVarintScheduler(data, i, uint64(*m.Type))
2715 }
2716 if m.Subscribed != nil {
2717 data[i] = 0x12
2718 i++
2719 i = encodeVarintScheduler(data, i, uint64(m.Subscribed.Size()))
2720 n1, err := m.Subscribed.MarshalTo(data[i:])
2721 if err != nil {
2722 return 0, err
2723 }
2724 i += n1
2725 }
2726 if m.Offers != nil {
2727 data[i] = 0x1a
2728 i++
2729 i = encodeVarintScheduler(data, i, uint64(m.Offers.Size()))
2730 n2, err := m.Offers.MarshalTo(data[i:])
2731 if err != nil {
2732 return 0, err
2733 }
2734 i += n2
2735 }
2736 if m.Rescind != nil {
2737 data[i] = 0x22
2738 i++
2739 i = encodeVarintScheduler(data, i, uint64(m.Rescind.Size()))
2740 n3, err := m.Rescind.MarshalTo(data[i:])
2741 if err != nil {
2742 return 0, err
2743 }
2744 i += n3
2745 }
2746 if m.Update != nil {
2747 data[i] = 0x2a
2748 i++
2749 i = encodeVarintScheduler(data, i, uint64(m.Update.Size()))
2750 n4, err := m.Update.MarshalTo(data[i:])
2751 if err != nil {
2752 return 0, err
2753 }
2754 i += n4
2755 }
2756 if m.Message != nil {
2757 data[i] = 0x32
2758 i++
2759 i = encodeVarintScheduler(data, i, uint64(m.Message.Size()))
2760 n5, err := m.Message.MarshalTo(data[i:])
2761 if err != nil {
2762 return 0, err
2763 }
2764 i += n5
2765 }
2766 if m.Failure != nil {
2767 data[i] = 0x3a
2768 i++
2769 i = encodeVarintScheduler(data, i, uint64(m.Failure.Size()))
2770 n6, err := m.Failure.MarshalTo(data[i:])
2771 if err != nil {
2772 return 0, err
2773 }
2774 i += n6
2775 }
2776 if m.Error != nil {
2777 data[i] = 0x42
2778 i++
2779 i = encodeVarintScheduler(data, i, uint64(m.Error.Size()))
2780 n7, err := m.Error.MarshalTo(data[i:])
2781 if err != nil {
2782 return 0, err
2783 }
2784 i += n7
2785 }
2786 if m.XXX_unrecognized != nil {
2787 i += copy(data[i:], m.XXX_unrecognized)
2788 }
2789 return i, nil
2790 }
2791
2792 func (m *Event_Subscribed) Marshal() (data []byte, err error) {
2793 size := m.Size()
2794 data = make([]byte, size)
2795 n, err := m.MarshalTo(data)
2796 if err != nil {
2797 return nil, err
2798 }
2799 return data[:n], nil
2800 }
2801
2802 func (m *Event_Subscribed) MarshalTo(data []byte) (int, error) {
2803 var i int
2804 _ = i
2805 var l int
2806 _ = l
2807 if m.FrameworkId == nil {
2808 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
2809 } else {
2810 data[i] = 0xa
2811 i++
2812 i = encodeVarintScheduler(data, i, uint64(m.FrameworkId.Size()))
2813 n8, err := m.FrameworkId.MarshalTo(data[i:])
2814 if err != nil {
2815 return 0, err
2816 }
2817 i += n8
2818 }
2819 if m.HeartbeatIntervalSeconds != nil {
2820 data[i] = 0x11
2821 i++
2822 i = encodeFixed64Scheduler(data, i, uint64(math.Float64bits(*m.HeartbeatIntervalSeconds)))
2823 }
2824 if m.XXX_unrecognized != nil {
2825 i += copy(data[i:], m.XXX_unrecognized)
2826 }
2827 return i, nil
2828 }
2829
2830 func (m *Event_Offers) Marshal() (data []byte, err error) {
2831 size := m.Size()
2832 data = make([]byte, size)
2833 n, err := m.MarshalTo(data)
2834 if err != nil {
2835 return nil, err
2836 }
2837 return data[:n], nil
2838 }
2839
2840 func (m *Event_Offers) MarshalTo(data []byte) (int, error) {
2841 var i int
2842 _ = i
2843 var l int
2844 _ = l
2845 if len(m.Offers) > 0 {
2846 for _, msg := range m.Offers {
2847 data[i] = 0xa
2848 i++
2849 i = encodeVarintScheduler(data, i, uint64(msg.Size()))
2850 n, err := msg.MarshalTo(data[i:])
2851 if err != nil {
2852 return 0, err
2853 }
2854 i += n
2855 }
2856 }
2857 if len(m.InverseOffers) > 0 {
2858 for _, msg := range m.InverseOffers {
2859 data[i] = 0x12
2860 i++
2861 i = encodeVarintScheduler(data, i, uint64(msg.Size()))
2862 n, err := msg.MarshalTo(data[i:])
2863 if err != nil {
2864 return 0, err
2865 }
2866 i += n
2867 }
2868 }
2869 if m.XXX_unrecognized != nil {
2870 i += copy(data[i:], m.XXX_unrecognized)
2871 }
2872 return i, nil
2873 }
2874
2875 func (m *Event_Rescind) Marshal() (data []byte, err error) {
2876 size := m.Size()
2877 data = make([]byte, size)
2878 n, err := m.MarshalTo(data)
2879 if err != nil {
2880 return nil, err
2881 }
2882 return data[:n], nil
2883 }
2884
2885 func (m *Event_Rescind) MarshalTo(data []byte) (int, error) {
2886 var i int
2887 _ = i
2888 var l int
2889 _ = l
2890 if m.OfferId == nil {
2891 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id")
2892 } else {
2893 data[i] = 0xa
2894 i++
2895 i = encodeVarintScheduler(data, i, uint64(m.OfferId.Size()))
2896 n9, err := m.OfferId.MarshalTo(data[i:])
2897 if err != nil {
2898 return 0, err
2899 }
2900 i += n9
2901 }
2902 if m.XXX_unrecognized != nil {
2903 i += copy(data[i:], m.XXX_unrecognized)
2904 }
2905 return i, nil
2906 }
2907
2908 func (m *Event_Update) Marshal() (data []byte, err error) {
2909 size := m.Size()
2910 data = make([]byte, size)
2911 n, err := m.MarshalTo(data)
2912 if err != nil {
2913 return nil, err
2914 }
2915 return data[:n], nil
2916 }
2917
2918 func (m *Event_Update) MarshalTo(data []byte) (int, error) {
2919 var i int
2920 _ = i
2921 var l int
2922 _ = l
2923 if m.Status == nil {
2924 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
2925 } else {
2926 data[i] = 0xa
2927 i++
2928 i = encodeVarintScheduler(data, i, uint64(m.Status.Size()))
2929 n10, err := m.Status.MarshalTo(data[i:])
2930 if err != nil {
2931 return 0, err
2932 }
2933 i += n10
2934 }
2935 if m.XXX_unrecognized != nil {
2936 i += copy(data[i:], m.XXX_unrecognized)
2937 }
2938 return i, nil
2939 }
2940
2941 func (m *Event_Message) Marshal() (data []byte, err error) {
2942 size := m.Size()
2943 data = make([]byte, size)
2944 n, err := m.MarshalTo(data)
2945 if err != nil {
2946 return nil, err
2947 }
2948 return data[:n], nil
2949 }
2950
2951 func (m *Event_Message) MarshalTo(data []byte) (int, error) {
2952 var i int
2953 _ = i
2954 var l int
2955 _ = l
2956 if m.SlaveId == nil {
2957 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
2958 } else {
2959 data[i] = 0xa
2960 i++
2961 i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
2962 n11, err := m.SlaveId.MarshalTo(data[i:])
2963 if err != nil {
2964 return 0, err
2965 }
2966 i += n11
2967 }
2968 if m.ExecutorId == nil {
2969 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
2970 } else {
2971 data[i] = 0x12
2972 i++
2973 i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size()))
2974 n12, err := m.ExecutorId.MarshalTo(data[i:])
2975 if err != nil {
2976 return 0, err
2977 }
2978 i += n12
2979 }
2980 if m.Data == nil {
2981 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
2982 } else {
2983 data[i] = 0x1a
2984 i++
2985 i = encodeVarintScheduler(data, i, uint64(len(m.Data)))
2986 i += copy(data[i:], m.Data)
2987 }
2988 if m.XXX_unrecognized != nil {
2989 i += copy(data[i:], m.XXX_unrecognized)
2990 }
2991 return i, nil
2992 }
2993
2994 func (m *Event_Failure) Marshal() (data []byte, err error) {
2995 size := m.Size()
2996 data = make([]byte, size)
2997 n, err := m.MarshalTo(data)
2998 if err != nil {
2999 return nil, err
3000 }
3001 return data[:n], nil
3002 }
3003
3004 func (m *Event_Failure) MarshalTo(data []byte) (int, error) {
3005 var i int
3006 _ = i
3007 var l int
3008 _ = l
3009 if m.SlaveId != nil {
3010 data[i] = 0xa
3011 i++
3012 i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
3013 n13, err := m.SlaveId.MarshalTo(data[i:])
3014 if err != nil {
3015 return 0, err
3016 }
3017 i += n13
3018 }
3019 if m.ExecutorId != nil {
3020 data[i] = 0x12
3021 i++
3022 i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size()))
3023 n14, err := m.ExecutorId.MarshalTo(data[i:])
3024 if err != nil {
3025 return 0, err
3026 }
3027 i += n14
3028 }
3029 if m.Status != nil {
3030 data[i] = 0x18
3031 i++
3032 i = encodeVarintScheduler(data, i, uint64(*m.Status))
3033 }
3034 if m.XXX_unrecognized != nil {
3035 i += copy(data[i:], m.XXX_unrecognized)
3036 }
3037 return i, nil
3038 }
3039
3040 func (m *Event_Error) Marshal() (data []byte, err error) {
3041 size := m.Size()
3042 data = make([]byte, size)
3043 n, err := m.MarshalTo(data)
3044 if err != nil {
3045 return nil, err
3046 }
3047 return data[:n], nil
3048 }
3049
3050 func (m *Event_Error) MarshalTo(data []byte) (int, error) {
3051 var i int
3052 _ = i
3053 var l int
3054 _ = l
3055 if m.Message == nil {
3056 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("message")
3057 } else {
3058 data[i] = 0xa
3059 i++
3060 i = encodeVarintScheduler(data, i, uint64(len(*m.Message)))
3061 i += copy(data[i:], *m.Message)
3062 }
3063 if m.XXX_unrecognized != nil {
3064 i += copy(data[i:], m.XXX_unrecognized)
3065 }
3066 return i, nil
3067 }
3068
3069 func (m *Call) Marshal() (data []byte, err error) {
3070 size := m.Size()
3071 data = make([]byte, size)
3072 n, err := m.MarshalTo(data)
3073 if err != nil {
3074 return nil, err
3075 }
3076 return data[:n], nil
3077 }
3078
3079 func (m *Call) MarshalTo(data []byte) (int, error) {
3080 var i int
3081 _ = i
3082 var l int
3083 _ = l
3084 if m.FrameworkId != nil {
3085 data[i] = 0xa
3086 i++
3087 i = encodeVarintScheduler(data, i, uint64(m.FrameworkId.Size()))
3088 n15, err := m.FrameworkId.MarshalTo(data[i:])
3089 if err != nil {
3090 return 0, err
3091 }
3092 i += n15
3093 }
3094 if m.Type == nil {
3095 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
3096 } else {
3097 data[i] = 0x10
3098 i++
3099 i = encodeVarintScheduler(data, i, uint64(*m.Type))
3100 }
3101 if m.Subscribe != nil {
3102 data[i] = 0x1a
3103 i++
3104 i = encodeVarintScheduler(data, i, uint64(m.Subscribe.Size()))
3105 n16, err := m.Subscribe.MarshalTo(data[i:])
3106 if err != nil {
3107 return 0, err
3108 }
3109 i += n16
3110 }
3111 if m.Accept != nil {
3112 data[i] = 0x22
3113 i++
3114 i = encodeVarintScheduler(data, i, uint64(m.Accept.Size()))
3115 n17, err := m.Accept.MarshalTo(data[i:])
3116 if err != nil {
3117 return 0, err
3118 }
3119 i += n17
3120 }
3121 if m.Decline != nil {
3122 data[i] = 0x2a
3123 i++
3124 i = encodeVarintScheduler(data, i, uint64(m.Decline.Size()))
3125 n18, err := m.Decline.MarshalTo(data[i:])
3126 if err != nil {
3127 return 0, err
3128 }
3129 i += n18
3130 }
3131 if m.Kill != nil {
3132 data[i] = 0x32
3133 i++
3134 i = encodeVarintScheduler(data, i, uint64(m.Kill.Size()))
3135 n19, err := m.Kill.MarshalTo(data[i:])
3136 if err != nil {
3137 return 0, err
3138 }
3139 i += n19
3140 }
3141 if m.Shutdown != nil {
3142 data[i] = 0x3a
3143 i++
3144 i = encodeVarintScheduler(data, i, uint64(m.Shutdown.Size()))
3145 n20, err := m.Shutdown.MarshalTo(data[i:])
3146 if err != nil {
3147 return 0, err
3148 }
3149 i += n20
3150 }
3151 if m.Acknowledge != nil {
3152 data[i] = 0x42
3153 i++
3154 i = encodeVarintScheduler(data, i, uint64(m.Acknowledge.Size()))
3155 n21, err := m.Acknowledge.MarshalTo(data[i:])
3156 if err != nil {
3157 return 0, err
3158 }
3159 i += n21
3160 }
3161 if m.Reconcile != nil {
3162 data[i] = 0x4a
3163 i++
3164 i = encodeVarintScheduler(data, i, uint64(m.Reconcile.Size()))
3165 n22, err := m.Reconcile.MarshalTo(data[i:])
3166 if err != nil {
3167 return 0, err
3168 }
3169 i += n22
3170 }
3171 if m.Message != nil {
3172 data[i] = 0x52
3173 i++
3174 i = encodeVarintScheduler(data, i, uint64(m.Message.Size()))
3175 n23, err := m.Message.MarshalTo(data[i:])
3176 if err != nil {
3177 return 0, err
3178 }
3179 i += n23
3180 }
3181 if m.Request != nil {
3182 data[i] = 0x5a
3183 i++
3184 i = encodeVarintScheduler(data, i, uint64(m.Request.Size()))
3185 n24, err := m.Request.MarshalTo(data[i:])
3186 if err != nil {
3187 return 0, err
3188 }
3189 i += n24
3190 }
3191 if m.XXX_unrecognized != nil {
3192 i += copy(data[i:], m.XXX_unrecognized)
3193 }
3194 return i, nil
3195 }
3196
3197 func (m *Call_Subscribe) Marshal() (data []byte, err error) {
3198 size := m.Size()
3199 data = make([]byte, size)
3200 n, err := m.MarshalTo(data)
3201 if err != nil {
3202 return nil, err
3203 }
3204 return data[:n], nil
3205 }
3206
3207 func (m *Call_Subscribe) MarshalTo(data []byte) (int, error) {
3208 var i int
3209 _ = i
3210 var l int
3211 _ = l
3212 if m.FrameworkInfo == nil {
3213 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
3214 } else {
3215 data[i] = 0xa
3216 i++
3217 i = encodeVarintScheduler(data, i, uint64(m.FrameworkInfo.Size()))
3218 n25, err := m.FrameworkInfo.MarshalTo(data[i:])
3219 if err != nil {
3220 return 0, err
3221 }
3222 i += n25
3223 }
3224 if m.Force != nil {
3225 data[i] = 0x10
3226 i++
3227 if *m.Force {
3228 data[i] = 1
3229 } else {
3230 data[i] = 0
3231 }
3232 i++
3233 }
3234 if m.XXX_unrecognized != nil {
3235 i += copy(data[i:], m.XXX_unrecognized)
3236 }
3237 return i, nil
3238 }
3239
3240 func (m *Call_Accept) Marshal() (data []byte, err error) {
3241 size := m.Size()
3242 data = make([]byte, size)
3243 n, err := m.MarshalTo(data)
3244 if err != nil {
3245 return nil, err
3246 }
3247 return data[:n], nil
3248 }
3249
3250 func (m *Call_Accept) MarshalTo(data []byte) (int, error) {
3251 var i int
3252 _ = i
3253 var l int
3254 _ = l
3255 if len(m.OfferIds) > 0 {
3256 for _, msg := range m.OfferIds {
3257 data[i] = 0xa
3258 i++
3259 i = encodeVarintScheduler(data, i, uint64(msg.Size()))
3260 n, err := msg.MarshalTo(data[i:])
3261 if err != nil {
3262 return 0, err
3263 }
3264 i += n
3265 }
3266 }
3267 if len(m.Operations) > 0 {
3268 for _, msg := range m.Operations {
3269 data[i] = 0x12
3270 i++
3271 i = encodeVarintScheduler(data, i, uint64(msg.Size()))
3272 n, err := msg.MarshalTo(data[i:])
3273 if err != nil {
3274 return 0, err
3275 }
3276 i += n
3277 }
3278 }
3279 if m.Filters != nil {
3280 data[i] = 0x1a
3281 i++
3282 i = encodeVarintScheduler(data, i, uint64(m.Filters.Size()))
3283 n26, err := m.Filters.MarshalTo(data[i:])
3284 if err != nil {
3285 return 0, err
3286 }
3287 i += n26
3288 }
3289 if m.XXX_unrecognized != nil {
3290 i += copy(data[i:], m.XXX_unrecognized)
3291 }
3292 return i, nil
3293 }
3294
3295 func (m *Call_Decline) Marshal() (data []byte, err error) {
3296 size := m.Size()
3297 data = make([]byte, size)
3298 n, err := m.MarshalTo(data)
3299 if err != nil {
3300 return nil, err
3301 }
3302 return data[:n], nil
3303 }
3304
3305 func (m *Call_Decline) MarshalTo(data []byte) (int, error) {
3306 var i int
3307 _ = i
3308 var l int
3309 _ = l
3310 if len(m.OfferIds) > 0 {
3311 for _, msg := range m.OfferIds {
3312 data[i] = 0xa
3313 i++
3314 i = encodeVarintScheduler(data, i, uint64(msg.Size()))
3315 n, err := msg.MarshalTo(data[i:])
3316 if err != nil {
3317 return 0, err
3318 }
3319 i += n
3320 }
3321 }
3322 if m.Filters != nil {
3323 data[i] = 0x12
3324 i++
3325 i = encodeVarintScheduler(data, i, uint64(m.Filters.Size()))
3326 n27, err := m.Filters.MarshalTo(data[i:])
3327 if err != nil {
3328 return 0, err
3329 }
3330 i += n27
3331 }
3332 if m.XXX_unrecognized != nil {
3333 i += copy(data[i:], m.XXX_unrecognized)
3334 }
3335 return i, nil
3336 }
3337
3338 func (m *Call_Kill) Marshal() (data []byte, err error) {
3339 size := m.Size()
3340 data = make([]byte, size)
3341 n, err := m.MarshalTo(data)
3342 if err != nil {
3343 return nil, err
3344 }
3345 return data[:n], nil
3346 }
3347
3348 func (m *Call_Kill) MarshalTo(data []byte) (int, error) {
3349 var i int
3350 _ = i
3351 var l int
3352 _ = l
3353 if m.TaskId == nil {
3354 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
3355 } else {
3356 data[i] = 0xa
3357 i++
3358 i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size()))
3359 n28, err := m.TaskId.MarshalTo(data[i:])
3360 if err != nil {
3361 return 0, err
3362 }
3363 i += n28
3364 }
3365 if m.SlaveId != nil {
3366 data[i] = 0x12
3367 i++
3368 i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
3369 n29, err := m.SlaveId.MarshalTo(data[i:])
3370 if err != nil {
3371 return 0, err
3372 }
3373 i += n29
3374 }
3375 if m.XXX_unrecognized != nil {
3376 i += copy(data[i:], m.XXX_unrecognized)
3377 }
3378 return i, nil
3379 }
3380
3381 func (m *Call_Shutdown) Marshal() (data []byte, err error) {
3382 size := m.Size()
3383 data = make([]byte, size)
3384 n, err := m.MarshalTo(data)
3385 if err != nil {
3386 return nil, err
3387 }
3388 return data[:n], nil
3389 }
3390
3391 func (m *Call_Shutdown) MarshalTo(data []byte) (int, error) {
3392 var i int
3393 _ = i
3394 var l int
3395 _ = l
3396 if m.ExecutorId == nil {
3397 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
3398 } else {
3399 data[i] = 0xa
3400 i++
3401 i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size()))
3402 n30, err := m.ExecutorId.MarshalTo(data[i:])
3403 if err != nil {
3404 return 0, err
3405 }
3406 i += n30
3407 }
3408 if m.SlaveId == nil {
3409 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
3410 } else {
3411 data[i] = 0x12
3412 i++
3413 i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
3414 n31, err := m.SlaveId.MarshalTo(data[i:])
3415 if err != nil {
3416 return 0, err
3417 }
3418 i += n31
3419 }
3420 if m.XXX_unrecognized != nil {
3421 i += copy(data[i:], m.XXX_unrecognized)
3422 }
3423 return i, nil
3424 }
3425
3426 func (m *Call_Acknowledge) Marshal() (data []byte, err error) {
3427 size := m.Size()
3428 data = make([]byte, size)
3429 n, err := m.MarshalTo(data)
3430 if err != nil {
3431 return nil, err
3432 }
3433 return data[:n], nil
3434 }
3435
3436 func (m *Call_Acknowledge) MarshalTo(data []byte) (int, error) {
3437 var i int
3438 _ = i
3439 var l int
3440 _ = l
3441 if m.SlaveId == nil {
3442 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
3443 } else {
3444 data[i] = 0xa
3445 i++
3446 i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
3447 n32, err := m.SlaveId.MarshalTo(data[i:])
3448 if err != nil {
3449 return 0, err
3450 }
3451 i += n32
3452 }
3453 if m.TaskId == nil {
3454 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
3455 } else {
3456 data[i] = 0x12
3457 i++
3458 i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size()))
3459 n33, err := m.TaskId.MarshalTo(data[i:])
3460 if err != nil {
3461 return 0, err
3462 }
3463 i += n33
3464 }
3465 if m.Uuid == nil {
3466 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
3467 } else {
3468 data[i] = 0x1a
3469 i++
3470 i = encodeVarintScheduler(data, i, uint64(len(m.Uuid)))
3471 i += copy(data[i:], m.Uuid)
3472 }
3473 if m.XXX_unrecognized != nil {
3474 i += copy(data[i:], m.XXX_unrecognized)
3475 }
3476 return i, nil
3477 }
3478
3479 func (m *Call_Reconcile) Marshal() (data []byte, err error) {
3480 size := m.Size()
3481 data = make([]byte, size)
3482 n, err := m.MarshalTo(data)
3483 if err != nil {
3484 return nil, err
3485 }
3486 return data[:n], nil
3487 }
3488
3489 func (m *Call_Reconcile) MarshalTo(data []byte) (int, error) {
3490 var i int
3491 _ = i
3492 var l int
3493 _ = l
3494 if len(m.Tasks) > 0 {
3495 for _, msg := range m.Tasks {
3496 data[i] = 0xa
3497 i++
3498 i = encodeVarintScheduler(data, i, uint64(msg.Size()))
3499 n, err := msg.MarshalTo(data[i:])
3500 if err != nil {
3501 return 0, err
3502 }
3503 i += n
3504 }
3505 }
3506 if m.XXX_unrecognized != nil {
3507 i += copy(data[i:], m.XXX_unrecognized)
3508 }
3509 return i, nil
3510 }
3511
3512 func (m *Call_Reconcile_Task) Marshal() (data []byte, err error) {
3513 size := m.Size()
3514 data = make([]byte, size)
3515 n, err := m.MarshalTo(data)
3516 if err != nil {
3517 return nil, err
3518 }
3519 return data[:n], nil
3520 }
3521
3522 func (m *Call_Reconcile_Task) MarshalTo(data []byte) (int, error) {
3523 var i int
3524 _ = i
3525 var l int
3526 _ = l
3527 if m.TaskId == nil {
3528 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
3529 } else {
3530 data[i] = 0xa
3531 i++
3532 i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size()))
3533 n34, err := m.TaskId.MarshalTo(data[i:])
3534 if err != nil {
3535 return 0, err
3536 }
3537 i += n34
3538 }
3539 if m.SlaveId != nil {
3540 data[i] = 0x12
3541 i++
3542 i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
3543 n35, err := m.SlaveId.MarshalTo(data[i:])
3544 if err != nil {
3545 return 0, err
3546 }
3547 i += n35
3548 }
3549 if m.XXX_unrecognized != nil {
3550 i += copy(data[i:], m.XXX_unrecognized)
3551 }
3552 return i, nil
3553 }
3554
3555 func (m *Call_Message) Marshal() (data []byte, err error) {
3556 size := m.Size()
3557 data = make([]byte, size)
3558 n, err := m.MarshalTo(data)
3559 if err != nil {
3560 return nil, err
3561 }
3562 return data[:n], nil
3563 }
3564
3565 func (m *Call_Message) MarshalTo(data []byte) (int, error) {
3566 var i int
3567 _ = i
3568 var l int
3569 _ = l
3570 if m.SlaveId == nil {
3571 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
3572 } else {
3573 data[i] = 0xa
3574 i++
3575 i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
3576 n36, err := m.SlaveId.MarshalTo(data[i:])
3577 if err != nil {
3578 return 0, err
3579 }
3580 i += n36
3581 }
3582 if m.ExecutorId == nil {
3583 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
3584 } else {
3585 data[i] = 0x12
3586 i++
3587 i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size()))
3588 n37, err := m.ExecutorId.MarshalTo(data[i:])
3589 if err != nil {
3590 return 0, err
3591 }
3592 i += n37
3593 }
3594 if m.Data == nil {
3595 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
3596 } else {
3597 data[i] = 0x1a
3598 i++
3599 i = encodeVarintScheduler(data, i, uint64(len(m.Data)))
3600 i += copy(data[i:], m.Data)
3601 }
3602 if m.XXX_unrecognized != nil {
3603 i += copy(data[i:], m.XXX_unrecognized)
3604 }
3605 return i, nil
3606 }
3607
3608 func (m *Call_Request) Marshal() (data []byte, err error) {
3609 size := m.Size()
3610 data = make([]byte, size)
3611 n, err := m.MarshalTo(data)
3612 if err != nil {
3613 return nil, err
3614 }
3615 return data[:n], nil
3616 }
3617
3618 func (m *Call_Request) MarshalTo(data []byte) (int, error) {
3619 var i int
3620 _ = i
3621 var l int
3622 _ = l
3623 if len(m.Requests) > 0 {
3624 for _, msg := range m.Requests {
3625 data[i] = 0xa
3626 i++
3627 i = encodeVarintScheduler(data, i, uint64(msg.Size()))
3628 n, err := msg.MarshalTo(data[i:])
3629 if err != nil {
3630 return 0, err
3631 }
3632 i += n
3633 }
3634 }
3635 if m.XXX_unrecognized != nil {
3636 i += copy(data[i:], m.XXX_unrecognized)
3637 }
3638 return i, nil
3639 }
3640
3641 func encodeFixed64Scheduler(data []byte, offset int, v uint64) int {
3642 data[offset] = uint8(v)
3643 data[offset+1] = uint8(v >> 8)
3644 data[offset+2] = uint8(v >> 16)
3645 data[offset+3] = uint8(v >> 24)
3646 data[offset+4] = uint8(v >> 32)
3647 data[offset+5] = uint8(v >> 40)
3648 data[offset+6] = uint8(v >> 48)
3649 data[offset+7] = uint8(v >> 56)
3650 return offset + 8
3651 }
3652 func encodeFixed32Scheduler(data []byte, offset int, v uint32) int {
3653 data[offset] = uint8(v)
3654 data[offset+1] = uint8(v >> 8)
3655 data[offset+2] = uint8(v >> 16)
3656 data[offset+3] = uint8(v >> 24)
3657 return offset + 4
3658 }
3659 func encodeVarintScheduler(data []byte, offset int, v uint64) int {
3660 for v >= 1<<7 {
3661 data[offset] = uint8(v&0x7f | 0x80)
3662 v >>= 7
3663 offset++
3664 }
3665 data[offset] = uint8(v)
3666 return offset + 1
3667 }
3668 func NewPopulatedEvent(r randyScheduler, easy bool) *Event {
3669 this := &Event{}
3670 v1 := Event_Type([]int32{1, 2, 3, 4, 5, 6, 7, 8}[r.Intn(8)])
3671 this.Type = &v1
3672 if r.Intn(10) != 0 {
3673 this.Subscribed = NewPopulatedEvent_Subscribed(r, easy)
3674 }
3675 if r.Intn(10) != 0 {
3676 this.Offers = NewPopulatedEvent_Offers(r, easy)
3677 }
3678 if r.Intn(10) != 0 {
3679 this.Rescind = NewPopulatedEvent_Rescind(r, easy)
3680 }
3681 if r.Intn(10) != 0 {
3682 this.Update = NewPopulatedEvent_Update(r, easy)
3683 }
3684 if r.Intn(10) != 0 {
3685 this.Message = NewPopulatedEvent_Message(r, easy)
3686 }
3687 if r.Intn(10) != 0 {
3688 this.Failure = NewPopulatedEvent_Failure(r, easy)
3689 }
3690 if r.Intn(10) != 0 {
3691 this.Error = NewPopulatedEvent_Error(r, easy)
3692 }
3693 if !easy && r.Intn(10) != 0 {
3694 this.XXX_unrecognized = randUnrecognizedScheduler(r, 9)
3695 }
3696 return this
3697 }
3698
3699 func NewPopulatedEvent_Subscribed(r randyScheduler, easy bool) *Event_Subscribed {
3700 this := &Event_Subscribed{}
3701 this.FrameworkId = mesosproto.NewPopulatedFrameworkID(r, easy)
3702 if r.Intn(10) != 0 {
3703 v2 := float64(r.Float64())
3704 if r.Intn(2) == 0 {
3705 v2 *= -1
3706 }
3707 this.HeartbeatIntervalSeconds = &v2
3708 }
3709 if !easy && r.Intn(10) != 0 {
3710 this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
3711 }
3712 return this
3713 }
3714
3715 func NewPopulatedEvent_Offers(r randyScheduler, easy bool) *Event_Offers {
3716 this := &Event_Offers{}
3717 if r.Intn(10) != 0 {
3718 v3 := r.Intn(10)
3719 this.Offers = make([]*mesosproto.Offer, v3)
3720 for i := 0; i < v3; i++ {
3721 this.Offers[i] = mesosproto.NewPopulatedOffer(r, easy)
3722 }
3723 }
3724 if r.Intn(10) != 0 {
3725 v4 := r.Intn(10)
3726 this.InverseOffers = make([]*mesosproto.InverseOffer, v4)
3727 for i := 0; i < v4; i++ {
3728 this.InverseOffers[i] = mesosproto.NewPopulatedInverseOffer(r, easy)
3729 }
3730 }
3731 if !easy && r.Intn(10) != 0 {
3732 this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
3733 }
3734 return this
3735 }
3736
3737 func NewPopulatedEvent_Rescind(r randyScheduler, easy bool) *Event_Rescind {
3738 this := &Event_Rescind{}
3739 this.OfferId = mesosproto.NewPopulatedOfferID(r, easy)
3740 if !easy && r.Intn(10) != 0 {
3741 this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
3742 }
3743 return this
3744 }
3745
3746 func NewPopulatedEvent_Update(r randyScheduler, easy bool) *Event_Update {
3747 this := &Event_Update{}
3748 this.Status = mesosproto.NewPopulatedTaskStatus(r, easy)
3749 if !easy && r.Intn(10) != 0 {
3750 this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
3751 }
3752 return this
3753 }
3754
3755 func NewPopulatedEvent_Message(r randyScheduler, easy bool) *Event_Message {
3756 this := &Event_Message{}
3757 this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
3758 this.ExecutorId = mesosproto.NewPopulatedExecutorID(r, easy)
3759 v5 := r.Intn(100)
3760 this.Data = make([]byte, v5)
3761 for i := 0; i < v5; i++ {
3762 this.Data[i] = byte(r.Intn(256))
3763 }
3764 if !easy && r.Intn(10) != 0 {
3765 this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
3766 }
3767 return this
3768 }
3769
3770 func NewPopulatedEvent_Failure(r randyScheduler, easy bool) *Event_Failure {
3771 this := &Event_Failure{}
3772 if r.Intn(10) != 0 {
3773 this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
3774 }
3775 if r.Intn(10) != 0 {
3776 this.ExecutorId = mesosproto.NewPopulatedExecutorID(r, easy)
3777 }
3778 if r.Intn(10) != 0 {
3779 v6 := int32(r.Int31())
3780 if r.Intn(2) == 0 {
3781 v6 *= -1
3782 }
3783 this.Status = &v6
3784 }
3785 if !easy && r.Intn(10) != 0 {
3786 this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
3787 }
3788 return this
3789 }
3790
3791 func NewPopulatedEvent_Error(r randyScheduler, easy bool) *Event_Error {
3792 this := &Event_Error{}
3793 v7 := randStringScheduler(r)
3794 this.Message = &v7
3795 if !easy && r.Intn(10) != 0 {
3796 this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
3797 }
3798 return this
3799 }
3800
3801 func NewPopulatedCall(r randyScheduler, easy bool) *Call {
3802 this := &Call{}
3803 if r.Intn(10) != 0 {
3804 this.FrameworkId = mesosproto.NewPopulatedFrameworkID(r, easy)
3805 }
3806 v8 := Call_Type([]int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}[r.Intn(12)])
3807 this.Type = &v8
3808 if r.Intn(10) != 0 {
3809 this.Subscribe = NewPopulatedCall_Subscribe(r, easy)
3810 }
3811 if r.Intn(10) != 0 {
3812 this.Accept = NewPopulatedCall_Accept(r, easy)
3813 }
3814 if r.Intn(10) != 0 {
3815 this.Decline = NewPopulatedCall_Decline(r, easy)
3816 }
3817 if r.Intn(10) != 0 {
3818 this.Kill = NewPopulatedCall_Kill(r, easy)
3819 }
3820 if r.Intn(10) != 0 {
3821 this.Shutdown = NewPopulatedCall_Shutdown(r, easy)
3822 }
3823 if r.Intn(10) != 0 {
3824 this.Acknowledge = NewPopulatedCall_Acknowledge(r, easy)
3825 }
3826 if r.Intn(10) != 0 {
3827 this.Reconcile = NewPopulatedCall_Reconcile(r, easy)
3828 }
3829 if r.Intn(10) != 0 {
3830 this.Message = NewPopulatedCall_Message(r, easy)
3831 }
3832 if r.Intn(10) != 0 {
3833 this.Request = NewPopulatedCall_Request(r, easy)
3834 }
3835 if !easy && r.Intn(10) != 0 {
3836 this.XXX_unrecognized = randUnrecognizedScheduler(r, 12)
3837 }
3838 return this
3839 }
3840
3841 func NewPopulatedCall_Subscribe(r randyScheduler, easy bool) *Call_Subscribe {
3842 this := &Call_Subscribe{}
3843 this.FrameworkInfo = mesosproto.NewPopulatedFrameworkInfo(r, easy)
3844 if r.Intn(10) != 0 {
3845 v9 := bool(bool(r.Intn(2) == 0))
3846 this.Force = &v9
3847 }
3848 if !easy && r.Intn(10) != 0 {
3849 this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
3850 }
3851 return this
3852 }
3853
3854 func NewPopulatedCall_Accept(r randyScheduler, easy bool) *Call_Accept {
3855 this := &Call_Accept{}
3856 if r.Intn(10) != 0 {
3857 v10 := r.Intn(10)
3858 this.OfferIds = make([]*mesosproto.OfferID, v10)
3859 for i := 0; i < v10; i++ {
3860 this.OfferIds[i] = mesosproto.NewPopulatedOfferID(r, easy)
3861 }
3862 }
3863 if r.Intn(10) != 0 {
3864 v11 := r.Intn(10)
3865 this.Operations = make([]*mesosproto.Offer_Operation, v11)
3866 for i := 0; i < v11; i++ {
3867 this.Operations[i] = mesosproto.NewPopulatedOffer_Operation(r, easy)
3868 }
3869 }
3870 if r.Intn(10) != 0 {
3871 this.Filters = mesosproto.NewPopulatedFilters(r, easy)
3872 }
3873 if !easy && r.Intn(10) != 0 {
3874 this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
3875 }
3876 return this
3877 }
3878
3879 func NewPopulatedCall_Decline(r randyScheduler, easy bool) *Call_Decline {
3880 this := &Call_Decline{}
3881 if r.Intn(10) != 0 {
3882 v12 := r.Intn(10)
3883 this.OfferIds = make([]*mesosproto.OfferID, v12)
3884 for i := 0; i < v12; i++ {
3885 this.OfferIds[i] = mesosproto.NewPopulatedOfferID(r, easy)
3886 }
3887 }
3888 if r.Intn(10) != 0 {
3889 this.Filters = mesosproto.NewPopulatedFilters(r, easy)
3890 }
3891 if !easy && r.Intn(10) != 0 {
3892 this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
3893 }
3894 return this
3895 }
3896
3897 func NewPopulatedCall_Kill(r randyScheduler, easy bool) *Call_Kill {
3898 this := &Call_Kill{}
3899 this.TaskId = mesosproto.NewPopulatedTaskID(r, easy)
3900 if r.Intn(10) != 0 {
3901 this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
3902 }
3903 if !easy && r.Intn(10) != 0 {
3904 this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
3905 }
3906 return this
3907 }
3908
3909 func NewPopulatedCall_Shutdown(r randyScheduler, easy bool) *Call_Shutdown {
3910 this := &Call_Shutdown{}
3911 this.ExecutorId = mesosproto.NewPopulatedExecutorID(r, easy)
3912 this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
3913 if !easy && r.Intn(10) != 0 {
3914 this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
3915 }
3916 return this
3917 }
3918
3919 func NewPopulatedCall_Acknowledge(r randyScheduler, easy bool) *Call_Acknowledge {
3920 this := &Call_Acknowledge{}
3921 this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
3922 this.TaskId = mesosproto.NewPopulatedTaskID(r, easy)
3923 v13 := r.Intn(100)
3924 this.Uuid = make([]byte, v13)
3925 for i := 0; i < v13; i++ {
3926 this.Uuid[i] = byte(r.Intn(256))
3927 }
3928 if !easy && r.Intn(10) != 0 {
3929 this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
3930 }
3931 return this
3932 }
3933
3934 func NewPopulatedCall_Reconcile(r randyScheduler, easy bool) *Call_Reconcile {
3935 this := &Call_Reconcile{}
3936 if r.Intn(10) != 0 {
3937 v14 := r.Intn(10)
3938 this.Tasks = make([]*Call_Reconcile_Task, v14)
3939 for i := 0; i < v14; i++ {
3940 this.Tasks[i] = NewPopulatedCall_Reconcile_Task(r, easy)
3941 }
3942 }
3943 if !easy && r.Intn(10) != 0 {
3944 this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
3945 }
3946 return this
3947 }
3948
3949 func NewPopulatedCall_Reconcile_Task(r randyScheduler, easy bool) *Call_Reconcile_Task {
3950 this := &Call_Reconcile_Task{}
3951 this.TaskId = mesosproto.NewPopulatedTaskID(r, easy)
3952 if r.Intn(10) != 0 {
3953 this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
3954 }
3955 if !easy && r.Intn(10) != 0 {
3956 this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
3957 }
3958 return this
3959 }
3960
3961 func NewPopulatedCall_Message(r randyScheduler, easy bool) *Call_Message {
3962 this := &Call_Message{}
3963 this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
3964 this.ExecutorId = mesosproto.NewPopulatedExecutorID(r, easy)
3965 v15 := r.Intn(100)
3966 this.Data = make([]byte, v15)
3967 for i := 0; i < v15; i++ {
3968 this.Data[i] = byte(r.Intn(256))
3969 }
3970 if !easy && r.Intn(10) != 0 {
3971 this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
3972 }
3973 return this
3974 }
3975
3976 func NewPopulatedCall_Request(r randyScheduler, easy bool) *Call_Request {
3977 this := &Call_Request{}
3978 if r.Intn(10) != 0 {
3979 v16 := r.Intn(10)
3980 this.Requests = make([]*mesosproto.Request, v16)
3981 for i := 0; i < v16; i++ {
3982 this.Requests[i] = mesosproto.NewPopulatedRequest(r, easy)
3983 }
3984 }
3985 if !easy && r.Intn(10) != 0 {
3986 this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
3987 }
3988 return this
3989 }
3990
3991 type randyScheduler interface {
3992 Float32() float32
3993 Float64() float64
3994 Int63() int64
3995 Int31() int32
3996 Uint32() uint32
3997 Intn(n int) int
3998 }
3999
4000 func randUTF8RuneScheduler(r randyScheduler) rune {
4001 ru := r.Intn(62)
4002 if ru < 10 {
4003 return rune(ru + 48)
4004 } else if ru < 36 {
4005 return rune(ru + 55)
4006 }
4007 return rune(ru + 61)
4008 }
4009 func randStringScheduler(r randyScheduler) string {
4010 v17 := r.Intn(100)
4011 tmps := make([]rune, v17)
4012 for i := 0; i < v17; i++ {
4013 tmps[i] = randUTF8RuneScheduler(r)
4014 }
4015 return string(tmps)
4016 }
4017 func randUnrecognizedScheduler(r randyScheduler, maxFieldNumber int) (data []byte) {
4018 l := r.Intn(5)
4019 for i := 0; i < l; i++ {
4020 wire := r.Intn(4)
4021 if wire == 3 {
4022 wire = 5
4023 }
4024 fieldNumber := maxFieldNumber + r.Intn(100)
4025 data = randFieldScheduler(data, r, fieldNumber, wire)
4026 }
4027 return data
4028 }
4029 func randFieldScheduler(data []byte, r randyScheduler, fieldNumber int, wire int) []byte {
4030 key := uint32(fieldNumber)<<3 | uint32(wire)
4031 switch wire {
4032 case 0:
4033 data = encodeVarintPopulateScheduler(data, uint64(key))
4034 v18 := r.Int63()
4035 if r.Intn(2) == 0 {
4036 v18 *= -1
4037 }
4038 data = encodeVarintPopulateScheduler(data, uint64(v18))
4039 case 1:
4040 data = encodeVarintPopulateScheduler(data, uint64(key))
4041 data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
4042 case 2:
4043 data = encodeVarintPopulateScheduler(data, uint64(key))
4044 ll := r.Intn(100)
4045 data = encodeVarintPopulateScheduler(data, uint64(ll))
4046 for j := 0; j < ll; j++ {
4047 data = append(data, byte(r.Intn(256)))
4048 }
4049 default:
4050 data = encodeVarintPopulateScheduler(data, uint64(key))
4051 data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
4052 }
4053 return data
4054 }
4055 func encodeVarintPopulateScheduler(data []byte, v uint64) []byte {
4056 for v >= 1<<7 {
4057 data = append(data, uint8(uint64(v)&0x7f|0x80))
4058 v >>= 7
4059 }
4060 data = append(data, uint8(v))
4061 return data
4062 }
4063 func (m *Event) Size() (n int) {
4064 var l int
4065 _ = l
4066 if m.Type != nil {
4067 n += 1 + sovScheduler(uint64(*m.Type))
4068 }
4069 if m.Subscribed != nil {
4070 l = m.Subscribed.Size()
4071 n += 1 + l + sovScheduler(uint64(l))
4072 }
4073 if m.Offers != nil {
4074 l = m.Offers.Size()
4075 n += 1 + l + sovScheduler(uint64(l))
4076 }
4077 if m.Rescind != nil {
4078 l = m.Rescind.Size()
4079 n += 1 + l + sovScheduler(uint64(l))
4080 }
4081 if m.Update != nil {
4082 l = m.Update.Size()
4083 n += 1 + l + sovScheduler(uint64(l))
4084 }
4085 if m.Message != nil {
4086 l = m.Message.Size()
4087 n += 1 + l + sovScheduler(uint64(l))
4088 }
4089 if m.Failure != nil {
4090 l = m.Failure.Size()
4091 n += 1 + l + sovScheduler(uint64(l))
4092 }
4093 if m.Error != nil {
4094 l = m.Error.Size()
4095 n += 1 + l + sovScheduler(uint64(l))
4096 }
4097 if m.XXX_unrecognized != nil {
4098 n += len(m.XXX_unrecognized)
4099 }
4100 return n
4101 }
4102
4103 func (m *Event_Subscribed) Size() (n int) {
4104 var l int
4105 _ = l
4106 if m.FrameworkId != nil {
4107 l = m.FrameworkId.Size()
4108 n += 1 + l + sovScheduler(uint64(l))
4109 }
4110 if m.HeartbeatIntervalSeconds != nil {
4111 n += 9
4112 }
4113 if m.XXX_unrecognized != nil {
4114 n += len(m.XXX_unrecognized)
4115 }
4116 return n
4117 }
4118
4119 func (m *Event_Offers) Size() (n int) {
4120 var l int
4121 _ = l
4122 if len(m.Offers) > 0 {
4123 for _, e := range m.Offers {
4124 l = e.Size()
4125 n += 1 + l + sovScheduler(uint64(l))
4126 }
4127 }
4128 if len(m.InverseOffers) > 0 {
4129 for _, e := range m.InverseOffers {
4130 l = e.Size()
4131 n += 1 + l + sovScheduler(uint64(l))
4132 }
4133 }
4134 if m.XXX_unrecognized != nil {
4135 n += len(m.XXX_unrecognized)
4136 }
4137 return n
4138 }
4139
4140 func (m *Event_Rescind) Size() (n int) {
4141 var l int
4142 _ = l
4143 if m.OfferId != nil {
4144 l = m.OfferId.Size()
4145 n += 1 + l + sovScheduler(uint64(l))
4146 }
4147 if m.XXX_unrecognized != nil {
4148 n += len(m.XXX_unrecognized)
4149 }
4150 return n
4151 }
4152
4153 func (m *Event_Update) Size() (n int) {
4154 var l int
4155 _ = l
4156 if m.Status != nil {
4157 l = m.Status.Size()
4158 n += 1 + l + sovScheduler(uint64(l))
4159 }
4160 if m.XXX_unrecognized != nil {
4161 n += len(m.XXX_unrecognized)
4162 }
4163 return n
4164 }
4165
4166 func (m *Event_Message) Size() (n int) {
4167 var l int
4168 _ = l
4169 if m.SlaveId != nil {
4170 l = m.SlaveId.Size()
4171 n += 1 + l + sovScheduler(uint64(l))
4172 }
4173 if m.ExecutorId != nil {
4174 l = m.ExecutorId.Size()
4175 n += 1 + l + sovScheduler(uint64(l))
4176 }
4177 if m.Data != nil {
4178 l = len(m.Data)
4179 n += 1 + l + sovScheduler(uint64(l))
4180 }
4181 if m.XXX_unrecognized != nil {
4182 n += len(m.XXX_unrecognized)
4183 }
4184 return n
4185 }
4186
4187 func (m *Event_Failure) Size() (n int) {
4188 var l int
4189 _ = l
4190 if m.SlaveId != nil {
4191 l = m.SlaveId.Size()
4192 n += 1 + l + sovScheduler(uint64(l))
4193 }
4194 if m.ExecutorId != nil {
4195 l = m.ExecutorId.Size()
4196 n += 1 + l + sovScheduler(uint64(l))
4197 }
4198 if m.Status != nil {
4199 n += 1 + sovScheduler(uint64(*m.Status))
4200 }
4201 if m.XXX_unrecognized != nil {
4202 n += len(m.XXX_unrecognized)
4203 }
4204 return n
4205 }
4206
4207 func (m *Event_Error) Size() (n int) {
4208 var l int
4209 _ = l
4210 if m.Message != nil {
4211 l = len(*m.Message)
4212 n += 1 + l + sovScheduler(uint64(l))
4213 }
4214 if m.XXX_unrecognized != nil {
4215 n += len(m.XXX_unrecognized)
4216 }
4217 return n
4218 }
4219
4220 func (m *Call) Size() (n int) {
4221 var l int
4222 _ = l
4223 if m.FrameworkId != nil {
4224 l = m.FrameworkId.Size()
4225 n += 1 + l + sovScheduler(uint64(l))
4226 }
4227 if m.Type != nil {
4228 n += 1 + sovScheduler(uint64(*m.Type))
4229 }
4230 if m.Subscribe != nil {
4231 l = m.Subscribe.Size()
4232 n += 1 + l + sovScheduler(uint64(l))
4233 }
4234 if m.Accept != nil {
4235 l = m.Accept.Size()
4236 n += 1 + l + sovScheduler(uint64(l))
4237 }
4238 if m.Decline != nil {
4239 l = m.Decline.Size()
4240 n += 1 + l + sovScheduler(uint64(l))
4241 }
4242 if m.Kill != nil {
4243 l = m.Kill.Size()
4244 n += 1 + l + sovScheduler(uint64(l))
4245 }
4246 if m.Shutdown != nil {
4247 l = m.Shutdown.Size()
4248 n += 1 + l + sovScheduler(uint64(l))
4249 }
4250 if m.Acknowledge != nil {
4251 l = m.Acknowledge.Size()
4252 n += 1 + l + sovScheduler(uint64(l))
4253 }
4254 if m.Reconcile != nil {
4255 l = m.Reconcile.Size()
4256 n += 1 + l + sovScheduler(uint64(l))
4257 }
4258 if m.Message != nil {
4259 l = m.Message.Size()
4260 n += 1 + l + sovScheduler(uint64(l))
4261 }
4262 if m.Request != nil {
4263 l = m.Request.Size()
4264 n += 1 + l + sovScheduler(uint64(l))
4265 }
4266 if m.XXX_unrecognized != nil {
4267 n += len(m.XXX_unrecognized)
4268 }
4269 return n
4270 }
4271
4272 func (m *Call_Subscribe) Size() (n int) {
4273 var l int
4274 _ = l
4275 if m.FrameworkInfo != nil {
4276 l = m.FrameworkInfo.Size()
4277 n += 1 + l + sovScheduler(uint64(l))
4278 }
4279 if m.Force != nil {
4280 n += 2
4281 }
4282 if m.XXX_unrecognized != nil {
4283 n += len(m.XXX_unrecognized)
4284 }
4285 return n
4286 }
4287
4288 func (m *Call_Accept) Size() (n int) {
4289 var l int
4290 _ = l
4291 if len(m.OfferIds) > 0 {
4292 for _, e := range m.OfferIds {
4293 l = e.Size()
4294 n += 1 + l + sovScheduler(uint64(l))
4295 }
4296 }
4297 if len(m.Operations) > 0 {
4298 for _, e := range m.Operations {
4299 l = e.Size()
4300 n += 1 + l + sovScheduler(uint64(l))
4301 }
4302 }
4303 if m.Filters != nil {
4304 l = m.Filters.Size()
4305 n += 1 + l + sovScheduler(uint64(l))
4306 }
4307 if m.XXX_unrecognized != nil {
4308 n += len(m.XXX_unrecognized)
4309 }
4310 return n
4311 }
4312
4313 func (m *Call_Decline) Size() (n int) {
4314 var l int
4315 _ = l
4316 if len(m.OfferIds) > 0 {
4317 for _, e := range m.OfferIds {
4318 l = e.Size()
4319 n += 1 + l + sovScheduler(uint64(l))
4320 }
4321 }
4322 if m.Filters != nil {
4323 l = m.Filters.Size()
4324 n += 1 + l + sovScheduler(uint64(l))
4325 }
4326 if m.XXX_unrecognized != nil {
4327 n += len(m.XXX_unrecognized)
4328 }
4329 return n
4330 }
4331
4332 func (m *Call_Kill) Size() (n int) {
4333 var l int
4334 _ = l
4335 if m.TaskId != nil {
4336 l = m.TaskId.Size()
4337 n += 1 + l + sovScheduler(uint64(l))
4338 }
4339 if m.SlaveId != nil {
4340 l = m.SlaveId.Size()
4341 n += 1 + l + sovScheduler(uint64(l))
4342 }
4343 if m.XXX_unrecognized != nil {
4344 n += len(m.XXX_unrecognized)
4345 }
4346 return n
4347 }
4348
4349 func (m *Call_Shutdown) Size() (n int) {
4350 var l int
4351 _ = l
4352 if m.ExecutorId != nil {
4353 l = m.ExecutorId.Size()
4354 n += 1 + l + sovScheduler(uint64(l))
4355 }
4356 if m.SlaveId != nil {
4357 l = m.SlaveId.Size()
4358 n += 1 + l + sovScheduler(uint64(l))
4359 }
4360 if m.XXX_unrecognized != nil {
4361 n += len(m.XXX_unrecognized)
4362 }
4363 return n
4364 }
4365
4366 func (m *Call_Acknowledge) Size() (n int) {
4367 var l int
4368 _ = l
4369 if m.SlaveId != nil {
4370 l = m.SlaveId.Size()
4371 n += 1 + l + sovScheduler(uint64(l))
4372 }
4373 if m.TaskId != nil {
4374 l = m.TaskId.Size()
4375 n += 1 + l + sovScheduler(uint64(l))
4376 }
4377 if m.Uuid != nil {
4378 l = len(m.Uuid)
4379 n += 1 + l + sovScheduler(uint64(l))
4380 }
4381 if m.XXX_unrecognized != nil {
4382 n += len(m.XXX_unrecognized)
4383 }
4384 return n
4385 }
4386
4387 func (m *Call_Reconcile) Size() (n int) {
4388 var l int
4389 _ = l
4390 if len(m.Tasks) > 0 {
4391 for _, e := range m.Tasks {
4392 l = e.Size()
4393 n += 1 + l + sovScheduler(uint64(l))
4394 }
4395 }
4396 if m.XXX_unrecognized != nil {
4397 n += len(m.XXX_unrecognized)
4398 }
4399 return n
4400 }
4401
4402 func (m *Call_Reconcile_Task) Size() (n int) {
4403 var l int
4404 _ = l
4405 if m.TaskId != nil {
4406 l = m.TaskId.Size()
4407 n += 1 + l + sovScheduler(uint64(l))
4408 }
4409 if m.SlaveId != nil {
4410 l = m.SlaveId.Size()
4411 n += 1 + l + sovScheduler(uint64(l))
4412 }
4413 if m.XXX_unrecognized != nil {
4414 n += len(m.XXX_unrecognized)
4415 }
4416 return n
4417 }
4418
4419 func (m *Call_Message) Size() (n int) {
4420 var l int
4421 _ = l
4422 if m.SlaveId != nil {
4423 l = m.SlaveId.Size()
4424 n += 1 + l + sovScheduler(uint64(l))
4425 }
4426 if m.ExecutorId != nil {
4427 l = m.ExecutorId.Size()
4428 n += 1 + l + sovScheduler(uint64(l))
4429 }
4430 if m.Data != nil {
4431 l = len(m.Data)
4432 n += 1 + l + sovScheduler(uint64(l))
4433 }
4434 if m.XXX_unrecognized != nil {
4435 n += len(m.XXX_unrecognized)
4436 }
4437 return n
4438 }
4439
4440 func (m *Call_Request) Size() (n int) {
4441 var l int
4442 _ = l
4443 if len(m.Requests) > 0 {
4444 for _, e := range m.Requests {
4445 l = e.Size()
4446 n += 1 + l + sovScheduler(uint64(l))
4447 }
4448 }
4449 if m.XXX_unrecognized != nil {
4450 n += len(m.XXX_unrecognized)
4451 }
4452 return n
4453 }
4454
4455 func sovScheduler(x uint64) (n int) {
4456 for {
4457 n++
4458 x >>= 7
4459 if x == 0 {
4460 break
4461 }
4462 }
4463 return n
4464 }
4465 func sozScheduler(x uint64) (n int) {
4466 return sovScheduler(uint64((x << 1) ^ uint64((int64(x) >> 63))))
4467 }
4468 func (this *Event) String() string {
4469 if this == nil {
4470 return "nil"
4471 }
4472 s := strings.Join([]string{`&Event{`,
4473 `Type:` + valueToStringScheduler(this.Type) + `,`,
4474 `Subscribed:` + strings.Replace(fmt.Sprintf("%v", this.Subscribed), "Event_Subscribed", "Event_Subscribed", 1) + `,`,
4475 `Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Event_Offers", "Event_Offers", 1) + `,`,
4476 `Rescind:` + strings.Replace(fmt.Sprintf("%v", this.Rescind), "Event_Rescind", "Event_Rescind", 1) + `,`,
4477 `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "Event_Update", "Event_Update", 1) + `,`,
4478 `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Event_Message", "Event_Message", 1) + `,`,
4479 `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Event_Failure", "Event_Failure", 1) + `,`,
4480 `Error:` + strings.Replace(fmt.Sprintf("%v", this.Error), "Event_Error", "Event_Error", 1) + `,`,
4481 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4482 `}`,
4483 }, "")
4484 return s
4485 }
4486 func (this *Event_Subscribed) String() string {
4487 if this == nil {
4488 return "nil"
4489 }
4490 s := strings.Join([]string{`&Event_Subscribed{`,
4491 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "mesosproto.FrameworkID", 1) + `,`,
4492 `HeartbeatIntervalSeconds:` + valueToStringScheduler(this.HeartbeatIntervalSeconds) + `,`,
4493 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4494 `}`,
4495 }, "")
4496 return s
4497 }
4498 func (this *Event_Offers) String() string {
4499 if this == nil {
4500 return "nil"
4501 }
4502 s := strings.Join([]string{`&Event_Offers{`,
4503 `Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Offer", "mesosproto.Offer", 1) + `,`,
4504 `InverseOffers:` + strings.Replace(fmt.Sprintf("%v", this.InverseOffers), "InverseOffer", "mesosproto.InverseOffer", 1) + `,`,
4505 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4506 `}`,
4507 }, "")
4508 return s
4509 }
4510 func (this *Event_Rescind) String() string {
4511 if this == nil {
4512 return "nil"
4513 }
4514 s := strings.Join([]string{`&Event_Rescind{`,
4515 `OfferId:` + strings.Replace(fmt.Sprintf("%v", this.OfferId), "OfferID", "mesosproto.OfferID", 1) + `,`,
4516 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4517 `}`,
4518 }, "")
4519 return s
4520 }
4521 func (this *Event_Update) String() string {
4522 if this == nil {
4523 return "nil"
4524 }
4525 s := strings.Join([]string{`&Event_Update{`,
4526 `Status:` + strings.Replace(fmt.Sprintf("%v", this.Status), "TaskStatus", "mesosproto.TaskStatus", 1) + `,`,
4527 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4528 `}`,
4529 }, "")
4530 return s
4531 }
4532 func (this *Event_Message) String() string {
4533 if this == nil {
4534 return "nil"
4535 }
4536 s := strings.Join([]string{`&Event_Message{`,
4537 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
4538 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "mesosproto.ExecutorID", 1) + `,`,
4539 `Data:` + valueToStringScheduler(this.Data) + `,`,
4540 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4541 `}`,
4542 }, "")
4543 return s
4544 }
4545 func (this *Event_Failure) String() string {
4546 if this == nil {
4547 return "nil"
4548 }
4549 s := strings.Join([]string{`&Event_Failure{`,
4550 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
4551 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "mesosproto.ExecutorID", 1) + `,`,
4552 `Status:` + valueToStringScheduler(this.Status) + `,`,
4553 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4554 `}`,
4555 }, "")
4556 return s
4557 }
4558 func (this *Event_Error) String() string {
4559 if this == nil {
4560 return "nil"
4561 }
4562 s := strings.Join([]string{`&Event_Error{`,
4563 `Message:` + valueToStringScheduler(this.Message) + `,`,
4564 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4565 `}`,
4566 }, "")
4567 return s
4568 }
4569 func (this *Call) String() string {
4570 if this == nil {
4571 return "nil"
4572 }
4573 s := strings.Join([]string{`&Call{`,
4574 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "mesosproto.FrameworkID", 1) + `,`,
4575 `Type:` + valueToStringScheduler(this.Type) + `,`,
4576 `Subscribe:` + strings.Replace(fmt.Sprintf("%v", this.Subscribe), "Call_Subscribe", "Call_Subscribe", 1) + `,`,
4577 `Accept:` + strings.Replace(fmt.Sprintf("%v", this.Accept), "Call_Accept", "Call_Accept", 1) + `,`,
4578 `Decline:` + strings.Replace(fmt.Sprintf("%v", this.Decline), "Call_Decline", "Call_Decline", 1) + `,`,
4579 `Kill:` + strings.Replace(fmt.Sprintf("%v", this.Kill), "Call_Kill", "Call_Kill", 1) + `,`,
4580 `Shutdown:` + strings.Replace(fmt.Sprintf("%v", this.Shutdown), "Call_Shutdown", "Call_Shutdown", 1) + `,`,
4581 `Acknowledge:` + strings.Replace(fmt.Sprintf("%v", this.Acknowledge), "Call_Acknowledge", "Call_Acknowledge", 1) + `,`,
4582 `Reconcile:` + strings.Replace(fmt.Sprintf("%v", this.Reconcile), "Call_Reconcile", "Call_Reconcile", 1) + `,`,
4583 `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Call_Message", "Call_Message", 1) + `,`,
4584 `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "Call_Request", "Call_Request", 1) + `,`,
4585 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4586 `}`,
4587 }, "")
4588 return s
4589 }
4590 func (this *Call_Subscribe) String() string {
4591 if this == nil {
4592 return "nil"
4593 }
4594 s := strings.Join([]string{`&Call_Subscribe{`,
4595 `FrameworkInfo:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkInfo), "FrameworkInfo", "mesosproto.FrameworkInfo", 1) + `,`,
4596 `Force:` + valueToStringScheduler(this.Force) + `,`,
4597 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4598 `}`,
4599 }, "")
4600 return s
4601 }
4602 func (this *Call_Accept) String() string {
4603 if this == nil {
4604 return "nil"
4605 }
4606 s := strings.Join([]string{`&Call_Accept{`,
4607 `OfferIds:` + strings.Replace(fmt.Sprintf("%v", this.OfferIds), "OfferID", "mesosproto.OfferID", 1) + `,`,
4608 `Operations:` + strings.Replace(fmt.Sprintf("%v", this.Operations), "Offer_Operation", "mesosproto.Offer_Operation", 1) + `,`,
4609 `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "mesosproto.Filters", 1) + `,`,
4610 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4611 `}`,
4612 }, "")
4613 return s
4614 }
4615 func (this *Call_Decline) String() string {
4616 if this == nil {
4617 return "nil"
4618 }
4619 s := strings.Join([]string{`&Call_Decline{`,
4620 `OfferIds:` + strings.Replace(fmt.Sprintf("%v", this.OfferIds), "OfferID", "mesosproto.OfferID", 1) + `,`,
4621 `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "mesosproto.Filters", 1) + `,`,
4622 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4623 `}`,
4624 }, "")
4625 return s
4626 }
4627 func (this *Call_Kill) String() string {
4628 if this == nil {
4629 return "nil"
4630 }
4631 s := strings.Join([]string{`&Call_Kill{`,
4632 `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "mesosproto.TaskID", 1) + `,`,
4633 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
4634 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4635 `}`,
4636 }, "")
4637 return s
4638 }
4639 func (this *Call_Shutdown) String() string {
4640 if this == nil {
4641 return "nil"
4642 }
4643 s := strings.Join([]string{`&Call_Shutdown{`,
4644 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "mesosproto.ExecutorID", 1) + `,`,
4645 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
4646 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4647 `}`,
4648 }, "")
4649 return s
4650 }
4651 func (this *Call_Acknowledge) String() string {
4652 if this == nil {
4653 return "nil"
4654 }
4655 s := strings.Join([]string{`&Call_Acknowledge{`,
4656 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
4657 `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "mesosproto.TaskID", 1) + `,`,
4658 `Uuid:` + valueToStringScheduler(this.Uuid) + `,`,
4659 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4660 `}`,
4661 }, "")
4662 return s
4663 }
4664 func (this *Call_Reconcile) String() string {
4665 if this == nil {
4666 return "nil"
4667 }
4668 s := strings.Join([]string{`&Call_Reconcile{`,
4669 `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "Call_Reconcile_Task", "Call_Reconcile_Task", 1) + `,`,
4670 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4671 `}`,
4672 }, "")
4673 return s
4674 }
4675 func (this *Call_Reconcile_Task) String() string {
4676 if this == nil {
4677 return "nil"
4678 }
4679 s := strings.Join([]string{`&Call_Reconcile_Task{`,
4680 `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "mesosproto.TaskID", 1) + `,`,
4681 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
4682 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4683 `}`,
4684 }, "")
4685 return s
4686 }
4687 func (this *Call_Message) String() string {
4688 if this == nil {
4689 return "nil"
4690 }
4691 s := strings.Join([]string{`&Call_Message{`,
4692 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
4693 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "mesosproto.ExecutorID", 1) + `,`,
4694 `Data:` + valueToStringScheduler(this.Data) + `,`,
4695 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4696 `}`,
4697 }, "")
4698 return s
4699 }
4700 func (this *Call_Request) String() string {
4701 if this == nil {
4702 return "nil"
4703 }
4704 s := strings.Join([]string{`&Call_Request{`,
4705 `Requests:` + strings.Replace(fmt.Sprintf("%v", this.Requests), "Request", "mesosproto.Request", 1) + `,`,
4706 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
4707 `}`,
4708 }, "")
4709 return s
4710 }
4711 func valueToStringScheduler(v interface{}) string {
4712 rv := reflect.ValueOf(v)
4713 if rv.IsNil() {
4714 return "nil"
4715 }
4716 pv := reflect.Indirect(rv).Interface()
4717 return fmt.Sprintf("*%v", pv)
4718 }
4719 func (m *Event) Unmarshal(data []byte) error {
4720 var hasFields [1]uint64
4721 l := len(data)
4722 iNdEx := 0
4723 for iNdEx < l {
4724 preIndex := iNdEx
4725 var wire uint64
4726 for shift := uint(0); ; shift += 7 {
4727 if shift >= 64 {
4728 return ErrIntOverflowScheduler
4729 }
4730 if iNdEx >= l {
4731 return io.ErrUnexpectedEOF
4732 }
4733 b := data[iNdEx]
4734 iNdEx++
4735 wire |= (uint64(b) & 0x7F) << shift
4736 if b < 0x80 {
4737 break
4738 }
4739 }
4740 fieldNum := int32(wire >> 3)
4741 wireType := int(wire & 0x7)
4742 if wireType == 4 {
4743 return fmt.Errorf("proto: Event: wiretype end group for non-group")
4744 }
4745 if fieldNum <= 0 {
4746 return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire)
4747 }
4748 switch fieldNum {
4749 case 1:
4750 if wireType != 0 {
4751 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
4752 }
4753 var v Event_Type
4754 for shift := uint(0); ; shift += 7 {
4755 if shift >= 64 {
4756 return ErrIntOverflowScheduler
4757 }
4758 if iNdEx >= l {
4759 return io.ErrUnexpectedEOF
4760 }
4761 b := data[iNdEx]
4762 iNdEx++
4763 v |= (Event_Type(b) & 0x7F) << shift
4764 if b < 0x80 {
4765 break
4766 }
4767 }
4768 m.Type = &v
4769 hasFields[0] |= uint64(0x00000001)
4770 case 2:
4771 if wireType != 2 {
4772 return fmt.Errorf("proto: wrong wireType = %d for field Subscribed", wireType)
4773 }
4774 var msglen int
4775 for shift := uint(0); ; shift += 7 {
4776 if shift >= 64 {
4777 return ErrIntOverflowScheduler
4778 }
4779 if iNdEx >= l {
4780 return io.ErrUnexpectedEOF
4781 }
4782 b := data[iNdEx]
4783 iNdEx++
4784 msglen |= (int(b) & 0x7F) << shift
4785 if b < 0x80 {
4786 break
4787 }
4788 }
4789 if msglen < 0 {
4790 return ErrInvalidLengthScheduler
4791 }
4792 postIndex := iNdEx + msglen
4793 if postIndex > l {
4794 return io.ErrUnexpectedEOF
4795 }
4796 if m.Subscribed == nil {
4797 m.Subscribed = &Event_Subscribed{}
4798 }
4799 if err := m.Subscribed.Unmarshal(data[iNdEx:postIndex]); err != nil {
4800 return err
4801 }
4802 iNdEx = postIndex
4803 case 3:
4804 if wireType != 2 {
4805 return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType)
4806 }
4807 var msglen int
4808 for shift := uint(0); ; shift += 7 {
4809 if shift >= 64 {
4810 return ErrIntOverflowScheduler
4811 }
4812 if iNdEx >= l {
4813 return io.ErrUnexpectedEOF
4814 }
4815 b := data[iNdEx]
4816 iNdEx++
4817 msglen |= (int(b) & 0x7F) << shift
4818 if b < 0x80 {
4819 break
4820 }
4821 }
4822 if msglen < 0 {
4823 return ErrInvalidLengthScheduler
4824 }
4825 postIndex := iNdEx + msglen
4826 if postIndex > l {
4827 return io.ErrUnexpectedEOF
4828 }
4829 if m.Offers == nil {
4830 m.Offers = &Event_Offers{}
4831 }
4832 if err := m.Offers.Unmarshal(data[iNdEx:postIndex]); err != nil {
4833 return err
4834 }
4835 iNdEx = postIndex
4836 case 4:
4837 if wireType != 2 {
4838 return fmt.Errorf("proto: wrong wireType = %d for field Rescind", wireType)
4839 }
4840 var msglen int
4841 for shift := uint(0); ; shift += 7 {
4842 if shift >= 64 {
4843 return ErrIntOverflowScheduler
4844 }
4845 if iNdEx >= l {
4846 return io.ErrUnexpectedEOF
4847 }
4848 b := data[iNdEx]
4849 iNdEx++
4850 msglen |= (int(b) & 0x7F) << shift
4851 if b < 0x80 {
4852 break
4853 }
4854 }
4855 if msglen < 0 {
4856 return ErrInvalidLengthScheduler
4857 }
4858 postIndex := iNdEx + msglen
4859 if postIndex > l {
4860 return io.ErrUnexpectedEOF
4861 }
4862 if m.Rescind == nil {
4863 m.Rescind = &Event_Rescind{}
4864 }
4865 if err := m.Rescind.Unmarshal(data[iNdEx:postIndex]); err != nil {
4866 return err
4867 }
4868 iNdEx = postIndex
4869 case 5:
4870 if wireType != 2 {
4871 return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType)
4872 }
4873 var msglen int
4874 for shift := uint(0); ; shift += 7 {
4875 if shift >= 64 {
4876 return ErrIntOverflowScheduler
4877 }
4878 if iNdEx >= l {
4879 return io.ErrUnexpectedEOF
4880 }
4881 b := data[iNdEx]
4882 iNdEx++
4883 msglen |= (int(b) & 0x7F) << shift
4884 if b < 0x80 {
4885 break
4886 }
4887 }
4888 if msglen < 0 {
4889 return ErrInvalidLengthScheduler
4890 }
4891 postIndex := iNdEx + msglen
4892 if postIndex > l {
4893 return io.ErrUnexpectedEOF
4894 }
4895 if m.Update == nil {
4896 m.Update = &Event_Update{}
4897 }
4898 if err := m.Update.Unmarshal(data[iNdEx:postIndex]); err != nil {
4899 return err
4900 }
4901 iNdEx = postIndex
4902 case 6:
4903 if wireType != 2 {
4904 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
4905 }
4906 var msglen int
4907 for shift := uint(0); ; shift += 7 {
4908 if shift >= 64 {
4909 return ErrIntOverflowScheduler
4910 }
4911 if iNdEx >= l {
4912 return io.ErrUnexpectedEOF
4913 }
4914 b := data[iNdEx]
4915 iNdEx++
4916 msglen |= (int(b) & 0x7F) << shift
4917 if b < 0x80 {
4918 break
4919 }
4920 }
4921 if msglen < 0 {
4922 return ErrInvalidLengthScheduler
4923 }
4924 postIndex := iNdEx + msglen
4925 if postIndex > l {
4926 return io.ErrUnexpectedEOF
4927 }
4928 if m.Message == nil {
4929 m.Message = &Event_Message{}
4930 }
4931 if err := m.Message.Unmarshal(data[iNdEx:postIndex]); err != nil {
4932 return err
4933 }
4934 iNdEx = postIndex
4935 case 7:
4936 if wireType != 2 {
4937 return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType)
4938 }
4939 var msglen int
4940 for shift := uint(0); ; shift += 7 {
4941 if shift >= 64 {
4942 return ErrIntOverflowScheduler
4943 }
4944 if iNdEx >= l {
4945 return io.ErrUnexpectedEOF
4946 }
4947 b := data[iNdEx]
4948 iNdEx++
4949 msglen |= (int(b) & 0x7F) << shift
4950 if b < 0x80 {
4951 break
4952 }
4953 }
4954 if msglen < 0 {
4955 return ErrInvalidLengthScheduler
4956 }
4957 postIndex := iNdEx + msglen
4958 if postIndex > l {
4959 return io.ErrUnexpectedEOF
4960 }
4961 if m.Failure == nil {
4962 m.Failure = &Event_Failure{}
4963 }
4964 if err := m.Failure.Unmarshal(data[iNdEx:postIndex]); err != nil {
4965 return err
4966 }
4967 iNdEx = postIndex
4968 case 8:
4969 if wireType != 2 {
4970 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
4971 }
4972 var msglen int
4973 for shift := uint(0); ; shift += 7 {
4974 if shift >= 64 {
4975 return ErrIntOverflowScheduler
4976 }
4977 if iNdEx >= l {
4978 return io.ErrUnexpectedEOF
4979 }
4980 b := data[iNdEx]
4981 iNdEx++
4982 msglen |= (int(b) & 0x7F) << shift
4983 if b < 0x80 {
4984 break
4985 }
4986 }
4987 if msglen < 0 {
4988 return ErrInvalidLengthScheduler
4989 }
4990 postIndex := iNdEx + msglen
4991 if postIndex > l {
4992 return io.ErrUnexpectedEOF
4993 }
4994 if m.Error == nil {
4995 m.Error = &Event_Error{}
4996 }
4997 if err := m.Error.Unmarshal(data[iNdEx:postIndex]); err != nil {
4998 return err
4999 }
5000 iNdEx = postIndex
5001 default:
5002 iNdEx = preIndex
5003 skippy, err := skipScheduler(data[iNdEx:])
5004 if err != nil {
5005 return err
5006 }
5007 if skippy < 0 {
5008 return ErrInvalidLengthScheduler
5009 }
5010 if (iNdEx + skippy) > l {
5011 return io.ErrUnexpectedEOF
5012 }
5013 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
5014 iNdEx += skippy
5015 }
5016 }
5017 if hasFields[0]&uint64(0x00000001) == 0 {
5018 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
5019 }
5020
5021 if iNdEx > l {
5022 return io.ErrUnexpectedEOF
5023 }
5024 return nil
5025 }
5026 func (m *Event_Subscribed) Unmarshal(data []byte) error {
5027 var hasFields [1]uint64
5028 l := len(data)
5029 iNdEx := 0
5030 for iNdEx < l {
5031 preIndex := iNdEx
5032 var wire uint64
5033 for shift := uint(0); ; shift += 7 {
5034 if shift >= 64 {
5035 return ErrIntOverflowScheduler
5036 }
5037 if iNdEx >= l {
5038 return io.ErrUnexpectedEOF
5039 }
5040 b := data[iNdEx]
5041 iNdEx++
5042 wire |= (uint64(b) & 0x7F) << shift
5043 if b < 0x80 {
5044 break
5045 }
5046 }
5047 fieldNum := int32(wire >> 3)
5048 wireType := int(wire & 0x7)
5049 if wireType == 4 {
5050 return fmt.Errorf("proto: Subscribed: wiretype end group for non-group")
5051 }
5052 if fieldNum <= 0 {
5053 return fmt.Errorf("proto: Subscribed: illegal tag %d (wire type %d)", fieldNum, wire)
5054 }
5055 switch fieldNum {
5056 case 1:
5057 if wireType != 2 {
5058 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
5059 }
5060 var msglen int
5061 for shift := uint(0); ; shift += 7 {
5062 if shift >= 64 {
5063 return ErrIntOverflowScheduler
5064 }
5065 if iNdEx >= l {
5066 return io.ErrUnexpectedEOF
5067 }
5068 b := data[iNdEx]
5069 iNdEx++
5070 msglen |= (int(b) & 0x7F) << shift
5071 if b < 0x80 {
5072 break
5073 }
5074 }
5075 if msglen < 0 {
5076 return ErrInvalidLengthScheduler
5077 }
5078 postIndex := iNdEx + msglen
5079 if postIndex > l {
5080 return io.ErrUnexpectedEOF
5081 }
5082 if m.FrameworkId == nil {
5083 m.FrameworkId = &mesosproto.FrameworkID{}
5084 }
5085 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
5086 return err
5087 }
5088 iNdEx = postIndex
5089 hasFields[0] |= uint64(0x00000001)
5090 case 2:
5091 if wireType != 1 {
5092 return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatIntervalSeconds", wireType)
5093 }
5094 var v uint64
5095 if (iNdEx + 8) > l {
5096 return io.ErrUnexpectedEOF
5097 }
5098 iNdEx += 8
5099 v = uint64(data[iNdEx-8])
5100 v |= uint64(data[iNdEx-7]) << 8
5101 v |= uint64(data[iNdEx-6]) << 16
5102 v |= uint64(data[iNdEx-5]) << 24
5103 v |= uint64(data[iNdEx-4]) << 32
5104 v |= uint64(data[iNdEx-3]) << 40
5105 v |= uint64(data[iNdEx-2]) << 48
5106 v |= uint64(data[iNdEx-1]) << 56
5107 v2 := float64(math.Float64frombits(v))
5108 m.HeartbeatIntervalSeconds = &v2
5109 default:
5110 iNdEx = preIndex
5111 skippy, err := skipScheduler(data[iNdEx:])
5112 if err != nil {
5113 return err
5114 }
5115 if skippy < 0 {
5116 return ErrInvalidLengthScheduler
5117 }
5118 if (iNdEx + skippy) > l {
5119 return io.ErrUnexpectedEOF
5120 }
5121 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
5122 iNdEx += skippy
5123 }
5124 }
5125 if hasFields[0]&uint64(0x00000001) == 0 {
5126 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
5127 }
5128
5129 if iNdEx > l {
5130 return io.ErrUnexpectedEOF
5131 }
5132 return nil
5133 }
5134 func (m *Event_Offers) Unmarshal(data []byte) error {
5135 l := len(data)
5136 iNdEx := 0
5137 for iNdEx < l {
5138 preIndex := iNdEx
5139 var wire uint64
5140 for shift := uint(0); ; shift += 7 {
5141 if shift >= 64 {
5142 return ErrIntOverflowScheduler
5143 }
5144 if iNdEx >= l {
5145 return io.ErrUnexpectedEOF
5146 }
5147 b := data[iNdEx]
5148 iNdEx++
5149 wire |= (uint64(b) & 0x7F) << shift
5150 if b < 0x80 {
5151 break
5152 }
5153 }
5154 fieldNum := int32(wire >> 3)
5155 wireType := int(wire & 0x7)
5156 if wireType == 4 {
5157 return fmt.Errorf("proto: Offers: wiretype end group for non-group")
5158 }
5159 if fieldNum <= 0 {
5160 return fmt.Errorf("proto: Offers: illegal tag %d (wire type %d)", fieldNum, wire)
5161 }
5162 switch fieldNum {
5163 case 1:
5164 if wireType != 2 {
5165 return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType)
5166 }
5167 var msglen int
5168 for shift := uint(0); ; shift += 7 {
5169 if shift >= 64 {
5170 return ErrIntOverflowScheduler
5171 }
5172 if iNdEx >= l {
5173 return io.ErrUnexpectedEOF
5174 }
5175 b := data[iNdEx]
5176 iNdEx++
5177 msglen |= (int(b) & 0x7F) << shift
5178 if b < 0x80 {
5179 break
5180 }
5181 }
5182 if msglen < 0 {
5183 return ErrInvalidLengthScheduler
5184 }
5185 postIndex := iNdEx + msglen
5186 if postIndex > l {
5187 return io.ErrUnexpectedEOF
5188 }
5189 m.Offers = append(m.Offers, &mesosproto.Offer{})
5190 if err := m.Offers[len(m.Offers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
5191 return err
5192 }
5193 iNdEx = postIndex
5194 case 2:
5195 if wireType != 2 {
5196 return fmt.Errorf("proto: wrong wireType = %d for field InverseOffers", wireType)
5197 }
5198 var msglen int
5199 for shift := uint(0); ; shift += 7 {
5200 if shift >= 64 {
5201 return ErrIntOverflowScheduler
5202 }
5203 if iNdEx >= l {
5204 return io.ErrUnexpectedEOF
5205 }
5206 b := data[iNdEx]
5207 iNdEx++
5208 msglen |= (int(b) & 0x7F) << shift
5209 if b < 0x80 {
5210 break
5211 }
5212 }
5213 if msglen < 0 {
5214 return ErrInvalidLengthScheduler
5215 }
5216 postIndex := iNdEx + msglen
5217 if postIndex > l {
5218 return io.ErrUnexpectedEOF
5219 }
5220 m.InverseOffers = append(m.InverseOffers, &mesosproto.InverseOffer{})
5221 if err := m.InverseOffers[len(m.InverseOffers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
5222 return err
5223 }
5224 iNdEx = postIndex
5225 default:
5226 iNdEx = preIndex
5227 skippy, err := skipScheduler(data[iNdEx:])
5228 if err != nil {
5229 return err
5230 }
5231 if skippy < 0 {
5232 return ErrInvalidLengthScheduler
5233 }
5234 if (iNdEx + skippy) > l {
5235 return io.ErrUnexpectedEOF
5236 }
5237 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
5238 iNdEx += skippy
5239 }
5240 }
5241
5242 if iNdEx > l {
5243 return io.ErrUnexpectedEOF
5244 }
5245 return nil
5246 }
5247 func (m *Event_Rescind) Unmarshal(data []byte) error {
5248 var hasFields [1]uint64
5249 l := len(data)
5250 iNdEx := 0
5251 for iNdEx < l {
5252 preIndex := iNdEx
5253 var wire uint64
5254 for shift := uint(0); ; shift += 7 {
5255 if shift >= 64 {
5256 return ErrIntOverflowScheduler
5257 }
5258 if iNdEx >= l {
5259 return io.ErrUnexpectedEOF
5260 }
5261 b := data[iNdEx]
5262 iNdEx++
5263 wire |= (uint64(b) & 0x7F) << shift
5264 if b < 0x80 {
5265 break
5266 }
5267 }
5268 fieldNum := int32(wire >> 3)
5269 wireType := int(wire & 0x7)
5270 if wireType == 4 {
5271 return fmt.Errorf("proto: Rescind: wiretype end group for non-group")
5272 }
5273 if fieldNum <= 0 {
5274 return fmt.Errorf("proto: Rescind: illegal tag %d (wire type %d)", fieldNum, wire)
5275 }
5276 switch fieldNum {
5277 case 1:
5278 if wireType != 2 {
5279 return fmt.Errorf("proto: wrong wireType = %d for field OfferId", wireType)
5280 }
5281 var msglen int
5282 for shift := uint(0); ; shift += 7 {
5283 if shift >= 64 {
5284 return ErrIntOverflowScheduler
5285 }
5286 if iNdEx >= l {
5287 return io.ErrUnexpectedEOF
5288 }
5289 b := data[iNdEx]
5290 iNdEx++
5291 msglen |= (int(b) & 0x7F) << shift
5292 if b < 0x80 {
5293 break
5294 }
5295 }
5296 if msglen < 0 {
5297 return ErrInvalidLengthScheduler
5298 }
5299 postIndex := iNdEx + msglen
5300 if postIndex > l {
5301 return io.ErrUnexpectedEOF
5302 }
5303 if m.OfferId == nil {
5304 m.OfferId = &mesosproto.OfferID{}
5305 }
5306 if err := m.OfferId.Unmarshal(data[iNdEx:postIndex]); err != nil {
5307 return err
5308 }
5309 iNdEx = postIndex
5310 hasFields[0] |= uint64(0x00000001)
5311 default:
5312 iNdEx = preIndex
5313 skippy, err := skipScheduler(data[iNdEx:])
5314 if err != nil {
5315 return err
5316 }
5317 if skippy < 0 {
5318 return ErrInvalidLengthScheduler
5319 }
5320 if (iNdEx + skippy) > l {
5321 return io.ErrUnexpectedEOF
5322 }
5323 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
5324 iNdEx += skippy
5325 }
5326 }
5327 if hasFields[0]&uint64(0x00000001) == 0 {
5328 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id")
5329 }
5330
5331 if iNdEx > l {
5332 return io.ErrUnexpectedEOF
5333 }
5334 return nil
5335 }
5336 func (m *Event_Update) Unmarshal(data []byte) error {
5337 var hasFields [1]uint64
5338 l := len(data)
5339 iNdEx := 0
5340 for iNdEx < l {
5341 preIndex := iNdEx
5342 var wire uint64
5343 for shift := uint(0); ; shift += 7 {
5344 if shift >= 64 {
5345 return ErrIntOverflowScheduler
5346 }
5347 if iNdEx >= l {
5348 return io.ErrUnexpectedEOF
5349 }
5350 b := data[iNdEx]
5351 iNdEx++
5352 wire |= (uint64(b) & 0x7F) << shift
5353 if b < 0x80 {
5354 break
5355 }
5356 }
5357 fieldNum := int32(wire >> 3)
5358 wireType := int(wire & 0x7)
5359 if wireType == 4 {
5360 return fmt.Errorf("proto: Update: wiretype end group for non-group")
5361 }
5362 if fieldNum <= 0 {
5363 return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire)
5364 }
5365 switch fieldNum {
5366 case 1:
5367 if wireType != 2 {
5368 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
5369 }
5370 var msglen int
5371 for shift := uint(0); ; shift += 7 {
5372 if shift >= 64 {
5373 return ErrIntOverflowScheduler
5374 }
5375 if iNdEx >= l {
5376 return io.ErrUnexpectedEOF
5377 }
5378 b := data[iNdEx]
5379 iNdEx++
5380 msglen |= (int(b) & 0x7F) << shift
5381 if b < 0x80 {
5382 break
5383 }
5384 }
5385 if msglen < 0 {
5386 return ErrInvalidLengthScheduler
5387 }
5388 postIndex := iNdEx + msglen
5389 if postIndex > l {
5390 return io.ErrUnexpectedEOF
5391 }
5392 if m.Status == nil {
5393 m.Status = &mesosproto.TaskStatus{}
5394 }
5395 if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
5396 return err
5397 }
5398 iNdEx = postIndex
5399 hasFields[0] |= uint64(0x00000001)
5400 default:
5401 iNdEx = preIndex
5402 skippy, err := skipScheduler(data[iNdEx:])
5403 if err != nil {
5404 return err
5405 }
5406 if skippy < 0 {
5407 return ErrInvalidLengthScheduler
5408 }
5409 if (iNdEx + skippy) > l {
5410 return io.ErrUnexpectedEOF
5411 }
5412 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
5413 iNdEx += skippy
5414 }
5415 }
5416 if hasFields[0]&uint64(0x00000001) == 0 {
5417 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
5418 }
5419
5420 if iNdEx > l {
5421 return io.ErrUnexpectedEOF
5422 }
5423 return nil
5424 }
5425 func (m *Event_Message) Unmarshal(data []byte) error {
5426 var hasFields [1]uint64
5427 l := len(data)
5428 iNdEx := 0
5429 for iNdEx < l {
5430 preIndex := iNdEx
5431 var wire uint64
5432 for shift := uint(0); ; shift += 7 {
5433 if shift >= 64 {
5434 return ErrIntOverflowScheduler
5435 }
5436 if iNdEx >= l {
5437 return io.ErrUnexpectedEOF
5438 }
5439 b := data[iNdEx]
5440 iNdEx++
5441 wire |= (uint64(b) & 0x7F) << shift
5442 if b < 0x80 {
5443 break
5444 }
5445 }
5446 fieldNum := int32(wire >> 3)
5447 wireType := int(wire & 0x7)
5448 if wireType == 4 {
5449 return fmt.Errorf("proto: Message: wiretype end group for non-group")
5450 }
5451 if fieldNum <= 0 {
5452 return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
5453 }
5454 switch fieldNum {
5455 case 1:
5456 if wireType != 2 {
5457 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
5458 }
5459 var msglen int
5460 for shift := uint(0); ; shift += 7 {
5461 if shift >= 64 {
5462 return ErrIntOverflowScheduler
5463 }
5464 if iNdEx >= l {
5465 return io.ErrUnexpectedEOF
5466 }
5467 b := data[iNdEx]
5468 iNdEx++
5469 msglen |= (int(b) & 0x7F) << shift
5470 if b < 0x80 {
5471 break
5472 }
5473 }
5474 if msglen < 0 {
5475 return ErrInvalidLengthScheduler
5476 }
5477 postIndex := iNdEx + msglen
5478 if postIndex > l {
5479 return io.ErrUnexpectedEOF
5480 }
5481 if m.SlaveId == nil {
5482 m.SlaveId = &mesosproto.SlaveID{}
5483 }
5484 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
5485 return err
5486 }
5487 iNdEx = postIndex
5488 hasFields[0] |= uint64(0x00000001)
5489 case 2:
5490 if wireType != 2 {
5491 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
5492 }
5493 var msglen int
5494 for shift := uint(0); ; shift += 7 {
5495 if shift >= 64 {
5496 return ErrIntOverflowScheduler
5497 }
5498 if iNdEx >= l {
5499 return io.ErrUnexpectedEOF
5500 }
5501 b := data[iNdEx]
5502 iNdEx++
5503 msglen |= (int(b) & 0x7F) << shift
5504 if b < 0x80 {
5505 break
5506 }
5507 }
5508 if msglen < 0 {
5509 return ErrInvalidLengthScheduler
5510 }
5511 postIndex := iNdEx + msglen
5512 if postIndex > l {
5513 return io.ErrUnexpectedEOF
5514 }
5515 if m.ExecutorId == nil {
5516 m.ExecutorId = &mesosproto.ExecutorID{}
5517 }
5518 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
5519 return err
5520 }
5521 iNdEx = postIndex
5522 hasFields[0] |= uint64(0x00000002)
5523 case 3:
5524 if wireType != 2 {
5525 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
5526 }
5527 var byteLen int
5528 for shift := uint(0); ; shift += 7 {
5529 if shift >= 64 {
5530 return ErrIntOverflowScheduler
5531 }
5532 if iNdEx >= l {
5533 return io.ErrUnexpectedEOF
5534 }
5535 b := data[iNdEx]
5536 iNdEx++
5537 byteLen |= (int(b) & 0x7F) << shift
5538 if b < 0x80 {
5539 break
5540 }
5541 }
5542 if byteLen < 0 {
5543 return ErrInvalidLengthScheduler
5544 }
5545 postIndex := iNdEx + byteLen
5546 if postIndex > l {
5547 return io.ErrUnexpectedEOF
5548 }
5549 m.Data = append([]byte{}, data[iNdEx:postIndex]...)
5550 iNdEx = postIndex
5551 hasFields[0] |= uint64(0x00000004)
5552 default:
5553 iNdEx = preIndex
5554 skippy, err := skipScheduler(data[iNdEx:])
5555 if err != nil {
5556 return err
5557 }
5558 if skippy < 0 {
5559 return ErrInvalidLengthScheduler
5560 }
5561 if (iNdEx + skippy) > l {
5562 return io.ErrUnexpectedEOF
5563 }
5564 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
5565 iNdEx += skippy
5566 }
5567 }
5568 if hasFields[0]&uint64(0x00000001) == 0 {
5569 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
5570 }
5571 if hasFields[0]&uint64(0x00000002) == 0 {
5572 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
5573 }
5574 if hasFields[0]&uint64(0x00000004) == 0 {
5575 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
5576 }
5577
5578 if iNdEx > l {
5579 return io.ErrUnexpectedEOF
5580 }
5581 return nil
5582 }
5583 func (m *Event_Failure) Unmarshal(data []byte) error {
5584 l := len(data)
5585 iNdEx := 0
5586 for iNdEx < l {
5587 preIndex := iNdEx
5588 var wire uint64
5589 for shift := uint(0); ; shift += 7 {
5590 if shift >= 64 {
5591 return ErrIntOverflowScheduler
5592 }
5593 if iNdEx >= l {
5594 return io.ErrUnexpectedEOF
5595 }
5596 b := data[iNdEx]
5597 iNdEx++
5598 wire |= (uint64(b) & 0x7F) << shift
5599 if b < 0x80 {
5600 break
5601 }
5602 }
5603 fieldNum := int32(wire >> 3)
5604 wireType := int(wire & 0x7)
5605 if wireType == 4 {
5606 return fmt.Errorf("proto: Failure: wiretype end group for non-group")
5607 }
5608 if fieldNum <= 0 {
5609 return fmt.Errorf("proto: Failure: illegal tag %d (wire type %d)", fieldNum, wire)
5610 }
5611 switch fieldNum {
5612 case 1:
5613 if wireType != 2 {
5614 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
5615 }
5616 var msglen int
5617 for shift := uint(0); ; shift += 7 {
5618 if shift >= 64 {
5619 return ErrIntOverflowScheduler
5620 }
5621 if iNdEx >= l {
5622 return io.ErrUnexpectedEOF
5623 }
5624 b := data[iNdEx]
5625 iNdEx++
5626 msglen |= (int(b) & 0x7F) << shift
5627 if b < 0x80 {
5628 break
5629 }
5630 }
5631 if msglen < 0 {
5632 return ErrInvalidLengthScheduler
5633 }
5634 postIndex := iNdEx + msglen
5635 if postIndex > l {
5636 return io.ErrUnexpectedEOF
5637 }
5638 if m.SlaveId == nil {
5639 m.SlaveId = &mesosproto.SlaveID{}
5640 }
5641 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
5642 return err
5643 }
5644 iNdEx = postIndex
5645 case 2:
5646 if wireType != 2 {
5647 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
5648 }
5649 var msglen int
5650 for shift := uint(0); ; shift += 7 {
5651 if shift >= 64 {
5652 return ErrIntOverflowScheduler
5653 }
5654 if iNdEx >= l {
5655 return io.ErrUnexpectedEOF
5656 }
5657 b := data[iNdEx]
5658 iNdEx++
5659 msglen |= (int(b) & 0x7F) << shift
5660 if b < 0x80 {
5661 break
5662 }
5663 }
5664 if msglen < 0 {
5665 return ErrInvalidLengthScheduler
5666 }
5667 postIndex := iNdEx + msglen
5668 if postIndex > l {
5669 return io.ErrUnexpectedEOF
5670 }
5671 if m.ExecutorId == nil {
5672 m.ExecutorId = &mesosproto.ExecutorID{}
5673 }
5674 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
5675 return err
5676 }
5677 iNdEx = postIndex
5678 case 3:
5679 if wireType != 0 {
5680 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
5681 }
5682 var v int32
5683 for shift := uint(0); ; shift += 7 {
5684 if shift >= 64 {
5685 return ErrIntOverflowScheduler
5686 }
5687 if iNdEx >= l {
5688 return io.ErrUnexpectedEOF
5689 }
5690 b := data[iNdEx]
5691 iNdEx++
5692 v |= (int32(b) & 0x7F) << shift
5693 if b < 0x80 {
5694 break
5695 }
5696 }
5697 m.Status = &v
5698 default:
5699 iNdEx = preIndex
5700 skippy, err := skipScheduler(data[iNdEx:])
5701 if err != nil {
5702 return err
5703 }
5704 if skippy < 0 {
5705 return ErrInvalidLengthScheduler
5706 }
5707 if (iNdEx + skippy) > l {
5708 return io.ErrUnexpectedEOF
5709 }
5710 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
5711 iNdEx += skippy
5712 }
5713 }
5714
5715 if iNdEx > l {
5716 return io.ErrUnexpectedEOF
5717 }
5718 return nil
5719 }
5720 func (m *Event_Error) Unmarshal(data []byte) error {
5721 var hasFields [1]uint64
5722 l := len(data)
5723 iNdEx := 0
5724 for iNdEx < l {
5725 preIndex := iNdEx
5726 var wire uint64
5727 for shift := uint(0); ; shift += 7 {
5728 if shift >= 64 {
5729 return ErrIntOverflowScheduler
5730 }
5731 if iNdEx >= l {
5732 return io.ErrUnexpectedEOF
5733 }
5734 b := data[iNdEx]
5735 iNdEx++
5736 wire |= (uint64(b) & 0x7F) << shift
5737 if b < 0x80 {
5738 break
5739 }
5740 }
5741 fieldNum := int32(wire >> 3)
5742 wireType := int(wire & 0x7)
5743 if wireType == 4 {
5744 return fmt.Errorf("proto: Error: wiretype end group for non-group")
5745 }
5746 if fieldNum <= 0 {
5747 return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire)
5748 }
5749 switch fieldNum {
5750 case 1:
5751 if wireType != 2 {
5752 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
5753 }
5754 var stringLen uint64
5755 for shift := uint(0); ; shift += 7 {
5756 if shift >= 64 {
5757 return ErrIntOverflowScheduler
5758 }
5759 if iNdEx >= l {
5760 return io.ErrUnexpectedEOF
5761 }
5762 b := data[iNdEx]
5763 iNdEx++
5764 stringLen |= (uint64(b) & 0x7F) << shift
5765 if b < 0x80 {
5766 break
5767 }
5768 }
5769 intStringLen := int(stringLen)
5770 if intStringLen < 0 {
5771 return ErrInvalidLengthScheduler
5772 }
5773 postIndex := iNdEx + intStringLen
5774 if postIndex > l {
5775 return io.ErrUnexpectedEOF
5776 }
5777 s := string(data[iNdEx:postIndex])
5778 m.Message = &s
5779 iNdEx = postIndex
5780 hasFields[0] |= uint64(0x00000001)
5781 default:
5782 iNdEx = preIndex
5783 skippy, err := skipScheduler(data[iNdEx:])
5784 if err != nil {
5785 return err
5786 }
5787 if skippy < 0 {
5788 return ErrInvalidLengthScheduler
5789 }
5790 if (iNdEx + skippy) > l {
5791 return io.ErrUnexpectedEOF
5792 }
5793 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
5794 iNdEx += skippy
5795 }
5796 }
5797 if hasFields[0]&uint64(0x00000001) == 0 {
5798 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("message")
5799 }
5800
5801 if iNdEx > l {
5802 return io.ErrUnexpectedEOF
5803 }
5804 return nil
5805 }
5806 func (m *Call) Unmarshal(data []byte) error {
5807 var hasFields [1]uint64
5808 l := len(data)
5809 iNdEx := 0
5810 for iNdEx < l {
5811 preIndex := iNdEx
5812 var wire uint64
5813 for shift := uint(0); ; shift += 7 {
5814 if shift >= 64 {
5815 return ErrIntOverflowScheduler
5816 }
5817 if iNdEx >= l {
5818 return io.ErrUnexpectedEOF
5819 }
5820 b := data[iNdEx]
5821 iNdEx++
5822 wire |= (uint64(b) & 0x7F) << shift
5823 if b < 0x80 {
5824 break
5825 }
5826 }
5827 fieldNum := int32(wire >> 3)
5828 wireType := int(wire & 0x7)
5829 if wireType == 4 {
5830 return fmt.Errorf("proto: Call: wiretype end group for non-group")
5831 }
5832 if fieldNum <= 0 {
5833 return fmt.Errorf("proto: Call: illegal tag %d (wire type %d)", fieldNum, wire)
5834 }
5835 switch fieldNum {
5836 case 1:
5837 if wireType != 2 {
5838 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
5839 }
5840 var msglen int
5841 for shift := uint(0); ; shift += 7 {
5842 if shift >= 64 {
5843 return ErrIntOverflowScheduler
5844 }
5845 if iNdEx >= l {
5846 return io.ErrUnexpectedEOF
5847 }
5848 b := data[iNdEx]
5849 iNdEx++
5850 msglen |= (int(b) & 0x7F) << shift
5851 if b < 0x80 {
5852 break
5853 }
5854 }
5855 if msglen < 0 {
5856 return ErrInvalidLengthScheduler
5857 }
5858 postIndex := iNdEx + msglen
5859 if postIndex > l {
5860 return io.ErrUnexpectedEOF
5861 }
5862 if m.FrameworkId == nil {
5863 m.FrameworkId = &mesosproto.FrameworkID{}
5864 }
5865 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
5866 return err
5867 }
5868 iNdEx = postIndex
5869 case 2:
5870 if wireType != 0 {
5871 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
5872 }
5873 var v Call_Type
5874 for shift := uint(0); ; shift += 7 {
5875 if shift >= 64 {
5876 return ErrIntOverflowScheduler
5877 }
5878 if iNdEx >= l {
5879 return io.ErrUnexpectedEOF
5880 }
5881 b := data[iNdEx]
5882 iNdEx++
5883 v |= (Call_Type(b) & 0x7F) << shift
5884 if b < 0x80 {
5885 break
5886 }
5887 }
5888 m.Type = &v
5889 hasFields[0] |= uint64(0x00000001)
5890 case 3:
5891 if wireType != 2 {
5892 return fmt.Errorf("proto: wrong wireType = %d for field Subscribe", wireType)
5893 }
5894 var msglen int
5895 for shift := uint(0); ; shift += 7 {
5896 if shift >= 64 {
5897 return ErrIntOverflowScheduler
5898 }
5899 if iNdEx >= l {
5900 return io.ErrUnexpectedEOF
5901 }
5902 b := data[iNdEx]
5903 iNdEx++
5904 msglen |= (int(b) & 0x7F) << shift
5905 if b < 0x80 {
5906 break
5907 }
5908 }
5909 if msglen < 0 {
5910 return ErrInvalidLengthScheduler
5911 }
5912 postIndex := iNdEx + msglen
5913 if postIndex > l {
5914 return io.ErrUnexpectedEOF
5915 }
5916 if m.Subscribe == nil {
5917 m.Subscribe = &Call_Subscribe{}
5918 }
5919 if err := m.Subscribe.Unmarshal(data[iNdEx:postIndex]); err != nil {
5920 return err
5921 }
5922 iNdEx = postIndex
5923 case 4:
5924 if wireType != 2 {
5925 return fmt.Errorf("proto: wrong wireType = %d for field Accept", wireType)
5926 }
5927 var msglen int
5928 for shift := uint(0); ; shift += 7 {
5929 if shift >= 64 {
5930 return ErrIntOverflowScheduler
5931 }
5932 if iNdEx >= l {
5933 return io.ErrUnexpectedEOF
5934 }
5935 b := data[iNdEx]
5936 iNdEx++
5937 msglen |= (int(b) & 0x7F) << shift
5938 if b < 0x80 {
5939 break
5940 }
5941 }
5942 if msglen < 0 {
5943 return ErrInvalidLengthScheduler
5944 }
5945 postIndex := iNdEx + msglen
5946 if postIndex > l {
5947 return io.ErrUnexpectedEOF
5948 }
5949 if m.Accept == nil {
5950 m.Accept = &Call_Accept{}
5951 }
5952 if err := m.Accept.Unmarshal(data[iNdEx:postIndex]); err != nil {
5953 return err
5954 }
5955 iNdEx = postIndex
5956 case 5:
5957 if wireType != 2 {
5958 return fmt.Errorf("proto: wrong wireType = %d for field Decline", wireType)
5959 }
5960 var msglen int
5961 for shift := uint(0); ; shift += 7 {
5962 if shift >= 64 {
5963 return ErrIntOverflowScheduler
5964 }
5965 if iNdEx >= l {
5966 return io.ErrUnexpectedEOF
5967 }
5968 b := data[iNdEx]
5969 iNdEx++
5970 msglen |= (int(b) & 0x7F) << shift
5971 if b < 0x80 {
5972 break
5973 }
5974 }
5975 if msglen < 0 {
5976 return ErrInvalidLengthScheduler
5977 }
5978 postIndex := iNdEx + msglen
5979 if postIndex > l {
5980 return io.ErrUnexpectedEOF
5981 }
5982 if m.Decline == nil {
5983 m.Decline = &Call_Decline{}
5984 }
5985 if err := m.Decline.Unmarshal(data[iNdEx:postIndex]); err != nil {
5986 return err
5987 }
5988 iNdEx = postIndex
5989 case 6:
5990 if wireType != 2 {
5991 return fmt.Errorf("proto: wrong wireType = %d for field Kill", wireType)
5992 }
5993 var msglen int
5994 for shift := uint(0); ; shift += 7 {
5995 if shift >= 64 {
5996 return ErrIntOverflowScheduler
5997 }
5998 if iNdEx >= l {
5999 return io.ErrUnexpectedEOF
6000 }
6001 b := data[iNdEx]
6002 iNdEx++
6003 msglen |= (int(b) & 0x7F) << shift
6004 if b < 0x80 {
6005 break
6006 }
6007 }
6008 if msglen < 0 {
6009 return ErrInvalidLengthScheduler
6010 }
6011 postIndex := iNdEx + msglen
6012 if postIndex > l {
6013 return io.ErrUnexpectedEOF
6014 }
6015 if m.Kill == nil {
6016 m.Kill = &Call_Kill{}
6017 }
6018 if err := m.Kill.Unmarshal(data[iNdEx:postIndex]); err != nil {
6019 return err
6020 }
6021 iNdEx = postIndex
6022 case 7:
6023 if wireType != 2 {
6024 return fmt.Errorf("proto: wrong wireType = %d for field Shutdown", wireType)
6025 }
6026 var msglen int
6027 for shift := uint(0); ; shift += 7 {
6028 if shift >= 64 {
6029 return ErrIntOverflowScheduler
6030 }
6031 if iNdEx >= l {
6032 return io.ErrUnexpectedEOF
6033 }
6034 b := data[iNdEx]
6035 iNdEx++
6036 msglen |= (int(b) & 0x7F) << shift
6037 if b < 0x80 {
6038 break
6039 }
6040 }
6041 if msglen < 0 {
6042 return ErrInvalidLengthScheduler
6043 }
6044 postIndex := iNdEx + msglen
6045 if postIndex > l {
6046 return io.ErrUnexpectedEOF
6047 }
6048 if m.Shutdown == nil {
6049 m.Shutdown = &Call_Shutdown{}
6050 }
6051 if err := m.Shutdown.Unmarshal(data[iNdEx:postIndex]); err != nil {
6052 return err
6053 }
6054 iNdEx = postIndex
6055 case 8:
6056 if wireType != 2 {
6057 return fmt.Errorf("proto: wrong wireType = %d for field Acknowledge", wireType)
6058 }
6059 var msglen int
6060 for shift := uint(0); ; shift += 7 {
6061 if shift >= 64 {
6062 return ErrIntOverflowScheduler
6063 }
6064 if iNdEx >= l {
6065 return io.ErrUnexpectedEOF
6066 }
6067 b := data[iNdEx]
6068 iNdEx++
6069 msglen |= (int(b) & 0x7F) << shift
6070 if b < 0x80 {
6071 break
6072 }
6073 }
6074 if msglen < 0 {
6075 return ErrInvalidLengthScheduler
6076 }
6077 postIndex := iNdEx + msglen
6078 if postIndex > l {
6079 return io.ErrUnexpectedEOF
6080 }
6081 if m.Acknowledge == nil {
6082 m.Acknowledge = &Call_Acknowledge{}
6083 }
6084 if err := m.Acknowledge.Unmarshal(data[iNdEx:postIndex]); err != nil {
6085 return err
6086 }
6087 iNdEx = postIndex
6088 case 9:
6089 if wireType != 2 {
6090 return fmt.Errorf("proto: wrong wireType = %d for field Reconcile", wireType)
6091 }
6092 var msglen int
6093 for shift := uint(0); ; shift += 7 {
6094 if shift >= 64 {
6095 return ErrIntOverflowScheduler
6096 }
6097 if iNdEx >= l {
6098 return io.ErrUnexpectedEOF
6099 }
6100 b := data[iNdEx]
6101 iNdEx++
6102 msglen |= (int(b) & 0x7F) << shift
6103 if b < 0x80 {
6104 break
6105 }
6106 }
6107 if msglen < 0 {
6108 return ErrInvalidLengthScheduler
6109 }
6110 postIndex := iNdEx + msglen
6111 if postIndex > l {
6112 return io.ErrUnexpectedEOF
6113 }
6114 if m.Reconcile == nil {
6115 m.Reconcile = &Call_Reconcile{}
6116 }
6117 if err := m.Reconcile.Unmarshal(data[iNdEx:postIndex]); err != nil {
6118 return err
6119 }
6120 iNdEx = postIndex
6121 case 10:
6122 if wireType != 2 {
6123 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
6124 }
6125 var msglen int
6126 for shift := uint(0); ; shift += 7 {
6127 if shift >= 64 {
6128 return ErrIntOverflowScheduler
6129 }
6130 if iNdEx >= l {
6131 return io.ErrUnexpectedEOF
6132 }
6133 b := data[iNdEx]
6134 iNdEx++
6135 msglen |= (int(b) & 0x7F) << shift
6136 if b < 0x80 {
6137 break
6138 }
6139 }
6140 if msglen < 0 {
6141 return ErrInvalidLengthScheduler
6142 }
6143 postIndex := iNdEx + msglen
6144 if postIndex > l {
6145 return io.ErrUnexpectedEOF
6146 }
6147 if m.Message == nil {
6148 m.Message = &Call_Message{}
6149 }
6150 if err := m.Message.Unmarshal(data[iNdEx:postIndex]); err != nil {
6151 return err
6152 }
6153 iNdEx = postIndex
6154 case 11:
6155 if wireType != 2 {
6156 return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType)
6157 }
6158 var msglen int
6159 for shift := uint(0); ; shift += 7 {
6160 if shift >= 64 {
6161 return ErrIntOverflowScheduler
6162 }
6163 if iNdEx >= l {
6164 return io.ErrUnexpectedEOF
6165 }
6166 b := data[iNdEx]
6167 iNdEx++
6168 msglen |= (int(b) & 0x7F) << shift
6169 if b < 0x80 {
6170 break
6171 }
6172 }
6173 if msglen < 0 {
6174 return ErrInvalidLengthScheduler
6175 }
6176 postIndex := iNdEx + msglen
6177 if postIndex > l {
6178 return io.ErrUnexpectedEOF
6179 }
6180 if m.Request == nil {
6181 m.Request = &Call_Request{}
6182 }
6183 if err := m.Request.Unmarshal(data[iNdEx:postIndex]); err != nil {
6184 return err
6185 }
6186 iNdEx = postIndex
6187 default:
6188 iNdEx = preIndex
6189 skippy, err := skipScheduler(data[iNdEx:])
6190 if err != nil {
6191 return err
6192 }
6193 if skippy < 0 {
6194 return ErrInvalidLengthScheduler
6195 }
6196 if (iNdEx + skippy) > l {
6197 return io.ErrUnexpectedEOF
6198 }
6199 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
6200 iNdEx += skippy
6201 }
6202 }
6203 if hasFields[0]&uint64(0x00000001) == 0 {
6204 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
6205 }
6206
6207 if iNdEx > l {
6208 return io.ErrUnexpectedEOF
6209 }
6210 return nil
6211 }
6212 func (m *Call_Subscribe) Unmarshal(data []byte) error {
6213 var hasFields [1]uint64
6214 l := len(data)
6215 iNdEx := 0
6216 for iNdEx < l {
6217 preIndex := iNdEx
6218 var wire uint64
6219 for shift := uint(0); ; shift += 7 {
6220 if shift >= 64 {
6221 return ErrIntOverflowScheduler
6222 }
6223 if iNdEx >= l {
6224 return io.ErrUnexpectedEOF
6225 }
6226 b := data[iNdEx]
6227 iNdEx++
6228 wire |= (uint64(b) & 0x7F) << shift
6229 if b < 0x80 {
6230 break
6231 }
6232 }
6233 fieldNum := int32(wire >> 3)
6234 wireType := int(wire & 0x7)
6235 if wireType == 4 {
6236 return fmt.Errorf("proto: Subscribe: wiretype end group for non-group")
6237 }
6238 if fieldNum <= 0 {
6239 return fmt.Errorf("proto: Subscribe: illegal tag %d (wire type %d)", fieldNum, wire)
6240 }
6241 switch fieldNum {
6242 case 1:
6243 if wireType != 2 {
6244 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType)
6245 }
6246 var msglen int
6247 for shift := uint(0); ; shift += 7 {
6248 if shift >= 64 {
6249 return ErrIntOverflowScheduler
6250 }
6251 if iNdEx >= l {
6252 return io.ErrUnexpectedEOF
6253 }
6254 b := data[iNdEx]
6255 iNdEx++
6256 msglen |= (int(b) & 0x7F) << shift
6257 if b < 0x80 {
6258 break
6259 }
6260 }
6261 if msglen < 0 {
6262 return ErrInvalidLengthScheduler
6263 }
6264 postIndex := iNdEx + msglen
6265 if postIndex > l {
6266 return io.ErrUnexpectedEOF
6267 }
6268 if m.FrameworkInfo == nil {
6269 m.FrameworkInfo = &mesosproto.FrameworkInfo{}
6270 }
6271 if err := m.FrameworkInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
6272 return err
6273 }
6274 iNdEx = postIndex
6275 hasFields[0] |= uint64(0x00000001)
6276 case 2:
6277 if wireType != 0 {
6278 return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType)
6279 }
6280 var v int
6281 for shift := uint(0); ; shift += 7 {
6282 if shift >= 64 {
6283 return ErrIntOverflowScheduler
6284 }
6285 if iNdEx >= l {
6286 return io.ErrUnexpectedEOF
6287 }
6288 b := data[iNdEx]
6289 iNdEx++
6290 v |= (int(b) & 0x7F) << shift
6291 if b < 0x80 {
6292 break
6293 }
6294 }
6295 b := bool(v != 0)
6296 m.Force = &b
6297 default:
6298 iNdEx = preIndex
6299 skippy, err := skipScheduler(data[iNdEx:])
6300 if err != nil {
6301 return err
6302 }
6303 if skippy < 0 {
6304 return ErrInvalidLengthScheduler
6305 }
6306 if (iNdEx + skippy) > l {
6307 return io.ErrUnexpectedEOF
6308 }
6309 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
6310 iNdEx += skippy
6311 }
6312 }
6313 if hasFields[0]&uint64(0x00000001) == 0 {
6314 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
6315 }
6316
6317 if iNdEx > l {
6318 return io.ErrUnexpectedEOF
6319 }
6320 return nil
6321 }
6322 func (m *Call_Accept) Unmarshal(data []byte) error {
6323 l := len(data)
6324 iNdEx := 0
6325 for iNdEx < l {
6326 preIndex := iNdEx
6327 var wire uint64
6328 for shift := uint(0); ; shift += 7 {
6329 if shift >= 64 {
6330 return ErrIntOverflowScheduler
6331 }
6332 if iNdEx >= l {
6333 return io.ErrUnexpectedEOF
6334 }
6335 b := data[iNdEx]
6336 iNdEx++
6337 wire |= (uint64(b) & 0x7F) << shift
6338 if b < 0x80 {
6339 break
6340 }
6341 }
6342 fieldNum := int32(wire >> 3)
6343 wireType := int(wire & 0x7)
6344 if wireType == 4 {
6345 return fmt.Errorf("proto: Accept: wiretype end group for non-group")
6346 }
6347 if fieldNum <= 0 {
6348 return fmt.Errorf("proto: Accept: illegal tag %d (wire type %d)", fieldNum, wire)
6349 }
6350 switch fieldNum {
6351 case 1:
6352 if wireType != 2 {
6353 return fmt.Errorf("proto: wrong wireType = %d for field OfferIds", wireType)
6354 }
6355 var msglen int
6356 for shift := uint(0); ; shift += 7 {
6357 if shift >= 64 {
6358 return ErrIntOverflowScheduler
6359 }
6360 if iNdEx >= l {
6361 return io.ErrUnexpectedEOF
6362 }
6363 b := data[iNdEx]
6364 iNdEx++
6365 msglen |= (int(b) & 0x7F) << shift
6366 if b < 0x80 {
6367 break
6368 }
6369 }
6370 if msglen < 0 {
6371 return ErrInvalidLengthScheduler
6372 }
6373 postIndex := iNdEx + msglen
6374 if postIndex > l {
6375 return io.ErrUnexpectedEOF
6376 }
6377 m.OfferIds = append(m.OfferIds, &mesosproto.OfferID{})
6378 if err := m.OfferIds[len(m.OfferIds)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
6379 return err
6380 }
6381 iNdEx = postIndex
6382 case 2:
6383 if wireType != 2 {
6384 return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType)
6385 }
6386 var msglen int
6387 for shift := uint(0); ; shift += 7 {
6388 if shift >= 64 {
6389 return ErrIntOverflowScheduler
6390 }
6391 if iNdEx >= l {
6392 return io.ErrUnexpectedEOF
6393 }
6394 b := data[iNdEx]
6395 iNdEx++
6396 msglen |= (int(b) & 0x7F) << shift
6397 if b < 0x80 {
6398 break
6399 }
6400 }
6401 if msglen < 0 {
6402 return ErrInvalidLengthScheduler
6403 }
6404 postIndex := iNdEx + msglen
6405 if postIndex > l {
6406 return io.ErrUnexpectedEOF
6407 }
6408 m.Operations = append(m.Operations, &mesosproto.Offer_Operation{})
6409 if err := m.Operations[len(m.Operations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
6410 return err
6411 }
6412 iNdEx = postIndex
6413 case 3:
6414 if wireType != 2 {
6415 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
6416 }
6417 var msglen int
6418 for shift := uint(0); ; shift += 7 {
6419 if shift >= 64 {
6420 return ErrIntOverflowScheduler
6421 }
6422 if iNdEx >= l {
6423 return io.ErrUnexpectedEOF
6424 }
6425 b := data[iNdEx]
6426 iNdEx++
6427 msglen |= (int(b) & 0x7F) << shift
6428 if b < 0x80 {
6429 break
6430 }
6431 }
6432 if msglen < 0 {
6433 return ErrInvalidLengthScheduler
6434 }
6435 postIndex := iNdEx + msglen
6436 if postIndex > l {
6437 return io.ErrUnexpectedEOF
6438 }
6439 if m.Filters == nil {
6440 m.Filters = &mesosproto.Filters{}
6441 }
6442 if err := m.Filters.Unmarshal(data[iNdEx:postIndex]); err != nil {
6443 return err
6444 }
6445 iNdEx = postIndex
6446 default:
6447 iNdEx = preIndex
6448 skippy, err := skipScheduler(data[iNdEx:])
6449 if err != nil {
6450 return err
6451 }
6452 if skippy < 0 {
6453 return ErrInvalidLengthScheduler
6454 }
6455 if (iNdEx + skippy) > l {
6456 return io.ErrUnexpectedEOF
6457 }
6458 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
6459 iNdEx += skippy
6460 }
6461 }
6462
6463 if iNdEx > l {
6464 return io.ErrUnexpectedEOF
6465 }
6466 return nil
6467 }
6468 func (m *Call_Decline) Unmarshal(data []byte) error {
6469 l := len(data)
6470 iNdEx := 0
6471 for iNdEx < l {
6472 preIndex := iNdEx
6473 var wire uint64
6474 for shift := uint(0); ; shift += 7 {
6475 if shift >= 64 {
6476 return ErrIntOverflowScheduler
6477 }
6478 if iNdEx >= l {
6479 return io.ErrUnexpectedEOF
6480 }
6481 b := data[iNdEx]
6482 iNdEx++
6483 wire |= (uint64(b) & 0x7F) << shift
6484 if b < 0x80 {
6485 break
6486 }
6487 }
6488 fieldNum := int32(wire >> 3)
6489 wireType := int(wire & 0x7)
6490 if wireType == 4 {
6491 return fmt.Errorf("proto: Decline: wiretype end group for non-group")
6492 }
6493 if fieldNum <= 0 {
6494 return fmt.Errorf("proto: Decline: illegal tag %d (wire type %d)", fieldNum, wire)
6495 }
6496 switch fieldNum {
6497 case 1:
6498 if wireType != 2 {
6499 return fmt.Errorf("proto: wrong wireType = %d for field OfferIds", wireType)
6500 }
6501 var msglen int
6502 for shift := uint(0); ; shift += 7 {
6503 if shift >= 64 {
6504 return ErrIntOverflowScheduler
6505 }
6506 if iNdEx >= l {
6507 return io.ErrUnexpectedEOF
6508 }
6509 b := data[iNdEx]
6510 iNdEx++
6511 msglen |= (int(b) & 0x7F) << shift
6512 if b < 0x80 {
6513 break
6514 }
6515 }
6516 if msglen < 0 {
6517 return ErrInvalidLengthScheduler
6518 }
6519 postIndex := iNdEx + msglen
6520 if postIndex > l {
6521 return io.ErrUnexpectedEOF
6522 }
6523 m.OfferIds = append(m.OfferIds, &mesosproto.OfferID{})
6524 if err := m.OfferIds[len(m.OfferIds)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
6525 return err
6526 }
6527 iNdEx = postIndex
6528 case 2:
6529 if wireType != 2 {
6530 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
6531 }
6532 var msglen int
6533 for shift := uint(0); ; shift += 7 {
6534 if shift >= 64 {
6535 return ErrIntOverflowScheduler
6536 }
6537 if iNdEx >= l {
6538 return io.ErrUnexpectedEOF
6539 }
6540 b := data[iNdEx]
6541 iNdEx++
6542 msglen |= (int(b) & 0x7F) << shift
6543 if b < 0x80 {
6544 break
6545 }
6546 }
6547 if msglen < 0 {
6548 return ErrInvalidLengthScheduler
6549 }
6550 postIndex := iNdEx + msglen
6551 if postIndex > l {
6552 return io.ErrUnexpectedEOF
6553 }
6554 if m.Filters == nil {
6555 m.Filters = &mesosproto.Filters{}
6556 }
6557 if err := m.Filters.Unmarshal(data[iNdEx:postIndex]); err != nil {
6558 return err
6559 }
6560 iNdEx = postIndex
6561 default:
6562 iNdEx = preIndex
6563 skippy, err := skipScheduler(data[iNdEx:])
6564 if err != nil {
6565 return err
6566 }
6567 if skippy < 0 {
6568 return ErrInvalidLengthScheduler
6569 }
6570 if (iNdEx + skippy) > l {
6571 return io.ErrUnexpectedEOF
6572 }
6573 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
6574 iNdEx += skippy
6575 }
6576 }
6577
6578 if iNdEx > l {
6579 return io.ErrUnexpectedEOF
6580 }
6581 return nil
6582 }
6583 func (m *Call_Kill) Unmarshal(data []byte) error {
6584 var hasFields [1]uint64
6585 l := len(data)
6586 iNdEx := 0
6587 for iNdEx < l {
6588 preIndex := iNdEx
6589 var wire uint64
6590 for shift := uint(0); ; shift += 7 {
6591 if shift >= 64 {
6592 return ErrIntOverflowScheduler
6593 }
6594 if iNdEx >= l {
6595 return io.ErrUnexpectedEOF
6596 }
6597 b := data[iNdEx]
6598 iNdEx++
6599 wire |= (uint64(b) & 0x7F) << shift
6600 if b < 0x80 {
6601 break
6602 }
6603 }
6604 fieldNum := int32(wire >> 3)
6605 wireType := int(wire & 0x7)
6606 if wireType == 4 {
6607 return fmt.Errorf("proto: Kill: wiretype end group for non-group")
6608 }
6609 if fieldNum <= 0 {
6610 return fmt.Errorf("proto: Kill: illegal tag %d (wire type %d)", fieldNum, wire)
6611 }
6612 switch fieldNum {
6613 case 1:
6614 if wireType != 2 {
6615 return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
6616 }
6617 var msglen int
6618 for shift := uint(0); ; shift += 7 {
6619 if shift >= 64 {
6620 return ErrIntOverflowScheduler
6621 }
6622 if iNdEx >= l {
6623 return io.ErrUnexpectedEOF
6624 }
6625 b := data[iNdEx]
6626 iNdEx++
6627 msglen |= (int(b) & 0x7F) << shift
6628 if b < 0x80 {
6629 break
6630 }
6631 }
6632 if msglen < 0 {
6633 return ErrInvalidLengthScheduler
6634 }
6635 postIndex := iNdEx + msglen
6636 if postIndex > l {
6637 return io.ErrUnexpectedEOF
6638 }
6639 if m.TaskId == nil {
6640 m.TaskId = &mesosproto.TaskID{}
6641 }
6642 if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
6643 return err
6644 }
6645 iNdEx = postIndex
6646 hasFields[0] |= uint64(0x00000001)
6647 case 2:
6648 if wireType != 2 {
6649 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
6650 }
6651 var msglen int
6652 for shift := uint(0); ; shift += 7 {
6653 if shift >= 64 {
6654 return ErrIntOverflowScheduler
6655 }
6656 if iNdEx >= l {
6657 return io.ErrUnexpectedEOF
6658 }
6659 b := data[iNdEx]
6660 iNdEx++
6661 msglen |= (int(b) & 0x7F) << shift
6662 if b < 0x80 {
6663 break
6664 }
6665 }
6666 if msglen < 0 {
6667 return ErrInvalidLengthScheduler
6668 }
6669 postIndex := iNdEx + msglen
6670 if postIndex > l {
6671 return io.ErrUnexpectedEOF
6672 }
6673 if m.SlaveId == nil {
6674 m.SlaveId = &mesosproto.SlaveID{}
6675 }
6676 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
6677 return err
6678 }
6679 iNdEx = postIndex
6680 default:
6681 iNdEx = preIndex
6682 skippy, err := skipScheduler(data[iNdEx:])
6683 if err != nil {
6684 return err
6685 }
6686 if skippy < 0 {
6687 return ErrInvalidLengthScheduler
6688 }
6689 if (iNdEx + skippy) > l {
6690 return io.ErrUnexpectedEOF
6691 }
6692 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
6693 iNdEx += skippy
6694 }
6695 }
6696 if hasFields[0]&uint64(0x00000001) == 0 {
6697 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
6698 }
6699
6700 if iNdEx > l {
6701 return io.ErrUnexpectedEOF
6702 }
6703 return nil
6704 }
6705 func (m *Call_Shutdown) Unmarshal(data []byte) error {
6706 var hasFields [1]uint64
6707 l := len(data)
6708 iNdEx := 0
6709 for iNdEx < l {
6710 preIndex := iNdEx
6711 var wire uint64
6712 for shift := uint(0); ; shift += 7 {
6713 if shift >= 64 {
6714 return ErrIntOverflowScheduler
6715 }
6716 if iNdEx >= l {
6717 return io.ErrUnexpectedEOF
6718 }
6719 b := data[iNdEx]
6720 iNdEx++
6721 wire |= (uint64(b) & 0x7F) << shift
6722 if b < 0x80 {
6723 break
6724 }
6725 }
6726 fieldNum := int32(wire >> 3)
6727 wireType := int(wire & 0x7)
6728 if wireType == 4 {
6729 return fmt.Errorf("proto: Shutdown: wiretype end group for non-group")
6730 }
6731 if fieldNum <= 0 {
6732 return fmt.Errorf("proto: Shutdown: illegal tag %d (wire type %d)", fieldNum, wire)
6733 }
6734 switch fieldNum {
6735 case 1:
6736 if wireType != 2 {
6737 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
6738 }
6739 var msglen int
6740 for shift := uint(0); ; shift += 7 {
6741 if shift >= 64 {
6742 return ErrIntOverflowScheduler
6743 }
6744 if iNdEx >= l {
6745 return io.ErrUnexpectedEOF
6746 }
6747 b := data[iNdEx]
6748 iNdEx++
6749 msglen |= (int(b) & 0x7F) << shift
6750 if b < 0x80 {
6751 break
6752 }
6753 }
6754 if msglen < 0 {
6755 return ErrInvalidLengthScheduler
6756 }
6757 postIndex := iNdEx + msglen
6758 if postIndex > l {
6759 return io.ErrUnexpectedEOF
6760 }
6761 if m.ExecutorId == nil {
6762 m.ExecutorId = &mesosproto.ExecutorID{}
6763 }
6764 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
6765 return err
6766 }
6767 iNdEx = postIndex
6768 hasFields[0] |= uint64(0x00000001)
6769 case 2:
6770 if wireType != 2 {
6771 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
6772 }
6773 var msglen int
6774 for shift := uint(0); ; shift += 7 {
6775 if shift >= 64 {
6776 return ErrIntOverflowScheduler
6777 }
6778 if iNdEx >= l {
6779 return io.ErrUnexpectedEOF
6780 }
6781 b := data[iNdEx]
6782 iNdEx++
6783 msglen |= (int(b) & 0x7F) << shift
6784 if b < 0x80 {
6785 break
6786 }
6787 }
6788 if msglen < 0 {
6789 return ErrInvalidLengthScheduler
6790 }
6791 postIndex := iNdEx + msglen
6792 if postIndex > l {
6793 return io.ErrUnexpectedEOF
6794 }
6795 if m.SlaveId == nil {
6796 m.SlaveId = &mesosproto.SlaveID{}
6797 }
6798 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
6799 return err
6800 }
6801 iNdEx = postIndex
6802 hasFields[0] |= uint64(0x00000002)
6803 default:
6804 iNdEx = preIndex
6805 skippy, err := skipScheduler(data[iNdEx:])
6806 if err != nil {
6807 return err
6808 }
6809 if skippy < 0 {
6810 return ErrInvalidLengthScheduler
6811 }
6812 if (iNdEx + skippy) > l {
6813 return io.ErrUnexpectedEOF
6814 }
6815 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
6816 iNdEx += skippy
6817 }
6818 }
6819 if hasFields[0]&uint64(0x00000001) == 0 {
6820 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
6821 }
6822 if hasFields[0]&uint64(0x00000002) == 0 {
6823 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
6824 }
6825
6826 if iNdEx > l {
6827 return io.ErrUnexpectedEOF
6828 }
6829 return nil
6830 }
6831 func (m *Call_Acknowledge) Unmarshal(data []byte) error {
6832 var hasFields [1]uint64
6833 l := len(data)
6834 iNdEx := 0
6835 for iNdEx < l {
6836 preIndex := iNdEx
6837 var wire uint64
6838 for shift := uint(0); ; shift += 7 {
6839 if shift >= 64 {
6840 return ErrIntOverflowScheduler
6841 }
6842 if iNdEx >= l {
6843 return io.ErrUnexpectedEOF
6844 }
6845 b := data[iNdEx]
6846 iNdEx++
6847 wire |= (uint64(b) & 0x7F) << shift
6848 if b < 0x80 {
6849 break
6850 }
6851 }
6852 fieldNum := int32(wire >> 3)
6853 wireType := int(wire & 0x7)
6854 if wireType == 4 {
6855 return fmt.Errorf("proto: Acknowledge: wiretype end group for non-group")
6856 }
6857 if fieldNum <= 0 {
6858 return fmt.Errorf("proto: Acknowledge: illegal tag %d (wire type %d)", fieldNum, wire)
6859 }
6860 switch fieldNum {
6861 case 1:
6862 if wireType != 2 {
6863 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
6864 }
6865 var msglen int
6866 for shift := uint(0); ; shift += 7 {
6867 if shift >= 64 {
6868 return ErrIntOverflowScheduler
6869 }
6870 if iNdEx >= l {
6871 return io.ErrUnexpectedEOF
6872 }
6873 b := data[iNdEx]
6874 iNdEx++
6875 msglen |= (int(b) & 0x7F) << shift
6876 if b < 0x80 {
6877 break
6878 }
6879 }
6880 if msglen < 0 {
6881 return ErrInvalidLengthScheduler
6882 }
6883 postIndex := iNdEx + msglen
6884 if postIndex > l {
6885 return io.ErrUnexpectedEOF
6886 }
6887 if m.SlaveId == nil {
6888 m.SlaveId = &mesosproto.SlaveID{}
6889 }
6890 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
6891 return err
6892 }
6893 iNdEx = postIndex
6894 hasFields[0] |= uint64(0x00000001)
6895 case 2:
6896 if wireType != 2 {
6897 return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
6898 }
6899 var msglen int
6900 for shift := uint(0); ; shift += 7 {
6901 if shift >= 64 {
6902 return ErrIntOverflowScheduler
6903 }
6904 if iNdEx >= l {
6905 return io.ErrUnexpectedEOF
6906 }
6907 b := data[iNdEx]
6908 iNdEx++
6909 msglen |= (int(b) & 0x7F) << shift
6910 if b < 0x80 {
6911 break
6912 }
6913 }
6914 if msglen < 0 {
6915 return ErrInvalidLengthScheduler
6916 }
6917 postIndex := iNdEx + msglen
6918 if postIndex > l {
6919 return io.ErrUnexpectedEOF
6920 }
6921 if m.TaskId == nil {
6922 m.TaskId = &mesosproto.TaskID{}
6923 }
6924 if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
6925 return err
6926 }
6927 iNdEx = postIndex
6928 hasFields[0] |= uint64(0x00000002)
6929 case 3:
6930 if wireType != 2 {
6931 return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType)
6932 }
6933 var byteLen int
6934 for shift := uint(0); ; shift += 7 {
6935 if shift >= 64 {
6936 return ErrIntOverflowScheduler
6937 }
6938 if iNdEx >= l {
6939 return io.ErrUnexpectedEOF
6940 }
6941 b := data[iNdEx]
6942 iNdEx++
6943 byteLen |= (int(b) & 0x7F) << shift
6944 if b < 0x80 {
6945 break
6946 }
6947 }
6948 if byteLen < 0 {
6949 return ErrInvalidLengthScheduler
6950 }
6951 postIndex := iNdEx + byteLen
6952 if postIndex > l {
6953 return io.ErrUnexpectedEOF
6954 }
6955 m.Uuid = append([]byte{}, data[iNdEx:postIndex]...)
6956 iNdEx = postIndex
6957 hasFields[0] |= uint64(0x00000004)
6958 default:
6959 iNdEx = preIndex
6960 skippy, err := skipScheduler(data[iNdEx:])
6961 if err != nil {
6962 return err
6963 }
6964 if skippy < 0 {
6965 return ErrInvalidLengthScheduler
6966 }
6967 if (iNdEx + skippy) > l {
6968 return io.ErrUnexpectedEOF
6969 }
6970 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
6971 iNdEx += skippy
6972 }
6973 }
6974 if hasFields[0]&uint64(0x00000001) == 0 {
6975 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
6976 }
6977 if hasFields[0]&uint64(0x00000002) == 0 {
6978 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
6979 }
6980 if hasFields[0]&uint64(0x00000004) == 0 {
6981 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
6982 }
6983
6984 if iNdEx > l {
6985 return io.ErrUnexpectedEOF
6986 }
6987 return nil
6988 }
6989 func (m *Call_Reconcile) Unmarshal(data []byte) error {
6990 l := len(data)
6991 iNdEx := 0
6992 for iNdEx < l {
6993 preIndex := iNdEx
6994 var wire uint64
6995 for shift := uint(0); ; shift += 7 {
6996 if shift >= 64 {
6997 return ErrIntOverflowScheduler
6998 }
6999 if iNdEx >= l {
7000 return io.ErrUnexpectedEOF
7001 }
7002 b := data[iNdEx]
7003 iNdEx++
7004 wire |= (uint64(b) & 0x7F) << shift
7005 if b < 0x80 {
7006 break
7007 }
7008 }
7009 fieldNum := int32(wire >> 3)
7010 wireType := int(wire & 0x7)
7011 if wireType == 4 {
7012 return fmt.Errorf("proto: Reconcile: wiretype end group for non-group")
7013 }
7014 if fieldNum <= 0 {
7015 return fmt.Errorf("proto: Reconcile: illegal tag %d (wire type %d)", fieldNum, wire)
7016 }
7017 switch fieldNum {
7018 case 1:
7019 if wireType != 2 {
7020 return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType)
7021 }
7022 var msglen int
7023 for shift := uint(0); ; shift += 7 {
7024 if shift >= 64 {
7025 return ErrIntOverflowScheduler
7026 }
7027 if iNdEx >= l {
7028 return io.ErrUnexpectedEOF
7029 }
7030 b := data[iNdEx]
7031 iNdEx++
7032 msglen |= (int(b) & 0x7F) << shift
7033 if b < 0x80 {
7034 break
7035 }
7036 }
7037 if msglen < 0 {
7038 return ErrInvalidLengthScheduler
7039 }
7040 postIndex := iNdEx + msglen
7041 if postIndex > l {
7042 return io.ErrUnexpectedEOF
7043 }
7044 m.Tasks = append(m.Tasks, &Call_Reconcile_Task{})
7045 if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
7046 return err
7047 }
7048 iNdEx = postIndex
7049 default:
7050 iNdEx = preIndex
7051 skippy, err := skipScheduler(data[iNdEx:])
7052 if err != nil {
7053 return err
7054 }
7055 if skippy < 0 {
7056 return ErrInvalidLengthScheduler
7057 }
7058 if (iNdEx + skippy) > l {
7059 return io.ErrUnexpectedEOF
7060 }
7061 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
7062 iNdEx += skippy
7063 }
7064 }
7065
7066 if iNdEx > l {
7067 return io.ErrUnexpectedEOF
7068 }
7069 return nil
7070 }
7071 func (m *Call_Reconcile_Task) Unmarshal(data []byte) error {
7072 var hasFields [1]uint64
7073 l := len(data)
7074 iNdEx := 0
7075 for iNdEx < l {
7076 preIndex := iNdEx
7077 var wire uint64
7078 for shift := uint(0); ; shift += 7 {
7079 if shift >= 64 {
7080 return ErrIntOverflowScheduler
7081 }
7082 if iNdEx >= l {
7083 return io.ErrUnexpectedEOF
7084 }
7085 b := data[iNdEx]
7086 iNdEx++
7087 wire |= (uint64(b) & 0x7F) << shift
7088 if b < 0x80 {
7089 break
7090 }
7091 }
7092 fieldNum := int32(wire >> 3)
7093 wireType := int(wire & 0x7)
7094 if wireType == 4 {
7095 return fmt.Errorf("proto: Task: wiretype end group for non-group")
7096 }
7097 if fieldNum <= 0 {
7098 return fmt.Errorf("proto: Task: illegal tag %d (wire type %d)", fieldNum, wire)
7099 }
7100 switch fieldNum {
7101 case 1:
7102 if wireType != 2 {
7103 return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
7104 }
7105 var msglen int
7106 for shift := uint(0); ; shift += 7 {
7107 if shift >= 64 {
7108 return ErrIntOverflowScheduler
7109 }
7110 if iNdEx >= l {
7111 return io.ErrUnexpectedEOF
7112 }
7113 b := data[iNdEx]
7114 iNdEx++
7115 msglen |= (int(b) & 0x7F) << shift
7116 if b < 0x80 {
7117 break
7118 }
7119 }
7120 if msglen < 0 {
7121 return ErrInvalidLengthScheduler
7122 }
7123 postIndex := iNdEx + msglen
7124 if postIndex > l {
7125 return io.ErrUnexpectedEOF
7126 }
7127 if m.TaskId == nil {
7128 m.TaskId = &mesosproto.TaskID{}
7129 }
7130 if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
7131 return err
7132 }
7133 iNdEx = postIndex
7134 hasFields[0] |= uint64(0x00000001)
7135 case 2:
7136 if wireType != 2 {
7137 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
7138 }
7139 var msglen int
7140 for shift := uint(0); ; shift += 7 {
7141 if shift >= 64 {
7142 return ErrIntOverflowScheduler
7143 }
7144 if iNdEx >= l {
7145 return io.ErrUnexpectedEOF
7146 }
7147 b := data[iNdEx]
7148 iNdEx++
7149 msglen |= (int(b) & 0x7F) << shift
7150 if b < 0x80 {
7151 break
7152 }
7153 }
7154 if msglen < 0 {
7155 return ErrInvalidLengthScheduler
7156 }
7157 postIndex := iNdEx + msglen
7158 if postIndex > l {
7159 return io.ErrUnexpectedEOF
7160 }
7161 if m.SlaveId == nil {
7162 m.SlaveId = &mesosproto.SlaveID{}
7163 }
7164 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
7165 return err
7166 }
7167 iNdEx = postIndex
7168 default:
7169 iNdEx = preIndex
7170 skippy, err := skipScheduler(data[iNdEx:])
7171 if err != nil {
7172 return err
7173 }
7174 if skippy < 0 {
7175 return ErrInvalidLengthScheduler
7176 }
7177 if (iNdEx + skippy) > l {
7178 return io.ErrUnexpectedEOF
7179 }
7180 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
7181 iNdEx += skippy
7182 }
7183 }
7184 if hasFields[0]&uint64(0x00000001) == 0 {
7185 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
7186 }
7187
7188 if iNdEx > l {
7189 return io.ErrUnexpectedEOF
7190 }
7191 return nil
7192 }
7193 func (m *Call_Message) Unmarshal(data []byte) error {
7194 var hasFields [1]uint64
7195 l := len(data)
7196 iNdEx := 0
7197 for iNdEx < l {
7198 preIndex := iNdEx
7199 var wire uint64
7200 for shift := uint(0); ; shift += 7 {
7201 if shift >= 64 {
7202 return ErrIntOverflowScheduler
7203 }
7204 if iNdEx >= l {
7205 return io.ErrUnexpectedEOF
7206 }
7207 b := data[iNdEx]
7208 iNdEx++
7209 wire |= (uint64(b) & 0x7F) << shift
7210 if b < 0x80 {
7211 break
7212 }
7213 }
7214 fieldNum := int32(wire >> 3)
7215 wireType := int(wire & 0x7)
7216 if wireType == 4 {
7217 return fmt.Errorf("proto: Message: wiretype end group for non-group")
7218 }
7219 if fieldNum <= 0 {
7220 return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
7221 }
7222 switch fieldNum {
7223 case 1:
7224 if wireType != 2 {
7225 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
7226 }
7227 var msglen int
7228 for shift := uint(0); ; shift += 7 {
7229 if shift >= 64 {
7230 return ErrIntOverflowScheduler
7231 }
7232 if iNdEx >= l {
7233 return io.ErrUnexpectedEOF
7234 }
7235 b := data[iNdEx]
7236 iNdEx++
7237 msglen |= (int(b) & 0x7F) << shift
7238 if b < 0x80 {
7239 break
7240 }
7241 }
7242 if msglen < 0 {
7243 return ErrInvalidLengthScheduler
7244 }
7245 postIndex := iNdEx + msglen
7246 if postIndex > l {
7247 return io.ErrUnexpectedEOF
7248 }
7249 if m.SlaveId == nil {
7250 m.SlaveId = &mesosproto.SlaveID{}
7251 }
7252 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
7253 return err
7254 }
7255 iNdEx = postIndex
7256 hasFields[0] |= uint64(0x00000001)
7257 case 2:
7258 if wireType != 2 {
7259 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
7260 }
7261 var msglen int
7262 for shift := uint(0); ; shift += 7 {
7263 if shift >= 64 {
7264 return ErrIntOverflowScheduler
7265 }
7266 if iNdEx >= l {
7267 return io.ErrUnexpectedEOF
7268 }
7269 b := data[iNdEx]
7270 iNdEx++
7271 msglen |= (int(b) & 0x7F) << shift
7272 if b < 0x80 {
7273 break
7274 }
7275 }
7276 if msglen < 0 {
7277 return ErrInvalidLengthScheduler
7278 }
7279 postIndex := iNdEx + msglen
7280 if postIndex > l {
7281 return io.ErrUnexpectedEOF
7282 }
7283 if m.ExecutorId == nil {
7284 m.ExecutorId = &mesosproto.ExecutorID{}
7285 }
7286 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
7287 return err
7288 }
7289 iNdEx = postIndex
7290 hasFields[0] |= uint64(0x00000002)
7291 case 3:
7292 if wireType != 2 {
7293 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
7294 }
7295 var byteLen int
7296 for shift := uint(0); ; shift += 7 {
7297 if shift >= 64 {
7298 return ErrIntOverflowScheduler
7299 }
7300 if iNdEx >= l {
7301 return io.ErrUnexpectedEOF
7302 }
7303 b := data[iNdEx]
7304 iNdEx++
7305 byteLen |= (int(b) & 0x7F) << shift
7306 if b < 0x80 {
7307 break
7308 }
7309 }
7310 if byteLen < 0 {
7311 return ErrInvalidLengthScheduler
7312 }
7313 postIndex := iNdEx + byteLen
7314 if postIndex > l {
7315 return io.ErrUnexpectedEOF
7316 }
7317 m.Data = append([]byte{}, data[iNdEx:postIndex]...)
7318 iNdEx = postIndex
7319 hasFields[0] |= uint64(0x00000004)
7320 default:
7321 iNdEx = preIndex
7322 skippy, err := skipScheduler(data[iNdEx:])
7323 if err != nil {
7324 return err
7325 }
7326 if skippy < 0 {
7327 return ErrInvalidLengthScheduler
7328 }
7329 if (iNdEx + skippy) > l {
7330 return io.ErrUnexpectedEOF
7331 }
7332 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
7333 iNdEx += skippy
7334 }
7335 }
7336 if hasFields[0]&uint64(0x00000001) == 0 {
7337 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
7338 }
7339 if hasFields[0]&uint64(0x00000002) == 0 {
7340 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
7341 }
7342 if hasFields[0]&uint64(0x00000004) == 0 {
7343 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
7344 }
7345
7346 if iNdEx > l {
7347 return io.ErrUnexpectedEOF
7348 }
7349 return nil
7350 }
7351 func (m *Call_Request) Unmarshal(data []byte) error {
7352 l := len(data)
7353 iNdEx := 0
7354 for iNdEx < l {
7355 preIndex := iNdEx
7356 var wire uint64
7357 for shift := uint(0); ; shift += 7 {
7358 if shift >= 64 {
7359 return ErrIntOverflowScheduler
7360 }
7361 if iNdEx >= l {
7362 return io.ErrUnexpectedEOF
7363 }
7364 b := data[iNdEx]
7365 iNdEx++
7366 wire |= (uint64(b) & 0x7F) << shift
7367 if b < 0x80 {
7368 break
7369 }
7370 }
7371 fieldNum := int32(wire >> 3)
7372 wireType := int(wire & 0x7)
7373 if wireType == 4 {
7374 return fmt.Errorf("proto: Request: wiretype end group for non-group")
7375 }
7376 if fieldNum <= 0 {
7377 return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
7378 }
7379 switch fieldNum {
7380 case 1:
7381 if wireType != 2 {
7382 return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType)
7383 }
7384 var msglen int
7385 for shift := uint(0); ; shift += 7 {
7386 if shift >= 64 {
7387 return ErrIntOverflowScheduler
7388 }
7389 if iNdEx >= l {
7390 return io.ErrUnexpectedEOF
7391 }
7392 b := data[iNdEx]
7393 iNdEx++
7394 msglen |= (int(b) & 0x7F) << shift
7395 if b < 0x80 {
7396 break
7397 }
7398 }
7399 if msglen < 0 {
7400 return ErrInvalidLengthScheduler
7401 }
7402 postIndex := iNdEx + msglen
7403 if postIndex > l {
7404 return io.ErrUnexpectedEOF
7405 }
7406 m.Requests = append(m.Requests, &mesosproto.Request{})
7407 if err := m.Requests[len(m.Requests)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
7408 return err
7409 }
7410 iNdEx = postIndex
7411 default:
7412 iNdEx = preIndex
7413 skippy, err := skipScheduler(data[iNdEx:])
7414 if err != nil {
7415 return err
7416 }
7417 if skippy < 0 {
7418 return ErrInvalidLengthScheduler
7419 }
7420 if (iNdEx + skippy) > l {
7421 return io.ErrUnexpectedEOF
7422 }
7423 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
7424 iNdEx += skippy
7425 }
7426 }
7427
7428 if iNdEx > l {
7429 return io.ErrUnexpectedEOF
7430 }
7431 return nil
7432 }
7433 func skipScheduler(data []byte) (n int, err error) {
7434 l := len(data)
7435 iNdEx := 0
7436 for iNdEx < l {
7437 var wire uint64
7438 for shift := uint(0); ; shift += 7 {
7439 if shift >= 64 {
7440 return 0, ErrIntOverflowScheduler
7441 }
7442 if iNdEx >= l {
7443 return 0, io.ErrUnexpectedEOF
7444 }
7445 b := data[iNdEx]
7446 iNdEx++
7447 wire |= (uint64(b) & 0x7F) << shift
7448 if b < 0x80 {
7449 break
7450 }
7451 }
7452 wireType := int(wire & 0x7)
7453 switch wireType {
7454 case 0:
7455 for shift := uint(0); ; shift += 7 {
7456 if shift >= 64 {
7457 return 0, ErrIntOverflowScheduler
7458 }
7459 if iNdEx >= l {
7460 return 0, io.ErrUnexpectedEOF
7461 }
7462 iNdEx++
7463 if data[iNdEx-1] < 0x80 {
7464 break
7465 }
7466 }
7467 return iNdEx, nil
7468 case 1:
7469 iNdEx += 8
7470 return iNdEx, nil
7471 case 2:
7472 var length int
7473 for shift := uint(0); ; shift += 7 {
7474 if shift >= 64 {
7475 return 0, ErrIntOverflowScheduler
7476 }
7477 if iNdEx >= l {
7478 return 0, io.ErrUnexpectedEOF
7479 }
7480 b := data[iNdEx]
7481 iNdEx++
7482 length |= (int(b) & 0x7F) << shift
7483 if b < 0x80 {
7484 break
7485 }
7486 }
7487 iNdEx += length
7488 if length < 0 {
7489 return 0, ErrInvalidLengthScheduler
7490 }
7491 return iNdEx, nil
7492 case 3:
7493 for {
7494 var innerWire uint64
7495 var start int = iNdEx
7496 for shift := uint(0); ; shift += 7 {
7497 if shift >= 64 {
7498 return 0, ErrIntOverflowScheduler
7499 }
7500 if iNdEx >= l {
7501 return 0, io.ErrUnexpectedEOF
7502 }
7503 b := data[iNdEx]
7504 iNdEx++
7505 innerWire |= (uint64(b) & 0x7F) << shift
7506 if b < 0x80 {
7507 break
7508 }
7509 }
7510 innerWireType := int(innerWire & 0x7)
7511 if innerWireType == 4 {
7512 break
7513 }
7514 next, err := skipScheduler(data[start:])
7515 if err != nil {
7516 return 0, err
7517 }
7518 iNdEx = start + next
7519 }
7520 return iNdEx, nil
7521 case 4:
7522 return iNdEx, nil
7523 case 5:
7524 iNdEx += 4
7525 return iNdEx, nil
7526 default:
7527 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
7528 }
7529 }
7530 panic("unreachable")
7531 }
7532
7533 var (
7534 ErrInvalidLengthScheduler = fmt.Errorf("proto: negative length found during unmarshaling")
7535 ErrIntOverflowScheduler = fmt.Errorf("proto: integer overflow")
7536 )