Debian Codegraph @

api/v1/lib/scheduler/scheduler.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-gogo. DO NOT EDIT.
2 // source: scheduler/scheduler.proto
3
4 /*
5 Package scheduler is a generated protocol buffer package.
6
7 It is generated from these files:
8 scheduler/scheduler.proto
9
10 It has these top-level messages:
11 Event
12 Call
13 */
14 package scheduler
15
16 import proto "github.com/gogo/protobuf/proto"
17 import fmt "fmt"
18 import math "math"
19 import mesos "github.com/mesos/mesos-go/api/v1/lib"
20 import _ "github.com/gogo/protobuf/gogoproto"
21
22 import strconv "strconv"
23
24 import bytes "bytes"
25
26 import strings "strings"
27 import reflect "reflect"
28
29 import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
30
31 import io "io"
32
33 // Reference imports to suppress errors if they are not otherwise used.
34 var _ = proto.Marshal
35 var _ = fmt.Errorf
36 var _ = math.Inf
37
38 // This is a compile-time assertion to ensure that this generated file
39 // is compatible with the proto package it is being compiled against.
40 // A compilation error at this line likely means your copy of the
41 // proto package needs to be updated.
42 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
43
44 // Possible event types, followed by message definitions if
45 // applicable.
46 type Event_Type int32
47
48 const (
49 // This must be the first enum value in this list, to
50 // ensure that if 'type' is not set, the default value
51 // is UNKNOWN. This enables enum values to be added
52 // in a backwards-compatible way. See: MESOS-4997.
53 Event_UNKNOWN Event_Type = 0
54 Event_SUBSCRIBED Event_Type = 1
55 Event_OFFERS Event_Type = 2
56 Event_INVERSE_OFFERS Event_Type = 9
57 Event_RESCIND Event_Type = 3
58 Event_RESCIND_INVERSE_OFFER Event_Type = 10
59 Event_UPDATE Event_Type = 4
60 Event_MESSAGE Event_Type = 5
61 Event_FAILURE Event_Type = 6
62 Event_ERROR Event_Type = 7
63 // Periodic message sent by the Mesos master according to
64 // 'Subscribed.heartbeat_interval_seconds'. If the scheduler does
65 // not receive any events (including heartbeats) for an extended
66 // period of time (e.g., 5 x heartbeat_interval_seconds), there is
67 // likely a network partition. In such a case the scheduler should
68 // close the existing subscription connection and resubscribe
69 // using a backoff strategy.
70 Event_HEARTBEAT Event_Type = 8
71 )
72
73 var Event_Type_name = map[int32]string{
74 0: "UNKNOWN",
75 1: "SUBSCRIBED",
76 2: "OFFERS",
77 9: "INVERSE_OFFERS",
78 3: "RESCIND",
79 10: "RESCIND_INVERSE_OFFER",
80 4: "UPDATE",
81 5: "MESSAGE",
82 6: "FAILURE",
83 7: "ERROR",
84 8: "HEARTBEAT",
85 }
86 var Event_Type_value = map[string]int32{
87 "UNKNOWN": 0,
88 "SUBSCRIBED": 1,
89 "OFFERS": 2,
90 "INVERSE_OFFERS": 9,
91 "RESCIND": 3,
92 "RESCIND_INVERSE_OFFER": 10,
93 "UPDATE": 4,
94 "MESSAGE": 5,
95 "FAILURE": 6,
96 "ERROR": 7,
97 "HEARTBEAT": 8,
98 }
99
100 func (x Event_Type) Enum() *Event_Type {
101 p := new(Event_Type)
102 *p = x
103 return p
104 }
105 func (x Event_Type) MarshalJSON() ([]byte, error) {
106 return proto.MarshalJSONEnum(Event_Type_name, int32(x))
107 }
108 func (x *Event_Type) UnmarshalJSON(data []byte) error {
109 value, err := proto.UnmarshalJSONEnum(Event_Type_value, data, "Event_Type")
110 if err != nil {
111 return err
112 }
113 *x = Event_Type(value)
114 return nil
115 }
116 func (Event_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 0} }
117
118 // Possible call types, followed by message definitions if
119 // applicable.
120 type Call_Type int32
121
122 const (
123 // See comments above on `Event::Type` for more details on this enum value.
124 Call_UNKNOWN Call_Type = 0
125 Call_SUBSCRIBE Call_Type = 1
126 Call_TEARDOWN Call_Type = 2
127 Call_ACCEPT Call_Type = 3
128 Call_DECLINE Call_Type = 4
129 Call_ACCEPT_INVERSE_OFFERS Call_Type = 13
130 Call_DECLINE_INVERSE_OFFERS Call_Type = 14
131 Call_REVIVE Call_Type = 5
132 Call_KILL Call_Type = 6
133 Call_SHUTDOWN Call_Type = 7
134 Call_ACKNOWLEDGE Call_Type = 8
135 Call_RECONCILE Call_Type = 9
136 Call_MESSAGE Call_Type = 10
137 Call_REQUEST Call_Type = 11
138 Call_SUPPRESS Call_Type = 12
139 )
140
141 var Call_Type_name = map[int32]string{
142 0: "UNKNOWN",
143 1: "SUBSCRIBE",
144 2: "TEARDOWN",
145 3: "ACCEPT",
146 4: "DECLINE",
147 13: "ACCEPT_INVERSE_OFFERS",
148 14: "DECLINE_INVERSE_OFFERS",
149 5: "REVIVE",
150 6: "KILL",
151 7: "SHUTDOWN",
152 8: "ACKNOWLEDGE",
153 9: "RECONCILE",
154 10: "MESSAGE",
155 11: "REQUEST",
156 12: "SUPPRESS",
157 }
158 var Call_Type_value = map[string]int32{
159 "UNKNOWN": 0,
160 "SUBSCRIBE": 1,
161 "TEARDOWN": 2,
162 "ACCEPT": 3,
163 "DECLINE": 4,
164 "ACCEPT_INVERSE_OFFERS": 13,
165 "DECLINE_INVERSE_OFFERS": 14,
166 "REVIVE": 5,
167 "KILL": 6,
168 "SHUTDOWN": 7,
169 "ACKNOWLEDGE": 8,
170 "RECONCILE": 9,
171 "MESSAGE": 10,
172 "REQUEST": 11,
173 "SUPPRESS": 12,
174 }
175
176 func (x Call_Type) Enum() *Call_Type {
177 p := new(Call_Type)
178 *p = x
179 return p
180 }
181 func (x Call_Type) MarshalJSON() ([]byte, error) {
182 return proto.MarshalJSONEnum(Call_Type_name, int32(x))
183 }
184 func (x *Call_Type) UnmarshalJSON(data []byte) error {
185 value, err := proto.UnmarshalJSONEnum(Call_Type_value, data, "Call_Type")
186 if err != nil {
187 return err
188 }
189 *x = Call_Type(value)
190 return nil
191 }
192 func (Call_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 0} }
193
194 // *
195 // Scheduler event API.
196 //
197 // An event is described using the standard protocol buffer "union"
198 // trick, see:
199 // https://developers.google.com/protocol-buffers/docs/techniques#union.
200 type Event struct {
201 // Type of the event, indicates which optional field below should be
202 // present if that type has a nested message definition.
203 // Enum fields should be optional, see: MESOS-4997.
204 Type Event_Type `protobuf:"varint,1,opt,name=type,enum=mesos.scheduler.Event_Type" json:"type"`
205 Subscribed *Event_Subscribed `protobuf:"bytes,2,opt,name=subscribed" json:"subscribed,omitempty"`
206 Offers *Event_Offers `protobuf:"bytes,3,opt,name=offers" json:"offers,omitempty"`
207 InverseOffers *Event_InverseOffers `protobuf:"bytes,9,opt,name=inverse_offers,json=inverseOffers" json:"inverse_offers,omitempty"`
208 Rescind *Event_Rescind `protobuf:"bytes,4,opt,name=rescind" json:"rescind,omitempty"`
209 RescindInverseOffer *Event_RescindInverseOffer `protobuf:"bytes,10,opt,name=rescind_inverse_offer,json=rescindInverseOffer" json:"rescind_inverse_offer,omitempty"`
210 Update *Event_Update `protobuf:"bytes,5,opt,name=update" json:"update,omitempty"`
211 Message *Event_Message `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
212 Failure *Event_Failure `protobuf:"bytes,7,opt,name=failure" json:"failure,omitempty"`
213 Error *Event_Error `protobuf:"bytes,8,opt,name=error" json:"error,omitempty"`
214 }
215
216 func (m *Event) Reset() { *m = Event{} }
217 func (*Event) ProtoMessage() {}
218 func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0} }
219
220 func (m *Event) GetType() Event_Type {
221 if m != nil {
222 return m.Type
223 }
224 return Event_UNKNOWN
225 }
226
227 func (m *Event) GetSubscribed() *Event_Subscribed {
228 if m != nil {
229 return m.Subscribed
230 }
231 return nil
232 }
233
234 func (m *Event) GetOffers() *Event_Offers {
235 if m != nil {
236 return m.Offers
237 }
238 return nil
239 }
240
241 func (m *Event) GetInverseOffers() *Event_InverseOffers {
242 if m != nil {
243 return m.InverseOffers
244 }
245 return nil
246 }
247
248 func (m *Event) GetRescind() *Event_Rescind {
249 if m != nil {
250 return m.Rescind
251 }
252 return nil
253 }
254
255 func (m *Event) GetRescindInverseOffer() *Event_RescindInverseOffer {
256 if m != nil {
257 return m.RescindInverseOffer
258 }
259 return nil
260 }
261
262 func (m *Event) GetUpdate() *Event_Update {
263 if m != nil {
264 return m.Update
265 }
266 return nil
267 }
268
269 func (m *Event) GetMessage() *Event_Message {
270 if m != nil {
271 return m.Message
272 }
273 return nil
274 }
275
276 func (m *Event) GetFailure() *Event_Failure {
277 if m != nil {
278 return m.Failure
279 }
280 return nil
281 }
282
283 func (m *Event) GetError() *Event_Error {
284 if m != nil {
285 return m.Error
286 }
287 return nil
288 }
289
290 // First event received when the scheduler subscribes.
291 type Event_Subscribed struct {
292 FrameworkID *mesos.FrameworkID `protobuf:"bytes,1,req,name=framework_id,json=frameworkId" json:"framework_id,omitempty"`
293 // This value will be set if the master is sending heartbeats. See
294 // the comment above on 'HEARTBEAT' for more details.
295 HeartbeatIntervalSeconds *float64 `protobuf:"fixed64,2,opt,name=heartbeat_interval_seconds,json=heartbeatIntervalSeconds" json:"heartbeat_interval_seconds,omitempty"`
296 // Since Mesos 1.1.
297 MasterInfo *mesos.MasterInfo `protobuf:"bytes,3,opt,name=master_info,json=masterInfo" json:"master_info,omitempty"`
298 }
299
300 func (m *Event_Subscribed) Reset() { *m = Event_Subscribed{} }
301 func (*Event_Subscribed) ProtoMessage() {}
302 func (*Event_Subscribed) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 0} }
303
304 func (m *Event_Subscribed) GetFrameworkID() *mesos.FrameworkID {
305 if m != nil {
306 return m.FrameworkID
307 }
308 return nil
309 }
310
311 func (m *Event_Subscribed) GetHeartbeatIntervalSeconds() float64 {
312 if m != nil && m.HeartbeatIntervalSeconds != nil {
313 return *m.HeartbeatIntervalSeconds
314 }
315 return 0
316 }
317
318 func (m *Event_Subscribed) GetMasterInfo() *mesos.MasterInfo {
319 if m != nil {
320 return m.MasterInfo
321 }
322 return nil
323 }
324
325 // Received whenever there are new resources that are offered to the
326 // scheduler. Each offer corresponds to a set of resources on an
327 // agent. Until the scheduler accepts or declines an offer the
328 // resources are considered allocated to the scheduler.
329 type Event_Offers struct {
330 Offers []mesos.Offer `protobuf:"bytes,1,rep,name=offers" json:"offers"`
331 }
332
333 func (m *Event_Offers) Reset() { *m = Event_Offers{} }
334 func (*Event_Offers) ProtoMessage() {}
335 func (*Event_Offers) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 1} }
336
337 func (m *Event_Offers) GetOffers() []mesos.Offer {
338 if m != nil {
339 return m.Offers
340 }
341 return nil
342 }
343
344 // Received whenever there are resources requested back from the
345 // scheduler. Each inverse offer specifies the agent, and
346 // optionally specific resources. Accepting or Declining an inverse
347 // offer informs the allocator of the scheduler's ability to release
348 // the specified resources without violating an SLA. If no resources
349 // are specified then all resources on the agent are requested to be
350 // released.
351 type Event_InverseOffers struct {
352 InverseOffers []mesos.InverseOffer `protobuf:"bytes,1,rep,name=inverse_offers,json=inverseOffers" json:"inverse_offers"`
353 }
354
355 func (m *Event_InverseOffers) Reset() { *m = Event_InverseOffers{} }
356 func (*Event_InverseOffers) ProtoMessage() {}
357 func (*Event_InverseOffers) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 2} }
358
359 func (m *Event_InverseOffers) GetInverseOffers() []mesos.InverseOffer {
360 if m != nil {
361 return m.InverseOffers
362 }
363 return nil
364 }
365
366 // Received when a particular offer is no longer valid (e.g., the
367 // agent corresponding to the offer has been removed) and hence
368 // needs to be rescinded. Any future calls ('Accept' / 'Decline') made
369 // by the scheduler regarding this offer will be invalid.
370 type Event_Rescind struct {
371 OfferID mesos.OfferID `protobuf:"bytes,1,req,name=offer_id,json=offerId" json:"offer_id"`
372 }
373
374 func (m *Event_Rescind) Reset() { *m = Event_Rescind{} }
375 func (*Event_Rescind) ProtoMessage() {}
376 func (*Event_Rescind) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 3} }
377
378 func (m *Event_Rescind) GetOfferID() mesos.OfferID {
379 if m != nil {
380 return m.OfferID
381 }
382 return mesos.OfferID{}
383 }
384
385 // Received when a particular inverse offer is no longer valid
386 // (e.g., the agent corresponding to the offer has been removed)
387 // and hence needs to be rescinded. Any future calls ('Accept' /
388 // 'Decline') made by the scheduler regarding this inverse offer
389 // will be invalid.
390 type Event_RescindInverseOffer struct {
391 InverseOfferID mesos.OfferID `protobuf:"bytes,1,req,name=inverse_offer_id,json=inverseOfferId" json:"inverse_offer_id"`
392 }
393
394 func (m *Event_RescindInverseOffer) Reset() { *m = Event_RescindInverseOffer{} }
395 func (*Event_RescindInverseOffer) ProtoMessage() {}
396 func (*Event_RescindInverseOffer) Descriptor() ([]byte, []int) {
397 return fileDescriptorScheduler, []int{0, 4}
398 }
399
400 func (m *Event_RescindInverseOffer) GetInverseOfferID() mesos.OfferID {
401 if m != nil {
402 return m.InverseOfferID
403 }
404 return mesos.OfferID{}
405 }
406
407 // Received whenever there is a status update that is generated by
408 // the executor or agent or master. Status updates should be used by
409 // executors to reliably communicate the status of the tasks that
410 // they manage. It is crucial that a terminal update (see TaskState
411 // in v1/mesos.proto) is sent by the executor as soon as the task
412 // terminates, in order for Mesos to release the resources allocated
413 // to the task. It is also the responsibility of the scheduler to
414 // explicitly acknowledge the receipt of a status update. See
415 // 'Acknowledge' in the 'Call' section below for the semantics.
416 //
417 // A task status update may be used for guaranteed delivery of some
418 // task-related information, e.g., task's health update. Such
419 // information may be shadowed by subsequent task status updates, that
420 // do not preserve fields of the previously sent message.
421 type Event_Update struct {
422 Status mesos.TaskStatus `protobuf:"bytes,1,req,name=status" json:"status"`
423 }
424
425 func (m *Event_Update) Reset() { *m = Event_Update{} }
426 func (*Event_Update) ProtoMessage() {}
427 func (*Event_Update) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 5} }
428
429 func (m *Event_Update) GetStatus() mesos.TaskStatus {
430 if m != nil {
431 return m.Status
432 }
433 return mesos.TaskStatus{}
434 }
435
436 // Received when a custom message generated by the executor is
437 // forwarded by the master. Note that this message is not
438 // interpreted by Mesos and is only forwarded (without reliability
439 // guarantees) to the scheduler. It is up to the executor to retry
440 // if the message is dropped for any reason.
441 type Event_Message struct {
442 AgentID mesos.AgentID `protobuf:"bytes,1,req,name=agent_id,json=agentId" json:"agent_id"`
443 ExecutorID mesos.ExecutorID `protobuf:"bytes,2,req,name=executor_id,json=executorId" json:"executor_id"`
444 Data []byte `protobuf:"bytes,3,req,name=data" json:"data,omitempty"`
445 }
446
447 func (m *Event_Message) Reset() { *m = Event_Message{} }
448 func (*Event_Message) ProtoMessage() {}
449 func (*Event_Message) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 6} }
450
451 func (m *Event_Message) GetAgentID() mesos.AgentID {
452 if m != nil {
453 return m.AgentID
454 }
455 return mesos.AgentID{}
456 }
457
458 func (m *Event_Message) GetExecutorID() mesos.ExecutorID {
459 if m != nil {
460 return m.ExecutorID
461 }
462 return mesos.ExecutorID{}
463 }
464
465 func (m *Event_Message) GetData() []byte {
466 if m != nil {
467 return m.Data
468 }
469 return nil
470 }
471
472 // Received when an agent is removed from the cluster (e.g., failed
473 // health checks) or when an executor is terminated. Note that, this
474 // event coincides with receipt of terminal UPDATE events for any
475 // active tasks belonging to the agent or executor and receipt of
476 // 'Rescind' events for any outstanding offers belonging to the
477 // agent. Note that there is no guaranteed order between the
478 // 'Failure', 'Update' and 'Rescind' events when an agent or executor
479 // is removed.
480 // TODO(vinod): Consider splitting the lost agent and terminated
481 // executor into separate events and ensure it's reliably generated.
482 type Event_Failure struct {
483 AgentID *mesos.AgentID `protobuf:"bytes,1,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
484 // If this was just a failure of an executor on an agent then
485 // 'executor_id' will be set and possibly 'status' (if we were
486 // able to determine the exit status).
487 ExecutorID *mesos.ExecutorID `protobuf:"bytes,2,opt,name=executor_id,json=executorId" json:"executor_id,omitempty"`
488 // On Posix, `status` corresponds to termination information in the
489 // `stat_loc` area returned from a `waitpid` call. On Windows, `status`
490 // is obtained via calling the `GetExitCodeProcess()` function. For
491 // messages coming from Posix agents, schedulers need to apply
492 // `WEXITSTATUS` family macros or equivalent transformations to obtain
493 // exit codes.
494 //
495 // TODO(alexr): Consider unifying Windows and Posix behavior by returning
496 // exit code here, see MESOS-7241.
497 Status *int32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"`
498 }
499
500 func (m *Event_Failure) Reset() { *m = Event_Failure{} }
501 func (*Event_Failure) ProtoMessage() {}
502 func (*Event_Failure) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 7} }
503
504 func (m *Event_Failure) GetAgentID() *mesos.AgentID {
505 if m != nil {
506 return m.AgentID
507 }
508 return nil
509 }
510
511 func (m *Event_Failure) GetExecutorID() *mesos.ExecutorID {
512 if m != nil {
513 return m.ExecutorID
514 }
515 return nil
516 }
517
518 func (m *Event_Failure) GetStatus() int32 {
519 if m != nil && m.Status != nil {
520 return *m.Status
521 }
522 return 0
523 }
524
525 // Received when there is an unrecoverable error in the scheduler (e.g.,
526 // scheduler failed over, rate limiting, authorization errors etc.). The
527 // scheduler should abort on receiving this event.
528 type Event_Error struct {
529 Message string `protobuf:"bytes,1,req,name=message" json:"message"`
530 }
531
532 func (m *Event_Error) Reset() { *m = Event_Error{} }
533 func (*Event_Error) ProtoMessage() {}
534 func (*Event_Error) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{0, 8} }
535
536 func (m *Event_Error) GetMessage() string {
537 if m != nil {
538 return m.Message
539 }
540 return ""
541 }
542
543 // *
544 // Scheduler call API.
545 //
546 // Like Event, a Call is described using the standard protocol buffer
547 // "union" trick (see above).
548 type Call struct {
549 // Identifies who generated this call. Master assigns a framework id
550 // when a new scheduler subscribes for the first time. Once assigned,
551 // the scheduler must set the 'framework_id' here and within its
552 // FrameworkInfo (in any further 'Subscribe' calls). This allows the
553 // master to identify a scheduler correctly across disconnections,
554 // failovers, etc.
555 FrameworkID *mesos.FrameworkID `protobuf:"bytes,1,opt,name=framework_id,json=frameworkId" json:"framework_id,omitempty"`
556 // Type of the call, indicates which optional field below should be
557 // present if that type has a nested message definition.
558 // See comments on `Event::Type` above on the reasoning behind this field being optional.
559 Type Call_Type `protobuf:"varint,2,opt,name=type,enum=mesos.scheduler.Call_Type" json:"type"`
560 Subscribe *Call_Subscribe `protobuf:"bytes,3,opt,name=subscribe" json:"subscribe,omitempty"`
561 Accept *Call_Accept `protobuf:"bytes,4,opt,name=accept" json:"accept,omitempty"`
562 Decline *Call_Decline `protobuf:"bytes,5,opt,name=decline" json:"decline,omitempty"`
563 AcceptInverseOffers *Call_AcceptInverseOffers `protobuf:"bytes,13,opt,name=accept_inverse_offers,json=acceptInverseOffers" json:"accept_inverse_offers,omitempty"`
564 DeclineInverseOffers *Call_DeclineInverseOffers `protobuf:"bytes,14,opt,name=decline_inverse_offers,json=declineInverseOffers" json:"decline_inverse_offers,omitempty"`
565 Revive *Call_Revive `protobuf:"bytes,15,opt,name=revive" json:"revive,omitempty"`
566 Kill *Call_Kill `protobuf:"bytes,6,opt,name=kill" json:"kill,omitempty"`
567 Shutdown *Call_Shutdown `protobuf:"bytes,7,opt,name=shutdown" json:"shutdown,omitempty"`
568 Acknowledge *Call_Acknowledge `protobuf:"bytes,8,opt,name=acknowledge" json:"acknowledge,omitempty"`
569 Reconcile *Call_Reconcile `protobuf:"bytes,9,opt,name=reconcile" json:"reconcile,omitempty"`
570 Message *Call_Message `protobuf:"bytes,10,opt,name=message" json:"message,omitempty"`
571 Request *Call_Request `protobuf:"bytes,11,opt,name=request" json:"request,omitempty"`
572 Suppress *Call_Suppress `protobuf:"bytes,16,opt,name=suppress" json:"suppress,omitempty"`
573 }
574
575 func (m *Call) Reset() { *m = Call{} }
576 func (*Call) ProtoMessage() {}
577 func (*Call) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1} }
578
579 func (m *Call) GetFrameworkID() *mesos.FrameworkID {
580 if m != nil {
581 return m.FrameworkID
582 }
583 return nil
584 }
585
586 func (m *Call) GetType() Call_Type {
587 if m != nil {
588 return m.Type
589 }
590 return Call_UNKNOWN
591 }
592
593 func (m *Call) GetSubscribe() *Call_Subscribe {
594 if m != nil {
595 return m.Subscribe
596 }
597 return nil
598 }
599
600 func (m *Call) GetAccept() *Call_Accept {
601 if m != nil {
602 return m.Accept
603 }
604 return nil
605 }
606
607 func (m *Call) GetDecline() *Call_Decline {
608 if m != nil {
609 return m.Decline
610 }
611 return nil
612 }
613
614 func (m *Call) GetAcceptInverseOffers() *Call_AcceptInverseOffers {
615 if m != nil {
616 return m.AcceptInverseOffers
617 }
618 return nil
619 }
620
621 func (m *Call) GetDeclineInverseOffers() *Call_DeclineInverseOffers {
622 if m != nil {
623 return m.DeclineInverseOffers
624 }
625 return nil
626 }
627
628 func (m *Call) GetRevive() *Call_Revive {
629 if m != nil {
630 return m.Revive
631 }
632 return nil
633 }
634
635 func (m *Call) GetKill() *Call_Kill {
636 if m != nil {
637 return m.Kill
638 }
639 return nil
640 }
641
642 func (m *Call) GetShutdown() *Call_Shutdown {
643 if m != nil {
644 return m.Shutdown
645 }
646 return nil
647 }
648
649 func (m *Call) GetAcknowledge() *Call_Acknowledge {
650 if m != nil {
651 return m.Acknowledge
652 }
653 return nil
654 }
655
656 func (m *Call) GetReconcile() *Call_Reconcile {
657 if m != nil {
658 return m.Reconcile
659 }
660 return nil
661 }
662
663 func (m *Call) GetMessage() *Call_Message {
664 if m != nil {
665 return m.Message
666 }
667 return nil
668 }
669
670 func (m *Call) GetRequest() *Call_Request {
671 if m != nil {
672 return m.Request
673 }
674 return nil
675 }
676
677 func (m *Call) GetSuppress() *Call_Suppress {
678 if m != nil {
679 return m.Suppress
680 }
681 return nil
682 }
683
684 // Subscribes the scheduler with the master to receive events. A
685 // scheduler must send other calls only after it has received the
686 // SUBCRIBED event.
687 type Call_Subscribe struct {
688 // See the comments below on 'framework_id' on the semantics for
689 // 'framework_info.id'.
690 FrameworkInfo *mesos.FrameworkInfo `protobuf:"bytes,1,req,name=framework_info,json=frameworkInfo" json:"framework_info,omitempty"`
691 // List of suppressed roles for which the framework does not wish to be
692 // offered resources. The framework can decide to suppress all or a subset
693 // of roles the framework (re)registers as.
694 SuppressedRoles []string `protobuf:"bytes,2,rep,name=suppressed_roles,json=suppressedRoles" json:"suppressed_roles,omitempty"`
695 }
696
697 func (m *Call_Subscribe) Reset() { *m = Call_Subscribe{} }
698 func (*Call_Subscribe) ProtoMessage() {}
699 func (*Call_Subscribe) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 0} }
700
701 func (m *Call_Subscribe) GetFrameworkInfo() *mesos.FrameworkInfo {
702 if m != nil {
703 return m.FrameworkInfo
704 }
705 return nil
706 }
707
708 func (m *Call_Subscribe) GetSuppressedRoles() []string {
709 if m != nil {
710 return m.SuppressedRoles
711 }
712 return nil
713 }
714
715 // Accepts an offer, performing the specified operations
716 // in a sequential manner.
717 //
718 // E.g. Launch a task with a newly reserved persistent volume:
719 //
720 // Accept {
721 // offer_ids: [ ... ]
722 // operations: [
723 // { type: RESERVE,
724 // reserve: { resources: [ disk(role):2 ] } }
725 // { type: CREATE,
726 // create: { volumes: [ disk(role):1+persistence ] } }
727 // { type: LAUNCH,
728 // launch: { task_infos ... disk(role):1;disk(role):1+persistence } }
729 // ]
730 // }
731 //
732 // Note that any of the offer’s resources not used in the 'Accept'
733 // call (e.g., to launch a task) are considered unused and might be
734 // reoffered to other frameworks. In other words, the same OfferID
735 // cannot be used in more than one 'Accept' call.
736 type Call_Accept struct {
737 OfferIDs []mesos.OfferID `protobuf:"bytes,1,rep,name=offer_ids,json=offerIds" json:"offer_ids"`
738 Operations []mesos.Offer_Operation `protobuf:"bytes,2,rep,name=operations" json:"operations"`
739 Filters *mesos.Filters `protobuf:"bytes,3,opt,name=filters" json:"filters,omitempty"`
740 }
741
742 func (m *Call_Accept) Reset() { *m = Call_Accept{} }
743 func (*Call_Accept) ProtoMessage() {}
744 func (*Call_Accept) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 1} }
745
746 func (m *Call_Accept) GetOfferIDs() []mesos.OfferID {
747 if m != nil {
748 return m.OfferIDs
749 }
750 return nil
751 }
752
753 func (m *Call_Accept) GetOperations() []mesos.Offer_Operation {
754 if m != nil {
755 return m.Operations
756 }
757 return nil
758 }
759
760 func (m *Call_Accept) GetFilters() *mesos.Filters {
761 if m != nil {
762 return m.Filters
763 }
764 return nil
765 }
766
767 // Declines an offer, signaling the master to potentially reoffer
768 // the resources to a different framework. Note that this is same
769 // as sending an Accept call with no operations. See comments on
770 // top of 'Accept' for semantics.
771 type Call_Decline struct {
772 OfferIDs []mesos.OfferID `protobuf:"bytes,1,rep,name=offer_ids,json=offerIds" json:"offer_ids"`
773 Filters *mesos.Filters `protobuf:"bytes,2,opt,name=filters" json:"filters,omitempty"`
774 }
775
776 func (m *Call_Decline) Reset() { *m = Call_Decline{} }
777 func (*Call_Decline) ProtoMessage() {}
778 func (*Call_Decline) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 2} }
779
780 func (m *Call_Decline) GetOfferIDs() []mesos.OfferID {
781 if m != nil {
782 return m.OfferIDs
783 }
784 return nil
785 }
786
787 func (m *Call_Decline) GetFilters() *mesos.Filters {
788 if m != nil {
789 return m.Filters
790 }
791 return nil
792 }
793
794 // Accepts an inverse offer. Inverse offers should only be accepted
795 // if the resources in the offer can be safely evacuated before the
796 // provided unavailability.
797 type Call_AcceptInverseOffers struct {
798 InverseOfferIDs []mesos.OfferID `protobuf:"bytes,1,rep,name=inverse_offer_ids,json=inverseOfferIds" json:"inverse_offer_ids"`
799 Filters *mesos.Filters `protobuf:"bytes,2,opt,name=filters" json:"filters,omitempty"`
800 }
801
802 func (m *Call_AcceptInverseOffers) Reset() { *m = Call_AcceptInverseOffers{} }
803 func (*Call_AcceptInverseOffers) ProtoMessage() {}
804 func (*Call_AcceptInverseOffers) Descriptor() ([]byte, []int) {
805 return fileDescriptorScheduler, []int{1, 3}
806 }
807
808 func (m *Call_AcceptInverseOffers) GetInverseOfferIDs() []mesos.OfferID {
809 if m != nil {
810 return m.InverseOfferIDs
811 }
812 return nil
813 }
814
815 func (m *Call_AcceptInverseOffers) GetFilters() *mesos.Filters {
816 if m != nil {
817 return m.Filters
818 }
819 return nil
820 }
821
822 // Declines an inverse offer. Inverse offers should be declined if
823 // the resources in the offer might not be safely evacuated before
824 // the provided unavailability.
825 type Call_DeclineInverseOffers struct {
826 InverseOfferIDs []mesos.OfferID `protobuf:"bytes,1,rep,name=inverse_offer_ids,json=inverseOfferIds" json:"inverse_offer_ids"`
827 Filters *mesos.Filters `protobuf:"bytes,2,opt,name=filters" json:"filters,omitempty"`
828 }
829
830 func (m *Call_DeclineInverseOffers) Reset() { *m = Call_DeclineInverseOffers{} }
831 func (*Call_DeclineInverseOffers) ProtoMessage() {}
832 func (*Call_DeclineInverseOffers) Descriptor() ([]byte, []int) {
833 return fileDescriptorScheduler, []int{1, 4}
834 }
835
836 func (m *Call_DeclineInverseOffers) GetInverseOfferIDs() []mesos.OfferID {
837 if m != nil {
838 return m.InverseOfferIDs
839 }
840 return nil
841 }
842
843 func (m *Call_DeclineInverseOffers) GetFilters() *mesos.Filters {
844 if m != nil {
845 return m.Filters
846 }
847 return nil
848 }
849
850 // Revive offers for the specified roles. If `roles` is empty,
851 // the `REVIVE` call will revive offers for all of the roles
852 // the framework is currently subscribed to.
853 type Call_Revive struct {
854 Roles []string `protobuf:"bytes,1,rep,name=roles" json:"roles,omitempty"`
855 }
856
857 func (m *Call_Revive) Reset() { *m = Call_Revive{} }
858 func (*Call_Revive) ProtoMessage() {}
859 func (*Call_Revive) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 5} }
860
861 func (m *Call_Revive) GetRoles() []string {
862 if m != nil {
863 return m.Roles
864 }
865 return nil
866 }
867
868 // Kills a specific task. If the scheduler has a custom executor,
869 // the kill is forwarded to the executor and it is up to the
870 // executor to kill the task and send a TASK_KILLED (or TASK_FAILED)
871 // update. Note that Mesos releases the resources for a task once it
872 // receives a terminal update (See TaskState in v1/mesos.proto) for
873 // it. If the task is unknown to the master, a TASK_LOST update is
874 // generated.
875 //
876 // If a task within a task group is killed before the group is
877 // delivered to the executor, all tasks in the task group are
878 // killed. When a task group has been delivered to the executor,
879 // it is up to the executor to decide how to deal with the kill.
880 // Note The default Mesos executor will currently kill all the
881 // tasks in the task group if it gets a kill for any task.
882 type Call_Kill struct {
883 TaskID mesos.TaskID `protobuf:"bytes,1,req,name=task_id,json=taskId" json:"task_id"`
884 AgentID *mesos.AgentID `protobuf:"bytes,2,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
885 // If set, overrides any previously specified kill policy for this task.
886 // This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
887 // Can be used to forcefully kill a task which is already being killed.
888 KillPolicy *mesos.KillPolicy `protobuf:"bytes,3,opt,name=kill_policy,json=killPolicy" json:"kill_policy,omitempty"`
889 }
890
891 func (m *Call_Kill) Reset() { *m = Call_Kill{} }
892 func (*Call_Kill) ProtoMessage() {}
893 func (*Call_Kill) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 6} }
894
895 func (m *Call_Kill) GetTaskID() mesos.TaskID {
896 if m != nil {
897 return m.TaskID
898 }
899 return mesos.TaskID{}
900 }
901
902 func (m *Call_Kill) GetAgentID() *mesos.AgentID {
903 if m != nil {
904 return m.AgentID
905 }
906 return nil
907 }
908
909 func (m *Call_Kill) GetKillPolicy() *mesos.KillPolicy {
910 if m != nil {
911 return m.KillPolicy
912 }
913 return nil
914 }
915
916 // Shuts down a custom executor. When the executor gets a shutdown
917 // event, it is expected to kill all its tasks (and send TASK_KILLED
918 // updates) and terminate. If the executor doesn’t terminate within
919 // a certain timeout (configurable via
920 // '--executor_shutdown_grace_period' agent flag), the agent will
921 // forcefully destroy the container (executor and its tasks) and
922 // transition its active tasks to TASK_LOST.
923 type Call_Shutdown struct {
924 ExecutorID mesos.ExecutorID `protobuf:"bytes,1,req,name=executor_id,json=executorId" json:"executor_id"`
925 AgentID mesos.AgentID `protobuf:"bytes,2,req,name=agent_id,json=agentId" json:"agent_id"`
926 }
927
928 func (m *Call_Shutdown) Reset() { *m = Call_Shutdown{} }
929 func (*Call_Shutdown) ProtoMessage() {}
930 func (*Call_Shutdown) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 7} }
931
932 func (m *Call_Shutdown) GetExecutorID() mesos.ExecutorID {
933 if m != nil {
934 return m.ExecutorID
935 }
936 return mesos.ExecutorID{}
937 }
938
939 func (m *Call_Shutdown) GetAgentID() mesos.AgentID {
940 if m != nil {
941 return m.AgentID
942 }
943 return mesos.AgentID{}
944 }
945
946 // Acknowledges the receipt of status update. Schedulers are
947 // responsible for explicitly acknowledging the receipt of status
948 // updates that have 'Update.status().uuid()' field set. Such status
949 // updates are retried by the agent until they are acknowledged by
950 // the scheduler.
951 type Call_Acknowledge struct {
952 AgentID mesos.AgentID `protobuf:"bytes,1,req,name=agent_id,json=agentId" json:"agent_id"`
953 TaskID mesos.TaskID `protobuf:"bytes,2,req,name=task_id,json=taskId" json:"task_id"`
954 UUID []byte `protobuf:"bytes,3,req,name=uuid" json:"uuid,omitempty"`
955 }
956
957 func (m *Call_Acknowledge) Reset() { *m = Call_Acknowledge{} }
958 func (*Call_Acknowledge) ProtoMessage() {}
959 func (*Call_Acknowledge) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 8} }
960
961 func (m *Call_Acknowledge) GetAgentID() mesos.AgentID {
962 if m != nil {
963 return m.AgentID
964 }
965 return mesos.AgentID{}
966 }
967
968 func (m *Call_Acknowledge) GetTaskID() mesos.TaskID {
969 if m != nil {
970 return m.TaskID
971 }
972 return mesos.TaskID{}
973 }
974
975 func (m *Call_Acknowledge) GetUUID() []byte {
976 if m != nil {
977 return m.UUID
978 }
979 return nil
980 }
981
982 // Allows the scheduler to query the status for non-terminal tasks.
983 // This causes the master to send back the latest task status for
984 // each task in 'tasks', if possible. Tasks that are no longer known
985 // will result in a TASK_LOST, TASK_UNKNOWN, or TASK_UNREACHABLE update.
986 // If 'tasks' is empty, then the master will send the latest status
987 // for each task currently known.
988 type Call_Reconcile struct {
989 Tasks []Call_Reconcile_Task `protobuf:"bytes,1,rep,name=tasks" json:"tasks"`
990 }
991
992 func (m *Call_Reconcile) Reset() { *m = Call_Reconcile{} }
993 func (*Call_Reconcile) ProtoMessage() {}
994 func (*Call_Reconcile) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 9} }
995
996 func (m *Call_Reconcile) GetTasks() []Call_Reconcile_Task {
997 if m != nil {
998 return m.Tasks
999 }
1000 return nil
1001 }
1002
1003 // TODO(vinod): Support arbitrary queries than just state of tasks.
1004 type Call_Reconcile_Task struct {
1005 TaskID mesos.TaskID `protobuf:"bytes,1,req,name=task_id,json=taskId" json:"task_id"`
1006 AgentID *mesos.AgentID `protobuf:"bytes,2,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
1007 }
1008
1009 func (m *Call_Reconcile_Task) Reset() { *m = Call_Reconcile_Task{} }
1010 func (*Call_Reconcile_Task) ProtoMessage() {}
1011 func (*Call_Reconcile_Task) Descriptor() ([]byte, []int) {
1012 return fileDescriptorScheduler, []int{1, 9, 0}
1013 }
1014
1015 func (m *Call_Reconcile_Task) GetTaskID() mesos.TaskID {
1016 if m != nil {
1017 return m.TaskID
1018 }
1019 return mesos.TaskID{}
1020 }
1021
1022 func (m *Call_Reconcile_Task) GetAgentID() *mesos.AgentID {
1023 if m != nil {
1024 return m.AgentID
1025 }
1026 return nil
1027 }
1028
1029 // Sends arbitrary binary data to the executor. Note that Mesos
1030 // neither interprets this data nor makes any guarantees about the
1031 // delivery of this message to the executor.
1032 type Call_Message struct {
1033 AgentID mesos.AgentID `protobuf:"bytes,1,req,name=agent_id,json=agentId" json:"agent_id"`
1034 ExecutorID mesos.ExecutorID `protobuf:"bytes,2,req,name=executor_id,json=executorId" json:"executor_id"`
1035 Data []byte `protobuf:"bytes,3,req,name=data" json:"data,omitempty"`
1036 }
1037
1038 func (m *Call_Message) Reset() { *m = Call_Message{} }
1039 func (*Call_Message) ProtoMessage() {}
1040 func (*Call_Message) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 10} }
1041
1042 func (m *Call_Message) GetAgentID() mesos.AgentID {
1043 if m != nil {
1044 return m.AgentID
1045 }
1046 return mesos.AgentID{}
1047 }
1048
1049 func (m *Call_Message) GetExecutorID() mesos.ExecutorID {
1050 if m != nil {
1051 return m.ExecutorID
1052 }
1053 return mesos.ExecutorID{}
1054 }
1055
1056 func (m *Call_Message) GetData() []byte {
1057 if m != nil {
1058 return m.Data
1059 }
1060 return nil
1061 }
1062
1063 // Requests a specific set of resources from Mesos's allocator. If
1064 // the allocator has support for this, corresponding offers will be
1065 // sent asynchronously via the OFFERS event(s).
1066 //
1067 // NOTE: The built-in hierarchical allocator doesn't have support
1068 // for this call and hence simply ignores it.
1069 type Call_Request struct {
1070 Requests []mesos.Request `protobuf:"bytes,1,rep,name=requests" json:"requests"`
1071 }
1072
1073 func (m *Call_Request) Reset() { *m = Call_Request{} }
1074 func (*Call_Request) ProtoMessage() {}
1075 func (*Call_Request) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 11} }
1076
1077 func (m *Call_Request) GetRequests() []mesos.Request {
1078 if m != nil {
1079 return m.Requests
1080 }
1081 return nil
1082 }
1083
1084 // Suppress offers for the specified roles. If `roles` is empty,
1085 // the `SUPPRESS` call will suppress offers for all of the roles
1086 // the framework is currently subscribed to.
1087 type Call_Suppress struct {
1088 Roles []string `protobuf:"bytes,1,rep,name=roles" json:"roles,omitempty"`
1089 }
1090
1091 func (m *Call_Suppress) Reset() { *m = Call_Suppress{} }
1092 func (*Call_Suppress) ProtoMessage() {}
1093 func (*Call_Suppress) Descriptor() ([]byte, []int) { return fileDescriptorScheduler, []int{1, 12} }
1094
1095 func (m *Call_Suppress) GetRoles() []string {
1096 if m != nil {
1097 return m.Roles
1098 }
1099 return nil
1100 }
1101
1102 func init() {
1103 proto.RegisterType((*Event)(nil), "mesos.scheduler.Event")
1104 proto.RegisterType((*Event_Subscribed)(nil), "mesos.scheduler.Event.Subscribed")
1105 proto.RegisterType((*Event_Offers)(nil), "mesos.scheduler.Event.Offers")
1106 proto.RegisterType((*Event_InverseOffers)(nil), "mesos.scheduler.Event.InverseOffers")
1107 proto.RegisterType((*Event_Rescind)(nil), "mesos.scheduler.Event.Rescind")
1108 proto.RegisterType((*Event_RescindInverseOffer)(nil), "mesos.scheduler.Event.RescindInverseOffer")
1109 proto.RegisterType((*Event_Update)(nil), "mesos.scheduler.Event.Update")
1110 proto.RegisterType((*Event_Message)(nil), "mesos.scheduler.Event.Message")
1111 proto.RegisterType((*Event_Failure)(nil), "mesos.scheduler.Event.Failure")
1112 proto.RegisterType((*Event_Error)(nil), "mesos.scheduler.Event.Error")
1113 proto.RegisterType((*Call)(nil), "mesos.scheduler.Call")
1114 proto.RegisterType((*Call_Subscribe)(nil), "mesos.scheduler.Call.Subscribe")
1115 proto.RegisterType((*Call_Accept)(nil), "mesos.scheduler.Call.Accept")
1116 proto.RegisterType((*Call_Decline)(nil), "mesos.scheduler.Call.Decline")
1117 proto.RegisterType((*Call_AcceptInverseOffers)(nil), "mesos.scheduler.Call.AcceptInverseOffers")
1118 proto.RegisterType((*Call_DeclineInverseOffers)(nil), "mesos.scheduler.Call.DeclineInverseOffers")
1119 proto.RegisterType((*Call_Revive)(nil), "mesos.scheduler.Call.Revive")
1120 proto.RegisterType((*Call_Kill)(nil), "mesos.scheduler.Call.Kill")
1121 proto.RegisterType((*Call_Shutdown)(nil), "mesos.scheduler.Call.Shutdown")
1122 proto.RegisterType((*Call_Acknowledge)(nil), "mesos.scheduler.Call.Acknowledge")
1123 proto.RegisterType((*Call_Reconcile)(nil), "mesos.scheduler.Call.Reconcile")
1124 proto.RegisterType((*Call_Reconcile_Task)(nil), "mesos.scheduler.Call.Reconcile.Task")
1125 proto.RegisterType((*Call_Message)(nil), "mesos.scheduler.Call.Message")
1126 proto.RegisterType((*Call_Request)(nil), "mesos.scheduler.Call.Request")
1127 proto.RegisterType((*Call_Suppress)(nil), "mesos.scheduler.Call.Suppress")
1128 proto.RegisterEnum("mesos.scheduler.Event_Type", Event_Type_name, Event_Type_value)
1129 proto.RegisterEnum("mesos.scheduler.Call_Type", Call_Type_name, Call_Type_value)
1130 }
1131 func (x Event_Type) String() string {
1132 s, ok := Event_Type_name[int32(x)]
1133 if ok {
1134 return s
1135 }
1136 return strconv.Itoa(int(x))
1137 }
1138 func (x Call_Type) String() string {
1139 s, ok := Call_Type_name[int32(x)]
1140 if ok {
1141 return s
1142 }
1143 return strconv.Itoa(int(x))
1144 }
1145 func (this *Event) VerboseEqual(that interface{}) error {
1146 if that == nil {
1147 if this == nil {
1148 return nil
1149 }
1150 return fmt.Errorf("that == nil && this != nil")
1151 }
1152
1153 that1, ok := that.(*Event)
1154 if !ok {
1155 that2, ok := that.(Event)
1156 if ok {
1157 that1 = &that2
1158 } else {
1159 return fmt.Errorf("that is not of type *Event")
1160 }
1161 }
1162 if that1 == nil {
1163 if this == nil {
1164 return nil
1165 }
1166 return fmt.Errorf("that is type *Event but is nil && this != nil")
1167 } else if this == nil {
1168 return fmt.Errorf("that is type *Event but is not nil && this == nil")
1169 }
1170 if this.Type != that1.Type {
1171 return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
1172 }
1173 if !this.Subscribed.Equal(that1.Subscribed) {
1174 return fmt.Errorf("Subscribed this(%v) Not Equal that(%v)", this.Subscribed, that1.Subscribed)
1175 }
1176 if !this.Offers.Equal(that1.Offers) {
1177 return fmt.Errorf("Offers this(%v) Not Equal that(%v)", this.Offers, that1.Offers)
1178 }
1179 if !this.InverseOffers.Equal(that1.InverseOffers) {
1180 return fmt.Errorf("InverseOffers this(%v) Not Equal that(%v)", this.InverseOffers, that1.InverseOffers)
1181 }
1182 if !this.Rescind.Equal(that1.Rescind) {
1183 return fmt.Errorf("Rescind this(%v) Not Equal that(%v)", this.Rescind, that1.Rescind)
1184 }
1185 if !this.RescindInverseOffer.Equal(that1.RescindInverseOffer) {
1186 return fmt.Errorf("RescindInverseOffer this(%v) Not Equal that(%v)", this.RescindInverseOffer, that1.RescindInverseOffer)
1187 }
1188 if !this.Update.Equal(that1.Update) {
1189 return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update)
1190 }
1191 if !this.Message.Equal(that1.Message) {
1192 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
1193 }
1194 if !this.Failure.Equal(that1.Failure) {
1195 return fmt.Errorf("Failure this(%v) Not Equal that(%v)", this.Failure, that1.Failure)
1196 }
1197 if !this.Error.Equal(that1.Error) {
1198 return fmt.Errorf("Error this(%v) Not Equal that(%v)", this.Error, that1.Error)
1199 }
1200 return nil
1201 }
1202 func (this *Event) Equal(that interface{}) bool {
1203 if that == nil {
1204 if this == nil {
1205 return true
1206 }
1207 return false
1208 }
1209
1210 that1, ok := that.(*Event)
1211 if !ok {
1212 that2, ok := that.(Event)
1213 if ok {
1214 that1 = &that2
1215 } else {
1216 return false
1217 }
1218 }
1219 if that1 == nil {
1220 if this == nil {
1221 return true
1222 }
1223 return false
1224 } else if this == nil {
1225 return false
1226 }
1227 if this.Type != that1.Type {
1228 return false
1229 }
1230 if !this.Subscribed.Equal(that1.Subscribed) {
1231 return false
1232 }
1233 if !this.Offers.Equal(that1.Offers) {
1234 return false
1235 }
1236 if !this.InverseOffers.Equal(that1.InverseOffers) {
1237 return false
1238 }
1239 if !this.Rescind.Equal(that1.Rescind) {
1240 return false
1241 }
1242 if !this.RescindInverseOffer.Equal(that1.RescindInverseOffer) {
1243 return false
1244 }
1245 if !this.Update.Equal(that1.Update) {
1246 return false
1247 }
1248 if !this.Message.Equal(that1.Message) {
1249 return false
1250 }
1251 if !this.Failure.Equal(that1.Failure) {
1252 return false
1253 }
1254 if !this.Error.Equal(that1.Error) {
1255 return false
1256 }
1257 return true
1258 }
1259 func (this *Event_Subscribed) VerboseEqual(that interface{}) error {
1260 if that == nil {
1261 if this == nil {
1262 return nil
1263 }
1264 return fmt.Errorf("that == nil && this != nil")
1265 }
1266
1267 that1, ok := that.(*Event_Subscribed)
1268 if !ok {
1269 that2, ok := that.(Event_Subscribed)
1270 if ok {
1271 that1 = &that2
1272 } else {
1273 return fmt.Errorf("that is not of type *Event_Subscribed")
1274 }
1275 }
1276 if that1 == nil {
1277 if this == nil {
1278 return nil
1279 }
1280 return fmt.Errorf("that is type *Event_Subscribed but is nil && this != nil")
1281 } else if this == nil {
1282 return fmt.Errorf("that is type *Event_Subscribed but is not nil && this == nil")
1283 }
1284 if !this.FrameworkID.Equal(that1.FrameworkID) {
1285 return fmt.Errorf("FrameworkID this(%v) Not Equal that(%v)", this.FrameworkID, that1.FrameworkID)
1286 }
1287 if this.HeartbeatIntervalSeconds != nil && that1.HeartbeatIntervalSeconds != nil {
1288 if *this.HeartbeatIntervalSeconds != *that1.HeartbeatIntervalSeconds {
1289 return fmt.Errorf("HeartbeatIntervalSeconds this(%v) Not Equal that(%v)", *this.HeartbeatIntervalSeconds, *that1.HeartbeatIntervalSeconds)
1290 }
1291 } else if this.HeartbeatIntervalSeconds != nil {
1292 return fmt.Errorf("this.HeartbeatIntervalSeconds == nil && that.HeartbeatIntervalSeconds != nil")
1293 } else if that1.HeartbeatIntervalSeconds != nil {
1294 return fmt.Errorf("HeartbeatIntervalSeconds this(%v) Not Equal that(%v)", this.HeartbeatIntervalSeconds, that1.HeartbeatIntervalSeconds)
1295 }
1296 if !this.MasterInfo.Equal(that1.MasterInfo) {
1297 return fmt.Errorf("MasterInfo this(%v) Not Equal that(%v)", this.MasterInfo, that1.MasterInfo)
1298 }
1299 return nil
1300 }
1301 func (this *Event_Subscribed) Equal(that interface{}) bool {
1302 if that == nil {
1303 if this == nil {
1304 return true
1305 }
1306 return false
1307 }
1308
1309 that1, ok := that.(*Event_Subscribed)
1310 if !ok {
1311 that2, ok := that.(Event_Subscribed)
1312 if ok {
1313 that1 = &that2
1314 } else {
1315 return false
1316 }
1317 }
1318 if that1 == nil {
1319 if this == nil {
1320 return true
1321 }
1322 return false
1323 } else if this == nil {
1324 return false
1325 }
1326 if !this.FrameworkID.Equal(that1.FrameworkID) {
1327 return false
1328 }
1329 if this.HeartbeatIntervalSeconds != nil && that1.HeartbeatIntervalSeconds != nil {
1330 if *this.HeartbeatIntervalSeconds != *that1.HeartbeatIntervalSeconds {
1331 return false
1332 }
1333 } else if this.HeartbeatIntervalSeconds != nil {
1334 return false
1335 } else if that1.HeartbeatIntervalSeconds != nil {
1336 return false
1337 }
1338 if !this.MasterInfo.Equal(that1.MasterInfo) {
1339 return false
1340 }
1341 return true
1342 }
1343 func (this *Event_Offers) VerboseEqual(that interface{}) error {
1344 if that == nil {
1345 if this == nil {
1346 return nil
1347 }
1348 return fmt.Errorf("that == nil && this != nil")
1349 }
1350
1351 that1, ok := that.(*Event_Offers)
1352 if !ok {
1353 that2, ok := that.(Event_Offers)
1354 if ok {
1355 that1 = &that2
1356 } else {
1357 return fmt.Errorf("that is not of type *Event_Offers")
1358 }
1359 }
1360 if that1 == nil {
1361 if this == nil {
1362 return nil
1363 }
1364 return fmt.Errorf("that is type *Event_Offers but is nil && this != nil")
1365 } else if this == nil {
1366 return fmt.Errorf("that is type *Event_Offers but is not nil && this == nil")
1367 }
1368 if len(this.Offers) != len(that1.Offers) {
1369 return fmt.Errorf("Offers this(%v) Not Equal that(%v)", len(this.Offers), len(that1.Offers))
1370 }
1371 for i := range this.Offers {
1372 if !this.Offers[i].Equal(&that1.Offers[i]) {
1373 return fmt.Errorf("Offers this[%v](%v) Not Equal that[%v](%v)", i, this.Offers[i], i, that1.Offers[i])
1374 }
1375 }
1376 return nil
1377 }
1378 func (this *Event_Offers) Equal(that interface{}) bool {
1379 if that == nil {
1380 if this == nil {
1381 return true
1382 }
1383 return false
1384 }
1385
1386 that1, ok := that.(*Event_Offers)
1387 if !ok {
1388 that2, ok := that.(Event_Offers)
1389 if ok {
1390 that1 = &that2
1391 } else {
1392 return false
1393 }
1394 }
1395 if that1 == nil {
1396 if this == nil {
1397 return true
1398 }
1399 return false
1400 } else if this == nil {
1401 return false
1402 }
1403 if len(this.Offers) != len(that1.Offers) {
1404 return false
1405 }
1406 for i := range this.Offers {
1407 if !this.Offers[i].Equal(&that1.Offers[i]) {
1408 return false
1409 }
1410 }
1411 return true
1412 }
1413 func (this *Event_InverseOffers) VerboseEqual(that interface{}) error {
1414 if that == nil {
1415 if this == nil {
1416 return nil
1417 }
1418 return fmt.Errorf("that == nil && this != nil")
1419 }
1420
1421 that1, ok := that.(*Event_InverseOffers)
1422 if !ok {
1423 that2, ok := that.(Event_InverseOffers)
1424 if ok {
1425 that1 = &that2
1426 } else {
1427 return fmt.Errorf("that is not of type *Event_InverseOffers")
1428 }
1429 }
1430 if that1 == nil {
1431 if this == nil {
1432 return nil
1433 }
1434 return fmt.Errorf("that is type *Event_InverseOffers but is nil && this != nil")
1435 } else if this == nil {
1436 return fmt.Errorf("that is type *Event_InverseOffers but is not nil && this == nil")
1437 }
1438 if len(this.InverseOffers) != len(that1.InverseOffers) {
1439 return fmt.Errorf("InverseOffers this(%v) Not Equal that(%v)", len(this.InverseOffers), len(that1.InverseOffers))
1440 }
1441 for i := range this.InverseOffers {
1442 if !this.InverseOffers[i].Equal(&that1.InverseOffers[i]) {
1443 return fmt.Errorf("InverseOffers this[%v](%v) Not Equal that[%v](%v)", i, this.InverseOffers[i], i, that1.InverseOffers[i])
1444 }
1445 }
1446 return nil
1447 }
1448 func (this *Event_InverseOffers) Equal(that interface{}) bool {
1449 if that == nil {
1450 if this == nil {
1451 return true
1452 }
1453 return false
1454 }
1455
1456 that1, ok := that.(*Event_InverseOffers)
1457 if !ok {
1458 that2, ok := that.(Event_InverseOffers)
1459 if ok {
1460 that1 = &that2
1461 } else {
1462 return false
1463 }
1464 }
1465 if that1 == nil {
1466 if this == nil {
1467 return true
1468 }
1469 return false
1470 } else if this == nil {
1471 return false
1472 }
1473 if len(this.InverseOffers) != len(that1.InverseOffers) {
1474 return false
1475 }
1476 for i := range this.InverseOffers {
1477 if !this.InverseOffers[i].Equal(&that1.InverseOffers[i]) {
1478 return false
1479 }
1480 }
1481 return true
1482 }
1483 func (this *Event_Rescind) VerboseEqual(that interface{}) error {
1484 if that == nil {
1485 if this == nil {
1486 return nil
1487 }
1488 return fmt.Errorf("that == nil && this != nil")
1489 }
1490
1491 that1, ok := that.(*Event_Rescind)
1492 if !ok {
1493 that2, ok := that.(Event_Rescind)
1494 if ok {
1495 that1 = &that2
1496 } else {
1497 return fmt.Errorf("that is not of type *Event_Rescind")
1498 }
1499 }
1500 if that1 == nil {
1501 if this == nil {
1502 return nil
1503 }
1504 return fmt.Errorf("that is type *Event_Rescind but is nil && this != nil")
1505 } else if this == nil {
1506 return fmt.Errorf("that is type *Event_Rescind but is not nil && this == nil")
1507 }
1508 if !this.OfferID.Equal(&that1.OfferID) {
1509 return fmt.Errorf("OfferID this(%v) Not Equal that(%v)", this.OfferID, that1.OfferID)
1510 }
1511 return nil
1512 }
1513 func (this *Event_Rescind) Equal(that interface{}) bool {
1514 if that == nil {
1515 if this == nil {
1516 return true
1517 }
1518 return false
1519 }
1520
1521 that1, ok := that.(*Event_Rescind)
1522 if !ok {
1523 that2, ok := that.(Event_Rescind)
1524 if ok {
1525 that1 = &that2
1526 } else {
1527 return false
1528 }
1529 }
1530 if that1 == nil {
1531 if this == nil {
1532 return true
1533 }
1534 return false
1535 } else if this == nil {
1536 return false
1537 }
1538 if !this.OfferID.Equal(&that1.OfferID) {
1539 return false
1540 }
1541 return true
1542 }
1543 func (this *Event_RescindInverseOffer) VerboseEqual(that interface{}) error {
1544 if that == nil {
1545 if this == nil {
1546 return nil
1547 }
1548 return fmt.Errorf("that == nil && this != nil")
1549 }
1550
1551 that1, ok := that.(*Event_RescindInverseOffer)
1552 if !ok {
1553 that2, ok := that.(Event_RescindInverseOffer)
1554 if ok {
1555 that1 = &that2
1556 } else {
1557 return fmt.Errorf("that is not of type *Event_RescindInverseOffer")
1558 }
1559 }
1560 if that1 == nil {
1561 if this == nil {
1562 return nil
1563 }
1564 return fmt.Errorf("that is type *Event_RescindInverseOffer but is nil && this != nil")
1565 } else if this == nil {
1566 return fmt.Errorf("that is type *Event_RescindInverseOffer but is not nil && this == nil")
1567 }
1568 if !this.InverseOfferID.Equal(&that1.InverseOfferID) {
1569 return fmt.Errorf("InverseOfferID this(%v) Not Equal that(%v)", this.InverseOfferID, that1.InverseOfferID)
1570 }
1571 return nil
1572 }
1573 func (this *Event_RescindInverseOffer) Equal(that interface{}) bool {
1574 if that == nil {
1575 if this == nil {
1576 return true
1577 }
1578 return false
1579 }
1580
1581 that1, ok := that.(*Event_RescindInverseOffer)
1582 if !ok {
1583 that2, ok := that.(Event_RescindInverseOffer)
1584 if ok {
1585 that1 = &that2
1586 } else {
1587 return false
1588 }
1589 }
1590 if that1 == nil {
1591 if this == nil {
1592 return true
1593 }
1594 return false
1595 } else if this == nil {
1596 return false
1597 }
1598 if !this.InverseOfferID.Equal(&that1.InverseOfferID) {
1599 return false
1600 }
1601 return true
1602 }
1603 func (this *Event_Update) VerboseEqual(that interface{}) error {
1604 if that == nil {
1605 if this == nil {
1606 return nil
1607 }
1608 return fmt.Errorf("that == nil && this != nil")
1609 }
1610
1611 that1, ok := that.(*Event_Update)
1612 if !ok {
1613 that2, ok := that.(Event_Update)
1614 if ok {
1615 that1 = &that2
1616 } else {
1617 return fmt.Errorf("that is not of type *Event_Update")
1618 }
1619 }
1620 if that1 == nil {
1621 if this == nil {
1622 return nil
1623 }
1624 return fmt.Errorf("that is type *Event_Update but is nil && this != nil")
1625 } else if this == nil {
1626 return fmt.Errorf("that is type *Event_Update but is not nil && this == nil")
1627 }
1628 if !this.Status.Equal(&that1.Status) {
1629 return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
1630 }
1631 return nil
1632 }
1633 func (this *Event_Update) Equal(that interface{}) bool {
1634 if that == nil {
1635 if this == nil {
1636 return true
1637 }
1638 return false
1639 }
1640
1641 that1, ok := that.(*Event_Update)
1642 if !ok {
1643 that2, ok := that.(Event_Update)
1644 if ok {
1645 that1 = &that2
1646 } else {
1647 return false
1648 }
1649 }
1650 if that1 == nil {
1651 if this == nil {
1652 return true
1653 }
1654 return false
1655 } else if this == nil {
1656 return false
1657 }
1658 if !this.Status.Equal(&that1.Status) {
1659 return false
1660 }
1661 return true
1662 }
1663 func (this *Event_Message) VerboseEqual(that interface{}) error {
1664 if that == nil {
1665 if this == nil {
1666 return nil
1667 }
1668 return fmt.Errorf("that == nil && this != nil")
1669 }
1670
1671 that1, ok := that.(*Event_Message)
1672 if !ok {
1673 that2, ok := that.(Event_Message)
1674 if ok {
1675 that1 = &that2
1676 } else {
1677 return fmt.Errorf("that is not of type *Event_Message")
1678 }
1679 }
1680 if that1 == nil {
1681 if this == nil {
1682 return nil
1683 }
1684 return fmt.Errorf("that is type *Event_Message but is nil && this != nil")
1685 } else if this == nil {
1686 return fmt.Errorf("that is type *Event_Message but is not nil && this == nil")
1687 }
1688 if !this.AgentID.Equal(&that1.AgentID) {
1689 return fmt.Errorf("AgentID this(%v) Not Equal that(%v)", this.AgentID, that1.AgentID)
1690 }
1691 if !this.ExecutorID.Equal(&that1.ExecutorID) {
1692 return fmt.Errorf("ExecutorID this(%v) Not Equal that(%v)", this.ExecutorID, that1.ExecutorID)
1693 }
1694 if !bytes.Equal(this.Data, that1.Data) {
1695 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
1696 }
1697 return nil
1698 }
1699 func (this *Event_Message) Equal(that interface{}) bool {
1700 if that == nil {
1701 if this == nil {
1702 return true
1703 }
1704 return false
1705 }
1706
1707 that1, ok := that.(*Event_Message)
1708 if !ok {
1709 that2, ok := that.(Event_Message)
1710 if ok {
1711 that1 = &that2
1712 } else {
1713 return false
1714 }
1715 }
1716 if that1 == nil {
1717 if this == nil {
1718 return true
1719 }
1720 return false
1721 } else if this == nil {
1722 return false
1723 }
1724 if !this.AgentID.Equal(&that1.AgentID) {
1725 return false
1726 }
1727 if !this.ExecutorID.Equal(&that1.ExecutorID) {
1728 return false
1729 }
1730 if !bytes.Equal(this.Data, that1.Data) {
1731 return false
1732 }
1733 return true
1734 }
1735 func (this *Event_Failure) VerboseEqual(that interface{}) error {
1736 if that == nil {
1737 if this == nil {
1738 return nil
1739 }
1740 return fmt.Errorf("that == nil && this != nil")
1741 }
1742
1743 that1, ok := that.(*Event_Failure)
1744 if !ok {
1745 that2, ok := that.(Event_Failure)
1746 if ok {
1747 that1 = &that2
1748 } else {
1749 return fmt.Errorf("that is not of type *Event_Failure")
1750 }
1751 }
1752 if that1 == nil {
1753 if this == nil {
1754 return nil
1755 }
1756 return fmt.Errorf("that is type *Event_Failure but is nil && this != nil")
1757 } else if this == nil {
1758 return fmt.Errorf("that is type *Event_Failure but is not nil && this == nil")
1759 }
1760 if !this.AgentID.Equal(that1.AgentID) {
1761 return fmt.Errorf("AgentID this(%v) Not Equal that(%v)", this.AgentID, that1.AgentID)
1762 }
1763 if !this.ExecutorID.Equal(that1.ExecutorID) {
1764 return fmt.Errorf("ExecutorID this(%v) Not Equal that(%v)", this.ExecutorID, that1.ExecutorID)
1765 }
1766 if this.Status != nil && that1.Status != nil {
1767 if *this.Status != *that1.Status {
1768 return fmt.Errorf("Status this(%v) Not Equal that(%v)", *this.Status, *that1.Status)
1769 }
1770 } else if this.Status != nil {
1771 return fmt.Errorf("this.Status == nil && that.Status != nil")
1772 } else if that1.Status != nil {
1773 return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
1774 }
1775 return nil
1776 }
1777 func (this *Event_Failure) Equal(that interface{}) bool {
1778 if that == nil {
1779 if this == nil {
1780 return true
1781 }
1782 return false
1783 }
1784
1785 that1, ok := that.(*Event_Failure)
1786 if !ok {
1787 that2, ok := that.(Event_Failure)
1788 if ok {
1789 that1 = &that2
1790 } else {
1791 return false
1792 }
1793 }
1794 if that1 == nil {
1795 if this == nil {
1796 return true
1797 }
1798 return false
1799 } else if this == nil {
1800 return false
1801 }
1802 if !this.AgentID.Equal(that1.AgentID) {
1803 return false
1804 }
1805 if !this.ExecutorID.Equal(that1.ExecutorID) {
1806 return false
1807 }
1808 if this.Status != nil && that1.Status != nil {
1809 if *this.Status != *that1.Status {
1810 return false
1811 }
1812 } else if this.Status != nil {
1813 return false
1814 } else if that1.Status != nil {
1815 return false
1816 }
1817 return true
1818 }
1819 func (this *Event_Error) VerboseEqual(that interface{}) error {
1820 if that == nil {
1821 if this == nil {
1822 return nil
1823 }
1824 return fmt.Errorf("that == nil && this != nil")
1825 }
1826
1827 that1, ok := that.(*Event_Error)
1828 if !ok {
1829 that2, ok := that.(Event_Error)
1830 if ok {
1831 that1 = &that2
1832 } else {
1833 return fmt.Errorf("that is not of type *Event_Error")
1834 }
1835 }
1836 if that1 == nil {
1837 if this == nil {
1838 return nil
1839 }
1840 return fmt.Errorf("that is type *Event_Error but is nil && this != nil")
1841 } else if this == nil {
1842 return fmt.Errorf("that is type *Event_Error but is not nil && this == nil")
1843 }
1844 if this.Message != that1.Message {
1845 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
1846 }
1847 return nil
1848 }
1849 func (this *Event_Error) Equal(that interface{}) bool {
1850 if that == nil {
1851 if this == nil {
1852 return true
1853 }
1854 return false
1855 }
1856
1857 that1, ok := that.(*Event_Error)
1858 if !ok {
1859 that2, ok := that.(Event_Error)
1860 if ok {
1861 that1 = &that2
1862 } else {
1863 return false
1864 }
1865 }
1866 if that1 == nil {
1867 if this == nil {
1868 return true
1869 }
1870 return false
1871 } else if this == nil {
1872 return false
1873 }
1874 if this.Message != that1.Message {
1875 return false
1876 }
1877 return true
1878 }
1879 func (this *Call) VerboseEqual(that interface{}) error {
1880 if that == nil {
1881 if this == nil {
1882 return nil
1883 }
1884 return fmt.Errorf("that == nil && this != nil")
1885 }
1886
1887 that1, ok := that.(*Call)
1888 if !ok {
1889 that2, ok := that.(Call)
1890 if ok {
1891 that1 = &that2
1892 } else {
1893 return fmt.Errorf("that is not of type *Call")
1894 }
1895 }
1896 if that1 == nil {
1897 if this == nil {
1898 return nil
1899 }
1900 return fmt.Errorf("that is type *Call but is nil && this != nil")
1901 } else if this == nil {
1902 return fmt.Errorf("that is type *Call but is not nil && this == nil")
1903 }
1904 if !this.FrameworkID.Equal(that1.FrameworkID) {
1905 return fmt.Errorf("FrameworkID this(%v) Not Equal that(%v)", this.FrameworkID, that1.FrameworkID)
1906 }
1907 if this.Type != that1.Type {
1908 return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
1909 }
1910 if !this.Subscribe.Equal(that1.Subscribe) {
1911 return fmt.Errorf("Subscribe this(%v) Not Equal that(%v)", this.Subscribe, that1.Subscribe)
1912 }
1913 if !this.Accept.Equal(that1.Accept) {
1914 return fmt.Errorf("Accept this(%v) Not Equal that(%v)", this.Accept, that1.Accept)
1915 }
1916 if !this.Decline.Equal(that1.Decline) {
1917 return fmt.Errorf("Decline this(%v) Not Equal that(%v)", this.Decline, that1.Decline)
1918 }
1919 if !this.AcceptInverseOffers.Equal(that1.AcceptInverseOffers) {
1920 return fmt.Errorf("AcceptInverseOffers this(%v) Not Equal that(%v)", this.AcceptInverseOffers, that1.AcceptInverseOffers)
1921 }
1922 if !this.DeclineInverseOffers.Equal(that1.DeclineInverseOffers) {
1923 return fmt.Errorf("DeclineInverseOffers this(%v) Not Equal that(%v)", this.DeclineInverseOffers, that1.DeclineInverseOffers)
1924 }
1925 if !this.Revive.Equal(that1.Revive) {
1926 return fmt.Errorf("Revive this(%v) Not Equal that(%v)", this.Revive, that1.Revive)
1927 }
1928 if !this.Kill.Equal(that1.Kill) {
1929 return fmt.Errorf("Kill this(%v) Not Equal that(%v)", this.Kill, that1.Kill)
1930 }
1931 if !this.Shutdown.Equal(that1.Shutdown) {
1932 return fmt.Errorf("Shutdown this(%v) Not Equal that(%v)", this.Shutdown, that1.Shutdown)
1933 }
1934 if !this.Acknowledge.Equal(that1.Acknowledge) {
1935 return fmt.Errorf("Acknowledge this(%v) Not Equal that(%v)", this.Acknowledge, that1.Acknowledge)
1936 }
1937 if !this.Reconcile.Equal(that1.Reconcile) {
1938 return fmt.Errorf("Reconcile this(%v) Not Equal that(%v)", this.Reconcile, that1.Reconcile)
1939 }
1940 if !this.Message.Equal(that1.Message) {
1941 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
1942 }
1943 if !this.Request.Equal(that1.Request) {
1944 return fmt.Errorf("Request this(%v) Not Equal that(%v)", this.Request, that1.Request)
1945 }
1946 if !this.Suppress.Equal(that1.Suppress) {
1947 return fmt.Errorf("Suppress this(%v) Not Equal that(%v)", this.Suppress, that1.Suppress)
1948 }
1949 return nil
1950 }
1951 func (this *Call) Equal(that interface{}) bool {
1952 if that == nil {
1953 if this == nil {
1954 return true
1955 }
1956 return false
1957 }
1958
1959 that1, ok := that.(*Call)
1960 if !ok {
1961 that2, ok := that.(Call)
1962 if ok {
1963 that1 = &that2
1964 } else {
1965 return false
1966 }
1967 }
1968 if that1 == nil {
1969 if this == nil {
1970 return true
1971 }
1972 return false
1973 } else if this == nil {
1974 return false
1975 }
1976 if !this.FrameworkID.Equal(that1.FrameworkID) {
1977 return false
1978 }
1979 if this.Type != that1.Type {
1980 return false
1981 }
1982 if !this.Subscribe.Equal(that1.Subscribe) {
1983 return false
1984 }
1985 if !this.Accept.Equal(that1.Accept) {
1986 return false
1987 }
1988 if !this.Decline.Equal(that1.Decline) {
1989 return false
1990 }
1991 if !this.AcceptInverseOffers.Equal(that1.AcceptInverseOffers) {
1992 return false
1993 }
1994 if !this.DeclineInverseOffers.Equal(that1.DeclineInverseOffers) {
1995 return false
1996 }
1997 if !this.Revive.Equal(that1.Revive) {
1998 return false
1999 }
2000 if !this.Kill.Equal(that1.Kill) {
2001 return false
2002 }
2003 if !this.Shutdown.Equal(that1.Shutdown) {
2004 return false
2005 }
2006 if !this.Acknowledge.Equal(that1.Acknowledge) {
2007 return false
2008 }
2009 if !this.Reconcile.Equal(that1.Reconcile) {
2010 return false
2011 }
2012 if !this.Message.Equal(that1.Message) {
2013 return false
2014 }
2015 if !this.Request.Equal(that1.Request) {
2016 return false
2017 }
2018 if !this.Suppress.Equal(that1.Suppress) {
2019 return false
2020 }
2021 return true
2022 }
2023 func (this *Call_Subscribe) VerboseEqual(that interface{}) error {
2024 if that == nil {
2025 if this == nil {
2026 return nil
2027 }
2028 return fmt.Errorf("that == nil && this != nil")
2029 }
2030
2031 that1, ok := that.(*Call_Subscribe)
2032 if !ok {
2033 that2, ok := that.(Call_Subscribe)
2034 if ok {
2035 that1 = &that2
2036 } else {
2037 return fmt.Errorf("that is not of type *Call_Subscribe")
2038 }
2039 }
2040 if that1 == nil {
2041 if this == nil {
2042 return nil
2043 }
2044 return fmt.Errorf("that is type *Call_Subscribe but is nil && this != nil")
2045 } else if this == nil {
2046 return fmt.Errorf("that is type *Call_Subscribe but is not nil && this == nil")
2047 }
2048 if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
2049 return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo)
2050 }
2051 if len(this.SuppressedRoles) != len(that1.SuppressedRoles) {
2052 return fmt.Errorf("SuppressedRoles this(%v) Not Equal that(%v)", len(this.SuppressedRoles), len(that1.SuppressedRoles))
2053 }
2054 for i := range this.SuppressedRoles {
2055 if this.SuppressedRoles[i] != that1.SuppressedRoles[i] {
2056 return fmt.Errorf("SuppressedRoles this[%v](%v) Not Equal that[%v](%v)", i, this.SuppressedRoles[i], i, that1.SuppressedRoles[i])
2057 }
2058 }
2059 return nil
2060 }
2061 func (this *Call_Subscribe) Equal(that interface{}) bool {
2062 if that == nil {
2063 if this == nil {
2064 return true
2065 }
2066 return false
2067 }
2068
2069 that1, ok := that.(*Call_Subscribe)
2070 if !ok {
2071 that2, ok := that.(Call_Subscribe)
2072 if ok {
2073 that1 = &that2
2074 } else {
2075 return false
2076 }
2077 }
2078 if that1 == nil {
2079 if this == nil {
2080 return true
2081 }
2082 return false
2083 } else if this == nil {
2084 return false
2085 }
2086 if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
2087 return false
2088 }
2089 if len(this.SuppressedRoles) != len(that1.SuppressedRoles) {
2090 return false
2091 }
2092 for i := range this.SuppressedRoles {
2093 if this.SuppressedRoles[i] != that1.SuppressedRoles[i] {
2094 return false
2095 }
2096 }
2097 return true
2098 }
2099 func (this *Call_Accept) VerboseEqual(that interface{}) error {
2100 if that == nil {
2101 if this == nil {
2102 return nil
2103 }
2104 return fmt.Errorf("that == nil && this != nil")
2105 }
2106
2107 that1, ok := that.(*Call_Accept)
2108 if !ok {
2109 that2, ok := that.(Call_Accept)
2110 if ok {
2111 that1 = &that2
2112 } else {
2113 return fmt.Errorf("that is not of type *Call_Accept")
2114 }
2115 }
2116 if that1 == nil {
2117 if this == nil {
2118 return nil
2119 }
2120 return fmt.Errorf("that is type *Call_Accept but is nil && this != nil")
2121 } else if this == nil {
2122 return fmt.Errorf("that is type *Call_Accept but is not nil && this == nil")
2123 }
2124 if len(this.OfferIDs) != len(that1.OfferIDs) {
2125 return fmt.Errorf("OfferIDs this(%v) Not Equal that(%v)", len(this.OfferIDs), len(that1.OfferIDs))
2126 }
2127 for i := range this.OfferIDs {
2128 if !this.OfferIDs[i].Equal(&that1.OfferIDs[i]) {
2129 return fmt.Errorf("OfferIDs this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIDs[i], i, that1.OfferIDs[i])
2130 }
2131 }
2132 if len(this.Operations) != len(that1.Operations) {
2133 return fmt.Errorf("Operations this(%v) Not Equal that(%v)", len(this.Operations), len(that1.Operations))
2134 }
2135 for i := range this.Operations {
2136 if !this.Operations[i].Equal(&that1.Operations[i]) {
2137 return fmt.Errorf("Operations this[%v](%v) Not Equal that[%v](%v)", i, this.Operations[i], i, that1.Operations[i])
2138 }
2139 }
2140 if !this.Filters.Equal(that1.Filters) {
2141 return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
2142 }
2143 return nil
2144 }
2145 func (this *Call_Accept) Equal(that interface{}) bool {
2146 if that == nil {
2147 if this == nil {
2148 return true
2149 }
2150 return false
2151 }
2152
2153 that1, ok := that.(*Call_Accept)
2154 if !ok {
2155 that2, ok := that.(Call_Accept)
2156 if ok {
2157 that1 = &that2
2158 } else {
2159 return false
2160 }
2161 }
2162 if that1 == nil {
2163 if this == nil {
2164 return true
2165 }
2166 return false
2167 } else if this == nil {
2168 return false
2169 }
2170 if len(this.OfferIDs) != len(that1.OfferIDs) {
2171 return false
2172 }
2173 for i := range this.OfferIDs {
2174 if !this.OfferIDs[i].Equal(&that1.OfferIDs[i]) {
2175 return false
2176 }
2177 }
2178 if len(this.Operations) != len(that1.Operations) {
2179 return false
2180 }
2181 for i := range this.Operations {
2182 if !this.Operations[i].Equal(&that1.Operations[i]) {
2183 return false
2184 }
2185 }
2186 if !this.Filters.Equal(that1.Filters) {
2187 return false
2188 }
2189 return true
2190 }
2191 func (this *Call_Decline) VerboseEqual(that interface{}) error {
2192 if that == nil {
2193 if this == nil {
2194 return nil
2195 }
2196 return fmt.Errorf("that == nil && this != nil")
2197 }
2198
2199 that1, ok := that.(*Call_Decline)
2200 if !ok {
2201 that2, ok := that.(Call_Decline)
2202 if ok {
2203 that1 = &that2
2204 } else {
2205 return fmt.Errorf("that is not of type *Call_Decline")
2206 }
2207 }
2208 if that1 == nil {
2209 if this == nil {
2210 return nil
2211 }
2212 return fmt.Errorf("that is type *Call_Decline but is nil && this != nil")
2213 } else if this == nil {
2214 return fmt.Errorf("that is type *Call_Decline but is not nil && this == nil")
2215 }
2216 if len(this.OfferIDs) != len(that1.OfferIDs) {
2217 return fmt.Errorf("OfferIDs this(%v) Not Equal that(%v)", len(this.OfferIDs), len(that1.OfferIDs))
2218 }
2219 for i := range this.OfferIDs {
2220 if !this.OfferIDs[i].Equal(&that1.OfferIDs[i]) {
2221 return fmt.Errorf("OfferIDs this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIDs[i], i, that1.OfferIDs[i])
2222 }
2223 }
2224 if !this.Filters.Equal(that1.Filters) {
2225 return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
2226 }
2227 return nil
2228 }
2229 func (this *Call_Decline) Equal(that interface{}) bool {
2230 if that == nil {
2231 if this == nil {
2232 return true
2233 }
2234 return false
2235 }
2236
2237 that1, ok := that.(*Call_Decline)
2238 if !ok {
2239 that2, ok := that.(Call_Decline)
2240 if ok {
2241 that1 = &that2
2242 } else {
2243 return false
2244 }
2245 }
2246 if that1 == nil {
2247 if this == nil {
2248 return true
2249 }
2250 return false
2251 } else if this == nil {
2252 return false
2253 }
2254 if len(this.OfferIDs) != len(that1.OfferIDs) {
2255 return false
2256 }
2257 for i := range this.OfferIDs {
2258 if !this.OfferIDs[i].Equal(&that1.OfferIDs[i]) {
2259 return false
2260 }
2261 }
2262 if !this.Filters.Equal(that1.Filters) {
2263 return false
2264 }
2265 return true
2266 }
2267 func (this *Call_AcceptInverseOffers) VerboseEqual(that interface{}) error {
2268 if that == nil {
2269 if this == nil {
2270 return nil
2271 }
2272 return fmt.Errorf("that == nil && this != nil")
2273 }
2274
2275 that1, ok := that.(*Call_AcceptInverseOffers)
2276 if !ok {
2277 that2, ok := that.(Call_AcceptInverseOffers)
2278 if ok {
2279 that1 = &that2
2280 } else {
2281 return fmt.Errorf("that is not of type *Call_AcceptInverseOffers")
2282 }
2283 }
2284 if that1 == nil {
2285 if this == nil {
2286 return nil
2287 }
2288 return fmt.Errorf("that is type *Call_AcceptInverseOffers but is nil && this != nil")
2289 } else if this == nil {
2290 return fmt.Errorf("that is type *Call_AcceptInverseOffers but is not nil && this == nil")
2291 }
2292 if len(this.InverseOfferIDs) != len(that1.InverseOfferIDs) {
2293 return fmt.Errorf("InverseOfferIDs this(%v) Not Equal that(%v)", len(this.InverseOfferIDs), len(that1.InverseOfferIDs))
2294 }
2295 for i := range this.InverseOfferIDs {
2296 if !this.InverseOfferIDs[i].Equal(&that1.InverseOfferIDs[i]) {
2297 return fmt.Errorf("InverseOfferIDs this[%v](%v) Not Equal that[%v](%v)", i, this.InverseOfferIDs[i], i, that1.InverseOfferIDs[i])
2298 }
2299 }
2300 if !this.Filters.Equal(that1.Filters) {
2301 return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
2302 }
2303 return nil
2304 }
2305 func (this *Call_AcceptInverseOffers) Equal(that interface{}) bool {
2306 if that == nil {
2307 if this == nil {
2308 return true
2309 }
2310 return false
2311 }
2312
2313 that1, ok := that.(*Call_AcceptInverseOffers)
2314 if !ok {
2315 that2, ok := that.(Call_AcceptInverseOffers)
2316 if ok {
2317 that1 = &that2
2318 } else {
2319 return false
2320 }
2321 }
2322 if that1 == nil {
2323 if this == nil {
2324 return true
2325 }
2326 return false
2327 } else if this == nil {
2328 return false
2329 }
2330 if len(this.InverseOfferIDs) != len(that1.InverseOfferIDs) {
2331 return false
2332 }
2333 for i := range this.InverseOfferIDs {
2334 if !this.InverseOfferIDs[i].Equal(&that1.InverseOfferIDs[i]) {
2335 return false
2336 }
2337 }
2338 if !this.Filters.Equal(that1.Filters) {
2339 return false
2340 }
2341 return true
2342 }
2343 func (this *Call_DeclineInverseOffers) VerboseEqual(that interface{}) error {
2344 if that == nil {
2345 if this == nil {
2346 return nil
2347 }
2348 return fmt.Errorf("that == nil && this != nil")
2349 }
2350
2351 that1, ok := that.(*Call_DeclineInverseOffers)
2352 if !ok {
2353 that2, ok := that.(Call_DeclineInverseOffers)
2354 if ok {
2355 that1 = &that2
2356 } else {
2357 return fmt.Errorf("that is not of type *Call_DeclineInverseOffers")
2358 }
2359 }
2360 if that1 == nil {
2361 if this == nil {
2362 return nil
2363 }
2364 return fmt.Errorf("that is type *Call_DeclineInverseOffers but is nil && this != nil")
2365 } else if this == nil {
2366 return fmt.Errorf("that is type *Call_DeclineInverseOffers but is not nil && this == nil")
2367 }
2368 if len(this.InverseOfferIDs) != len(that1.InverseOfferIDs) {
2369 return fmt.Errorf("InverseOfferIDs this(%v) Not Equal that(%v)", len(this.InverseOfferIDs), len(that1.InverseOfferIDs))
2370 }
2371 for i := range this.InverseOfferIDs {
2372 if !this.InverseOfferIDs[i].Equal(&that1.InverseOfferIDs[i]) {
2373 return fmt.Errorf("InverseOfferIDs this[%v](%v) Not Equal that[%v](%v)", i, this.InverseOfferIDs[i], i, that1.InverseOfferIDs[i])
2374 }
2375 }
2376 if !this.Filters.Equal(that1.Filters) {
2377 return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
2378 }
2379 return nil
2380 }
2381 func (this *Call_DeclineInverseOffers) Equal(that interface{}) bool {
2382 if that == nil {
2383 if this == nil {
2384 return true
2385 }
2386 return false
2387 }
2388
2389 that1, ok := that.(*Call_DeclineInverseOffers)
2390 if !ok {
2391 that2, ok := that.(Call_DeclineInverseOffers)
2392 if ok {
2393 that1 = &that2
2394 } else {
2395 return false
2396 }
2397 }
2398 if that1 == nil {
2399 if this == nil {
2400 return true
2401 }
2402 return false
2403 } else if this == nil {
2404 return false
2405 }
2406 if len(this.InverseOfferIDs) != len(that1.InverseOfferIDs) {
2407 return false
2408 }
2409 for i := range this.InverseOfferIDs {
2410 if !this.InverseOfferIDs[i].Equal(&that1.InverseOfferIDs[i]) {
2411 return false
2412 }
2413 }
2414 if !this.Filters.Equal(that1.Filters) {
2415 return false
2416 }
2417 return true
2418 }
2419 func (this *Call_Revive) VerboseEqual(that interface{}) error {
2420 if that == nil {
2421 if this == nil {
2422 return nil
2423 }
2424 return fmt.Errorf("that == nil && this != nil")
2425 }
2426
2427 that1, ok := that.(*Call_Revive)
2428 if !ok {
2429 that2, ok := that.(Call_Revive)
2430 if ok {
2431 that1 = &that2
2432 } else {
2433 return fmt.Errorf("that is not of type *Call_Revive")
2434 }
2435 }
2436 if that1 == nil {
2437 if this == nil {
2438 return nil
2439 }
2440 return fmt.Errorf("that is type *Call_Revive but is nil && this != nil")
2441 } else if this == nil {
2442 return fmt.Errorf("that is type *Call_Revive but is not nil && this == nil")
2443 }
2444 if len(this.Roles) != len(that1.Roles) {
2445 return fmt.Errorf("Roles this(%v) Not Equal that(%v)", len(this.Roles), len(that1.Roles))
2446 }
2447 for i := range this.Roles {
2448 if this.Roles[i] != that1.Roles[i] {
2449 return fmt.Errorf("Roles this[%v](%v) Not Equal that[%v](%v)", i, this.Roles[i], i, that1.Roles[i])
2450 }
2451 }
2452 return nil
2453 }
2454 func (this *Call_Revive) Equal(that interface{}) bool {
2455 if that == nil {
2456 if this == nil {
2457 return true
2458 }
2459 return false
2460 }
2461
2462 that1, ok := that.(*Call_Revive)
2463 if !ok {
2464 that2, ok := that.(Call_Revive)
2465 if ok {
2466 that1 = &that2
2467 } else {
2468 return false
2469 }
2470 }
2471 if that1 == nil {
2472 if this == nil {
2473 return true
2474 }
2475 return false
2476 } else if this == nil {
2477 return false
2478 }
2479 if len(this.Roles) != len(that1.Roles) {
2480 return false
2481 }
2482 for i := range this.Roles {
2483 if this.Roles[i] != that1.Roles[i] {
2484 return false
2485 }
2486 }
2487 return true
2488 }
2489 func (this *Call_Kill) VerboseEqual(that interface{}) error {
2490 if that == nil {
2491 if this == nil {
2492 return nil
2493 }
2494 return fmt.Errorf("that == nil && this != nil")
2495 }
2496
2497 that1, ok := that.(*Call_Kill)
2498 if !ok {
2499 that2, ok := that.(Call_Kill)
2500 if ok {
2501 that1 = &that2
2502 } else {
2503 return fmt.Errorf("that is not of type *Call_Kill")
2504 }
2505 }
2506 if that1 == nil {
2507 if this == nil {
2508 return nil
2509 }
2510 return fmt.Errorf("that is type *Call_Kill but is nil && this != nil")
2511 } else if this == nil {
2512 return fmt.Errorf("that is type *Call_Kill but is not nil && this == nil")
2513 }
2514 if !this.TaskID.Equal(&that1.TaskID) {
2515 return fmt.Errorf("TaskID this(%v) Not Equal that(%v)", this.TaskID, that1.TaskID)
2516 }
2517 if !this.AgentID.Equal(that1.AgentID) {
2518 return fmt.Errorf("AgentID this(%v) Not Equal that(%v)", this.AgentID, that1.AgentID)
2519 }
2520 if !this.KillPolicy.Equal(that1.KillPolicy) {
2521 return fmt.Errorf("KillPolicy this(%v) Not Equal that(%v)", this.KillPolicy, that1.KillPolicy)
2522 }
2523 return nil
2524 }
2525 func (this *Call_Kill) Equal(that interface{}) bool {
2526 if that == nil {
2527 if this == nil {
2528 return true
2529 }
2530 return false
2531 }
2532
2533 that1, ok := that.(*Call_Kill)
2534 if !ok {
2535 that2, ok := that.(Call_Kill)
2536 if ok {
2537 that1 = &that2
2538 } else {
2539 return false
2540 }
2541 }
2542 if that1 == nil {
2543 if this == nil {
2544 return true
2545 }
2546 return false
2547 } else if this == nil {
2548 return false
2549 }
2550 if !this.TaskID.Equal(&that1.TaskID) {
2551 return false
2552 }
2553 if !this.AgentID.Equal(that1.AgentID) {
2554 return false
2555 }
2556 if !this.KillPolicy.Equal(that1.KillPolicy) {
2557 return false
2558 }
2559 return true
2560 }
2561 func (this *Call_Shutdown) VerboseEqual(that interface{}) error {
2562 if that == nil {
2563 if this == nil {
2564 return nil
2565 }
2566 return fmt.Errorf("that == nil && this != nil")
2567 }
2568
2569 that1, ok := that.(*Call_Shutdown)
2570 if !ok {
2571 that2, ok := that.(Call_Shutdown)
2572 if ok {
2573 that1 = &that2
2574 } else {
2575 return fmt.Errorf("that is not of type *Call_Shutdown")
2576 }
2577 }
2578 if that1 == nil {
2579 if this == nil {
2580 return nil
2581 }
2582 return fmt.Errorf("that is type *Call_Shutdown but is nil && this != nil")
2583 } else if this == nil {
2584 return fmt.Errorf("that is type *Call_Shutdown but is not nil && this == nil")
2585 }
2586 if !this.ExecutorID.Equal(&that1.ExecutorID) {
2587 return fmt.Errorf("ExecutorID this(%v) Not Equal that(%v)", this.ExecutorID, that1.ExecutorID)
2588 }
2589 if !this.AgentID.Equal(&that1.AgentID) {
2590 return fmt.Errorf("AgentID this(%v) Not Equal that(%v)", this.AgentID, that1.AgentID)
2591 }
2592 return nil
2593 }
2594 func (this *Call_Shutdown) Equal(that interface{}) bool {
2595 if that == nil {
2596 if this == nil {
2597 return true
2598 }
2599 return false
2600 }
2601
2602 that1, ok := that.(*Call_Shutdown)
2603 if !ok {
2604 that2, ok := that.(Call_Shutdown)
2605 if ok {
2606 that1 = &that2
2607 } else {
2608 return false
2609 }
2610 }
2611 if that1 == nil {
2612 if this == nil {
2613 return true
2614 }
2615 return false
2616 } else if this == nil {
2617 return false
2618 }
2619 if !this.ExecutorID.Equal(&that1.ExecutorID) {
2620 return false
2621 }
2622 if !this.AgentID.Equal(&that1.AgentID) {
2623 return false
2624 }
2625 return true
2626 }
2627 func (this *Call_Acknowledge) VerboseEqual(that interface{}) error {
2628 if that == nil {
2629 if this == nil {
2630 return nil
2631 }
2632 return fmt.Errorf("that == nil && this != nil")
2633 }
2634
2635 that1, ok := that.(*Call_Acknowledge)
2636 if !ok {
2637 that2, ok := that.(Call_Acknowledge)
2638 if ok {
2639 that1 = &that2
2640 } else {
2641 return fmt.Errorf("that is not of type *Call_Acknowledge")
2642 }
2643 }
2644 if that1 == nil {
2645 if this == nil {
2646 return nil
2647 }
2648 return fmt.Errorf("that is type *Call_Acknowledge but is nil && this != nil")
2649 } else if this == nil {
2650 return fmt.Errorf("that is type *Call_Acknowledge but is not nil && this == nil")
2651 }
2652 if !this.AgentID.Equal(&that1.AgentID) {
2653 return fmt.Errorf("AgentID this(%v) Not Equal that(%v)", this.AgentID, that1.AgentID)
2654 }
2655 if !this.TaskID.Equal(&that1.TaskID) {
2656 return fmt.Errorf("TaskID this(%v) Not Equal that(%v)", this.TaskID, that1.TaskID)
2657 }
2658 if !bytes.Equal(this.UUID, that1.UUID) {
2659 return fmt.Errorf("UUID this(%v) Not Equal that(%v)", this.UUID, that1.UUID)
2660 }
2661 return nil
2662 }
2663 func (this *Call_Acknowledge) Equal(that interface{}) bool {
2664 if that == nil {
2665 if this == nil {
2666 return true
2667 }
2668 return false
2669 }
2670
2671 that1, ok := that.(*Call_Acknowledge)
2672 if !ok {
2673 that2, ok := that.(Call_Acknowledge)
2674 if ok {
2675 that1 = &that2
2676 } else {
2677 return false
2678 }
2679 }
2680 if that1 == nil {
2681 if this == nil {
2682 return true
2683 }
2684 return false
2685 } else if this == nil {
2686 return false
2687 }
2688 if !this.AgentID.Equal(&that1.AgentID) {
2689 return false
2690 }
2691 if !this.TaskID.Equal(&that1.TaskID) {
2692 return false
2693 }
2694 if !bytes.Equal(this.UUID, that1.UUID) {
2695 return false
2696 }
2697 return true
2698 }
2699 func (this *Call_Reconcile) VerboseEqual(that interface{}) error {
2700 if that == nil {
2701 if this == nil {
2702 return nil
2703 }
2704 return fmt.Errorf("that == nil && this != nil")
2705 }
2706
2707 that1, ok := that.(*Call_Reconcile)
2708 if !ok {
2709 that2, ok := that.(Call_Reconcile)
2710 if ok {
2711 that1 = &that2
2712 } else {
2713 return fmt.Errorf("that is not of type *Call_Reconcile")
2714 }
2715 }
2716 if that1 == nil {
2717 if this == nil {
2718 return nil
2719 }
2720 return fmt.Errorf("that is type *Call_Reconcile but is nil && this != nil")
2721 } else if this == nil {
2722 return fmt.Errorf("that is type *Call_Reconcile but is not nil && this == nil")
2723 }
2724 if len(this.Tasks) != len(that1.Tasks) {
2725 return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks))
2726 }
2727 for i := range this.Tasks {
2728 if !this.Tasks[i].Equal(&that1.Tasks[i]) {
2729 return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i])
2730 }
2731 }
2732 return nil
2733 }
2734 func (this *Call_Reconcile) Equal(that interface{}) bool {
2735 if that == nil {
2736 if this == nil {
2737 return true
2738 }
2739 return false
2740 }
2741
2742 that1, ok := that.(*Call_Reconcile)
2743 if !ok {
2744 that2, ok := that.(Call_Reconcile)
2745 if ok {
2746 that1 = &that2
2747 } else {
2748 return false
2749 }
2750 }
2751 if that1 == nil {
2752 if this == nil {
2753 return true
2754 }
2755 return false
2756 } else if this == nil {
2757 return false
2758 }
2759 if len(this.Tasks) != len(that1.Tasks) {
2760 return false
2761 }
2762 for i := range this.Tasks {
2763 if !this.Tasks[i].Equal(&that1.Tasks[i]) {
2764 return false
2765 }
2766 }
2767 return true
2768 }
2769 func (this *Call_Reconcile_Task) VerboseEqual(that interface{}) error {
2770 if that == nil {
2771 if this == nil {
2772 return nil
2773 }
2774 return fmt.Errorf("that == nil && this != nil")
2775 }
2776
2777 that1, ok := that.(*Call_Reconcile_Task)
2778 if !ok {
2779 that2, ok := that.(Call_Reconcile_Task)
2780 if ok {
2781 that1 = &that2
2782 } else {
2783 return fmt.Errorf("that is not of type *Call_Reconcile_Task")
2784 }
2785 }
2786 if that1 == nil {
2787 if this == nil {
2788 return nil
2789 }
2790 return fmt.Errorf("that is type *Call_Reconcile_Task but is nil && this != nil")
2791 } else if this == nil {
2792 return fmt.Errorf("that is type *Call_Reconcile_Task but is not nil && this == nil")
2793 }
2794 if !this.TaskID.Equal(&that1.TaskID) {
2795 return fmt.Errorf("TaskID this(%v) Not Equal that(%v)", this.TaskID, that1.TaskID)
2796 }
2797 if !this.AgentID.Equal(that1.AgentID) {
2798 return fmt.Errorf("AgentID this(%v) Not Equal that(%v)", this.AgentID, that1.AgentID)
2799 }
2800 return nil
2801 }
2802 func (this *Call_Reconcile_Task) Equal(that interface{}) bool {
2803 if that == nil {
2804 if this == nil {
2805 return true
2806 }
2807 return false
2808 }
2809
2810 that1, ok := that.(*Call_Reconcile_Task)
2811 if !ok {
2812 that2, ok := that.(Call_Reconcile_Task)
2813 if ok {
2814 that1 = &that2
2815 } else {
2816 return false
2817 }
2818 }
2819 if that1 == nil {
2820 if this == nil {
2821 return true
2822 }
2823 return false
2824 } else if this == nil {
2825 return false
2826 }
2827 if !this.TaskID.Equal(&that1.TaskID) {
2828 return false
2829 }
2830 if !this.AgentID.Equal(that1.AgentID) {
2831 return false
2832 }
2833 return true
2834 }
2835 func (this *Call_Message) VerboseEqual(that interface{}) error {
2836 if that == nil {
2837 if this == nil {
2838 return nil
2839 }
2840 return fmt.Errorf("that == nil && this != nil")
2841 }
2842
2843 that1, ok := that.(*Call_Message)
2844 if !ok {
2845 that2, ok := that.(Call_Message)
2846 if ok {
2847 that1 = &that2
2848 } else {
2849 return fmt.Errorf("that is not of type *Call_Message")
2850 }
2851 }
2852 if that1 == nil {
2853 if this == nil {
2854 return nil
2855 }
2856 return fmt.Errorf("that is type *Call_Message but is nil && this != nil")
2857 } else if this == nil {
2858 return fmt.Errorf("that is type *Call_Message but is not nil && this == nil")
2859 }
2860 if !this.AgentID.Equal(&that1.AgentID) {
2861 return fmt.Errorf("AgentID this(%v) Not Equal that(%v)", this.AgentID, that1.AgentID)
2862 }
2863 if !this.ExecutorID.Equal(&that1.ExecutorID) {
2864 return fmt.Errorf("ExecutorID this(%v) Not Equal that(%v)", this.ExecutorID, that1.ExecutorID)
2865 }
2866 if !bytes.Equal(this.Data, that1.Data) {
2867 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
2868 }
2869 return nil
2870 }
2871 func (this *Call_Message) Equal(that interface{}) bool {
2872 if that == nil {
2873 if this == nil {
2874 return true
2875 }
2876 return false
2877 }
2878
2879 that1, ok := that.(*Call_Message)
2880 if !ok {
2881 that2, ok := that.(Call_Message)
2882 if ok {
2883 that1 = &that2
2884 } else {
2885 return false
2886 }
2887 }
2888 if that1 == nil {
2889 if this == nil {
2890 return true
2891 }
2892 return false
2893 } else if this == nil {
2894 return false
2895 }
2896 if !this.AgentID.Equal(&that1.AgentID) {
2897 return false
2898 }
2899 if !this.ExecutorID.Equal(&that1.ExecutorID) {
2900 return false
2901 }
2902 if !bytes.Equal(this.Data, that1.Data) {
2903 return false
2904 }
2905 return true
2906 }
2907 func (this *Call_Request) VerboseEqual(that interface{}) error {
2908 if that == nil {
2909 if this == nil {
2910 return nil
2911 }
2912 return fmt.Errorf("that == nil && this != nil")
2913 }
2914
2915 that1, ok := that.(*Call_Request)
2916 if !ok {
2917 that2, ok := that.(Call_Request)
2918 if ok {
2919 that1 = &that2
2920 } else {
2921 return fmt.Errorf("that is not of type *Call_Request")
2922 }
2923 }
2924 if that1 == nil {
2925 if this == nil {
2926 return nil
2927 }
2928 return fmt.Errorf("that is type *Call_Request but is nil && this != nil")
2929 } else if this == nil {
2930 return fmt.Errorf("that is type *Call_Request but is not nil && this == nil")
2931 }
2932 if len(this.Requests) != len(that1.Requests) {
2933 return fmt.Errorf("Requests this(%v) Not Equal that(%v)", len(this.Requests), len(that1.Requests))
2934 }
2935 for i := range this.Requests {
2936 if !this.Requests[i].Equal(&that1.Requests[i]) {
2937 return fmt.Errorf("Requests this[%v](%v) Not Equal that[%v](%v)", i, this.Requests[i], i, that1.Requests[i])
2938 }
2939 }
2940 return nil
2941 }
2942 func (this *Call_Request) Equal(that interface{}) bool {
2943 if that == nil {
2944 if this == nil {
2945 return true
2946 }
2947 return false
2948 }
2949
2950 that1, ok := that.(*Call_Request)
2951 if !ok {
2952 that2, ok := that.(Call_Request)
2953 if ok {
2954 that1 = &that2
2955 } else {
2956 return false
2957 }
2958 }
2959 if that1 == nil {
2960 if this == nil {
2961 return true
2962 }
2963 return false
2964 } else if this == nil {
2965 return false
2966 }
2967 if len(this.Requests) != len(that1.Requests) {
2968 return false
2969 }
2970 for i := range this.Requests {
2971 if !this.Requests[i].Equal(&that1.Requests[i]) {
2972 return false
2973 }
2974 }
2975 return true
2976 }
2977 func (this *Call_Suppress) VerboseEqual(that interface{}) error {
2978 if that == nil {
2979 if this == nil {
2980 return nil
2981 }
2982 return fmt.Errorf("that == nil && this != nil")
2983 }
2984
2985 that1, ok := that.(*Call_Suppress)
2986 if !ok {
2987 that2, ok := that.(Call_Suppress)
2988 if ok {
2989 that1 = &that2
2990 } else {
2991 return fmt.Errorf("that is not of type *Call_Suppress")
2992 }
2993 }
2994 if that1 == nil {
2995 if this == nil {
2996 return nil
2997 }
2998 return fmt.Errorf("that is type *Call_Suppress but is nil && this != nil")
2999 } else if this == nil {
3000 return fmt.Errorf("that is type *Call_Suppress but is not nil && this == nil")
3001 }
3002 if len(this.Roles) != len(that1.Roles) {
3003 return fmt.Errorf("Roles this(%v) Not Equal that(%v)", len(this.Roles), len(that1.Roles))
3004 }
3005 for i := range this.Roles {
3006 if this.Roles[i] != that1.Roles[i] {
3007 return fmt.Errorf("Roles this[%v](%v) Not Equal that[%v](%v)", i, this.Roles[i], i, that1.Roles[i])
3008 }
3009 }
3010 return nil
3011 }
3012 func (this *Call_Suppress) Equal(that interface{}) bool {
3013 if that == nil {
3014 if this == nil {
3015 return true
3016 }
3017 return false
3018 }
3019
3020 that1, ok := that.(*Call_Suppress)
3021 if !ok {
3022 that2, ok := that.(Call_Suppress)
3023 if ok {
3024 that1 = &that2
3025 } else {
3026 return false
3027 }
3028 }
3029 if that1 == nil {
3030 if this == nil {
3031 return true
3032 }
3033 return false
3034 } else if this == nil {
3035 return false
3036 }
3037 if len(this.Roles) != len(that1.Roles) {
3038 return false
3039 }
3040 for i := range this.Roles {
3041 if this.Roles[i] != that1.Roles[i] {
3042 return false
3043 }
3044 }
3045 return true
3046 }
3047 func (this *Event) GoString() string {
3048 if this == nil {
3049 return "nil"
3050 }
3051 s := make([]string, 0, 14)
3052 s = append(s, "&scheduler.Event{")
3053 s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
3054 if this.Subscribed != nil {
3055 s = append(s, "Subscribed: "+fmt.Sprintf("%#v", this.Subscribed)+",\n")
3056 }
3057 if this.Offers != nil {
3058 s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n")
3059 }
3060 if this.InverseOffers != nil {
3061 s = append(s, "InverseOffers: "+fmt.Sprintf("%#v", this.InverseOffers)+",\n")
3062 }
3063 if this.Rescind != nil {
3064 s = append(s, "Rescind: "+fmt.Sprintf("%#v", this.Rescind)+",\n")
3065 }
3066 if this.RescindInverseOffer != nil {
3067 s = append(s, "RescindInverseOffer: "+fmt.Sprintf("%#v", this.RescindInverseOffer)+",\n")
3068 }
3069 if this.Update != nil {
3070 s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n")
3071 }
3072 if this.Message != nil {
3073 s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
3074 }
3075 if this.Failure != nil {
3076 s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n")
3077 }
3078 if this.Error != nil {
3079 s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n")
3080 }
3081 s = append(s, "}")
3082 return strings.Join(s, "")
3083 }
3084 func (this *Event_Subscribed) GoString() string {
3085 if this == nil {
3086 return "nil"
3087 }
3088 s := make([]string, 0, 7)
3089 s = append(s, "&scheduler.Event_Subscribed{")
3090 if this.FrameworkID != nil {
3091 s = append(s, "FrameworkID: "+fmt.Sprintf("%#v", this.FrameworkID)+",\n")
3092 }
3093 if this.HeartbeatIntervalSeconds != nil {
3094 s = append(s, "HeartbeatIntervalSeconds: "+valueToGoStringScheduler(this.HeartbeatIntervalSeconds, "float64")+",\n")
3095 }
3096 if this.MasterInfo != nil {
3097 s = append(s, "MasterInfo: "+fmt.Sprintf("%#v", this.MasterInfo)+",\n")
3098 }
3099 s = append(s, "}")
3100 return strings.Join(s, "")
3101 }
3102 func (this *Event_Offers) GoString() string {
3103 if this == nil {
3104 return "nil"
3105 }
3106 s := make([]string, 0, 5)
3107 s = append(s, "&scheduler.Event_Offers{")
3108 if this.Offers != nil {
3109 s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n")
3110 }
3111 s = append(s, "}")
3112 return strings.Join(s, "")
3113 }
3114 func (this *Event_InverseOffers) GoString() string {
3115 if this == nil {
3116 return "nil"
3117 }
3118 s := make([]string, 0, 5)
3119 s = append(s, "&scheduler.Event_InverseOffers{")
3120 if this.InverseOffers != nil {
3121 s = append(s, "InverseOffers: "+fmt.Sprintf("%#v", this.InverseOffers)+",\n")
3122 }
3123 s = append(s, "}")
3124 return strings.Join(s, "")
3125 }
3126 func (this *Event_Rescind) GoString() string {
3127 if this == nil {
3128 return "nil"
3129 }
3130 s := make([]string, 0, 5)
3131 s = append(s, "&scheduler.Event_Rescind{")
3132 s = append(s, "OfferID: "+strings.Replace(this.OfferID.GoString(), `&`, ``, 1)+",\n")
3133 s = append(s, "}")
3134 return strings.Join(s, "")
3135 }
3136 func (this *Event_RescindInverseOffer) GoString() string {
3137 if this == nil {
3138 return "nil"
3139 }
3140 s := make([]string, 0, 5)
3141 s = append(s, "&scheduler.Event_RescindInverseOffer{")
3142 s = append(s, "InverseOfferID: "+strings.Replace(this.InverseOfferID.GoString(), `&`, ``, 1)+",\n")
3143 s = append(s, "}")
3144 return strings.Join(s, "")
3145 }
3146 func (this *Event_Update) GoString() string {
3147 if this == nil {
3148 return "nil"
3149 }
3150 s := make([]string, 0, 5)
3151 s = append(s, "&scheduler.Event_Update{")
3152 s = append(s, "Status: "+strings.Replace(this.Status.GoString(), `&`, ``, 1)+",\n")
3153 s = append(s, "}")
3154 return strings.Join(s, "")
3155 }
3156 func (this *Event_Message) GoString() string {
3157 if this == nil {
3158 return "nil"
3159 }
3160 s := make([]string, 0, 7)
3161 s = append(s, "&scheduler.Event_Message{")
3162 s = append(s, "AgentID: "+strings.Replace(this.AgentID.GoString(), `&`, ``, 1)+",\n")
3163 s = append(s, "ExecutorID: "+strings.Replace(this.ExecutorID.GoString(), `&`, ``, 1)+",\n")
3164 if this.Data != nil {
3165 s = append(s, "Data: "+valueToGoStringScheduler(this.Data, "byte")+",\n")
3166 }
3167 s = append(s, "}")
3168 return strings.Join(s, "")
3169 }
3170 func (this *Event_Failure) GoString() string {
3171 if this == nil {
3172 return "nil"
3173 }
3174 s := make([]string, 0, 7)
3175 s = append(s, "&scheduler.Event_Failure{")
3176 if this.AgentID != nil {
3177 s = append(s, "AgentID: "+fmt.Sprintf("%#v", this.AgentID)+",\n")
3178 }
3179 if this.ExecutorID != nil {
3180 s = append(s, "ExecutorID: "+fmt.Sprintf("%#v", this.ExecutorID)+",\n")
3181 }
3182 if this.Status != nil {
3183 s = append(s, "Status: "+valueToGoStringScheduler(this.Status, "int32")+",\n")
3184 }
3185 s = append(s, "}")
3186 return strings.Join(s, "")
3187 }
3188 func (this *Event_Error) GoString() string {
3189 if this == nil {
3190 return "nil"
3191 }
3192 s := make([]string, 0, 5)
3193 s = append(s, "&scheduler.Event_Error{")
3194 s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
3195 s = append(s, "}")
3196 return strings.Join(s, "")
3197 }
3198 func (this *Call) GoString() string {
3199 if this == nil {
3200 return "nil"
3201 }
3202 s := make([]string, 0, 19)
3203 s = append(s, "&scheduler.Call{")
3204 if this.FrameworkID != nil {
3205 s = append(s, "FrameworkID: "+fmt.Sprintf("%#v", this.FrameworkID)+",\n")
3206 }
3207 s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
3208 if this.Subscribe != nil {
3209 s = append(s, "Subscribe: "+fmt.Sprintf("%#v", this.Subscribe)+",\n")
3210 }
3211 if this.Accept != nil {
3212 s = append(s, "Accept: "+fmt.Sprintf("%#v", this.Accept)+",\n")
3213 }
3214 if this.Decline != nil {
3215 s = append(s, "Decline: "+fmt.Sprintf("%#v", this.Decline)+",\n")
3216 }
3217 if this.AcceptInverseOffers != nil {
3218 s = append(s, "AcceptInverseOffers: "+fmt.Sprintf("%#v", this.AcceptInverseOffers)+",\n")
3219 }
3220 if this.DeclineInverseOffers != nil {
3221 s = append(s, "DeclineInverseOffers: "+fmt.Sprintf("%#v", this.DeclineInverseOffers)+",\n")
3222 }
3223 if this.Revive != nil {
3224 s = append(s, "Revive: "+fmt.Sprintf("%#v", this.Revive)+",\n")
3225 }
3226 if this.Kill != nil {
3227 s = append(s, "Kill: "+fmt.Sprintf("%#v", this.Kill)+",\n")
3228 }
3229 if this.Shutdown != nil {
3230 s = append(s, "Shutdown: "+fmt.Sprintf("%#v", this.Shutdown)+",\n")
3231 }
3232 if this.Acknowledge != nil {
3233 s = append(s, "Acknowledge: "+fmt.Sprintf("%#v", this.Acknowledge)+",\n")
3234 }
3235 if this.Reconcile != nil {
3236 s = append(s, "Reconcile: "+fmt.Sprintf("%#v", this.Reconcile)+",\n")
3237 }
3238 if this.Message != nil {
3239 s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
3240 }
3241 if this.Request != nil {
3242 s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n")
3243 }
3244 if this.Suppress != nil {
3245 s = append(s, "Suppress: "+fmt.Sprintf("%#v", this.Suppress)+",\n")
3246 }
3247 s = append(s, "}")
3248 return strings.Join(s, "")
3249 }
3250 func (this *Call_Subscribe) GoString() string {
3251 if this == nil {
3252 return "nil"
3253 }
3254 s := make([]string, 0, 6)
3255 s = append(s, "&scheduler.Call_Subscribe{")
3256 if this.FrameworkInfo != nil {
3257 s = append(s, "FrameworkInfo: "+fmt.Sprintf("%#v", this.FrameworkInfo)+",\n")
3258 }
3259 if this.SuppressedRoles != nil {
3260 s = append(s, "SuppressedRoles: "+fmt.Sprintf("%#v", this.SuppressedRoles)+",\n")
3261 }
3262 s = append(s, "}")
3263 return strings.Join(s, "")
3264 }
3265 func (this *Call_Accept) GoString() string {
3266 if this == nil {
3267 return "nil"
3268 }
3269 s := make([]string, 0, 7)
3270 s = append(s, "&scheduler.Call_Accept{")
3271 if this.OfferIDs != nil {
3272 s = append(s, "OfferIDs: "+fmt.Sprintf("%#v", this.OfferIDs)+",\n")
3273 }
3274 if this.Operations != nil {
3275 s = append(s, "Operations: "+fmt.Sprintf("%#v", this.Operations)+",\n")
3276 }
3277 if this.Filters != nil {
3278 s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
3279 }
3280 s = append(s, "}")
3281 return strings.Join(s, "")
3282 }
3283 func (this *Call_Decline) GoString() string {
3284 if this == nil {
3285 return "nil"
3286 }
3287 s := make([]string, 0, 6)
3288 s = append(s, "&scheduler.Call_Decline{")
3289 if this.OfferIDs != nil {
3290 s = append(s, "OfferIDs: "+fmt.Sprintf("%#v", this.OfferIDs)+",\n")
3291 }
3292 if this.Filters != nil {
3293 s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
3294 }
3295 s = append(s, "}")
3296 return strings.Join(s, "")
3297 }
3298 func (this *Call_AcceptInverseOffers) GoString() string {
3299 if this == nil {
3300 return "nil"
3301 }
3302 s := make([]string, 0, 6)
3303 s = append(s, "&scheduler.Call_AcceptInverseOffers{")
3304 if this.InverseOfferIDs != nil {
3305 s = append(s, "InverseOfferIDs: "+fmt.Sprintf("%#v", this.InverseOfferIDs)+",\n")
3306 }
3307 if this.Filters != nil {
3308 s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
3309 }
3310 s = append(s, "}")
3311 return strings.Join(s, "")
3312 }
3313 func (this *Call_DeclineInverseOffers) GoString() string {
3314 if this == nil {
3315 return "nil"
3316 }
3317 s := make([]string, 0, 6)
3318 s = append(s, "&scheduler.Call_DeclineInverseOffers{")
3319 if this.InverseOfferIDs != nil {
3320 s = append(s, "InverseOfferIDs: "+fmt.Sprintf("%#v", this.InverseOfferIDs)+",\n")
3321 }
3322 if this.Filters != nil {
3323 s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
3324 }
3325 s = append(s, "}")
3326 return strings.Join(s, "")
3327 }
3328 func (this *Call_Revive) GoString() string {
3329 if this == nil {
3330 return "nil"
3331 }
3332 s := make([]string, 0, 5)
3333 s = append(s, "&scheduler.Call_Revive{")
3334 if this.Roles != nil {
3335 s = append(s, "Roles: "+fmt.Sprintf("%#v", this.Roles)+",\n")
3336 }
3337 s = append(s, "}")
3338 return strings.Join(s, "")
3339 }
3340 func (this *Call_Kill) GoString() string {
3341 if this == nil {
3342 return "nil"
3343 }
3344 s := make([]string, 0, 7)
3345 s = append(s, "&scheduler.Call_Kill{")
3346 s = append(s, "TaskID: "+strings.Replace(this.TaskID.GoString(), `&`, ``, 1)+",\n")
3347 if this.AgentID != nil {
3348 s = append(s, "AgentID: "+fmt.Sprintf("%#v", this.AgentID)+",\n")
3349 }
3350 if this.KillPolicy != nil {
3351 s = append(s, "KillPolicy: "+fmt.Sprintf("%#v", this.KillPolicy)+",\n")
3352 }
3353 s = append(s, "}")
3354 return strings.Join(s, "")
3355 }
3356 func (this *Call_Shutdown) GoString() string {
3357 if this == nil {
3358 return "nil"
3359 }
3360 s := make([]string, 0, 6)
3361 s = append(s, "&scheduler.Call_Shutdown{")
3362 s = append(s, "ExecutorID: "+strings.Replace(this.ExecutorID.GoString(), `&`, ``, 1)+",\n")
3363 s = append(s, "AgentID: "+strings.Replace(this.AgentID.GoString(), `&`, ``, 1)+",\n")
3364 s = append(s, "}")
3365 return strings.Join(s, "")
3366 }
3367 func (this *Call_Acknowledge) GoString() string {
3368 if this == nil {
3369 return "nil"
3370 }
3371 s := make([]string, 0, 7)
3372 s = append(s, "&scheduler.Call_Acknowledge{")
3373 s = append(s, "AgentID: "+strings.Replace(this.AgentID.GoString(), `&`, ``, 1)+",\n")
3374 s = append(s, "TaskID: "+strings.Replace(this.TaskID.GoString(), `&`, ``, 1)+",\n")
3375 if this.UUID != nil {
3376 s = append(s, "UUID: "+valueToGoStringScheduler(this.UUID, "byte")+",\n")
3377 }
3378 s = append(s, "}")
3379 return strings.Join(s, "")
3380 }
3381 func (this *Call_Reconcile) GoString() string {
3382 if this == nil {
3383 return "nil"
3384 }
3385 s := make([]string, 0, 5)
3386 s = append(s, "&scheduler.Call_Reconcile{")
3387 if this.Tasks != nil {
3388 s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n")
3389 }
3390 s = append(s, "}")
3391 return strings.Join(s, "")
3392 }
3393 func (this *Call_Reconcile_Task) GoString() string {
3394 if this == nil {
3395 return "nil"
3396 }
3397 s := make([]string, 0, 6)
3398 s = append(s, "&scheduler.Call_Reconcile_Task{")
3399 s = append(s, "TaskID: "+strings.Replace(this.TaskID.GoString(), `&`, ``, 1)+",\n")
3400 if this.AgentID != nil {
3401 s = append(s, "AgentID: "+fmt.Sprintf("%#v", this.AgentID)+",\n")
3402 }
3403 s = append(s, "}")
3404 return strings.Join(s, "")
3405 }
3406 func (this *Call_Message) GoString() string {
3407 if this == nil {
3408 return "nil"
3409 }
3410 s := make([]string, 0, 7)
3411 s = append(s, "&scheduler.Call_Message{")
3412 s = append(s, "AgentID: "+strings.Replace(this.AgentID.GoString(), `&`, ``, 1)+",\n")
3413 s = append(s, "ExecutorID: "+strings.Replace(this.ExecutorID.GoString(), `&`, ``, 1)+",\n")
3414 if this.Data != nil {
3415 s = append(s, "Data: "+valueToGoStringScheduler(this.Data, "byte")+",\n")
3416 }
3417 s = append(s, "}")
3418 return strings.Join(s, "")
3419 }
3420 func (this *Call_Request) GoString() string {
3421 if this == nil {
3422 return "nil"
3423 }
3424 s := make([]string, 0, 5)
3425 s = append(s, "&scheduler.Call_Request{")
3426 if this.Requests != nil {
3427 s = append(s, "Requests: "+fmt.Sprintf("%#v", this.Requests)+",\n")
3428 }
3429 s = append(s, "}")
3430 return strings.Join(s, "")
3431 }
3432 func (this *Call_Suppress) GoString() string {
3433 if this == nil {
3434 return "nil"
3435 }
3436 s := make([]string, 0, 5)
3437 s = append(s, "&scheduler.Call_Suppress{")
3438 if this.Roles != nil {
3439 s = append(s, "Roles: "+fmt.Sprintf("%#v", this.Roles)+",\n")
3440 }
3441 s = append(s, "}")
3442 return strings.Join(s, "")
3443 }
3444 func valueToGoStringScheduler(v interface{}, typ string) string {
3445 rv := reflect.ValueOf(v)
3446 if rv.IsNil() {
3447 return "nil"
3448 }
3449 pv := reflect.Indirect(rv).Interface()
3450 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
3451 }
3452 func (m *Event) Marshal() (dAtA []byte, err error) {
3453 size := m.ProtoSize()
3454 dAtA = make([]byte, size)
3455 n, err := m.MarshalTo(dAtA)
3456 if err != nil {
3457 return nil, err
3458 }
3459 return dAtA[:n], nil
3460 }
3461
3462 func (m *Event) MarshalTo(dAtA []byte) (int, error) {
3463 var i int
3464 _ = i
3465 var l int
3466 _ = l
3467 dAtA[i] = 0x8
3468 i++
3469 i = encodeVarintScheduler(dAtA, i, uint64(m.Type))
3470 if m.Subscribed != nil {
3471 dAtA[i] = 0x12
3472 i++
3473 i = encodeVarintScheduler(dAtA, i, uint64(m.Subscribed.ProtoSize()))
3474 n1, err := m.Subscribed.MarshalTo(dAtA[i:])
3475 if err != nil {
3476 return 0, err
3477 }
3478 i += n1
3479 }
3480 if m.Offers != nil {
3481 dAtA[i] = 0x1a
3482 i++
3483 i = encodeVarintScheduler(dAtA, i, uint64(m.Offers.ProtoSize()))
3484 n2, err := m.Offers.MarshalTo(dAtA[i:])
3485 if err != nil {
3486 return 0, err
3487 }
3488 i += n2
3489 }
3490 if m.Rescind != nil {
3491 dAtA[i] = 0x22
3492 i++
3493 i = encodeVarintScheduler(dAtA, i, uint64(m.Rescind.ProtoSize()))
3494 n3, err := m.Rescind.MarshalTo(dAtA[i:])
3495 if err != nil {
3496 return 0, err
3497 }
3498 i += n3
3499 }
3500 if m.Update != nil {
3501 dAtA[i] = 0x2a
3502 i++
3503 i = encodeVarintScheduler(dAtA, i, uint64(m.Update.ProtoSize()))
3504 n4, err := m.Update.MarshalTo(dAtA[i:])
3505 if err != nil {
3506 return 0, err
3507 }
3508 i += n4
3509 }
3510 if m.Message != nil {
3511 dAtA[i] = 0x32
3512 i++
3513 i = encodeVarintScheduler(dAtA, i, uint64(m.Message.ProtoSize()))
3514 n5, err := m.Message.MarshalTo(dAtA[i:])
3515 if err != nil {
3516 return 0, err
3517 }
3518 i += n5
3519 }
3520 if m.Failure != nil {
3521 dAtA[i] = 0x3a
3522 i++
3523 i = encodeVarintScheduler(dAtA, i, uint64(m.Failure.ProtoSize()))
3524 n6, err := m.Failure.MarshalTo(dAtA[i:])
3525 if err != nil {
3526 return 0, err
3527 }
3528 i += n6
3529 }
3530 if m.Error != nil {
3531 dAtA[i] = 0x42
3532 i++
3533 i = encodeVarintScheduler(dAtA, i, uint64(m.Error.ProtoSize()))
3534 n7, err := m.Error.MarshalTo(dAtA[i:])
3535 if err != nil {
3536 return 0, err
3537 }
3538 i += n7
3539 }
3540 if m.InverseOffers != nil {
3541 dAtA[i] = 0x4a
3542 i++
3543 i = encodeVarintScheduler(dAtA, i, uint64(m.InverseOffers.ProtoSize()))
3544 n8, err := m.InverseOffers.MarshalTo(dAtA[i:])
3545 if err != nil {
3546 return 0, err
3547 }
3548 i += n8
3549 }
3550 if m.RescindInverseOffer != nil {
3551 dAtA[i] = 0x52
3552 i++
3553 i = encodeVarintScheduler(dAtA, i, uint64(m.RescindInverseOffer.ProtoSize()))
3554 n9, err := m.RescindInverseOffer.MarshalTo(dAtA[i:])
3555 if err != nil {
3556 return 0, err
3557 }
3558 i += n9
3559 }
3560 return i, nil
3561 }
3562
3563 func (m *Event_Subscribed) Marshal() (dAtA []byte, err error) {
3564 size := m.ProtoSize()
3565 dAtA = make([]byte, size)
3566 n, err := m.MarshalTo(dAtA)
3567 if err != nil {
3568 return nil, err
3569 }
3570 return dAtA[:n], nil
3571 }
3572
3573 func (m *Event_Subscribed) MarshalTo(dAtA []byte) (int, error) {
3574 var i int
3575 _ = i
3576 var l int
3577 _ = l
3578 if m.FrameworkID == nil {
3579 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
3580 } else {
3581 dAtA[i] = 0xa
3582 i++
3583 i = encodeVarintScheduler(dAtA, i, uint64(m.FrameworkID.ProtoSize()))
3584 n10, err := m.FrameworkID.MarshalTo(dAtA[i:])
3585 if err != nil {
3586 return 0, err
3587 }
3588 i += n10
3589 }
3590 if m.HeartbeatIntervalSeconds != nil {
3591 dAtA[i] = 0x11
3592 i++
3593 i = encodeFixed64Scheduler(dAtA, i, uint64(math.Float64bits(float64(*m.HeartbeatIntervalSeconds))))
3594 }
3595 if m.MasterInfo != nil {
3596 dAtA[i] = 0x1a
3597 i++
3598 i = encodeVarintScheduler(dAtA, i, uint64(m.MasterInfo.ProtoSize()))
3599 n11, err := m.MasterInfo.MarshalTo(dAtA[i:])
3600 if err != nil {
3601 return 0, err
3602 }
3603 i += n11
3604 }
3605 return i, nil
3606 }
3607
3608 func (m *Event_Offers) Marshal() (dAtA []byte, err error) {
3609 size := m.ProtoSize()
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 *Event_Offers) MarshalTo(dAtA []byte) (int, error) {
3619 var i int
3620 _ = i
3621 var l int
3622 _ = l
3623 if len(m.Offers) > 0 {
3624 for _, msg := range m.Offers {
3625 dAtA[i] = 0xa
3626 i++
3627 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
3628 n, err := msg.MarshalTo(dAtA[i:])
3629 if err != nil {
3630 return 0, err
3631 }
3632 i += n
3633 }
3634 }
3635 return i, nil
3636 }
3637
3638 func (m *Event_InverseOffers) Marshal() (dAtA []byte, err error) {
3639 size := m.ProtoSize()
3640 dAtA = make([]byte, size)
3641 n, err := m.MarshalTo(dAtA)
3642 if err != nil {
3643 return nil, err
3644 }
3645 return dAtA[:n], nil
3646 }
3647
3648 func (m *Event_InverseOffers) MarshalTo(dAtA []byte) (int, error) {
3649 var i int
3650 _ = i
3651 var l int
3652 _ = l
3653 if len(m.InverseOffers) > 0 {
3654 for _, msg := range m.InverseOffers {
3655 dAtA[i] = 0xa
3656 i++
3657 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
3658 n, err := msg.MarshalTo(dAtA[i:])
3659 if err != nil {
3660 return 0, err
3661 }
3662 i += n
3663 }
3664 }
3665 return i, nil
3666 }
3667
3668 func (m *Event_Rescind) Marshal() (dAtA []byte, err error) {
3669 size := m.ProtoSize()
3670 dAtA = make([]byte, size)
3671 n, err := m.MarshalTo(dAtA)
3672 if err != nil {
3673 return nil, err
3674 }
3675 return dAtA[:n], nil
3676 }
3677
3678 func (m *Event_Rescind) MarshalTo(dAtA []byte) (int, error) {
3679 var i int
3680 _ = i
3681 var l int
3682 _ = l
3683 dAtA[i] = 0xa
3684 i++
3685 i = encodeVarintScheduler(dAtA, i, uint64(m.OfferID.ProtoSize()))
3686 n12, err := m.OfferID.MarshalTo(dAtA[i:])
3687 if err != nil {
3688 return 0, err
3689 }
3690 i += n12
3691 return i, nil
3692 }
3693
3694 func (m *Event_RescindInverseOffer) Marshal() (dAtA []byte, err error) {
3695 size := m.ProtoSize()
3696 dAtA = make([]byte, size)
3697 n, err := m.MarshalTo(dAtA)
3698 if err != nil {
3699 return nil, err
3700 }
3701 return dAtA[:n], nil
3702 }
3703
3704 func (m *Event_RescindInverseOffer) MarshalTo(dAtA []byte) (int, error) {
3705 var i int
3706 _ = i
3707 var l int
3708 _ = l
3709 dAtA[i] = 0xa
3710 i++
3711 i = encodeVarintScheduler(dAtA, i, uint64(m.InverseOfferID.ProtoSize()))
3712 n13, err := m.InverseOfferID.MarshalTo(dAtA[i:])
3713 if err != nil {
3714 return 0, err
3715 }
3716 i += n13
3717 return i, nil
3718 }
3719
3720 func (m *Event_Update) Marshal() (dAtA []byte, err error) {
3721 size := m.ProtoSize()
3722 dAtA = make([]byte, size)
3723 n, err := m.MarshalTo(dAtA)
3724 if err != nil {
3725 return nil, err
3726 }
3727 return dAtA[:n], nil
3728 }
3729
3730 func (m *Event_Update) MarshalTo(dAtA []byte) (int, error) {
3731 var i int
3732 _ = i
3733 var l int
3734 _ = l
3735 dAtA[i] = 0xa
3736 i++
3737 i = encodeVarintScheduler(dAtA, i, uint64(m.Status.ProtoSize()))
3738 n14, err := m.Status.MarshalTo(dAtA[i:])
3739 if err != nil {
3740 return 0, err
3741 }
3742 i += n14
3743 return i, nil
3744 }
3745
3746 func (m *Event_Message) Marshal() (dAtA []byte, err error) {
3747 size := m.ProtoSize()
3748 dAtA = make([]byte, size)
3749 n, err := m.MarshalTo(dAtA)
3750 if err != nil {
3751 return nil, err
3752 }
3753 return dAtA[:n], nil
3754 }
3755
3756 func (m *Event_Message) MarshalTo(dAtA []byte) (int, error) {
3757 var i int
3758 _ = i
3759 var l int
3760 _ = l
3761 dAtA[i] = 0xa
3762 i++
3763 i = encodeVarintScheduler(dAtA, i, uint64(m.AgentID.ProtoSize()))
3764 n15, err := m.AgentID.MarshalTo(dAtA[i:])
3765 if err != nil {
3766 return 0, err
3767 }
3768 i += n15
3769 dAtA[i] = 0x12
3770 i++
3771 i = encodeVarintScheduler(dAtA, i, uint64(m.ExecutorID.ProtoSize()))
3772 n16, err := m.ExecutorID.MarshalTo(dAtA[i:])
3773 if err != nil {
3774 return 0, err
3775 }
3776 i += n16
3777 if m.Data == nil {
3778 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
3779 } else {
3780 dAtA[i] = 0x1a
3781 i++
3782 i = encodeVarintScheduler(dAtA, i, uint64(len(m.Data)))
3783 i += copy(dAtA[i:], m.Data)
3784 }
3785 return i, nil
3786 }
3787
3788 func (m *Event_Failure) Marshal() (dAtA []byte, err error) {
3789 size := m.ProtoSize()
3790 dAtA = make([]byte, size)
3791 n, err := m.MarshalTo(dAtA)
3792 if err != nil {
3793 return nil, err
3794 }
3795 return dAtA[:n], nil
3796 }
3797
3798 func (m *Event_Failure) MarshalTo(dAtA []byte) (int, error) {
3799 var i int
3800 _ = i
3801 var l int
3802 _ = l
3803 if m.AgentID != nil {
3804 dAtA[i] = 0xa
3805 i++
3806 i = encodeVarintScheduler(dAtA, i, uint64(m.AgentID.ProtoSize()))
3807 n17, err := m.AgentID.MarshalTo(dAtA[i:])
3808 if err != nil {
3809 return 0, err
3810 }
3811 i += n17
3812 }
3813 if m.ExecutorID != nil {
3814 dAtA[i] = 0x12
3815 i++
3816 i = encodeVarintScheduler(dAtA, i, uint64(m.ExecutorID.ProtoSize()))
3817 n18, err := m.ExecutorID.MarshalTo(dAtA[i:])
3818 if err != nil {
3819 return 0, err
3820 }
3821 i += n18
3822 }
3823 if m.Status != nil {
3824 dAtA[i] = 0x18
3825 i++
3826 i = encodeVarintScheduler(dAtA, i, uint64(*m.Status))
3827 }
3828 return i, nil
3829 }
3830
3831 func (m *Event_Error) Marshal() (dAtA []byte, err error) {
3832 size := m.ProtoSize()
3833 dAtA = make([]byte, size)
3834 n, err := m.MarshalTo(dAtA)
3835 if err != nil {
3836 return nil, err
3837 }
3838 return dAtA[:n], nil
3839 }
3840
3841 func (m *Event_Error) MarshalTo(dAtA []byte) (int, error) {
3842 var i int
3843 _ = i
3844 var l int
3845 _ = l
3846 dAtA[i] = 0xa
3847 i++
3848 i = encodeVarintScheduler(dAtA, i, uint64(len(m.Message)))
3849 i += copy(dAtA[i:], m.Message)
3850 return i, nil
3851 }
3852
3853 func (m *Call) Marshal() (dAtA []byte, err error) {
3854 size := m.ProtoSize()
3855 dAtA = make([]byte, size)
3856 n, err := m.MarshalTo(dAtA)
3857 if err != nil {
3858 return nil, err
3859 }
3860 return dAtA[:n], nil
3861 }
3862
3863 func (m *Call) MarshalTo(dAtA []byte) (int, error) {
3864 var i int
3865 _ = i
3866 var l int
3867 _ = l
3868 if m.FrameworkID != nil {
3869 dAtA[i] = 0xa
3870 i++
3871 i = encodeVarintScheduler(dAtA, i, uint64(m.FrameworkID.ProtoSize()))
3872 n19, err := m.FrameworkID.MarshalTo(dAtA[i:])
3873 if err != nil {
3874 return 0, err
3875 }
3876 i += n19
3877 }
3878 dAtA[i] = 0x10
3879 i++
3880 i = encodeVarintScheduler(dAtA, i, uint64(m.Type))
3881 if m.Subscribe != nil {
3882 dAtA[i] = 0x1a
3883 i++
3884 i = encodeVarintScheduler(dAtA, i, uint64(m.Subscribe.ProtoSize()))
3885 n20, err := m.Subscribe.MarshalTo(dAtA[i:])
3886 if err != nil {
3887 return 0, err
3888 }
3889 i += n20
3890 }
3891 if m.Accept != nil {
3892 dAtA[i] = 0x22
3893 i++
3894 i = encodeVarintScheduler(dAtA, i, uint64(m.Accept.ProtoSize()))
3895 n21, err := m.Accept.MarshalTo(dAtA[i:])
3896 if err != nil {
3897 return 0, err
3898 }
3899 i += n21
3900 }
3901 if m.Decline != nil {
3902 dAtA[i] = 0x2a
3903 i++
3904 i = encodeVarintScheduler(dAtA, i, uint64(m.Decline.ProtoSize()))
3905 n22, err := m.Decline.MarshalTo(dAtA[i:])
3906 if err != nil {
3907 return 0, err
3908 }
3909 i += n22
3910 }
3911 if m.Kill != nil {
3912 dAtA[i] = 0x32
3913 i++
3914 i = encodeVarintScheduler(dAtA, i, uint64(m.Kill.ProtoSize()))
3915 n23, err := m.Kill.MarshalTo(dAtA[i:])
3916 if err != nil {
3917 return 0, err
3918 }
3919 i += n23
3920 }
3921 if m.Shutdown != nil {
3922 dAtA[i] = 0x3a
3923 i++
3924 i = encodeVarintScheduler(dAtA, i, uint64(m.Shutdown.ProtoSize()))
3925 n24, err := m.Shutdown.MarshalTo(dAtA[i:])
3926 if err != nil {
3927 return 0, err
3928 }
3929 i += n24
3930 }
3931 if m.Acknowledge != nil {
3932 dAtA[i] = 0x42
3933 i++
3934 i = encodeVarintScheduler(dAtA, i, uint64(m.Acknowledge.ProtoSize()))
3935 n25, err := m.Acknowledge.MarshalTo(dAtA[i:])
3936 if err != nil {
3937 return 0, err
3938 }
3939 i += n25
3940 }
3941 if m.Reconcile != nil {
3942 dAtA[i] = 0x4a
3943 i++
3944 i = encodeVarintScheduler(dAtA, i, uint64(m.Reconcile.ProtoSize()))
3945 n26, err := m.Reconcile.MarshalTo(dAtA[i:])
3946 if err != nil {
3947 return 0, err
3948 }
3949 i += n26
3950 }
3951 if m.Message != nil {
3952 dAtA[i] = 0x52
3953 i++
3954 i = encodeVarintScheduler(dAtA, i, uint64(m.Message.ProtoSize()))
3955 n27, err := m.Message.MarshalTo(dAtA[i:])
3956 if err != nil {
3957 return 0, err
3958 }
3959 i += n27
3960 }
3961 if m.Request != nil {
3962 dAtA[i] = 0x5a
3963 i++
3964 i = encodeVarintScheduler(dAtA, i, uint64(m.Request.ProtoSize()))
3965 n28, err := m.Request.MarshalTo(dAtA[i:])
3966 if err != nil {
3967 return 0, err
3968 }
3969 i += n28
3970 }
3971 if m.AcceptInverseOffers != nil {
3972 dAtA[i] = 0x6a
3973 i++
3974 i = encodeVarintScheduler(dAtA, i, uint64(m.AcceptInverseOffers.ProtoSize()))
3975 n29, err := m.AcceptInverseOffers.MarshalTo(dAtA[i:])
3976 if err != nil {
3977 return 0, err
3978 }
3979 i += n29
3980 }
3981 if m.DeclineInverseOffers != nil {
3982 dAtA[i] = 0x72
3983 i++
3984 i = encodeVarintScheduler(dAtA, i, uint64(m.DeclineInverseOffers.ProtoSize()))
3985 n30, err := m.DeclineInverseOffers.MarshalTo(dAtA[i:])
3986 if err != nil {
3987 return 0, err
3988 }
3989 i += n30
3990 }
3991 if m.Revive != nil {
3992 dAtA[i] = 0x7a
3993 i++
3994 i = encodeVarintScheduler(dAtA, i, uint64(m.Revive.ProtoSize()))
3995 n31, err := m.Revive.MarshalTo(dAtA[i:])
3996 if err != nil {
3997 return 0, err
3998 }
3999 i += n31
4000 }
4001 if m.Suppress != nil {
4002 dAtA[i] = 0x82
4003 i++
4004 dAtA[i] = 0x1
4005 i++
4006 i = encodeVarintScheduler(dAtA, i, uint64(m.Suppress.ProtoSize()))
4007 n32, err := m.Suppress.MarshalTo(dAtA[i:])
4008 if err != nil {
4009 return 0, err
4010 }
4011 i += n32
4012 }
4013 return i, nil
4014 }
4015
4016 func (m *Call_Subscribe) Marshal() (dAtA []byte, err error) {
4017 size := m.ProtoSize()
4018 dAtA = make([]byte, size)
4019 n, err := m.MarshalTo(dAtA)
4020 if err != nil {
4021 return nil, err
4022 }
4023 return dAtA[:n], nil
4024 }
4025
4026 func (m *Call_Subscribe) MarshalTo(dAtA []byte) (int, error) {
4027 var i int
4028 _ = i
4029 var l int
4030 _ = l
4031 if m.FrameworkInfo == nil {
4032 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
4033 } else {
4034 dAtA[i] = 0xa
4035 i++
4036 i = encodeVarintScheduler(dAtA, i, uint64(m.FrameworkInfo.ProtoSize()))
4037 n33, err := m.FrameworkInfo.MarshalTo(dAtA[i:])
4038 if err != nil {
4039 return 0, err
4040 }
4041 i += n33
4042 }
4043 if len(m.SuppressedRoles) > 0 {
4044 for _, s := range m.SuppressedRoles {
4045 dAtA[i] = 0x12
4046 i++
4047 l = len(s)
4048 for l >= 1<<7 {
4049 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
4050 l >>= 7
4051 i++
4052 }
4053 dAtA[i] = uint8(l)
4054 i++
4055 i += copy(dAtA[i:], s)
4056 }
4057 }
4058 return i, nil
4059 }
4060
4061 func (m *Call_Accept) Marshal() (dAtA []byte, err error) {
4062 size := m.ProtoSize()
4063 dAtA = make([]byte, size)
4064 n, err := m.MarshalTo(dAtA)
4065 if err != nil {
4066 return nil, err
4067 }
4068 return dAtA[:n], nil
4069 }
4070
4071 func (m *Call_Accept) MarshalTo(dAtA []byte) (int, error) {
4072 var i int
4073 _ = i
4074 var l int
4075 _ = l
4076 if len(m.OfferIDs) > 0 {
4077 for _, msg := range m.OfferIDs {
4078 dAtA[i] = 0xa
4079 i++
4080 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
4081 n, err := msg.MarshalTo(dAtA[i:])
4082 if err != nil {
4083 return 0, err
4084 }
4085 i += n
4086 }
4087 }
4088 if len(m.Operations) > 0 {
4089 for _, msg := range m.Operations {
4090 dAtA[i] = 0x12
4091 i++
4092 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
4093 n, err := msg.MarshalTo(dAtA[i:])
4094 if err != nil {
4095 return 0, err
4096 }
4097 i += n
4098 }
4099 }
4100 if m.Filters != nil {
4101 dAtA[i] = 0x1a
4102 i++
4103 i = encodeVarintScheduler(dAtA, i, uint64(m.Filters.ProtoSize()))
4104 n34, err := m.Filters.MarshalTo(dAtA[i:])
4105 if err != nil {
4106 return 0, err
4107 }
4108 i += n34
4109 }
4110 return i, nil
4111 }
4112
4113 func (m *Call_Decline) Marshal() (dAtA []byte, err error) {
4114 size := m.ProtoSize()
4115 dAtA = make([]byte, size)
4116 n, err := m.MarshalTo(dAtA)
4117 if err != nil {
4118 return nil, err
4119 }
4120 return dAtA[:n], nil
4121 }
4122
4123 func (m *Call_Decline) MarshalTo(dAtA []byte) (int, error) {
4124 var i int
4125 _ = i
4126 var l int
4127 _ = l
4128 if len(m.OfferIDs) > 0 {
4129 for _, msg := range m.OfferIDs {
4130 dAtA[i] = 0xa
4131 i++
4132 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
4133 n, err := msg.MarshalTo(dAtA[i:])
4134 if err != nil {
4135 return 0, err
4136 }
4137 i += n
4138 }
4139 }
4140 if m.Filters != nil {
4141 dAtA[i] = 0x12
4142 i++
4143 i = encodeVarintScheduler(dAtA, i, uint64(m.Filters.ProtoSize()))
4144 n35, err := m.Filters.MarshalTo(dAtA[i:])
4145 if err != nil {
4146 return 0, err
4147 }
4148 i += n35
4149 }
4150 return i, nil
4151 }
4152
4153 func (m *Call_AcceptInverseOffers) Marshal() (dAtA []byte, err error) {
4154 size := m.ProtoSize()
4155 dAtA = make([]byte, size)
4156 n, err := m.MarshalTo(dAtA)
4157 if err != nil {
4158 return nil, err
4159 }
4160 return dAtA[:n], nil
4161 }
4162
4163 func (m *Call_AcceptInverseOffers) MarshalTo(dAtA []byte) (int, error) {
4164 var i int
4165 _ = i
4166 var l int
4167 _ = l
4168 if len(m.InverseOfferIDs) > 0 {
4169 for _, msg := range m.InverseOfferIDs {
4170 dAtA[i] = 0xa
4171 i++
4172 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
4173 n, err := msg.MarshalTo(dAtA[i:])
4174 if err != nil {
4175 return 0, err
4176 }
4177 i += n
4178 }
4179 }
4180 if m.Filters != nil {
4181 dAtA[i] = 0x12
4182 i++
4183 i = encodeVarintScheduler(dAtA, i, uint64(m.Filters.ProtoSize()))
4184 n36, err := m.Filters.MarshalTo(dAtA[i:])
4185 if err != nil {
4186 return 0, err
4187 }
4188 i += n36
4189 }
4190 return i, nil
4191 }
4192
4193 func (m *Call_DeclineInverseOffers) Marshal() (dAtA []byte, err error) {
4194 size := m.ProtoSize()
4195 dAtA = make([]byte, size)
4196 n, err := m.MarshalTo(dAtA)
4197 if err != nil {
4198 return nil, err
4199 }
4200 return dAtA[:n], nil
4201 }
4202
4203 func (m *Call_DeclineInverseOffers) MarshalTo(dAtA []byte) (int, error) {
4204 var i int
4205 _ = i
4206 var l int
4207 _ = l
4208 if len(m.InverseOfferIDs) > 0 {
4209 for _, msg := range m.InverseOfferIDs {
4210 dAtA[i] = 0xa
4211 i++
4212 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
4213 n, err := msg.MarshalTo(dAtA[i:])
4214 if err != nil {
4215 return 0, err
4216 }
4217 i += n
4218 }
4219 }
4220 if m.Filters != nil {
4221 dAtA[i] = 0x12
4222 i++
4223 i = encodeVarintScheduler(dAtA, i, uint64(m.Filters.ProtoSize()))
4224 n37, err := m.Filters.MarshalTo(dAtA[i:])
4225 if err != nil {
4226 return 0, err
4227 }
4228 i += n37
4229 }
4230 return i, nil
4231 }
4232
4233 func (m *Call_Revive) Marshal() (dAtA []byte, err error) {
4234 size := m.ProtoSize()
4235 dAtA = make([]byte, size)
4236 n, err := m.MarshalTo(dAtA)
4237 if err != nil {
4238 return nil, err
4239 }
4240 return dAtA[:n], nil
4241 }
4242
4243 func (m *Call_Revive) MarshalTo(dAtA []byte) (int, error) {
4244 var i int
4245 _ = i
4246 var l int
4247 _ = l
4248 if len(m.Roles) > 0 {
4249 for _, s := range m.Roles {
4250 dAtA[i] = 0xa
4251 i++
4252 l = len(s)
4253 for l >= 1<<7 {
4254 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
4255 l >>= 7
4256 i++
4257 }
4258 dAtA[i] = uint8(l)
4259 i++
4260 i += copy(dAtA[i:], s)
4261 }
4262 }
4263 return i, nil
4264 }
4265
4266 func (m *Call_Kill) Marshal() (dAtA []byte, err error) {
4267 size := m.ProtoSize()
4268 dAtA = make([]byte, size)
4269 n, err := m.MarshalTo(dAtA)
4270 if err != nil {
4271 return nil, err
4272 }
4273 return dAtA[:n], nil
4274 }
4275
4276 func (m *Call_Kill) MarshalTo(dAtA []byte) (int, error) {
4277 var i int
4278 _ = i
4279 var l int
4280 _ = l
4281 dAtA[i] = 0xa
4282 i++
4283 i = encodeVarintScheduler(dAtA, i, uint64(m.TaskID.ProtoSize()))
4284 n38, err := m.TaskID.MarshalTo(dAtA[i:])
4285 if err != nil {
4286 return 0, err
4287 }
4288 i += n38
4289 if m.AgentID != nil {
4290 dAtA[i] = 0x12
4291 i++
4292 i = encodeVarintScheduler(dAtA, i, uint64(m.AgentID.ProtoSize()))
4293 n39, err := m.AgentID.MarshalTo(dAtA[i:])
4294 if err != nil {
4295 return 0, err
4296 }
4297 i += n39
4298 }
4299 if m.KillPolicy != nil {
4300 dAtA[i] = 0x1a
4301 i++
4302 i = encodeVarintScheduler(dAtA, i, uint64(m.KillPolicy.ProtoSize()))
4303 n40, err := m.KillPolicy.MarshalTo(dAtA[i:])
4304 if err != nil {
4305 return 0, err
4306 }
4307 i += n40
4308 }
4309 return i, nil
4310 }
4311
4312 func (m *Call_Shutdown) Marshal() (dAtA []byte, err error) {
4313 size := m.ProtoSize()
4314 dAtA = make([]byte, size)
4315 n, err := m.MarshalTo(dAtA)
4316 if err != nil {
4317 return nil, err
4318 }
4319 return dAtA[:n], nil
4320 }
4321
4322 func (m *Call_Shutdown) MarshalTo(dAtA []byte) (int, error) {
4323 var i int
4324 _ = i
4325 var l int
4326 _ = l
4327 dAtA[i] = 0xa
4328 i++
4329 i = encodeVarintScheduler(dAtA, i, uint64(m.ExecutorID.ProtoSize()))
4330 n41, err := m.ExecutorID.MarshalTo(dAtA[i:])
4331 if err != nil {
4332 return 0, err
4333 }
4334 i += n41
4335 dAtA[i] = 0x12
4336 i++
4337 i = encodeVarintScheduler(dAtA, i, uint64(m.AgentID.ProtoSize()))
4338 n42, err := m.AgentID.MarshalTo(dAtA[i:])
4339 if err != nil {
4340 return 0, err
4341 }
4342 i += n42
4343 return i, nil
4344 }
4345
4346 func (m *Call_Acknowledge) Marshal() (dAtA []byte, err error) {
4347 size := m.ProtoSize()
4348 dAtA = make([]byte, size)
4349 n, err := m.MarshalTo(dAtA)
4350 if err != nil {
4351 return nil, err
4352 }
4353 return dAtA[:n], nil
4354 }
4355
4356 func (m *Call_Acknowledge) MarshalTo(dAtA []byte) (int, error) {
4357 var i int
4358 _ = i
4359 var l int
4360 _ = l
4361 dAtA[i] = 0xa
4362 i++
4363 i = encodeVarintScheduler(dAtA, i, uint64(m.AgentID.ProtoSize()))
4364 n43, err := m.AgentID.MarshalTo(dAtA[i:])
4365 if err != nil {
4366 return 0, err
4367 }
4368 i += n43
4369 dAtA[i] = 0x12
4370 i++
4371 i = encodeVarintScheduler(dAtA, i, uint64(m.TaskID.ProtoSize()))
4372 n44, err := m.TaskID.MarshalTo(dAtA[i:])
4373 if err != nil {
4374 return 0, err
4375 }
4376 i += n44
4377 if m.UUID == nil {
4378 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
4379 } else {
4380 dAtA[i] = 0x1a
4381 i++
4382 i = encodeVarintScheduler(dAtA, i, uint64(len(m.UUID)))
4383 i += copy(dAtA[i:], m.UUID)
4384 }
4385 return i, nil
4386 }
4387
4388 func (m *Call_Reconcile) Marshal() (dAtA []byte, err error) {
4389 size := m.ProtoSize()
4390 dAtA = make([]byte, size)
4391 n, err := m.MarshalTo(dAtA)
4392 if err != nil {
4393 return nil, err
4394 }
4395 return dAtA[:n], nil
4396 }
4397
4398 func (m *Call_Reconcile) MarshalTo(dAtA []byte) (int, error) {
4399 var i int
4400 _ = i
4401 var l int
4402 _ = l
4403 if len(m.Tasks) > 0 {
4404 for _, msg := range m.Tasks {
4405 dAtA[i] = 0xa
4406 i++
4407 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
4408 n, err := msg.MarshalTo(dAtA[i:])
4409 if err != nil {
4410 return 0, err
4411 }
4412 i += n
4413 }
4414 }
4415 return i, nil
4416 }
4417
4418 func (m *Call_Reconcile_Task) Marshal() (dAtA []byte, err error) {
4419 size := m.ProtoSize()
4420 dAtA = make([]byte, size)
4421 n, err := m.MarshalTo(dAtA)
4422 if err != nil {
4423 return nil, err
4424 }
4425 return dAtA[:n], nil
4426 }
4427
4428 func (m *Call_Reconcile_Task) MarshalTo(dAtA []byte) (int, error) {
4429 var i int
4430 _ = i
4431 var l int
4432 _ = l
4433 dAtA[i] = 0xa
4434 i++
4435 i = encodeVarintScheduler(dAtA, i, uint64(m.TaskID.ProtoSize()))
4436 n45, err := m.TaskID.MarshalTo(dAtA[i:])
4437 if err != nil {
4438 return 0, err
4439 }
4440 i += n45
4441 if m.AgentID != nil {
4442 dAtA[i] = 0x12
4443 i++
4444 i = encodeVarintScheduler(dAtA, i, uint64(m.AgentID.ProtoSize()))
4445 n46, err := m.AgentID.MarshalTo(dAtA[i:])
4446 if err != nil {
4447 return 0, err
4448 }
4449 i += n46
4450 }
4451 return i, nil
4452 }
4453
4454 func (m *Call_Message) Marshal() (dAtA []byte, err error) {
4455 size := m.ProtoSize()
4456 dAtA = make([]byte, size)
4457 n, err := m.MarshalTo(dAtA)
4458 if err != nil {
4459 return nil, err
4460 }
4461 return dAtA[:n], nil
4462 }
4463
4464 func (m *Call_Message) MarshalTo(dAtA []byte) (int, error) {
4465 var i int
4466 _ = i
4467 var l int
4468 _ = l
4469 dAtA[i] = 0xa
4470 i++
4471 i = encodeVarintScheduler(dAtA, i, uint64(m.AgentID.ProtoSize()))
4472 n47, err := m.AgentID.MarshalTo(dAtA[i:])
4473 if err != nil {
4474 return 0, err
4475 }
4476 i += n47
4477 dAtA[i] = 0x12
4478 i++
4479 i = encodeVarintScheduler(dAtA, i, uint64(m.ExecutorID.ProtoSize()))
4480 n48, err := m.ExecutorID.MarshalTo(dAtA[i:])
4481 if err != nil {
4482 return 0, err
4483 }
4484 i += n48
4485 if m.Data == nil {
4486 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
4487 } else {
4488 dAtA[i] = 0x1a
4489 i++
4490 i = encodeVarintScheduler(dAtA, i, uint64(len(m.Data)))
4491 i += copy(dAtA[i:], m.Data)
4492 }
4493 return i, nil
4494 }
4495
4496 func (m *Call_Request) Marshal() (dAtA []byte, err error) {
4497 size := m.ProtoSize()
4498 dAtA = make([]byte, size)
4499 n, err := m.MarshalTo(dAtA)
4500 if err != nil {
4501 return nil, err
4502 }
4503 return dAtA[:n], nil
4504 }
4505
4506 func (m *Call_Request) MarshalTo(dAtA []byte) (int, error) {
4507 var i int
4508 _ = i
4509 var l int
4510 _ = l
4511 if len(m.Requests) > 0 {
4512 for _, msg := range m.Requests {
4513 dAtA[i] = 0xa
4514 i++
4515 i = encodeVarintScheduler(dAtA, i, uint64(msg.ProtoSize()))
4516 n, err := msg.MarshalTo(dAtA[i:])
4517 if err != nil {
4518 return 0, err
4519 }
4520 i += n
4521 }
4522 }
4523 return i, nil
4524 }
4525
4526 func (m *Call_Suppress) Marshal() (dAtA []byte, err error) {
4527 size := m.ProtoSize()
4528 dAtA = make([]byte, size)
4529 n, err := m.MarshalTo(dAtA)
4530 if err != nil {
4531 return nil, err
4532 }
4533 return dAtA[:n], nil
4534 }
4535
4536 func (m *Call_Suppress) MarshalTo(dAtA []byte) (int, error) {
4537 var i int
4538 _ = i
4539 var l int
4540 _ = l
4541 if len(m.Roles) > 0 {
4542 for _, s := range m.Roles {
4543 dAtA[i] = 0xa
4544 i++
4545 l = len(s)
4546 for l >= 1<<7 {
4547 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
4548 l >>= 7
4549 i++
4550 }
4551 dAtA[i] = uint8(l)
4552 i++
4553 i += copy(dAtA[i:], s)
4554 }
4555 }
4556 return i, nil
4557 }
4558
4559 func encodeFixed64Scheduler(dAtA []byte, offset int, v uint64) int {
4560 dAtA[offset] = uint8(v)
4561 dAtA[offset+1] = uint8(v >> 8)
4562 dAtA[offset+2] = uint8(v >> 16)
4563 dAtA[offset+3] = uint8(v >> 24)
4564 dAtA[offset+4] = uint8(v >> 32)
4565 dAtA[offset+5] = uint8(v >> 40)
4566 dAtA[offset+6] = uint8(v >> 48)
4567 dAtA[offset+7] = uint8(v >> 56)
4568 return offset + 8
4569 }
4570 func encodeFixed32Scheduler(dAtA []byte, offset int, v uint32) int {
4571 dAtA[offset] = uint8(v)
4572 dAtA[offset+1] = uint8(v >> 8)
4573 dAtA[offset+2] = uint8(v >> 16)
4574 dAtA[offset+3] = uint8(v >> 24)
4575 return offset + 4
4576 }
4577 func encodeVarintScheduler(dAtA []byte, offset int, v uint64) int {
4578 for v >= 1<<7 {
4579 dAtA[offset] = uint8(v&0x7f | 0x80)
4580 v >>= 7
4581 offset++
4582 }
4583 dAtA[offset] = uint8(v)
4584 return offset + 1
4585 }
4586 func NewPopulatedEvent(r randyScheduler, easy bool) *Event {
4587 this := &Event{}
4588 this.Type = Event_Type([]int32{0, 1, 2, 9, 3, 10, 4, 5, 6, 7, 8}[r.Intn(11)])
4589 if r.Intn(10) != 0 {
4590 this.Subscribed = NewPopulatedEvent_Subscribed(r, easy)
4591 }
4592 if r.Intn(10) != 0 {
4593 this.Offers = NewPopulatedEvent_Offers(r, easy)
4594 }
4595 if r.Intn(10) != 0 {
4596 this.Rescind = NewPopulatedEvent_Rescind(r, easy)
4597 }
4598 if r.Intn(10) == 0 {
4599 this.Update = NewPopulatedEvent_Update(r, easy)
4600 }
4601 if r.Intn(10) != 0 {
4602 this.Message = NewPopulatedEvent_Message(r, easy)
4603 }
4604 if r.Intn(10) != 0 {
4605 this.Failure = NewPopulatedEvent_Failure(r, easy)
4606 }
4607 if r.Intn(10) != 0 {
4608 this.Error = NewPopulatedEvent_Error(r, easy)
4609 }
4610 if r.Intn(10) != 0 {
4611 this.InverseOffers = NewPopulatedEvent_InverseOffers(r, easy)
4612 }
4613 if r.Intn(10) != 0 {
4614 this.RescindInverseOffer = NewPopulatedEvent_RescindInverseOffer(r, easy)
4615 }
4616 if !easy && r.Intn(10) != 0 {
4617 }
4618 return this
4619 }
4620
4621 func NewPopulatedEvent_Subscribed(r randyScheduler, easy bool) *Event_Subscribed {
4622 this := &Event_Subscribed{}
4623 this.FrameworkID = mesos.NewPopulatedFrameworkID(r, easy)
4624 if r.Intn(10) != 0 {
4625 v1 := float64(r.Float64())
4626 if r.Intn(2) == 0 {
4627 v1 *= -1
4628 }
4629 this.HeartbeatIntervalSeconds = &v1
4630 }
4631 if r.Intn(10) != 0 {
4632 this.MasterInfo = mesos.NewPopulatedMasterInfo(r, easy)
4633 }
4634 if !easy && r.Intn(10) != 0 {
4635 }
4636 return this
4637 }
4638
4639 func NewPopulatedEvent_Offers(r randyScheduler, easy bool) *Event_Offers {
4640 this := &Event_Offers{}
4641 if r.Intn(10) != 0 {
4642 v2 := r.Intn(5)
4643 this.Offers = make([]mesos.Offer, v2)
4644 for i := 0; i < v2; i++ {
4645 v3 := mesos.NewPopulatedOffer(r, easy)
4646 this.Offers[i] = *v3
4647 }
4648 }
4649 if !easy && r.Intn(10) != 0 {
4650 }
4651 return this
4652 }
4653
4654 func NewPopulatedEvent_InverseOffers(r randyScheduler, easy bool) *Event_InverseOffers {
4655 this := &Event_InverseOffers{}
4656 if r.Intn(10) != 0 {
4657 v4 := r.Intn(5)
4658 this.InverseOffers = make([]mesos.InverseOffer, v4)
4659 for i := 0; i < v4; i++ {
4660 v5 := mesos.NewPopulatedInverseOffer(r, easy)
4661 this.InverseOffers[i] = *v5
4662 }
4663 }
4664 if !easy && r.Intn(10) != 0 {
4665 }
4666 return this
4667 }
4668
4669 func NewPopulatedEvent_Rescind(r randyScheduler, easy bool) *Event_Rescind {
4670 this := &Event_Rescind{}
4671 v6 := mesos.NewPopulatedOfferID(r, easy)
4672 this.OfferID = *v6
4673 if !easy && r.Intn(10) != 0 {
4674 }
4675 return this
4676 }
4677
4678 func NewPopulatedEvent_RescindInverseOffer(r randyScheduler, easy bool) *Event_RescindInverseOffer {
4679 this := &Event_RescindInverseOffer{}
4680 v7 := mesos.NewPopulatedOfferID(r, easy)
4681 this.InverseOfferID = *v7
4682 if !easy && r.Intn(10) != 0 {
4683 }
4684 return this
4685 }
4686
4687 func NewPopulatedEvent_Update(r randyScheduler, easy bool) *Event_Update {
4688 this := &Event_Update{}
4689 v8 := mesos.NewPopulatedTaskStatus(r, easy)
4690 this.Status = *v8
4691 if !easy && r.Intn(10) != 0 {
4692 }
4693 return this
4694 }
4695
4696 func NewPopulatedEvent_Message(r randyScheduler, easy bool) *Event_Message {
4697 this := &Event_Message{}
4698 v9 := mesos.NewPopulatedAgentID(r, easy)
4699 this.AgentID = *v9
4700 v10 := mesos.NewPopulatedExecutorID(r, easy)
4701 this.ExecutorID = *v10
4702 v11 := r.Intn(100)
4703 this.Data = make([]byte, v11)
4704 for i := 0; i < v11; i++ {
4705 this.Data[i] = byte(r.Intn(256))
4706 }
4707 if !easy && r.Intn(10) != 0 {
4708 }
4709 return this
4710 }
4711
4712 func NewPopulatedEvent_Failure(r randyScheduler, easy bool) *Event_Failure {
4713 this := &Event_Failure{}
4714 if r.Intn(10) != 0 {
4715 this.AgentID = mesos.NewPopulatedAgentID(r, easy)
4716 }
4717 if r.Intn(10) != 0 {
4718 this.ExecutorID = mesos.NewPopulatedExecutorID(r, easy)
4719 }
4720 if r.Intn(10) != 0 {
4721 v12 := int32(r.Int31())
4722 if r.Intn(2) == 0 {
4723 v12 *= -1
4724 }
4725 this.Status = &v12
4726 }
4727 if !easy && r.Intn(10) != 0 {
4728 }
4729 return this
4730 }
4731
4732 func NewPopulatedEvent_Error(r randyScheduler, easy bool) *Event_Error {
4733 this := &Event_Error{}
4734 this.Message = string(randStringScheduler(r))
4735 if !easy && r.Intn(10) != 0 {
4736 }
4737 return this
4738 }
4739
4740 func NewPopulatedCall(r randyScheduler, easy bool) *Call {
4741 this := &Call{}
4742 if r.Intn(10) != 0 {
4743 this.FrameworkID = mesos.NewPopulatedFrameworkID(r, easy)
4744 }
4745 this.Type = Call_Type([]int32{0, 1, 2, 3, 4, 13, 14, 5, 6, 7, 8, 9, 10, 11, 12}[r.Intn(15)])
4746 if r.Intn(10) != 0 {
4747 this.Subscribe = NewPopulatedCall_Subscribe(r, easy)
4748 }
4749 if r.Intn(10) != 0 {
4750 this.Accept = NewPopulatedCall_Accept(r, easy)
4751 }
4752 if r.Intn(10) != 0 {
4753 this.Decline = NewPopulatedCall_Decline(r, easy)
4754 }
4755 if r.Intn(10) != 0 {
4756 this.Kill = NewPopulatedCall_Kill(r, easy)
4757 }
4758 if r.Intn(10) != 0 {
4759 this.Shutdown = NewPopulatedCall_Shutdown(r, easy)
4760 }
4761 if r.Intn(10) != 0 {
4762 this.Acknowledge = NewPopulatedCall_Acknowledge(r, easy)
4763 }
4764 if r.Intn(10) != 0 {
4765 this.Reconcile = NewPopulatedCall_Reconcile(r, easy)
4766 }
4767 if r.Intn(10) != 0 {
4768 this.Message = NewPopulatedCall_Message(r, easy)
4769 }
4770 if r.Intn(10) != 0 {
4771 this.Request = NewPopulatedCall_Request(r, easy)
4772 }
4773 if r.Intn(10) != 0 {
4774 this.AcceptInverseOffers = NewPopulatedCall_AcceptInverseOffers(r, easy)
4775 }
4776 if r.Intn(10) != 0 {
4777 this.DeclineInverseOffers = NewPopulatedCall_DeclineInverseOffers(r, easy)
4778 }
4779 if r.Intn(10) != 0 {
4780 this.Revive = NewPopulatedCall_Revive(r, easy)
4781 }
4782 if r.Intn(10) != 0 {
4783 this.Suppress = NewPopulatedCall_Suppress(r, easy)
4784 }
4785 if !easy && r.Intn(10) != 0 {
4786 }
4787 return this
4788 }
4789
4790 func NewPopulatedCall_Subscribe(r randyScheduler, easy bool) *Call_Subscribe {
4791 this := &Call_Subscribe{}
4792 this.FrameworkInfo = mesos.NewPopulatedFrameworkInfo(r, easy)
4793 if r.Intn(10) != 0 {
4794 v13 := r.Intn(10)
4795 this.SuppressedRoles = make([]string, v13)
4796 for i := 0; i < v13; i++ {
4797 this.SuppressedRoles[i] = string(randStringScheduler(r))
4798 }
4799 }
4800 if !easy && r.Intn(10) != 0 {
4801 }
4802 return this
4803 }
4804
4805 func NewPopulatedCall_Accept(r randyScheduler, easy bool) *Call_Accept {
4806 this := &Call_Accept{}
4807 if r.Intn(10) != 0 {
4808 v14 := r.Intn(5)
4809 this.OfferIDs = make([]mesos.OfferID, v14)
4810 for i := 0; i < v14; i++ {
4811 v15 := mesos.NewPopulatedOfferID(r, easy)
4812 this.OfferIDs[i] = *v15
4813 }
4814 }
4815 if r.Intn(10) != 0 {
4816 v16 := r.Intn(5)
4817 this.Operations = make([]mesos.Offer_Operation, v16)
4818 for i := 0; i < v16; i++ {
4819 v17 := mesos.NewPopulatedOffer_Operation(r, easy)
4820 this.Operations[i] = *v17
4821 }
4822 }
4823 if r.Intn(10) != 0 {
4824 this.Filters = mesos.NewPopulatedFilters(r, easy)
4825 }
4826 if !easy && r.Intn(10) != 0 {
4827 }
4828 return this
4829 }
4830
4831 func NewPopulatedCall_Decline(r randyScheduler, easy bool) *Call_Decline {
4832 this := &Call_Decline{}
4833 if r.Intn(10) != 0 {
4834 v18 := r.Intn(5)
4835 this.OfferIDs = make([]mesos.OfferID, v18)
4836 for i := 0; i < v18; i++ {
4837 v19 := mesos.NewPopulatedOfferID(r, easy)
4838 this.OfferIDs[i] = *v19
4839 }
4840 }
4841 if r.Intn(10) != 0 {
4842 this.Filters = mesos.NewPopulatedFilters(r, easy)
4843 }
4844 if !easy && r.Intn(10) != 0 {
4845 }
4846 return this
4847 }
4848
4849 func NewPopulatedCall_AcceptInverseOffers(r randyScheduler, easy bool) *Call_AcceptInverseOffers {
4850 this := &Call_AcceptInverseOffers{}
4851 if r.Intn(10) != 0 {
4852 v20 := r.Intn(5)
4853 this.InverseOfferIDs = make([]mesos.OfferID, v20)
4854 for i := 0; i < v20; i++ {
4855 v21 := mesos.NewPopulatedOfferID(r, easy)
4856 this.InverseOfferIDs[i] = *v21
4857 }
4858 }
4859 if r.Intn(10) != 0 {
4860 this.Filters = mesos.NewPopulatedFilters(r, easy)
4861 }
4862 if !easy && r.Intn(10) != 0 {
4863 }
4864 return this
4865 }
4866
4867 func NewPopulatedCall_DeclineInverseOffers(r randyScheduler, easy bool) *Call_DeclineInverseOffers {
4868 this := &Call_DeclineInverseOffers{}
4869 if r.Intn(10) != 0 {
4870 v22 := r.Intn(5)
4871 this.InverseOfferIDs = make([]mesos.OfferID, v22)
4872 for i := 0; i < v22; i++ {
4873 v23 := mesos.NewPopulatedOfferID(r, easy)
4874 this.InverseOfferIDs[i] = *v23
4875 }
4876 }
4877 if r.Intn(10) != 0 {
4878 this.Filters = mesos.NewPopulatedFilters(r, easy)
4879 }
4880 if !easy && r.Intn(10) != 0 {
4881 }
4882 return this
4883 }
4884
4885 func NewPopulatedCall_Revive(r randyScheduler, easy bool) *Call_Revive {
4886 this := &Call_Revive{}
4887 if r.Intn(10) != 0 {
4888 v24 := r.Intn(10)
4889 this.Roles = make([]string, v24)
4890 for i := 0; i < v24; i++ {
4891 this.Roles[i] = string(randStringScheduler(r))
4892 }
4893 }
4894 if !easy && r.Intn(10) != 0 {
4895 }
4896 return this
4897 }
4898
4899 func NewPopulatedCall_Kill(r randyScheduler, easy bool) *Call_Kill {
4900 this := &Call_Kill{}
4901 v25 := mesos.NewPopulatedTaskID(r, easy)
4902 this.TaskID = *v25
4903 if r.Intn(10) != 0 {
4904 this.AgentID = mesos.NewPopulatedAgentID(r, easy)
4905 }
4906 if r.Intn(10) != 0 {
4907 this.KillPolicy = mesos.NewPopulatedKillPolicy(r, easy)
4908 }
4909 if !easy && r.Intn(10) != 0 {
4910 }
4911 return this
4912 }
4913
4914 func NewPopulatedCall_Shutdown(r randyScheduler, easy bool) *Call_Shutdown {
4915 this := &Call_Shutdown{}
4916 v26 := mesos.NewPopulatedExecutorID(r, easy)
4917 this.ExecutorID = *v26
4918 v27 := mesos.NewPopulatedAgentID(r, easy)
4919 this.AgentID = *v27
4920 if !easy && r.Intn(10) != 0 {
4921 }
4922 return this
4923 }
4924
4925 func NewPopulatedCall_Acknowledge(r randyScheduler, easy bool) *Call_Acknowledge {
4926 this := &Call_Acknowledge{}
4927 v28 := mesos.NewPopulatedAgentID(r, easy)
4928 this.AgentID = *v28
4929 v29 := mesos.NewPopulatedTaskID(r, easy)
4930 this.TaskID = *v29
4931 v30 := r.Intn(100)
4932 this.UUID = make([]byte, v30)
4933 for i := 0; i < v30; i++ {
4934 this.UUID[i] = byte(r.Intn(256))
4935 }
4936 if !easy && r.Intn(10) != 0 {
4937 }
4938 return this
4939 }
4940
4941 func NewPopulatedCall_Reconcile(r randyScheduler, easy bool) *Call_Reconcile {
4942 this := &Call_Reconcile{}
4943 if r.Intn(10) != 0 {
4944 v31 := r.Intn(5)
4945 this.Tasks = make([]Call_Reconcile_Task, v31)
4946 for i := 0; i < v31; i++ {
4947 v32 := NewPopulatedCall_Reconcile_Task(r, easy)
4948 this.Tasks[i] = *v32
4949 }
4950 }
4951 if !easy && r.Intn(10) != 0 {
4952 }
4953 return this
4954 }
4955
4956 func NewPopulatedCall_Reconcile_Task(r randyScheduler, easy bool) *Call_Reconcile_Task {
4957 this := &Call_Reconcile_Task{}
4958 v33 := mesos.NewPopulatedTaskID(r, easy)
4959 this.TaskID = *v33
4960 if r.Intn(10) != 0 {
4961 this.AgentID = mesos.NewPopulatedAgentID(r, easy)
4962 }
4963 if !easy && r.Intn(10) != 0 {
4964 }
4965 return this
4966 }
4967
4968 func NewPopulatedCall_Message(r randyScheduler, easy bool) *Call_Message {
4969 this := &Call_Message{}
4970 v34 := mesos.NewPopulatedAgentID(r, easy)
4971 this.AgentID = *v34
4972 v35 := mesos.NewPopulatedExecutorID(r, easy)
4973 this.ExecutorID = *v35
4974 v36 := r.Intn(100)
4975 this.Data = make([]byte, v36)
4976 for i := 0; i < v36; i++ {
4977 this.Data[i] = byte(r.Intn(256))
4978 }
4979 if !easy && r.Intn(10) != 0 {
4980 }
4981 return this
4982 }
4983
4984 func NewPopulatedCall_Request(r randyScheduler, easy bool) *Call_Request {
4985 this := &Call_Request{}
4986 if r.Intn(10) != 0 {
4987 v37 := r.Intn(5)
4988 this.Requests = make([]mesos.Request, v37)
4989 for i := 0; i < v37; i++ {
4990 v38 := mesos.NewPopulatedRequest(r, easy)
4991 this.Requests[i] = *v38
4992 }
4993 }
4994 if !easy && r.Intn(10) != 0 {
4995 }
4996 return this
4997 }
4998
4999 func NewPopulatedCall_Suppress(r randyScheduler, easy bool) *Call_Suppress {
5000 this := &Call_Suppress{}
5001 if r.Intn(10) != 0 {
5002 v39 := r.Intn(10)
5003 this.Roles = make([]string, v39)
5004 for i := 0; i < v39; i++ {
5005 this.Roles[i] = string(randStringScheduler(r))
5006 }
5007 }
5008 if !easy && r.Intn(10) != 0 {
5009 }
5010 return this
5011 }
5012
5013 type randyScheduler interface {
5014 Float32() float32
5015 Float64() float64
5016 Int63() int64
5017 Int31() int32
5018 Uint32() uint32
5019 Intn(n int) int
5020 }
5021
5022 func randUTF8RuneScheduler(r randyScheduler) rune {
5023 ru := r.Intn(62)
5024 if ru < 10 {
5025 return rune(ru + 48)
5026 } else if ru < 36 {
5027 return rune(ru + 55)
5028 }
5029 return rune(ru + 61)
5030 }
5031 func randStringScheduler(r randyScheduler) string {
5032 v40 := r.Intn(100)
5033 tmps := make([]rune, v40)
5034 for i := 0; i < v40; i++ {
5035 tmps[i] = randUTF8RuneScheduler(r)
5036 }
5037 return string(tmps)
5038 }
5039 func randUnrecognizedScheduler(r randyScheduler, maxFieldNumber int) (dAtA []byte) {
5040 l := r.Intn(5)
5041 for i := 0; i < l; i++ {
5042 wire := r.Intn(4)
5043 if wire == 3 {
5044 wire = 5
5045 }
5046 fieldNumber := maxFieldNumber + r.Intn(100)
5047 dAtA = randFieldScheduler(dAtA, r, fieldNumber, wire)
5048 }
5049 return dAtA
5050 }
5051 func randFieldScheduler(dAtA []byte, r randyScheduler, fieldNumber int, wire int) []byte {
5052 key := uint32(fieldNumber)<<3 | uint32(wire)
5053 switch wire {
5054 case 0:
5055 dAtA = encodeVarintPopulateScheduler(dAtA, uint64(key))
5056 v41 := r.Int63()
5057 if r.Intn(2) == 0 {
5058 v41 *= -1
5059 }
5060 dAtA = encodeVarintPopulateScheduler(dAtA, uint64(v41))
5061 case 1:
5062 dAtA = encodeVarintPopulateScheduler(dAtA, uint64(key))
5063 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)))
5064 case 2:
5065 dAtA = encodeVarintPopulateScheduler(dAtA, uint64(key))
5066 ll := r.Intn(100)
5067 dAtA = encodeVarintPopulateScheduler(dAtA, uint64(ll))
5068 for j := 0; j < ll; j++ {
5069 dAtA = append(dAtA, byte(r.Intn(256)))
5070 }
5071 default:
5072 dAtA = encodeVarintPopulateScheduler(dAtA, uint64(key))
5073 dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
5074 }
5075 return dAtA
5076 }
5077 func encodeVarintPopulateScheduler(dAtA []byte, v uint64) []byte {
5078 for v >= 1<<7 {
5079 dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
5080 v >>= 7
5081 }
5082 dAtA = append(dAtA, uint8(v))
5083 return dAtA
5084 }
5085 func (m *Event) ProtoSize() (n int) {
5086 var l int
5087 _ = l
5088 n += 1 + sovScheduler(uint64(m.Type))
5089 if m.Subscribed != nil {
5090 l = m.Subscribed.ProtoSize()
5091 n += 1 + l + sovScheduler(uint64(l))
5092 }
5093 if m.Offers != nil {
5094 l = m.Offers.ProtoSize()
5095 n += 1 + l + sovScheduler(uint64(l))
5096 }
5097 if m.Rescind != nil {
5098 l = m.Rescind.ProtoSize()
5099 n += 1 + l + sovScheduler(uint64(l))
5100 }
5101 if m.Update != nil {
5102 l = m.Update.ProtoSize()
5103 n += 1 + l + sovScheduler(uint64(l))
5104 }
5105 if m.Message != nil {
5106 l = m.Message.ProtoSize()
5107 n += 1 + l + sovScheduler(uint64(l))
5108 }
5109 if m.Failure != nil {
5110 l = m.Failure.ProtoSize()
5111 n += 1 + l + sovScheduler(uint64(l))
5112 }
5113 if m.Error != nil {
5114 l = m.Error.ProtoSize()
5115 n += 1 + l + sovScheduler(uint64(l))
5116 }
5117 if m.InverseOffers != nil {
5118 l = m.InverseOffers.ProtoSize()
5119 n += 1 + l + sovScheduler(uint64(l))
5120 }
5121 if m.RescindInverseOffer != nil {
5122 l = m.RescindInverseOffer.ProtoSize()
5123 n += 1 + l + sovScheduler(uint64(l))
5124 }
5125 return n
5126 }
5127
5128 func (m *Event_Subscribed) ProtoSize() (n int) {
5129 var l int
5130 _ = l
5131 if m.FrameworkID != nil {
5132 l = m.FrameworkID.ProtoSize()
5133 n += 1 + l + sovScheduler(uint64(l))
5134 }
5135 if m.HeartbeatIntervalSeconds != nil {
5136 n += 9
5137 }
5138 if m.MasterInfo != nil {
5139 l = m.MasterInfo.ProtoSize()
5140 n += 1 + l + sovScheduler(uint64(l))
5141 }
5142 return n
5143 }
5144
5145 func (m *Event_Offers) ProtoSize() (n int) {
5146 var l int
5147 _ = l
5148 if len(m.Offers) > 0 {
5149 for _, e := range m.Offers {
5150 l = e.ProtoSize()
5151 n += 1 + l + sovScheduler(uint64(l))
5152 }
5153 }
5154 return n
5155 }
5156
5157 func (m *Event_InverseOffers) ProtoSize() (n int) {
5158 var l int
5159 _ = l
5160 if len(m.InverseOffers) > 0 {
5161 for _, e := range m.InverseOffers {
5162 l = e.ProtoSize()
5163 n += 1 + l + sovScheduler(uint64(l))
5164 }
5165 }
5166 return n
5167 }
5168
5169 func (m *Event_Rescind) ProtoSize() (n int) {
5170 var l int
5171 _ = l
5172 l = m.OfferID.ProtoSize()
5173 n += 1 + l + sovScheduler(uint64(l))
5174 return n
5175 }
5176
5177 func (m *Event_RescindInverseOffer) ProtoSize() (n int) {
5178 var l int
5179 _ = l
5180 l = m.InverseOfferID.ProtoSize()
5181 n += 1 + l + sovScheduler(uint64(l))
5182 return n
5183 }
5184
5185 func (m *Event_Update) ProtoSize() (n int) {
5186 var l int
5187 _ = l
5188 l = m.Status.ProtoSize()
5189 n += 1 + l + sovScheduler(uint64(l))
5190 return n
5191 }
5192
5193 func (m *Event_Message) ProtoSize() (n int) {
5194 var l int
5195 _ = l
5196 l = m.AgentID.ProtoSize()
5197 n += 1 + l + sovScheduler(uint64(l))
5198 l = m.ExecutorID.ProtoSize()
5199 n += 1 + l + sovScheduler(uint64(l))
5200 if m.Data != nil {
5201 l = len(m.Data)
5202 n += 1 + l + sovScheduler(uint64(l))
5203 }
5204 return n
5205 }
5206
5207 func (m *Event_Failure) ProtoSize() (n int) {
5208 var l int
5209 _ = l
5210 if m.AgentID != nil {
5211 l = m.AgentID.ProtoSize()
5212 n += 1 + l + sovScheduler(uint64(l))
5213 }
5214 if m.ExecutorID != nil {
5215 l = m.ExecutorID.ProtoSize()
5216 n += 1 + l + sovScheduler(uint64(l))
5217 }
5218 if m.Status != nil {
5219 n += 1 + sovScheduler(uint64(*m.Status))
5220 }
5221 return n
5222 }
5223
5224 func (m *Event_Error) ProtoSize() (n int) {
5225 var l int
5226 _ = l
5227 l = len(m.Message)
5228 n += 1 + l + sovScheduler(uint64(l))
5229 return n
5230 }
5231
5232 func (m *Call) ProtoSize() (n int) {
5233 var l int
5234 _ = l
5235 if m.FrameworkID != nil {
5236 l = m.FrameworkID.ProtoSize()
5237 n += 1 + l + sovScheduler(uint64(l))
5238 }
5239 n += 1 + sovScheduler(uint64(m.Type))
5240 if m.Subscribe != nil {
5241 l = m.Subscribe.ProtoSize()
5242 n += 1 + l + sovScheduler(uint64(l))
5243 }
5244 if m.Accept != nil {
5245 l = m.Accept.ProtoSize()
5246 n += 1 + l + sovScheduler(uint64(l))
5247 }
5248 if m.Decline != nil {
5249 l = m.Decline.ProtoSize()
5250 n += 1 + l + sovScheduler(uint64(l))
5251 }
5252 if m.Kill != nil {
5253 l = m.Kill.ProtoSize()
5254 n += 1 + l + sovScheduler(uint64(l))
5255 }
5256 if m.Shutdown != nil {
5257 l = m.Shutdown.ProtoSize()
5258 n += 1 + l + sovScheduler(uint64(l))
5259 }
5260 if m.Acknowledge != nil {
5261 l = m.Acknowledge.ProtoSize()
5262 n += 1 + l + sovScheduler(uint64(l))
5263 }
5264 if m.Reconcile != nil {
5265 l = m.Reconcile.ProtoSize()
5266 n += 1 + l + sovScheduler(uint64(l))
5267 }
5268 if m.Message != nil {
5269 l = m.Message.ProtoSize()
5270 n += 1 + l + sovScheduler(uint64(l))
5271 }
5272 if m.Request != nil {
5273 l = m.Request.ProtoSize()
5274 n += 1 + l + sovScheduler(uint64(l))
5275 }
5276 if m.AcceptInverseOffers != nil {
5277 l = m.AcceptInverseOffers.ProtoSize()
5278 n += 1 + l + sovScheduler(uint64(l))
5279 }
5280 if m.DeclineInverseOffers != nil {
5281 l = m.DeclineInverseOffers.ProtoSize()
5282 n += 1 + l + sovScheduler(uint64(l))
5283 }
5284 if m.Revive != nil {
5285 l = m.Revive.ProtoSize()
5286 n += 1 + l + sovScheduler(uint64(l))
5287 }
5288 if m.Suppress != nil {
5289 l = m.Suppress.ProtoSize()
5290 n += 2 + l + sovScheduler(uint64(l))
5291 }
5292 return n
5293 }
5294
5295 func (m *Call_Subscribe) ProtoSize() (n int) {
5296 var l int
5297 _ = l
5298 if m.FrameworkInfo != nil {
5299 l = m.FrameworkInfo.ProtoSize()
5300 n += 1 + l + sovScheduler(uint64(l))
5301 }
5302 if len(m.SuppressedRoles) > 0 {
5303 for _, s := range m.SuppressedRoles {
5304 l = len(s)
5305 n += 1 + l + sovScheduler(uint64(l))
5306 }
5307 }
5308 return n
5309 }
5310
5311 func (m *Call_Accept) ProtoSize() (n int) {
5312 var l int
5313 _ = l
5314 if len(m.OfferIDs) > 0 {
5315 for _, e := range m.OfferIDs {
5316 l = e.ProtoSize()
5317 n += 1 + l + sovScheduler(uint64(l))
5318 }
5319 }
5320 if len(m.Operations) > 0 {
5321 for _, e := range m.Operations {
5322 l = e.ProtoSize()
5323 n += 1 + l + sovScheduler(uint64(l))
5324 }
5325 }
5326 if m.Filters != nil {
5327 l = m.Filters.ProtoSize()
5328 n += 1 + l + sovScheduler(uint64(l))
5329 }
5330 return n
5331 }
5332
5333 func (m *Call_Decline) ProtoSize() (n int) {
5334 var l int
5335 _ = l
5336 if len(m.OfferIDs) > 0 {
5337 for _, e := range m.OfferIDs {
5338 l = e.ProtoSize()
5339 n += 1 + l + sovScheduler(uint64(l))
5340 }
5341 }
5342 if m.Filters != nil {
5343 l = m.Filters.ProtoSize()
5344 n += 1 + l + sovScheduler(uint64(l))
5345 }
5346 return n
5347 }
5348
5349 func (m *Call_AcceptInverseOffers) ProtoSize() (n int) {
5350 var l int
5351 _ = l
5352 if len(m.InverseOfferIDs) > 0 {
5353 for _, e := range m.InverseOfferIDs {
5354 l = e.ProtoSize()
5355 n += 1 + l + sovScheduler(uint64(l))
5356 }
5357 }
5358 if m.Filters != nil {
5359 l = m.Filters.ProtoSize()
5360 n += 1 + l + sovScheduler(uint64(l))
5361 }
5362 return n
5363 }
5364
5365 func (m *Call_DeclineInverseOffers) ProtoSize() (n int) {
5366 var l int
5367 _ = l
5368 if len(m.InverseOfferIDs) > 0 {
5369 for _, e := range m.InverseOfferIDs {
5370 l = e.ProtoSize()
5371 n += 1 + l + sovScheduler(uint64(l))
5372 }
5373 }
5374 if m.Filters != nil {
5375 l = m.Filters.ProtoSize()
5376 n += 1 + l + sovScheduler(uint64(l))
5377 }
5378 return n
5379 }
5380
5381 func (m *Call_Revive) ProtoSize() (n int) {
5382 var l int
5383 _ = l
5384 if len(m.Roles) > 0 {
5385 for _, s := range m.Roles {
5386 l = len(s)
5387 n += 1 + l + sovScheduler(uint64(l))
5388 }
5389 }
5390 return n
5391 }
5392
5393 func (m *Call_Kill) ProtoSize() (n int) {
5394 var l int
5395 _ = l
5396 l = m.TaskID.ProtoSize()
5397 n += 1 + l + sovScheduler(uint64(l))
5398 if m.AgentID != nil {
5399 l = m.AgentID.ProtoSize()
5400 n += 1 + l + sovScheduler(uint64(l))
5401 }
5402 if m.KillPolicy != nil {
5403 l = m.KillPolicy.ProtoSize()
5404 n += 1 + l + sovScheduler(uint64(l))
5405 }
5406 return n
5407 }
5408
5409 func (m *Call_Shutdown) ProtoSize() (n int) {
5410 var l int
5411 _ = l
5412 l = m.ExecutorID.ProtoSize()
5413 n += 1 + l + sovScheduler(uint64(l))
5414 l = m.AgentID.ProtoSize()
5415 n += 1 + l + sovScheduler(uint64(l))
5416 return n
5417 }
5418
5419 func (m *Call_Acknowledge) ProtoSize() (n int) {
5420 var l int
5421 _ = l
5422 l = m.AgentID.ProtoSize()
5423 n += 1 + l + sovScheduler(uint64(l))
5424 l = m.TaskID.ProtoSize()
5425 n += 1 + l + sovScheduler(uint64(l))
5426 if m.UUID != nil {
5427 l = len(m.UUID)
5428 n += 1 + l + sovScheduler(uint64(l))
5429 }
5430 return n
5431 }
5432
5433 func (m *Call_Reconcile) ProtoSize() (n int) {
5434 var l int
5435 _ = l
5436 if len(m.Tasks) > 0 {
5437 for _, e := range m.Tasks {
5438 l = e.ProtoSize()
5439 n += 1 + l + sovScheduler(uint64(l))
5440 }
5441 }
5442 return n
5443 }
5444
5445 func (m *Call_Reconcile_Task) ProtoSize() (n int) {
5446 var l int
5447 _ = l
5448 l = m.TaskID.ProtoSize()
5449 n += 1 + l + sovScheduler(uint64(l))
5450 if m.AgentID != nil {
5451 l = m.AgentID.ProtoSize()
5452 n += 1 + l + sovScheduler(uint64(l))
5453 }
5454 return n
5455 }
5456
5457 func (m *Call_Message) ProtoSize() (n int) {
5458 var l int
5459 _ = l
5460 l = m.AgentID.ProtoSize()
5461 n += 1 + l + sovScheduler(uint64(l))
5462 l = m.ExecutorID.ProtoSize()
5463 n += 1 + l + sovScheduler(uint64(l))
5464 if m.Data != nil {
5465 l = len(m.Data)
5466 n += 1 + l + sovScheduler(uint64(l))
5467 }
5468 return n
5469 }
5470
5471 func (m *Call_Request) ProtoSize() (n int) {
5472 var l int
5473 _ = l
5474 if len(m.Requests) > 0 {
5475 for _, e := range m.Requests {
5476 l = e.ProtoSize()
5477 n += 1 + l + sovScheduler(uint64(l))
5478 }
5479 }
5480 return n
5481 }
5482
5483 func (m *Call_Suppress) ProtoSize() (n int) {
5484 var l int
5485 _ = l
5486 if len(m.Roles) > 0 {
5487 for _, s := range m.Roles {
5488 l = len(s)
5489 n += 1 + l + sovScheduler(uint64(l))
5490 }
5491 }
5492 return n
5493 }
5494
5495 func sovScheduler(x uint64) (n int) {
5496 for {
5497 n++
5498 x >>= 7
5499 if x == 0 {
5500 break
5501 }
5502 }
5503 return n
5504 }
5505 func sozScheduler(x uint64) (n int) {
5506 return sovScheduler(uint64((x << 1) ^ uint64((int64(x) >> 63))))
5507 }
5508 func (this *Event) String() string {
5509 if this == nil {
5510 return "nil"
5511 }
5512 s := strings.Join([]string{`&Event{`,
5513 `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
5514 `Subscribed:` + strings.Replace(fmt.Sprintf("%v", this.Subscribed), "Event_Subscribed", "Event_Subscribed", 1) + `,`,
5515 `Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Event_Offers", "Event_Offers", 1) + `,`,
5516 `Rescind:` + strings.Replace(fmt.Sprintf("%v", this.Rescind), "Event_Rescind", "Event_Rescind", 1) + `,`,
5517 `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "Event_Update", "Event_Update", 1) + `,`,
5518 `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Event_Message", "Event_Message", 1) + `,`,
5519 `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Event_Failure", "Event_Failure", 1) + `,`,
5520 `Error:` + strings.Replace(fmt.Sprintf("%v", this.Error), "Event_Error", "Event_Error", 1) + `,`,
5521 `InverseOffers:` + strings.Replace(fmt.Sprintf("%v", this.InverseOffers), "Event_InverseOffers", "Event_InverseOffers", 1) + `,`,
5522 `RescindInverseOffer:` + strings.Replace(fmt.Sprintf("%v", this.RescindInverseOffer), "Event_RescindInverseOffer", "Event_RescindInverseOffer", 1) + `,`,
5523 `}`,
5524 }, "")
5525 return s
5526 }
5527 func (this *Event_Subscribed) String() string {
5528 if this == nil {
5529 return "nil"
5530 }
5531 s := strings.Join([]string{`&Event_Subscribed{`,
5532 `FrameworkID:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkID), "FrameworkID", "mesos.FrameworkID", 1) + `,`,
5533 `HeartbeatIntervalSeconds:` + valueToStringScheduler(this.HeartbeatIntervalSeconds) + `,`,
5534 `MasterInfo:` + strings.Replace(fmt.Sprintf("%v", this.MasterInfo), "MasterInfo", "mesos.MasterInfo", 1) + `,`,
5535 `}`,
5536 }, "")
5537 return s
5538 }
5539 func (this *Event_Offers) String() string {
5540 if this == nil {
5541 return "nil"
5542 }
5543 s := strings.Join([]string{`&Event_Offers{`,
5544 `Offers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Offers), "Offer", "mesos.Offer", 1), `&`, ``, 1) + `,`,
5545 `}`,
5546 }, "")
5547 return s
5548 }
5549 func (this *Event_InverseOffers) String() string {
5550 if this == nil {
5551 return "nil"
5552 }
5553 s := strings.Join([]string{`&Event_InverseOffers{`,
5554 `InverseOffers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.InverseOffers), "InverseOffer", "mesos.InverseOffer", 1), `&`, ``, 1) + `,`,
5555 `}`,
5556 }, "")
5557 return s
5558 }
5559 func (this *Event_Rescind) String() string {
5560 if this == nil {
5561 return "nil"
5562 }
5563 s := strings.Join([]string{`&Event_Rescind{`,
5564 `OfferID:` + strings.Replace(strings.Replace(this.OfferID.String(), "OfferID", "mesos.OfferID", 1), `&`, ``, 1) + `,`,
5565 `}`,
5566 }, "")
5567 return s
5568 }
5569 func (this *Event_RescindInverseOffer) String() string {
5570 if this == nil {
5571 return "nil"
5572 }
5573 s := strings.Join([]string{`&Event_RescindInverseOffer{`,
5574 `InverseOfferID:` + strings.Replace(strings.Replace(this.InverseOfferID.String(), "OfferID", "mesos.OfferID", 1), `&`, ``, 1) + `,`,
5575 `}`,
5576 }, "")
5577 return s
5578 }
5579 func (this *Event_Update) String() string {
5580 if this == nil {
5581 return "nil"
5582 }
5583 s := strings.Join([]string{`&Event_Update{`,
5584 `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TaskStatus", "mesos.TaskStatus", 1), `&`, ``, 1) + `,`,
5585 `}`,
5586 }, "")
5587 return s
5588 }
5589 func (this *Event_Message) String() string {
5590 if this == nil {
5591 return "nil"
5592 }
5593 s := strings.Join([]string{`&Event_Message{`,
5594 `AgentID:` + strings.Replace(strings.Replace(this.AgentID.String(), "AgentID", "mesos.AgentID", 1), `&`, ``, 1) + `,`,
5595 `ExecutorID:` + strings.Replace(strings.Replace(this.ExecutorID.String(), "ExecutorID", "mesos.ExecutorID", 1), `&`, ``, 1) + `,`,
5596 `Data:` + valueToStringScheduler(this.Data) + `,`,
5597 `}`,
5598 }, "")
5599 return s
5600 }
5601 func (this *Event_Failure) String() string {
5602 if this == nil {
5603 return "nil"
5604 }
5605 s := strings.Join([]string{`&Event_Failure{`,
5606 `AgentID:` + strings.Replace(fmt.Sprintf("%v", this.AgentID), "AgentID", "mesos.AgentID", 1) + `,`,
5607 `ExecutorID:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorID), "ExecutorID", "mesos.ExecutorID", 1) + `,`,
5608 `Status:` + valueToStringScheduler(this.Status) + `,`,
5609 `}`,
5610 }, "")
5611 return s
5612 }
5613 func (this *Event_Error) String() string {
5614 if this == nil {
5615 return "nil"
5616 }
5617 s := strings.Join([]string{`&Event_Error{`,
5618 `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
5619 `}`,
5620 }, "")
5621 return s
5622 }
5623 func (this *Call) String() string {
5624 if this == nil {
5625 return "nil"
5626 }
5627 s := strings.Join([]string{`&Call{`,
5628 `FrameworkID:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkID), "FrameworkID", "mesos.FrameworkID", 1) + `,`,
5629 `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
5630 `Subscribe:` + strings.Replace(fmt.Sprintf("%v", this.Subscribe), "Call_Subscribe", "Call_Subscribe", 1) + `,`,
5631 `Accept:` + strings.Replace(fmt.Sprintf("%v", this.Accept), "Call_Accept", "Call_Accept", 1) + `,`,
5632 `Decline:` + strings.Replace(fmt.Sprintf("%v", this.Decline), "Call_Decline", "Call_Decline", 1) + `,`,
5633 `Kill:` + strings.Replace(fmt.Sprintf("%v", this.Kill), "Call_Kill", "Call_Kill", 1) + `,`,
5634 `Shutdown:` + strings.Replace(fmt.Sprintf("%v", this.Shutdown), "Call_Shutdown", "Call_Shutdown", 1) + `,`,
5635 `Acknowledge:` + strings.Replace(fmt.Sprintf("%v", this.Acknowledge), "Call_Acknowledge", "Call_Acknowledge", 1) + `,`,
5636 `Reconcile:` + strings.Replace(fmt.Sprintf("%v", this.Reconcile), "Call_Reconcile", "Call_Reconcile", 1) + `,`,
5637 `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Call_Message", "Call_Message", 1) + `,`,
5638 `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "Call_Request", "Call_Request", 1) + `,`,
5639 `AcceptInverseOffers:` + strings.Replace(fmt.Sprintf("%v", this.AcceptInverseOffers), "Call_AcceptInverseOffers", "Call_AcceptInverseOffers", 1) + `,`,
5640 `DeclineInverseOffers:` + strings.Replace(fmt.Sprintf("%v", this.DeclineInverseOffers), "Call_DeclineInverseOffers", "Call_DeclineInverseOffers", 1) + `,`,
5641 `Revive:` + strings.Replace(fmt.Sprintf("%v", this.Revive), "Call_Revive", "Call_Revive", 1) + `,`,
5642 `Suppress:` + strings.Replace(fmt.Sprintf("%v", this.Suppress), "Call_Suppress", "Call_Suppress", 1) + `,`,
5643 `}`,
5644 }, "")
5645 return s
5646 }
5647 func (this *Call_Subscribe) String() string {
5648 if this == nil {
5649 return "nil"
5650 }
5651 s := strings.Join([]string{`&Call_Subscribe{`,
5652 `FrameworkInfo:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkInfo), "FrameworkInfo", "mesos.FrameworkInfo", 1) + `,`,
5653 `SuppressedRoles:` + fmt.Sprintf("%v", this.SuppressedRoles) + `,`,
5654 `}`,
5655 }, "")
5656 return s
5657 }
5658 func (this *Call_Accept) String() string {
5659 if this == nil {
5660 return "nil"
5661 }
5662 s := strings.Join([]string{`&Call_Accept{`,
5663 `OfferIDs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.OfferIDs), "OfferID", "mesos.OfferID", 1), `&`, ``, 1) + `,`,
5664 `Operations:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Operations), "Offer_Operation", "mesos.Offer_Operation", 1), `&`, ``, 1) + `,`,
5665 `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "mesos.Filters", 1) + `,`,
5666 `}`,
5667 }, "")
5668 return s
5669 }
5670 func (this *Call_Decline) String() string {
5671 if this == nil {
5672 return "nil"
5673 }
5674 s := strings.Join([]string{`&Call_Decline{`,
5675 `OfferIDs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.OfferIDs), "OfferID", "mesos.OfferID", 1), `&`, ``, 1) + `,`,
5676 `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "mesos.Filters", 1) + `,`,
5677 `}`,
5678 }, "")
5679 return s
5680 }
5681 func (this *Call_AcceptInverseOffers) String() string {
5682 if this == nil {
5683 return "nil"
5684 }
5685 s := strings.Join([]string{`&Call_AcceptInverseOffers{`,
5686 `InverseOfferIDs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.InverseOfferIDs), "OfferID", "mesos.OfferID", 1), `&`, ``, 1) + `,`,
5687 `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "mesos.Filters", 1) + `,`,
5688 `}`,
5689 }, "")
5690 return s
5691 }
5692 func (this *Call_DeclineInverseOffers) String() string {
5693 if this == nil {
5694 return "nil"
5695 }
5696 s := strings.Join([]string{`&Call_DeclineInverseOffers{`,
5697 `InverseOfferIDs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.InverseOfferIDs), "OfferID", "mesos.OfferID", 1), `&`, ``, 1) + `,`,
5698 `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "mesos.Filters", 1) + `,`,
5699 `}`,
5700 }, "")
5701 return s
5702 }
5703 func (this *Call_Revive) String() string {
5704 if this == nil {
5705 return "nil"
5706 }
5707 s := strings.Join([]string{`&Call_Revive{`,
5708 `Roles:` + fmt.Sprintf("%v", this.Roles) + `,`,
5709 `}`,
5710 }, "")
5711 return s
5712 }
5713 func (this *Call_Kill) String() string {
5714 if this == nil {
5715 return "nil"
5716 }
5717 s := strings.Join([]string{`&Call_Kill{`,
5718 `TaskID:` + strings.Replace(strings.Replace(this.TaskID.String(), "TaskID", "mesos.TaskID", 1), `&`, ``, 1) + `,`,
5719 `AgentID:` + strings.Replace(fmt.Sprintf("%v", this.AgentID), "AgentID", "mesos.AgentID", 1) + `,`,
5720 `KillPolicy:` + strings.Replace(fmt.Sprintf("%v", this.KillPolicy), "KillPolicy", "mesos.KillPolicy", 1) + `,`,
5721 `}`,
5722 }, "")
5723 return s
5724 }
5725 func (this *Call_Shutdown) String() string {
5726 if this == nil {
5727 return "nil"
5728 }
5729 s := strings.Join([]string{`&Call_Shutdown{`,
5730 `ExecutorID:` + strings.Replace(strings.Replace(this.ExecutorID.String(), "ExecutorID", "mesos.ExecutorID", 1), `&`, ``, 1) + `,`,
5731 `AgentID:` + strings.Replace(strings.Replace(this.AgentID.String(), "AgentID", "mesos.AgentID", 1), `&`, ``, 1) + `,`,
5732 `}`,
5733 }, "")
5734 return s
5735 }
5736 func (this *Call_Acknowledge) String() string {
5737 if this == nil {
5738 return "nil"
5739 }
5740 s := strings.Join([]string{`&Call_Acknowledge{`,
5741 `AgentID:` + strings.Replace(strings.Replace(this.AgentID.String(), "AgentID", "mesos.AgentID", 1), `&`, ``, 1) + `,`,
5742 `TaskID:` + strings.Replace(strings.Replace(this.TaskID.String(), "TaskID", "mesos.TaskID", 1), `&`, ``, 1) + `,`,
5743 `UUID:` + valueToStringScheduler(this.UUID) + `,`,
5744 `}`,
5745 }, "")
5746 return s
5747 }
5748 func (this *Call_Reconcile) String() string {
5749 if this == nil {
5750 return "nil"
5751 }
5752 s := strings.Join([]string{`&Call_Reconcile{`,
5753 `Tasks:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Tasks), "Call_Reconcile_Task", "Call_Reconcile_Task", 1), `&`, ``, 1) + `,`,
5754 `}`,
5755 }, "")
5756 return s
5757 }
5758 func (this *Call_Reconcile_Task) String() string {
5759 if this == nil {
5760 return "nil"
5761 }
5762 s := strings.Join([]string{`&Call_Reconcile_Task{`,
5763 `TaskID:` + strings.Replace(strings.Replace(this.TaskID.String(), "TaskID", "mesos.TaskID", 1), `&`, ``, 1) + `,`,
5764 `AgentID:` + strings.Replace(fmt.Sprintf("%v", this.AgentID), "AgentID", "mesos.AgentID", 1) + `,`,
5765 `}`,
5766 }, "")
5767 return s
5768 }
5769 func (this *Call_Message) String() string {
5770 if this == nil {
5771 return "nil"
5772 }
5773 s := strings.Join([]string{`&Call_Message{`,
5774 `AgentID:` + strings.Replace(strings.Replace(this.AgentID.String(), "AgentID", "mesos.AgentID", 1), `&`, ``, 1) + `,`,
5775 `ExecutorID:` + strings.Replace(strings.Replace(this.ExecutorID.String(), "ExecutorID", "mesos.ExecutorID", 1), `&`, ``, 1) + `,`,
5776 `Data:` + valueToStringScheduler(this.Data) + `,`,
5777 `}`,
5778 }, "")
5779 return s
5780 }
5781 func (this *Call_Request) String() string {
5782 if this == nil {
5783 return "nil"
5784 }
5785 s := strings.Join([]string{`&Call_Request{`,
5786 `Requests:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Requests), "Request", "mesos.Request", 1), `&`, ``, 1) + `,`,
5787 `}`,
5788 }, "")
5789 return s
5790 }
5791 func (this *Call_Suppress) String() string {
5792 if this == nil {
5793 return "nil"
5794 }
5795 s := strings.Join([]string{`&Call_Suppress{`,
5796 `Roles:` + fmt.Sprintf("%v", this.Roles) + `,`,
5797 `}`,
5798 }, "")
5799 return s
5800 }
5801 func valueToStringScheduler(v interface{}) string {
5802 rv := reflect.ValueOf(v)
5803 if rv.IsNil() {
5804 return "nil"
5805 }
5806 pv := reflect.Indirect(rv).Interface()
5807 return fmt.Sprintf("*%v", pv)
5808 }
5809 func (m *Event) Unmarshal(dAtA []byte) error {
5810 l := len(dAtA)
5811 iNdEx := 0
5812 for iNdEx < l {
5813 preIndex := iNdEx
5814 var wire uint64
5815 for shift := uint(0); ; shift += 7 {
5816 if shift >= 64 {
5817 return ErrIntOverflowScheduler
5818 }
5819 if iNdEx >= l {
5820 return io.ErrUnexpectedEOF
5821 }
5822 b := dAtA[iNdEx]
5823 iNdEx++
5824 wire |= (uint64(b) & 0x7F) << shift
5825 if b < 0x80 {
5826 break
5827 }
5828 }
5829 fieldNum := int32(wire >> 3)
5830 wireType := int(wire & 0x7)
5831 if wireType == 4 {
5832 return fmt.Errorf("proto: Event: wiretype end group for non-group")
5833 }
5834 if fieldNum <= 0 {
5835 return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire)
5836 }
5837 switch fieldNum {
5838 case 1:
5839 if wireType != 0 {
5840 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
5841 }
5842 m.Type = 0
5843 for shift := uint(0); ; shift += 7 {
5844 if shift >= 64 {
5845 return ErrIntOverflowScheduler
5846 }
5847 if iNdEx >= l {
5848 return io.ErrUnexpectedEOF
5849 }
5850 b := dAtA[iNdEx]
5851 iNdEx++
5852 m.Type |= (Event_Type(b) & 0x7F) << shift
5853 if b < 0x80 {
5854 break
5855 }
5856 }
5857 case 2:
5858 if wireType != 2 {
5859 return fmt.Errorf("proto: wrong wireType = %d for field Subscribed", wireType)
5860 }
5861 var msglen int
5862 for shift := uint(0); ; shift += 7 {
5863 if shift >= 64 {
5864 return ErrIntOverflowScheduler
5865 }
5866 if iNdEx >= l {
5867 return io.ErrUnexpectedEOF
5868 }
5869 b := dAtA[iNdEx]
5870 iNdEx++
5871 msglen |= (int(b) & 0x7F) << shift
5872 if b < 0x80 {
5873 break
5874 }
5875 }
5876 if msglen < 0 {
5877 return ErrInvalidLengthScheduler
5878 }
5879 postIndex := iNdEx + msglen
5880 if postIndex > l {
5881 return io.ErrUnexpectedEOF
5882 }
5883 if m.Subscribed == nil {
5884 m.Subscribed = &Event_Subscribed{}
5885 }
5886 if err := m.Subscribed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5887 return err
5888 }
5889 iNdEx = postIndex
5890 case 3:
5891 if wireType != 2 {
5892 return fmt.Errorf("proto: wrong wireType = %d for field Offers", 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.Offers == nil {
5917 m.Offers = &Event_Offers{}
5918 }
5919 if err := m.Offers.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 Rescind", 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.Rescind == nil {
5950 m.Rescind = &Event_Rescind{}
5951 }
5952 if err := m.Rescind.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 Update", 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.Update == nil {
5983 m.Update = &Event_Update{}
5984 }
5985 if err := m.Update.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 Message", 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.Message == nil {
6016 m.Message = &Event_Message{}
6017 }
6018 if err := m.Message.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 Failure", 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.Failure == nil {
6049 m.Failure = &Event_Failure{}
6050 }
6051 if err := m.Failure.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 Error", 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.Error == nil {
6082 m.Error = &Event_Error{}
6083 }
6084 if err := m.Error.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 InverseOffers", 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.InverseOffers == nil {
6115 m.InverseOffers = &Event_InverseOffers{}
6116 }
6117 if err := m.InverseOffers.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 RescindInverseOffer", 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.RescindInverseOffer == nil {
6148 m.RescindInverseOffer = &Event_RescindInverseOffer{}
6149 }
6150 if err := m.RescindInverseOffer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6151 return err
6152 }
6153 iNdEx = postIndex
6154 default:
6155 iNdEx = preIndex
6156 skippy, err := skipScheduler(dAtA[iNdEx:])
6157 if err != nil {
6158 return err
6159 }
6160 if skippy < 0 {
6161 return ErrInvalidLengthScheduler
6162 }
6163 if (iNdEx + skippy) > l {
6164 return io.ErrUnexpectedEOF
6165 }
6166 iNdEx += skippy
6167 }
6168 }
6169
6170 if iNdEx > l {
6171 return io.ErrUnexpectedEOF
6172 }
6173 return nil
6174 }
6175 func (m *Event_Subscribed) Unmarshal(dAtA []byte) error {
6176 var hasFields [1]uint64
6177 l := len(dAtA)
6178 iNdEx := 0
6179 for iNdEx < l {
6180 preIndex := iNdEx
6181 var wire uint64
6182 for shift := uint(0); ; shift += 7 {
6183 if shift >= 64 {
6184 return ErrIntOverflowScheduler
6185 }
6186 if iNdEx >= l {
6187 return io.ErrUnexpectedEOF
6188 }
6189 b := dAtA[iNdEx]
6190 iNdEx++
6191 wire |= (uint64(b) & 0x7F) << shift
6192 if b < 0x80 {
6193 break
6194 }
6195 }
6196 fieldNum := int32(wire >> 3)
6197 wireType := int(wire & 0x7)
6198 if wireType == 4 {
6199 return fmt.Errorf("proto: Subscribed: wiretype end group for non-group")
6200 }
6201 if fieldNum <= 0 {
6202 return fmt.Errorf("proto: Subscribed: illegal tag %d (wire type %d)", fieldNum, wire)
6203 }
6204 switch fieldNum {
6205 case 1:
6206 if wireType != 2 {
6207 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkID", wireType)
6208 }
6209 var msglen int
6210 for shift := uint(0); ; shift += 7 {
6211 if shift >= 64 {
6212 return ErrIntOverflowScheduler
6213 }
6214 if iNdEx >= l {
6215 return io.ErrUnexpectedEOF
6216 }
6217 b := dAtA[iNdEx]
6218 iNdEx++
6219 msglen |= (int(b) & 0x7F) << shift
6220 if b < 0x80 {
6221 break
6222 }
6223 }
6224 if msglen < 0 {
6225 return ErrInvalidLengthScheduler
6226 }
6227 postIndex := iNdEx + msglen
6228 if postIndex > l {
6229 return io.ErrUnexpectedEOF
6230 }
6231 if m.FrameworkID == nil {
6232 m.FrameworkID = &mesos.FrameworkID{}
6233 }
6234 if err := m.FrameworkID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6235 return err
6236 }
6237 iNdEx = postIndex
6238 hasFields[0] |= uint64(0x00000001)
6239 case 2:
6240 if wireType != 1 {
6241 return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatIntervalSeconds", wireType)
6242 }
6243 var v uint64
6244 if (iNdEx + 8) > l {
6245 return io.ErrUnexpectedEOF
6246 }
6247 iNdEx += 8
6248 v = uint64(dAtA[iNdEx-8])
6249 v |= uint64(dAtA[iNdEx-7]) << 8
6250 v |= uint64(dAtA[iNdEx-6]) << 16
6251 v |= uint64(dAtA[iNdEx-5]) << 24
6252 v |= uint64(dAtA[iNdEx-4]) << 32
6253 v |= uint64(dAtA[iNdEx-3]) << 40
6254 v |= uint64(dAtA[iNdEx-2]) << 48
6255 v |= uint64(dAtA[iNdEx-1]) << 56
6256 v2 := float64(math.Float64frombits(v))
6257 m.HeartbeatIntervalSeconds = &v2
6258 case 3:
6259 if wireType != 2 {
6260 return fmt.Errorf("proto: wrong wireType = %d for field MasterInfo", wireType)
6261 }
6262 var msglen int
6263 for shift := uint(0); ; shift += 7 {
6264 if shift >= 64 {
6265 return ErrIntOverflowScheduler
6266 }
6267 if iNdEx >= l {
6268 return io.ErrUnexpectedEOF
6269 }
6270 b := dAtA[iNdEx]
6271 iNdEx++
6272 msglen |= (int(b) & 0x7F) << shift
6273 if b < 0x80 {
6274 break
6275 }
6276 }
6277 if msglen < 0 {
6278 return ErrInvalidLengthScheduler
6279 }
6280 postIndex := iNdEx + msglen
6281 if postIndex > l {
6282 return io.ErrUnexpectedEOF
6283 }
6284 if m.MasterInfo == nil {
6285 m.MasterInfo = &mesos.MasterInfo{}
6286 }
6287 if err := m.MasterInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6288 return err
6289 }
6290 iNdEx = postIndex
6291 default:
6292 iNdEx = preIndex
6293 skippy, err := skipScheduler(dAtA[iNdEx:])
6294 if err != nil {
6295 return err
6296 }
6297 if skippy < 0 {
6298 return ErrInvalidLengthScheduler
6299 }
6300 if (iNdEx + skippy) > l {
6301 return io.ErrUnexpectedEOF
6302 }
6303 iNdEx += skippy
6304 }
6305 }
6306 if hasFields[0]&uint64(0x00000001) == 0 {
6307 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6308 }
6309
6310 if iNdEx > l {
6311 return io.ErrUnexpectedEOF
6312 }
6313 return nil
6314 }
6315 func (m *Event_Offers) Unmarshal(dAtA []byte) error {
6316 l := len(dAtA)
6317 iNdEx := 0
6318 for iNdEx < l {
6319 preIndex := iNdEx
6320 var wire uint64
6321 for shift := uint(0); ; shift += 7 {
6322 if shift >= 64 {
6323 return ErrIntOverflowScheduler
6324 }
6325 if iNdEx >= l {
6326 return io.ErrUnexpectedEOF
6327 }
6328 b := dAtA[iNdEx]
6329 iNdEx++
6330 wire |= (uint64(b) & 0x7F) << shift
6331 if b < 0x80 {
6332 break
6333 }
6334 }
6335 fieldNum := int32(wire >> 3)
6336 wireType := int(wire & 0x7)
6337 if wireType == 4 {
6338 return fmt.Errorf("proto: Offers: wiretype end group for non-group")
6339 }
6340 if fieldNum <= 0 {
6341 return fmt.Errorf("proto: Offers: illegal tag %d (wire type %d)", fieldNum, wire)
6342 }
6343 switch fieldNum {
6344 case 1:
6345 if wireType != 2 {
6346 return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType)
6347 }
6348 var msglen int
6349 for shift := uint(0); ; shift += 7 {
6350 if shift >= 64 {
6351 return ErrIntOverflowScheduler
6352 }
6353 if iNdEx >= l {
6354 return io.ErrUnexpectedEOF
6355 }
6356 b := dAtA[iNdEx]
6357 iNdEx++
6358 msglen |= (int(b) & 0x7F) << shift
6359 if b < 0x80 {
6360 break
6361 }
6362 }
6363 if msglen < 0 {
6364 return ErrInvalidLengthScheduler
6365 }
6366 postIndex := iNdEx + msglen
6367 if postIndex > l {
6368 return io.ErrUnexpectedEOF
6369 }
6370 m.Offers = append(m.Offers, mesos.Offer{})
6371 if err := m.Offers[len(m.Offers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6372 return err
6373 }
6374 iNdEx = postIndex
6375 default:
6376 iNdEx = preIndex
6377 skippy, err := skipScheduler(dAtA[iNdEx:])
6378 if err != nil {
6379 return err
6380 }
6381 if skippy < 0 {
6382 return ErrInvalidLengthScheduler
6383 }
6384 if (iNdEx + skippy) > l {
6385 return io.ErrUnexpectedEOF
6386 }
6387 iNdEx += skippy
6388 }
6389 }
6390
6391 if iNdEx > l {
6392 return io.ErrUnexpectedEOF
6393 }
6394 return nil
6395 }
6396 func (m *Event_InverseOffers) Unmarshal(dAtA []byte) error {
6397 l := len(dAtA)
6398 iNdEx := 0
6399 for iNdEx < l {
6400 preIndex := iNdEx
6401 var wire uint64
6402 for shift := uint(0); ; shift += 7 {
6403 if shift >= 64 {
6404 return ErrIntOverflowScheduler
6405 }
6406 if iNdEx >= l {
6407 return io.ErrUnexpectedEOF
6408 }
6409 b := dAtA[iNdEx]
6410 iNdEx++
6411 wire |= (uint64(b) & 0x7F) << shift
6412 if b < 0x80 {
6413 break
6414 }
6415 }
6416 fieldNum := int32(wire >> 3)
6417 wireType := int(wire & 0x7)
6418 if wireType == 4 {
6419 return fmt.Errorf("proto: InverseOffers: wiretype end group for non-group")
6420 }
6421 if fieldNum <= 0 {
6422 return fmt.Errorf("proto: InverseOffers: illegal tag %d (wire type %d)", fieldNum, wire)
6423 }
6424 switch fieldNum {
6425 case 1:
6426 if wireType != 2 {
6427 return fmt.Errorf("proto: wrong wireType = %d for field InverseOffers", wireType)
6428 }
6429 var msglen int
6430 for shift := uint(0); ; shift += 7 {
6431 if shift >= 64 {
6432 return ErrIntOverflowScheduler
6433 }
6434 if iNdEx >= l {
6435 return io.ErrUnexpectedEOF
6436 }
6437 b := dAtA[iNdEx]
6438 iNdEx++
6439 msglen |= (int(b) & 0x7F) << shift
6440 if b < 0x80 {
6441 break
6442 }
6443 }
6444 if msglen < 0 {
6445 return ErrInvalidLengthScheduler
6446 }
6447 postIndex := iNdEx + msglen
6448 if postIndex > l {
6449 return io.ErrUnexpectedEOF
6450 }
6451 m.InverseOffers = append(m.InverseOffers, mesos.InverseOffer{})
6452 if err := m.InverseOffers[len(m.InverseOffers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6453 return err
6454 }
6455 iNdEx = postIndex
6456 default:
6457 iNdEx = preIndex
6458 skippy, err := skipScheduler(dAtA[iNdEx:])
6459 if err != nil {
6460 return err
6461 }
6462 if skippy < 0 {
6463 return ErrInvalidLengthScheduler
6464 }
6465 if (iNdEx + skippy) > l {
6466 return io.ErrUnexpectedEOF
6467 }
6468 iNdEx += skippy
6469 }
6470 }
6471
6472 if iNdEx > l {
6473 return io.ErrUnexpectedEOF
6474 }
6475 return nil
6476 }
6477 func (m *Event_Rescind) Unmarshal(dAtA []byte) error {
6478 var hasFields [1]uint64
6479 l := len(dAtA)
6480 iNdEx := 0
6481 for iNdEx < l {
6482 preIndex := iNdEx
6483 var wire uint64
6484 for shift := uint(0); ; shift += 7 {
6485 if shift >= 64 {
6486 return ErrIntOverflowScheduler
6487 }
6488 if iNdEx >= l {
6489 return io.ErrUnexpectedEOF
6490 }
6491 b := dAtA[iNdEx]
6492 iNdEx++
6493 wire |= (uint64(b) & 0x7F) << shift
6494 if b < 0x80 {
6495 break
6496 }
6497 }
6498 fieldNum := int32(wire >> 3)
6499 wireType := int(wire & 0x7)
6500 if wireType == 4 {
6501 return fmt.Errorf("proto: Rescind: wiretype end group for non-group")
6502 }
6503 if fieldNum <= 0 {
6504 return fmt.Errorf("proto: Rescind: illegal tag %d (wire type %d)", fieldNum, wire)
6505 }
6506 switch fieldNum {
6507 case 1:
6508 if wireType != 2 {
6509 return fmt.Errorf("proto: wrong wireType = %d for field OfferID", wireType)
6510 }
6511 var msglen int
6512 for shift := uint(0); ; shift += 7 {
6513 if shift >= 64 {
6514 return ErrIntOverflowScheduler
6515 }
6516 if iNdEx >= l {
6517 return io.ErrUnexpectedEOF
6518 }
6519 b := dAtA[iNdEx]
6520 iNdEx++
6521 msglen |= (int(b) & 0x7F) << shift
6522 if b < 0x80 {
6523 break
6524 }
6525 }
6526 if msglen < 0 {
6527 return ErrInvalidLengthScheduler
6528 }
6529 postIndex := iNdEx + msglen
6530 if postIndex > l {
6531 return io.ErrUnexpectedEOF
6532 }
6533 if err := m.OfferID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6534 return err
6535 }
6536 iNdEx = postIndex
6537 hasFields[0] |= uint64(0x00000001)
6538 default:
6539 iNdEx = preIndex
6540 skippy, err := skipScheduler(dAtA[iNdEx:])
6541 if err != nil {
6542 return err
6543 }
6544 if skippy < 0 {
6545 return ErrInvalidLengthScheduler
6546 }
6547 if (iNdEx + skippy) > l {
6548 return io.ErrUnexpectedEOF
6549 }
6550 iNdEx += skippy
6551 }
6552 }
6553 if hasFields[0]&uint64(0x00000001) == 0 {
6554 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id")
6555 }
6556
6557 if iNdEx > l {
6558 return io.ErrUnexpectedEOF
6559 }
6560 return nil
6561 }
6562 func (m *Event_RescindInverseOffer) Unmarshal(dAtA []byte) error {
6563 var hasFields [1]uint64
6564 l := len(dAtA)
6565 iNdEx := 0
6566 for iNdEx < l {
6567 preIndex := iNdEx
6568 var wire uint64
6569 for shift := uint(0); ; shift += 7 {
6570 if shift >= 64 {
6571 return ErrIntOverflowScheduler
6572 }
6573 if iNdEx >= l {
6574 return io.ErrUnexpectedEOF
6575 }
6576 b := dAtA[iNdEx]
6577 iNdEx++
6578 wire |= (uint64(b) & 0x7F) << shift
6579 if b < 0x80 {
6580 break
6581 }
6582 }
6583 fieldNum := int32(wire >> 3)
6584 wireType := int(wire & 0x7)
6585 if wireType == 4 {
6586 return fmt.Errorf("proto: RescindInverseOffer: wiretype end group for non-group")
6587 }
6588 if fieldNum <= 0 {
6589 return fmt.Errorf("proto: RescindInverseOffer: illegal tag %d (wire type %d)", fieldNum, wire)
6590 }
6591 switch fieldNum {
6592 case 1:
6593 if wireType != 2 {
6594 return fmt.Errorf("proto: wrong wireType = %d for field InverseOfferID", wireType)
6595 }
6596 var msglen int
6597 for shift := uint(0); ; shift += 7 {
6598 if shift >= 64 {
6599 return ErrIntOverflowScheduler
6600 }
6601 if iNdEx >= l {
6602 return io.ErrUnexpectedEOF
6603 }
6604 b := dAtA[iNdEx]
6605 iNdEx++
6606 msglen |= (int(b) & 0x7F) << shift
6607 if b < 0x80 {
6608 break
6609 }
6610 }
6611 if msglen < 0 {
6612 return ErrInvalidLengthScheduler
6613 }
6614 postIndex := iNdEx + msglen
6615 if postIndex > l {
6616 return io.ErrUnexpectedEOF
6617 }
6618 if err := m.InverseOfferID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6619 return err
6620 }
6621 iNdEx = postIndex
6622 hasFields[0] |= uint64(0x00000001)
6623 default:
6624 iNdEx = preIndex
6625 skippy, err := skipScheduler(dAtA[iNdEx:])
6626 if err != nil {
6627 return err
6628 }
6629 if skippy < 0 {
6630 return ErrInvalidLengthScheduler
6631 }
6632 if (iNdEx + skippy) > l {
6633 return io.ErrUnexpectedEOF
6634 }
6635 iNdEx += skippy
6636 }
6637 }
6638 if hasFields[0]&uint64(0x00000001) == 0 {
6639 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("inverse_offer_id")
6640 }
6641
6642 if iNdEx > l {
6643 return io.ErrUnexpectedEOF
6644 }
6645 return nil
6646 }
6647 func (m *Event_Update) Unmarshal(dAtA []byte) error {
6648 var hasFields [1]uint64
6649 l := len(dAtA)
6650 iNdEx := 0
6651 for iNdEx < l {
6652 preIndex := iNdEx
6653 var wire uint64
6654 for shift := uint(0); ; shift += 7 {
6655 if shift >= 64 {
6656 return ErrIntOverflowScheduler
6657 }
6658 if iNdEx >= l {
6659 return io.ErrUnexpectedEOF
6660 }
6661 b := dAtA[iNdEx]
6662 iNdEx++
6663 wire |= (uint64(b) & 0x7F) << shift
6664 if b < 0x80 {
6665 break
6666 }
6667 }
6668 fieldNum := int32(wire >> 3)
6669 wireType := int(wire & 0x7)
6670 if wireType == 4 {
6671 return fmt.Errorf("proto: Update: wiretype end group for non-group")
6672 }
6673 if fieldNum <= 0 {
6674 return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire)
6675 }
6676 switch fieldNum {
6677 case 1:
6678 if wireType != 2 {
6679 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
6680 }
6681 var msglen int
6682 for shift := uint(0); ; shift += 7 {
6683 if shift >= 64 {
6684 return ErrIntOverflowScheduler
6685 }
6686 if iNdEx >= l {
6687 return io.ErrUnexpectedEOF
6688 }
6689 b := dAtA[iNdEx]
6690 iNdEx++
6691 msglen |= (int(b) & 0x7F) << shift
6692 if b < 0x80 {
6693 break
6694 }
6695 }
6696 if msglen < 0 {
6697 return ErrInvalidLengthScheduler
6698 }
6699 postIndex := iNdEx + msglen
6700 if postIndex > l {
6701 return io.ErrUnexpectedEOF
6702 }
6703 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6704 return err
6705 }
6706 iNdEx = postIndex
6707 hasFields[0] |= uint64(0x00000001)
6708 default:
6709 iNdEx = preIndex
6710 skippy, err := skipScheduler(dAtA[iNdEx:])
6711 if err != nil {
6712 return err
6713 }
6714 if skippy < 0 {
6715 return ErrInvalidLengthScheduler
6716 }
6717 if (iNdEx + skippy) > l {
6718 return io.ErrUnexpectedEOF
6719 }
6720 iNdEx += skippy
6721 }
6722 }
6723 if hasFields[0]&uint64(0x00000001) == 0 {
6724 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
6725 }
6726
6727 if iNdEx > l {
6728 return io.ErrUnexpectedEOF
6729 }
6730 return nil
6731 }
6732 func (m *Event_Message) Unmarshal(dAtA []byte) error {
6733 var hasFields [1]uint64
6734 l := len(dAtA)
6735 iNdEx := 0
6736 for iNdEx < l {
6737 preIndex := iNdEx
6738 var wire uint64
6739 for shift := uint(0); ; shift += 7 {
6740 if shift >= 64 {
6741 return ErrIntOverflowScheduler
6742 }
6743 if iNdEx >= l {
6744 return io.ErrUnexpectedEOF
6745 }
6746 b := dAtA[iNdEx]
6747 iNdEx++
6748 wire |= (uint64(b) & 0x7F) << shift
6749 if b < 0x80 {
6750 break
6751 }
6752 }
6753 fieldNum := int32(wire >> 3)
6754 wireType := int(wire & 0x7)
6755 if wireType == 4 {
6756 return fmt.Errorf("proto: Message: wiretype end group for non-group")
6757 }
6758 if fieldNum <= 0 {
6759 return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
6760 }
6761 switch fieldNum {
6762 case 1:
6763 if wireType != 2 {
6764 return fmt.Errorf("proto: wrong wireType = %d for field AgentID", wireType)
6765 }
6766 var msglen int
6767 for shift := uint(0); ; shift += 7 {
6768 if shift >= 64 {
6769 return ErrIntOverflowScheduler
6770 }
6771 if iNdEx >= l {
6772 return io.ErrUnexpectedEOF
6773 }
6774 b := dAtA[iNdEx]
6775 iNdEx++
6776 msglen |= (int(b) & 0x7F) << shift
6777 if b < 0x80 {
6778 break
6779 }
6780 }
6781 if msglen < 0 {
6782 return ErrInvalidLengthScheduler
6783 }
6784 postIndex := iNdEx + msglen
6785 if postIndex > l {
6786 return io.ErrUnexpectedEOF
6787 }
6788 if err := m.AgentID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6789 return err
6790 }
6791 iNdEx = postIndex
6792 hasFields[0] |= uint64(0x00000001)
6793 case 2:
6794 if wireType != 2 {
6795 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorID", wireType)
6796 }
6797 var msglen int
6798 for shift := uint(0); ; shift += 7 {
6799 if shift >= 64 {
6800 return ErrIntOverflowScheduler
6801 }
6802 if iNdEx >= l {
6803 return io.ErrUnexpectedEOF
6804 }
6805 b := dAtA[iNdEx]
6806 iNdEx++
6807 msglen |= (int(b) & 0x7F) << shift
6808 if b < 0x80 {
6809 break
6810 }
6811 }
6812 if msglen < 0 {
6813 return ErrInvalidLengthScheduler
6814 }
6815 postIndex := iNdEx + msglen
6816 if postIndex > l {
6817 return io.ErrUnexpectedEOF
6818 }
6819 if err := m.ExecutorID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6820 return err
6821 }
6822 iNdEx = postIndex
6823 hasFields[0] |= uint64(0x00000002)
6824 case 3:
6825 if wireType != 2 {
6826 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
6827 }
6828 var byteLen int
6829 for shift := uint(0); ; shift += 7 {
6830 if shift >= 64 {
6831 return ErrIntOverflowScheduler
6832 }
6833 if iNdEx >= l {
6834 return io.ErrUnexpectedEOF
6835 }
6836 b := dAtA[iNdEx]
6837 iNdEx++
6838 byteLen |= (int(b) & 0x7F) << shift
6839 if b < 0x80 {
6840 break
6841 }
6842 }
6843 if byteLen < 0 {
6844 return ErrInvalidLengthScheduler
6845 }
6846 postIndex := iNdEx + byteLen
6847 if postIndex > l {
6848 return io.ErrUnexpectedEOF
6849 }
6850 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
6851 if m.Data == nil {
6852 m.Data = []byte{}
6853 }
6854 iNdEx = postIndex
6855 hasFields[0] |= uint64(0x00000004)
6856 default:
6857 iNdEx = preIndex
6858 skippy, err := skipScheduler(dAtA[iNdEx:])
6859 if err != nil {
6860 return err
6861 }
6862 if skippy < 0 {
6863 return ErrInvalidLengthScheduler
6864 }
6865 if (iNdEx + skippy) > l {
6866 return io.ErrUnexpectedEOF
6867 }
6868 iNdEx += skippy
6869 }
6870 }
6871 if hasFields[0]&uint64(0x00000001) == 0 {
6872 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("agent_id")
6873 }
6874 if hasFields[0]&uint64(0x00000002) == 0 {
6875 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
6876 }
6877 if hasFields[0]&uint64(0x00000004) == 0 {
6878 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
6879 }
6880
6881 if iNdEx > l {
6882 return io.ErrUnexpectedEOF
6883 }
6884 return nil
6885 }
6886 func (m *Event_Failure) Unmarshal(dAtA []byte) error {
6887 l := len(dAtA)
6888 iNdEx := 0
6889 for iNdEx < l {
6890 preIndex := iNdEx
6891 var wire uint64
6892 for shift := uint(0); ; shift += 7 {
6893 if shift >= 64 {
6894 return ErrIntOverflowScheduler
6895 }
6896 if iNdEx >= l {
6897 return io.ErrUnexpectedEOF
6898 }
6899 b := dAtA[iNdEx]
6900 iNdEx++
6901 wire |= (uint64(b) & 0x7F) << shift
6902 if b < 0x80 {
6903 break
6904 }
6905 }
6906 fieldNum := int32(wire >> 3)
6907 wireType := int(wire & 0x7)
6908 if wireType == 4 {
6909 return fmt.Errorf("proto: Failure: wiretype end group for non-group")
6910 }
6911 if fieldNum <= 0 {
6912 return fmt.Errorf("proto: Failure: illegal tag %d (wire type %d)", fieldNum, wire)
6913 }
6914 switch fieldNum {
6915 case 1:
6916 if wireType != 2 {
6917 return fmt.Errorf("proto: wrong wireType = %d for field AgentID", wireType)
6918 }
6919 var msglen int
6920 for shift := uint(0); ; shift += 7 {
6921 if shift >= 64 {
6922 return ErrIntOverflowScheduler
6923 }
6924 if iNdEx >= l {
6925 return io.ErrUnexpectedEOF
6926 }
6927 b := dAtA[iNdEx]
6928 iNdEx++
6929 msglen |= (int(b) & 0x7F) << shift
6930 if b < 0x80 {
6931 break
6932 }
6933 }
6934 if msglen < 0 {
6935 return ErrInvalidLengthScheduler
6936 }
6937 postIndex := iNdEx + msglen
6938 if postIndex > l {
6939 return io.ErrUnexpectedEOF
6940 }
6941 if m.AgentID == nil {
6942 m.AgentID = &mesos.AgentID{}
6943 }
6944 if err := m.AgentID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6945 return err
6946 }
6947 iNdEx = postIndex
6948 case 2:
6949 if wireType != 2 {
6950 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorID", wireType)
6951 }
6952 var msglen int
6953 for shift := uint(0); ; shift += 7 {
6954 if shift >= 64 {
6955 return ErrIntOverflowScheduler
6956 }
6957 if iNdEx >= l {
6958 return io.ErrUnexpectedEOF
6959 }
6960 b := dAtA[iNdEx]
6961 iNdEx++
6962 msglen |= (int(b) & 0x7F) << shift
6963 if b < 0x80 {
6964 break
6965 }
6966 }
6967 if msglen < 0 {
6968 return ErrInvalidLengthScheduler
6969 }
6970 postIndex := iNdEx + msglen
6971 if postIndex > l {
6972 return io.ErrUnexpectedEOF
6973 }
6974 if m.ExecutorID == nil {
6975 m.ExecutorID = &mesos.ExecutorID{}
6976 }
6977 if err := m.ExecutorID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6978 return err
6979 }
6980 iNdEx = postIndex
6981 case 3:
6982 if wireType != 0 {
6983 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
6984 }
6985 var v int32
6986 for shift := uint(0); ; shift += 7 {
6987 if shift >= 64 {
6988 return ErrIntOverflowScheduler
6989 }
6990 if iNdEx >= l {
6991 return io.ErrUnexpectedEOF
6992 }
6993 b := dAtA[iNdEx]
6994 iNdEx++
6995 v |= (int32(b) & 0x7F) << shift
6996 if b < 0x80 {
6997 break
6998 }
6999 }
7000 m.Status = &v
7001 default:
7002 iNdEx = preIndex
7003 skippy, err := skipScheduler(dAtA[iNdEx:])
7004 if err != nil {
7005 return err
7006 }
7007 if skippy < 0 {
7008 return ErrInvalidLengthScheduler
7009 }
7010 if (iNdEx + skippy) > l {
7011 return io.ErrUnexpectedEOF
7012 }
7013 iNdEx += skippy
7014 }
7015 }
7016
7017 if iNdEx > l {
7018 return io.ErrUnexpectedEOF
7019 }
7020 return nil
7021 }
7022 func (m *Event_Error) Unmarshal(dAtA []byte) error {
7023 var hasFields [1]uint64
7024 l := len(dAtA)
7025 iNdEx := 0
7026 for iNdEx < l {
7027 preIndex := iNdEx
7028 var wire uint64
7029 for shift := uint(0); ; shift += 7 {
7030 if shift >= 64 {
7031 return ErrIntOverflowScheduler
7032 }
7033 if iNdEx >= l {
7034 return io.ErrUnexpectedEOF
7035 }
7036 b := dAtA[iNdEx]
7037 iNdEx++
7038 wire |= (uint64(b) & 0x7F) << shift
7039 if b < 0x80 {
7040 break
7041 }
7042 }
7043 fieldNum := int32(wire >> 3)
7044 wireType := int(wire & 0x7)
7045 if wireType == 4 {
7046 return fmt.Errorf("proto: Error: wiretype end group for non-group")
7047 }
7048 if fieldNum <= 0 {
7049 return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire)
7050 }
7051 switch fieldNum {
7052 case 1:
7053 if wireType != 2 {
7054 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
7055 }
7056 var stringLen uint64
7057 for shift := uint(0); ; shift += 7 {
7058 if shift >= 64 {
7059 return ErrIntOverflowScheduler
7060 }
7061 if iNdEx >= l {
7062 return io.ErrUnexpectedEOF
7063 }
7064 b := dAtA[iNdEx]
7065 iNdEx++
7066 stringLen |= (uint64(b) & 0x7F) << shift
7067 if b < 0x80 {
7068 break
7069 }
7070 }
7071 intStringLen := int(stringLen)
7072 if intStringLen < 0 {
7073 return ErrInvalidLengthScheduler
7074 }
7075 postIndex := iNdEx + intStringLen
7076 if postIndex > l {
7077 return io.ErrUnexpectedEOF
7078 }
7079 m.Message = string(dAtA[iNdEx:postIndex])
7080 iNdEx = postIndex
7081 hasFields[0] |= uint64(0x00000001)
7082 default:
7083 iNdEx = preIndex
7084 skippy, err := skipScheduler(dAtA[iNdEx:])
7085 if err != nil {
7086 return err
7087 }
7088 if skippy < 0 {
7089 return ErrInvalidLengthScheduler
7090 }
7091 if (iNdEx + skippy) > l {
7092 return io.ErrUnexpectedEOF
7093 }
7094 iNdEx += skippy
7095 }
7096 }
7097 if hasFields[0]&uint64(0x00000001) == 0 {
7098 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("message")
7099 }
7100
7101 if iNdEx > l {
7102 return io.ErrUnexpectedEOF
7103 }
7104 return nil
7105 }
7106 func (m *Call) Unmarshal(dAtA []byte) error {
7107 l := len(dAtA)
7108 iNdEx := 0
7109 for iNdEx < l {
7110 preIndex := iNdEx
7111 var wire uint64
7112 for shift := uint(0); ; shift += 7 {
7113 if shift >= 64 {
7114 return ErrIntOverflowScheduler
7115 }
7116 if iNdEx >= l {
7117 return io.ErrUnexpectedEOF
7118 }
7119 b := dAtA[iNdEx]
7120 iNdEx++
7121 wire |= (uint64(b) & 0x7F) << shift
7122 if b < 0x80 {
7123 break
7124 }
7125 }
7126 fieldNum := int32(wire >> 3)
7127 wireType := int(wire & 0x7)
7128 if wireType == 4 {
7129 return fmt.Errorf("proto: Call: wiretype end group for non-group")
7130 }
7131 if fieldNum <= 0 {
7132 return fmt.Errorf("proto: Call: illegal tag %d (wire type %d)", fieldNum, wire)
7133 }
7134 switch fieldNum {
7135 case 1:
7136 if wireType != 2 {
7137 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkID", 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.FrameworkID == nil {
7162 m.FrameworkID = &mesos.FrameworkID{}
7163 }
7164 if err := m.FrameworkID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7165 return err
7166 }
7167 iNdEx = postIndex
7168 case 2:
7169 if wireType != 0 {
7170 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
7171 }
7172 m.Type = 0
7173 for shift := uint(0); ; shift += 7 {
7174 if shift >= 64 {
7175 return ErrIntOverflowScheduler
7176 }
7177 if iNdEx >= l {
7178 return io.ErrUnexpectedEOF
7179 }
7180 b := dAtA[iNdEx]
7181 iNdEx++
7182 m.Type |= (Call_Type(b) & 0x7F) << shift
7183 if b < 0x80 {
7184 break
7185 }
7186 }
7187 case 3:
7188 if wireType != 2 {
7189 return fmt.Errorf("proto: wrong wireType = %d for field Subscribe", wireType)
7190 }
7191 var msglen int
7192 for shift := uint(0); ; shift += 7 {
7193 if shift >= 64 {
7194 return ErrIntOverflowScheduler
7195 }
7196 if iNdEx >= l {
7197 return io.ErrUnexpectedEOF
7198 }
7199 b := dAtA[iNdEx]
7200 iNdEx++
7201 msglen |= (int(b) & 0x7F) << shift
7202 if b < 0x80 {
7203 break
7204 }
7205 }
7206 if msglen < 0 {
7207 return ErrInvalidLengthScheduler
7208 }
7209 postIndex := iNdEx + msglen
7210 if postIndex > l {
7211 return io.ErrUnexpectedEOF
7212 }
7213 if m.Subscribe == nil {
7214 m.Subscribe = &Call_Subscribe{}
7215 }
7216 if err := m.Subscribe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7217 return err
7218 }
7219 iNdEx = postIndex
7220 case 4:
7221 if wireType != 2 {
7222 return fmt.Errorf("proto: wrong wireType = %d for field Accept", wireType)
7223 }
7224 var msglen int
7225 for shift := uint(0); ; shift += 7 {
7226 if shift >= 64 {
7227 return ErrIntOverflowScheduler
7228 }
7229 if iNdEx >= l {
7230 return io.ErrUnexpectedEOF
7231 }
7232 b := dAtA[iNdEx]
7233 iNdEx++
7234 msglen |= (int(b) & 0x7F) << shift
7235 if b < 0x80 {
7236 break
7237 }
7238 }
7239 if msglen < 0 {
7240 return ErrInvalidLengthScheduler
7241 }
7242 postIndex := iNdEx + msglen
7243 if postIndex > l {
7244 return io.ErrUnexpectedEOF
7245 }
7246 if m.Accept == nil {
7247 m.Accept = &Call_Accept{}
7248 }
7249 if err := m.Accept.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7250 return err
7251 }
7252 iNdEx = postIndex
7253 case 5:
7254 if wireType != 2 {
7255 return fmt.Errorf("proto: wrong wireType = %d for field Decline", wireType)
7256 }
7257 var msglen int
7258 for shift := uint(0); ; shift += 7 {
7259 if shift >= 64 {
7260 return ErrIntOverflowScheduler
7261 }
7262 if iNdEx >= l {
7263 return io.ErrUnexpectedEOF
7264 }
7265 b := dAtA[iNdEx]
7266 iNdEx++
7267 msglen |= (int(b) & 0x7F) << shift
7268 if b < 0x80 {
7269 break
7270 }
7271 }
7272 if msglen < 0 {
7273 return ErrInvalidLengthScheduler
7274 }
7275 postIndex := iNdEx + msglen
7276 if postIndex > l {
7277 return io.ErrUnexpectedEOF
7278 }
7279 if m.Decline == nil {
7280 m.Decline = &Call_Decline{}
7281 }
7282 if err := m.Decline.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7283 return err
7284 }
7285 iNdEx = postIndex
7286 case 6:
7287 if wireType != 2 {
7288 return fmt.Errorf("proto: wrong wireType = %d for field Kill", wireType)
7289 }
7290 var msglen int
7291 for shift := uint(0); ; shift += 7 {
7292 if shift >= 64 {
7293 return ErrIntOverflowScheduler
7294 }
7295 if iNdEx >= l {
7296 return io.ErrUnexpectedEOF
7297 }
7298 b := dAtA[iNdEx]
7299 iNdEx++
7300 msglen |= (int(b) & 0x7F) << shift
7301 if b < 0x80 {
7302 break
7303 }
7304 }
7305 if msglen < 0 {
7306 return ErrInvalidLengthScheduler
7307 }
7308 postIndex := iNdEx + msglen
7309 if postIndex > l {
7310 return io.ErrUnexpectedEOF
7311 }
7312 if m.Kill == nil {
7313 m.Kill = &Call_Kill{}
7314 }
7315 if err := m.Kill.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7316 return err
7317 }
7318 iNdEx = postIndex
7319 case 7:
7320 if wireType != 2 {
7321 return fmt.Errorf("proto: wrong wireType = %d for field Shutdown", wireType)
7322 }
7323 var msglen int
7324 for shift := uint(0); ; shift += 7 {
7325 if shift >= 64 {
7326 return ErrIntOverflowScheduler
7327 }
7328 if iNdEx >= l {
7329 return io.ErrUnexpectedEOF
7330 }
7331 b := dAtA[iNdEx]
7332 iNdEx++
7333 msglen |= (int(b) & 0x7F) << shift
7334 if b < 0x80 {
7335 break
7336 }
7337 }
7338 if msglen < 0 {
7339 return ErrInvalidLengthScheduler
7340 }
7341 postIndex := iNdEx + msglen
7342 if postIndex > l {
7343 return io.ErrUnexpectedEOF
7344 }
7345 if m.Shutdown == nil {
7346 m.Shutdown = &Call_Shutdown{}
7347 }
7348 if err := m.Shutdown.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7349 return err
7350 }
7351 iNdEx = postIndex
7352 case 8:
7353 if wireType != 2 {
7354 return fmt.Errorf("proto: wrong wireType = %d for field Acknowledge", wireType)
7355 }
7356 var msglen int
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 msglen |= (int(b) & 0x7F) << shift
7367 if b < 0x80 {
7368 break
7369 }
7370 }
7371 if msglen < 0 {
7372 return ErrInvalidLengthScheduler
7373 }
7374 postIndex := iNdEx + msglen
7375 if postIndex > l {
7376 return io.ErrUnexpectedEOF
7377 }
7378 if m.Acknowledge == nil {
7379 m.Acknowledge = &Call_Acknowledge{}
7380 }
7381 if err := m.Acknowledge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7382 return err
7383 }
7384 iNdEx = postIndex
7385 case 9:
7386 if wireType != 2 {
7387 return fmt.Errorf("proto: wrong wireType = %d for field Reconcile", wireType)
7388 }
7389 var msglen int
7390 for shift := uint(0); ; shift += 7 {
7391 if shift >= 64 {
7392 return ErrIntOverflowScheduler
7393 }
7394 if iNdEx >= l {
7395 return io.ErrUnexpectedEOF
7396 }
7397 b := dAtA[iNdEx]
7398 iNdEx++
7399 msglen |= (int(b) & 0x7F) << shift
7400 if b < 0x80 {
7401 break
7402 }
7403 }
7404 if msglen < 0 {
7405 return ErrInvalidLengthScheduler
7406 }
7407 postIndex := iNdEx + msglen
7408 if postIndex > l {
7409 return io.ErrUnexpectedEOF
7410 }
7411 if m.Reconcile == nil {
7412 m.Reconcile = &Call_Reconcile{}
7413 }
7414 if err := m.Reconcile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7415 return err
7416 }
7417 iNdEx = postIndex
7418 case 10:
7419 if wireType != 2 {
7420 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
7421 }
7422 var msglen int
7423 for shift := uint(0); ; shift += 7 {
7424 if shift >= 64 {
7425 return ErrIntOverflowScheduler
7426 }
7427 if iNdEx >= l {
7428 return io.ErrUnexpectedEOF
7429 }
7430 b := dAtA[iNdEx]
7431 iNdEx++
7432 msglen |= (int(b) & 0x7F) << shift
7433 if b < 0x80 {
7434 break
7435 }
7436 }
7437 if msglen < 0 {
7438 return ErrInvalidLengthScheduler
7439 }
7440 postIndex := iNdEx + msglen
7441 if postIndex > l {
7442 return io.ErrUnexpectedEOF
7443 }
7444 if m.Message == nil {
7445 m.Message = &Call_Message{}
7446 }
7447 if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7448 return err
7449 }
7450 iNdEx = postIndex
7451 case 11:
7452 if wireType != 2 {
7453 return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType)
7454 }
7455 var msglen int
7456 for shift := uint(0); ; shift += 7 {
7457 if shift >= 64 {
7458 return ErrIntOverflowScheduler
7459 }
7460 if iNdEx >= l {
7461 return io.ErrUnexpectedEOF
7462 }
7463 b := dAtA[iNdEx]
7464 iNdEx++
7465 msglen |= (int(b) & 0x7F) << shift
7466 if b < 0x80 {
7467 break
7468 }
7469 }
7470 if msglen < 0 {
7471 return ErrInvalidLengthScheduler
7472 }
7473 postIndex := iNdEx + msglen
7474 if postIndex > l {
7475 return io.ErrUnexpectedEOF
7476 }
7477 if m.Request == nil {
7478 m.Request = &Call_Request{}
7479 }
7480 if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7481 return err
7482 }
7483 iNdEx = postIndex
7484 case 13:
7485 if wireType != 2 {
7486 return fmt.Errorf("proto: wrong wireType = %d for field AcceptInverseOffers", wireType)
7487 }
7488 var msglen int
7489 for shift := uint(0); ; shift += 7 {
7490 if shift >= 64 {
7491 return ErrIntOverflowScheduler
7492 }
7493 if iNdEx >= l {
7494 return io.ErrUnexpectedEOF
7495 }
7496 b := dAtA[iNdEx]
7497 iNdEx++
7498 msglen |= (int(b) & 0x7F) << shift
7499 if b < 0x80 {
7500 break
7501 }
7502 }
7503 if msglen < 0 {
7504 return ErrInvalidLengthScheduler
7505 }
7506 postIndex := iNdEx + msglen
7507 if postIndex > l {
7508 return io.ErrUnexpectedEOF
7509 }
7510 if m.AcceptInverseOffers == nil {
7511 m.AcceptInverseOffers = &Call_AcceptInverseOffers{}
7512 }
7513 if err := m.AcceptInverseOffers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7514 return err
7515 }
7516 iNdEx = postIndex
7517 case 14:
7518 if wireType != 2 {
7519 return fmt.Errorf("proto: wrong wireType = %d for field DeclineInverseOffers", wireType)
7520 }
7521 var msglen int
7522 for shift := uint(0); ; shift += 7 {
7523 if shift >= 64 {
7524 return ErrIntOverflowScheduler
7525 }
7526 if iNdEx >= l {
7527 return io.ErrUnexpectedEOF
7528 }
7529 b := dAtA[iNdEx]
7530 iNdEx++
7531 msglen |= (int(b) & 0x7F) << shift
7532 if b < 0x80 {
7533 break
7534 }
7535 }
7536 if msglen < 0 {
7537 return ErrInvalidLengthScheduler
7538 }
7539 postIndex := iNdEx + msglen
7540 if postIndex > l {
7541 return io.ErrUnexpectedEOF
7542 }
7543 if m.DeclineInverseOffers == nil {
7544 m.DeclineInverseOffers = &Call_DeclineInverseOffers{}
7545 }
7546 if err := m.DeclineInverseOffers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7547 return err
7548 }
7549 iNdEx = postIndex
7550 case 15:
7551 if wireType != 2 {
7552 return fmt.Errorf("proto: wrong wireType = %d for field Revive", wireType)
7553 }
7554 var msglen int
7555 for shift := uint(0); ; shift += 7 {
7556 if shift >= 64 {
7557 return ErrIntOverflowScheduler
7558 }
7559 if iNdEx >= l {
7560 return io.ErrUnexpectedEOF
7561 }
7562 b := dAtA[iNdEx]
7563 iNdEx++
7564 msglen |= (int(b) & 0x7F) << shift
7565 if b < 0x80 {
7566 break
7567 }
7568 }
7569 if msglen < 0 {
7570 return ErrInvalidLengthScheduler
7571 }
7572 postIndex := iNdEx + msglen
7573 if postIndex > l {
7574 return io.ErrUnexpectedEOF
7575 }
7576 if m.Revive == nil {
7577 m.Revive = &Call_Revive{}
7578 }
7579 if err := m.Revive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7580 return err
7581 }
7582 iNdEx = postIndex
7583 case 16:
7584 if wireType != 2 {
7585 return fmt.Errorf("proto: wrong wireType = %d for field Suppress", wireType)
7586 }
7587 var msglen int
7588 for shift := uint(0); ; shift += 7 {
7589 if shift >= 64 {
7590 return ErrIntOverflowScheduler
7591 }
7592 if iNdEx >= l {
7593 return io.ErrUnexpectedEOF
7594 }
7595 b := dAtA[iNdEx]
7596 iNdEx++
7597 msglen |= (int(b) & 0x7F) << shift
7598 if b < 0x80 {
7599 break
7600 }
7601 }
7602 if msglen < 0 {
7603 return ErrInvalidLengthScheduler
7604 }
7605 postIndex := iNdEx + msglen
7606 if postIndex > l {
7607 return io.ErrUnexpectedEOF
7608 }
7609 if m.Suppress == nil {
7610 m.Suppress = &Call_Suppress{}
7611 }
7612 if err := m.Suppress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7613 return err
7614 }
7615 iNdEx = postIndex
7616 default:
7617 iNdEx = preIndex
7618 skippy, err := skipScheduler(dAtA[iNdEx:])
7619 if err != nil {
7620 return err
7621 }
7622 if skippy < 0 {
7623 return ErrInvalidLengthScheduler
7624 }
7625 if (iNdEx + skippy) > l {
7626 return io.ErrUnexpectedEOF
7627 }
7628 iNdEx += skippy
7629 }
7630 }
7631
7632 if iNdEx > l {
7633 return io.ErrUnexpectedEOF
7634 }
7635 return nil
7636 }
7637 func (m *Call_Subscribe) Unmarshal(dAtA []byte) error {
7638 var hasFields [1]uint64
7639 l := len(dAtA)
7640 iNdEx := 0
7641 for iNdEx < l {
7642 preIndex := iNdEx
7643 var wire uint64
7644 for shift := uint(0); ; shift += 7 {
7645 if shift >= 64 {
7646 return ErrIntOverflowScheduler
7647 }
7648 if iNdEx >= l {
7649 return io.ErrUnexpectedEOF
7650 }
7651 b := dAtA[iNdEx]
7652 iNdEx++
7653 wire |= (uint64(b) & 0x7F) << shift
7654 if b < 0x80 {
7655 break
7656 }
7657 }
7658 fieldNum := int32(wire >> 3)
7659 wireType := int(wire & 0x7)
7660 if wireType == 4 {
7661 return fmt.Errorf("proto: Subscribe: wiretype end group for non-group")
7662 }
7663 if fieldNum <= 0 {
7664 return fmt.Errorf("proto: Subscribe: illegal tag %d (wire type %d)", fieldNum, wire)
7665 }
7666 switch fieldNum {
7667 case 1:
7668 if wireType != 2 {
7669 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType)
7670 }
7671 var msglen int
7672 for shift := uint(0); ; shift += 7 {
7673 if shift >= 64 {
7674 return ErrIntOverflowScheduler
7675 }
7676 if iNdEx >= l {
7677 return io.ErrUnexpectedEOF
7678 }
7679 b := dAtA[iNdEx]
7680 iNdEx++
7681 msglen |= (int(b) & 0x7F) << shift
7682 if b < 0x80 {
7683 break
7684 }
7685 }
7686 if msglen < 0 {
7687 return ErrInvalidLengthScheduler
7688 }
7689 postIndex := iNdEx + msglen
7690 if postIndex > l {
7691 return io.ErrUnexpectedEOF
7692 }
7693 if m.FrameworkInfo == nil {
7694 m.FrameworkInfo = &mesos.FrameworkInfo{}
7695 }
7696 if err := m.FrameworkInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7697 return err
7698 }
7699 iNdEx = postIndex
7700 hasFields[0] |= uint64(0x00000001)
7701 case 2:
7702 if wireType != 2 {
7703 return fmt.Errorf("proto: wrong wireType = %d for field SuppressedRoles", wireType)
7704 }
7705 var stringLen uint64
7706 for shift := uint(0); ; shift += 7 {
7707 if shift >= 64 {
7708 return ErrIntOverflowScheduler
7709 }
7710 if iNdEx >= l {
7711 return io.ErrUnexpectedEOF
7712 }
7713 b := dAtA[iNdEx]
7714 iNdEx++
7715 stringLen |= (uint64(b) & 0x7F) << shift
7716 if b < 0x80 {
7717 break
7718 }
7719 }
7720 intStringLen := int(stringLen)
7721 if intStringLen < 0 {
7722 return ErrInvalidLengthScheduler
7723 }
7724 postIndex := iNdEx + intStringLen
7725 if postIndex > l {
7726 return io.ErrUnexpectedEOF
7727 }
7728 m.SuppressedRoles = append(m.SuppressedRoles, string(dAtA[iNdEx:postIndex]))
7729 iNdEx = postIndex
7730 default:
7731 iNdEx = preIndex
7732 skippy, err := skipScheduler(dAtA[iNdEx:])
7733 if err != nil {
7734 return err
7735 }
7736 if skippy < 0 {
7737 return ErrInvalidLengthScheduler
7738 }
7739 if (iNdEx + skippy) > l {
7740 return io.ErrUnexpectedEOF
7741 }
7742 iNdEx += skippy
7743 }
7744 }
7745 if hasFields[0]&uint64(0x00000001) == 0 {
7746 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
7747 }
7748
7749 if iNdEx > l {
7750 return io.ErrUnexpectedEOF
7751 }
7752 return nil
7753 }
7754 func (m *Call_Accept) Unmarshal(dAtA []byte) error {
7755 l := len(dAtA)
7756 iNdEx := 0
7757 for iNdEx < l {
7758 preIndex := iNdEx
7759 var wire uint64
7760 for shift := uint(0); ; shift += 7 {
7761 if shift >= 64 {
7762 return ErrIntOverflowScheduler
7763 }
7764 if iNdEx >= l {
7765 return io.ErrUnexpectedEOF
7766 }
7767 b := dAtA[iNdEx]
7768 iNdEx++
7769 wire |= (uint64(b) & 0x7F) << shift
7770 if b < 0x80 {
7771 break
7772 }
7773 }
7774 fieldNum := int32(wire >> 3)
7775 wireType := int(wire & 0x7)
7776 if wireType == 4 {
7777 return fmt.Errorf("proto: Accept: wiretype end group for non-group")
7778 }
7779 if fieldNum <= 0 {
7780 return fmt.Errorf("proto: Accept: illegal tag %d (wire type %d)", fieldNum, wire)
7781 }
7782 switch fieldNum {
7783 case 1:
7784 if wireType != 2 {
7785 return fmt.Errorf("proto: wrong wireType = %d for field OfferIDs", wireType)
7786 }
7787 var msglen int
7788 for shift := uint(0); ; shift += 7 {
7789 if shift >= 64 {
7790 return ErrIntOverflowScheduler
7791 }
7792 if iNdEx >= l {
7793 return io.ErrUnexpectedEOF
7794 }
7795 b := dAtA[iNdEx]
7796 iNdEx++
7797 msglen |= (int(b) & 0x7F) << shift
7798 if b < 0x80 {
7799 break
7800 }
7801 }
7802 if msglen < 0 {
7803 return ErrInvalidLengthScheduler
7804 }
7805 postIndex := iNdEx + msglen
7806 if postIndex > l {
7807 return io.ErrUnexpectedEOF
7808 }
7809 m.OfferIDs = append(m.OfferIDs, mesos.OfferID{})
7810 if err := m.OfferIDs[len(m.OfferIDs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7811 return err
7812 }
7813 iNdEx = postIndex
7814 case 2:
7815 if wireType != 2 {
7816 return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType)
7817 }
7818 var msglen int
7819 for shift := uint(0); ; shift += 7 {
7820 if shift >= 64 {
7821 return ErrIntOverflowScheduler
7822 }
7823 if iNdEx >= l {
7824 return io.ErrUnexpectedEOF
7825 }
7826 b := dAtA[iNdEx]
7827 iNdEx++
7828 msglen |= (int(b) & 0x7F) << shift
7829 if b < 0x80 {
7830 break
7831 }
7832 }
7833 if msglen < 0 {
7834 return ErrInvalidLengthScheduler
7835 }
7836 postIndex := iNdEx + msglen
7837 if postIndex > l {
7838 return io.ErrUnexpectedEOF
7839 }
7840 m.Operations = append(m.Operations, mesos.Offer_Operation{})
7841 if err := m.Operations[len(m.Operations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7842 return err
7843 }
7844 iNdEx = postIndex
7845 case 3:
7846 if wireType != 2 {
7847 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
7848 }
7849 var msglen int
7850 for shift := uint(0); ; shift += 7 {
7851 if shift >= 64 {
7852 return ErrIntOverflowScheduler
7853 }
7854 if iNdEx >= l {
7855 return io.ErrUnexpectedEOF
7856 }
7857 b := dAtA[iNdEx]
7858 iNdEx++
7859 msglen |= (int(b) & 0x7F) << shift
7860 if b < 0x80 {
7861 break
7862 }
7863 }
7864 if msglen < 0 {
7865 return ErrInvalidLengthScheduler
7866 }
7867 postIndex := iNdEx + msglen
7868 if postIndex > l {
7869 return io.ErrUnexpectedEOF
7870 }
7871 if m.Filters == nil {
7872 m.Filters = &mesos.Filters{}
7873 }
7874 if err := m.Filters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7875 return err
7876 }
7877 iNdEx = postIndex
7878 default:
7879 iNdEx = preIndex
7880 skippy, err := skipScheduler(dAtA[iNdEx:])
7881 if err != nil {
7882 return err
7883 }
7884 if skippy < 0 {
7885 return ErrInvalidLengthScheduler
7886 }
7887 if (iNdEx + skippy) > l {
7888 return io.ErrUnexpectedEOF
7889 }
7890 iNdEx += skippy
7891 }
7892 }
7893
7894 if iNdEx > l {
7895 return io.ErrUnexpectedEOF
7896 }
7897 return nil
7898 }
7899 func (m *Call_Decline) Unmarshal(dAtA []byte) error {
7900 l := len(dAtA)
7901 iNdEx := 0
7902 for iNdEx < l {
7903 preIndex := iNdEx
7904 var wire uint64
7905 for shift := uint(0); ; shift += 7 {
7906 if shift >= 64 {
7907 return ErrIntOverflowScheduler
7908 }
7909 if iNdEx >= l {
7910 return io.ErrUnexpectedEOF
7911 }
7912 b := dAtA[iNdEx]
7913 iNdEx++
7914 wire |= (uint64(b) & 0x7F) << shift
7915 if b < 0x80 {
7916 break
7917 }
7918 }
7919 fieldNum := int32(wire >> 3)
7920 wireType := int(wire & 0x7)
7921 if wireType == 4 {
7922 return fmt.Errorf("proto: Decline: wiretype end group for non-group")
7923 }
7924 if fieldNum <= 0 {
7925 return fmt.Errorf("proto: Decline: illegal tag %d (wire type %d)", fieldNum, wire)
7926 }
7927 switch fieldNum {
7928 case 1:
7929 if wireType != 2 {
7930 return fmt.Errorf("proto: wrong wireType = %d for field OfferIDs", wireType)
7931 }
7932 var msglen int
7933 for shift := uint(0); ; shift += 7 {
7934 if shift >= 64 {
7935 return ErrIntOverflowScheduler
7936 }
7937 if iNdEx >= l {
7938 return io.ErrUnexpectedEOF
7939 }
7940 b := dAtA[iNdEx]
7941 iNdEx++
7942 msglen |= (int(b) & 0x7F) << shift
7943 if b < 0x80 {
7944 break
7945 }
7946 }
7947 if msglen < 0 {
7948 return ErrInvalidLengthScheduler
7949 }
7950 postIndex := iNdEx + msglen
7951 if postIndex > l {
7952 return io.ErrUnexpectedEOF
7953 }
7954 m.OfferIDs = append(m.OfferIDs, mesos.OfferID{})
7955 if err := m.OfferIDs[len(m.OfferIDs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7956 return err
7957 }
7958 iNdEx = postIndex
7959 case 2:
7960 if wireType != 2 {
7961 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
7962 }
7963 var msglen int
7964 for shift := uint(0); ; shift += 7 {
7965 if shift >= 64 {
7966 return ErrIntOverflowScheduler
7967 }
7968 if iNdEx >= l {
7969 return io.ErrUnexpectedEOF
7970 }
7971 b := dAtA[iNdEx]
7972 iNdEx++
7973 msglen |= (int(b) & 0x7F) << shift
7974 if b < 0x80 {
7975 break
7976 }
7977 }
7978 if msglen < 0 {
7979 return ErrInvalidLengthScheduler
7980 }
7981 postIndex := iNdEx + msglen
7982 if postIndex > l {
7983 return io.ErrUnexpectedEOF
7984 }
7985 if m.Filters == nil {
7986 m.Filters = &mesos.Filters{}
7987 }
7988 if err := m.Filters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7989 return err
7990 }
7991 iNdEx = postIndex
7992 default:
7993 iNdEx = preIndex
7994 skippy, err := skipScheduler(dAtA[iNdEx:])
7995 if err != nil {
7996 return err
7997 }
7998 if skippy < 0 {
7999 return ErrInvalidLengthScheduler
8000 }
8001 if (iNdEx + skippy) > l {
8002 return io.ErrUnexpectedEOF
8003 }
8004 iNdEx += skippy
8005 }
8006 }
8007
8008 if iNdEx > l {
8009 return io.ErrUnexpectedEOF
8010 }
8011 return nil
8012 }
8013 func (m *Call_AcceptInverseOffers) Unmarshal(dAtA []byte) error {
8014 l := len(dAtA)
8015 iNdEx := 0
8016 for iNdEx < l {
8017 preIndex := iNdEx
8018 var wire uint64
8019 for shift := uint(0); ; shift += 7 {
8020 if shift >= 64 {
8021 return ErrIntOverflowScheduler
8022 }
8023 if iNdEx >= l {
8024 return io.ErrUnexpectedEOF
8025 }
8026 b := dAtA[iNdEx]
8027 iNdEx++
8028 wire |= (uint64(b) & 0x7F) << shift
8029 if b < 0x80 {
8030 break
8031 }
8032 }
8033 fieldNum := int32(wire >> 3)
8034 wireType := int(wire & 0x7)
8035 if wireType == 4 {
8036 return fmt.Errorf("proto: AcceptInverseOffers: wiretype end group for non-group")
8037 }
8038 if fieldNum <= 0 {
8039 return fmt.Errorf("proto: AcceptInverseOffers: illegal tag %d (wire type %d)", fieldNum, wire)
8040 }
8041 switch fieldNum {
8042 case 1:
8043 if wireType != 2 {
8044 return fmt.Errorf("proto: wrong wireType = %d for field InverseOfferIDs", wireType)
8045 }
8046 var msglen int
8047 for shift := uint(0); ; shift += 7 {
8048 if shift >= 64 {
8049 return ErrIntOverflowScheduler
8050 }
8051 if iNdEx >= l {
8052 return io.ErrUnexpectedEOF
8053 }
8054 b := dAtA[iNdEx]
8055 iNdEx++
8056 msglen |= (int(b) & 0x7F) << shift
8057 if b < 0x80 {
8058 break
8059 }
8060 }
8061 if msglen < 0 {
8062 return ErrInvalidLengthScheduler
8063 }
8064 postIndex := iNdEx + msglen
8065 if postIndex > l {
8066 return io.ErrUnexpectedEOF
8067 }
8068 m.InverseOfferIDs = append(m.InverseOfferIDs, mesos.OfferID{})
8069 if err := m.InverseOfferIDs[len(m.InverseOfferIDs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8070 return err
8071 }
8072 iNdEx = postIndex
8073 case 2:
8074 if wireType != 2 {
8075 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
8076 }
8077 var msglen int
8078 for shift := uint(0); ; shift += 7 {
8079 if shift >= 64 {
8080 return ErrIntOverflowScheduler
8081 }
8082 if iNdEx >= l {
8083 return io.ErrUnexpectedEOF
8084 }
8085 b := dAtA[iNdEx]
8086 iNdEx++
8087 msglen |= (int(b) & 0x7F) << shift
8088 if b < 0x80 {
8089 break
8090 }
8091 }
8092 if msglen < 0 {
8093 return ErrInvalidLengthScheduler
8094 }
8095 postIndex := iNdEx + msglen
8096 if postIndex > l {
8097 return io.ErrUnexpectedEOF
8098 }
8099 if m.Filters == nil {
8100 m.Filters = &mesos.Filters{}
8101 }
8102 if err := m.Filters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8103 return err
8104 }
8105 iNdEx = postIndex
8106 default:
8107 iNdEx = preIndex
8108 skippy, err := skipScheduler(dAtA[iNdEx:])
8109 if err != nil {
8110 return err
8111 }
8112 if skippy < 0 {
8113 return ErrInvalidLengthScheduler
8114 }
8115 if (iNdEx + skippy) > l {
8116 return io.ErrUnexpectedEOF
8117 }
8118 iNdEx += skippy
8119 }
8120 }
8121
8122 if iNdEx > l {
8123 return io.ErrUnexpectedEOF
8124 }
8125 return nil
8126 }
8127 func (m *Call_DeclineInverseOffers) Unmarshal(dAtA []byte) error {
8128 l := len(dAtA)
8129 iNdEx := 0
8130 for iNdEx < l {
8131 preIndex := iNdEx
8132 var wire uint64
8133 for shift := uint(0); ; shift += 7 {
8134 if shift >= 64 {
8135 return ErrIntOverflowScheduler
8136 }
8137 if iNdEx >= l {
8138 return io.ErrUnexpectedEOF
8139 }
8140 b := dAtA[iNdEx]
8141 iNdEx++
8142 wire |= (uint64(b) & 0x7F) << shift
8143 if b < 0x80 {
8144 break
8145 }
8146 }
8147 fieldNum := int32(wire >> 3)
8148 wireType := int(wire & 0x7)
8149 if wireType == 4 {
8150 return fmt.Errorf("proto: DeclineInverseOffers: wiretype end group for non-group")
8151 }
8152 if fieldNum <= 0 {
8153 return fmt.Errorf("proto: DeclineInverseOffers: illegal tag %d (wire type %d)", fieldNum, wire)
8154 }
8155 switch fieldNum {
8156 case 1:
8157 if wireType != 2 {
8158 return fmt.Errorf("proto: wrong wireType = %d for field InverseOfferIDs", wireType)
8159 }
8160 var msglen int
8161 for shift := uint(0); ; shift += 7 {
8162 if shift >= 64 {
8163 return ErrIntOverflowScheduler
8164 }
8165 if iNdEx >= l {
8166 return io.ErrUnexpectedEOF
8167 }
8168 b := dAtA[iNdEx]
8169 iNdEx++
8170 msglen |= (int(b) & 0x7F) << shift
8171 if b < 0x80 {
8172 break
8173 }
8174 }
8175 if msglen < 0 {
8176 return ErrInvalidLengthScheduler
8177 }
8178 postIndex := iNdEx + msglen
8179 if postIndex > l {
8180 return io.ErrUnexpectedEOF
8181 }
8182 m.InverseOfferIDs = append(m.InverseOfferIDs, mesos.OfferID{})
8183 if err := m.InverseOfferIDs[len(m.InverseOfferIDs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8184 return err
8185 }
8186 iNdEx = postIndex
8187 case 2:
8188 if wireType != 2 {
8189 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
8190 }
8191 var msglen int
8192 for shift := uint(0); ; shift += 7 {
8193 if shift >= 64 {
8194 return ErrIntOverflowScheduler
8195 }
8196 if iNdEx >= l {
8197 return io.ErrUnexpectedEOF
8198 }
8199 b := dAtA[iNdEx]
8200 iNdEx++
8201 msglen |= (int(b) & 0x7F) << shift
8202 if b < 0x80 {
8203 break
8204 }
8205 }
8206 if msglen < 0 {
8207 return ErrInvalidLengthScheduler
8208 }
8209 postIndex := iNdEx + msglen
8210 if postIndex > l {
8211 return io.ErrUnexpectedEOF
8212 }
8213 if m.Filters == nil {
8214 m.Filters = &mesos.Filters{}
8215 }
8216 if err := m.Filters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8217 return err
8218 }
8219 iNdEx = postIndex
8220 default:
8221 iNdEx = preIndex
8222 skippy, err := skipScheduler(dAtA[iNdEx:])
8223 if err != nil {
8224 return err
8225 }
8226 if skippy < 0 {
8227 return ErrInvalidLengthScheduler
8228 }
8229 if (iNdEx + skippy) > l {
8230 return io.ErrUnexpectedEOF
8231 }
8232 iNdEx += skippy
8233 }
8234 }
8235
8236 if iNdEx > l {
8237 return io.ErrUnexpectedEOF
8238 }
8239 return nil
8240 }
8241 func (m *Call_Revive) Unmarshal(dAtA []byte) error {
8242 l := len(dAtA)
8243 iNdEx := 0
8244 for iNdEx < l {
8245 preIndex := iNdEx
8246 var wire uint64
8247 for shift := uint(0); ; shift += 7 {
8248 if shift >= 64 {
8249 return ErrIntOverflowScheduler
8250 }
8251 if iNdEx >= l {
8252 return io.ErrUnexpectedEOF
8253 }
8254 b := dAtA[iNdEx]
8255 iNdEx++
8256 wire |= (uint64(b) & 0x7F) << shift
8257 if b < 0x80 {
8258 break
8259 }
8260 }
8261 fieldNum := int32(wire >> 3)
8262 wireType := int(wire & 0x7)
8263 if wireType == 4 {
8264 return fmt.Errorf("proto: Revive: wiretype end group for non-group")
8265 }
8266 if fieldNum <= 0 {
8267 return fmt.Errorf("proto: Revive: illegal tag %d (wire type %d)", fieldNum, wire)
8268 }
8269 switch fieldNum {
8270 case 1:
8271 if wireType != 2 {
8272 return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType)
8273 }
8274 var stringLen uint64
8275 for shift := uint(0); ; shift += 7 {
8276 if shift >= 64 {
8277 return ErrIntOverflowScheduler
8278 }
8279 if iNdEx >= l {
8280 return io.ErrUnexpectedEOF
8281 }
8282 b := dAtA[iNdEx]
8283 iNdEx++
8284 stringLen |= (uint64(b) & 0x7F) << shift
8285 if b < 0x80 {
8286 break
8287 }
8288 }
8289 intStringLen := int(stringLen)
8290 if intStringLen < 0 {
8291 return ErrInvalidLengthScheduler
8292 }
8293 postIndex := iNdEx + intStringLen
8294 if postIndex > l {
8295 return io.ErrUnexpectedEOF
8296 }
8297 m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex]))
8298 iNdEx = postIndex
8299 default:
8300 iNdEx = preIndex
8301 skippy, err := skipScheduler(dAtA[iNdEx:])
8302 if err != nil {
8303 return err
8304 }
8305 if skippy < 0 {
8306 return ErrInvalidLengthScheduler
8307 }
8308 if (iNdEx + skippy) > l {
8309 return io.ErrUnexpectedEOF
8310 }
8311 iNdEx += skippy
8312 }
8313 }
8314
8315 if iNdEx > l {
8316 return io.ErrUnexpectedEOF
8317 }
8318 return nil
8319 }
8320 func (m *Call_Kill) Unmarshal(dAtA []byte) error {
8321 var hasFields [1]uint64
8322 l := len(dAtA)
8323 iNdEx := 0
8324 for iNdEx < l {
8325 preIndex := iNdEx
8326 var wire uint64
8327 for shift := uint(0); ; shift += 7 {
8328 if shift >= 64 {
8329 return ErrIntOverflowScheduler
8330 }
8331 if iNdEx >= l {
8332 return io.ErrUnexpectedEOF
8333 }
8334 b := dAtA[iNdEx]
8335 iNdEx++
8336 wire |= (uint64(b) & 0x7F) << shift
8337 if b < 0x80 {
8338 break
8339 }
8340 }
8341 fieldNum := int32(wire >> 3)
8342 wireType := int(wire & 0x7)
8343 if wireType == 4 {
8344 return fmt.Errorf("proto: Kill: wiretype end group for non-group")
8345 }
8346 if fieldNum <= 0 {
8347 return fmt.Errorf("proto: Kill: illegal tag %d (wire type %d)", fieldNum, wire)
8348 }
8349 switch fieldNum {
8350 case 1:
8351 if wireType != 2 {
8352 return fmt.Errorf("proto: wrong wireType = %d for field TaskID", wireType)
8353 }
8354 var msglen int
8355 for shift := uint(0); ; shift += 7 {
8356 if shift >= 64 {
8357 return ErrIntOverflowScheduler
8358 }
8359 if iNdEx >= l {
8360 return io.ErrUnexpectedEOF
8361 }
8362 b := dAtA[iNdEx]
8363 iNdEx++
8364 msglen |= (int(b) & 0x7F) << shift
8365 if b < 0x80 {
8366 break
8367 }
8368 }
8369 if msglen < 0 {
8370 return ErrInvalidLengthScheduler
8371 }
8372 postIndex := iNdEx + msglen
8373 if postIndex > l {
8374 return io.ErrUnexpectedEOF
8375 }
8376 if err := m.TaskID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8377 return err
8378 }
8379 iNdEx = postIndex
8380 hasFields[0] |= uint64(0x00000001)
8381 case 2:
8382 if wireType != 2 {
8383 return fmt.Errorf("proto: wrong wireType = %d for field AgentID", wireType)
8384 }
8385 var msglen int
8386 for shift := uint(0); ; shift += 7 {
8387 if shift >= 64 {
8388 return ErrIntOverflowScheduler
8389 }
8390 if iNdEx >= l {
8391 return io.ErrUnexpectedEOF
8392 }
8393 b := dAtA[iNdEx]
8394 iNdEx++
8395 msglen |= (int(b) & 0x7F) << shift
8396 if b < 0x80 {
8397 break
8398 }
8399 }
8400 if msglen < 0 {
8401 return ErrInvalidLengthScheduler
8402 }
8403 postIndex := iNdEx + msglen
8404 if postIndex > l {
8405 return io.ErrUnexpectedEOF
8406 }
8407 if m.AgentID == nil {
8408 m.AgentID = &mesos.AgentID{}
8409 }
8410 if err := m.AgentID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8411 return err
8412 }
8413 iNdEx = postIndex
8414 case 3:
8415 if wireType != 2 {
8416 return fmt.Errorf("proto: wrong wireType = %d for field KillPolicy", wireType)
8417 }
8418 var msglen int
8419 for shift := uint(0); ; shift += 7 {
8420 if shift >= 64 {
8421 return ErrIntOverflowScheduler
8422 }
8423 if iNdEx >= l {
8424 return io.ErrUnexpectedEOF
8425 }
8426 b := dAtA[iNdEx]
8427 iNdEx++
8428 msglen |= (int(b) & 0x7F) << shift
8429 if b < 0x80 {
8430 break
8431 }
8432 }
8433 if msglen < 0 {
8434 return ErrInvalidLengthScheduler
8435 }
8436 postIndex := iNdEx + msglen
8437 if postIndex > l {
8438 return io.ErrUnexpectedEOF
8439 }
8440 if m.KillPolicy == nil {
8441 m.KillPolicy = &mesos.KillPolicy{}
8442 }
8443 if err := m.KillPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8444 return err
8445 }
8446 iNdEx = postIndex
8447 default:
8448 iNdEx = preIndex
8449 skippy, err := skipScheduler(dAtA[iNdEx:])
8450 if err != nil {
8451 return err
8452 }
8453 if skippy < 0 {
8454 return ErrInvalidLengthScheduler
8455 }
8456 if (iNdEx + skippy) > l {
8457 return io.ErrUnexpectedEOF
8458 }
8459 iNdEx += skippy
8460 }
8461 }
8462 if hasFields[0]&uint64(0x00000001) == 0 {
8463 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
8464 }
8465
8466 if iNdEx > l {
8467 return io.ErrUnexpectedEOF
8468 }
8469 return nil
8470 }
8471 func (m *Call_Shutdown) Unmarshal(dAtA []byte) error {
8472 var hasFields [1]uint64
8473 l := len(dAtA)
8474 iNdEx := 0
8475 for iNdEx < l {
8476 preIndex := iNdEx
8477 var wire uint64
8478 for shift := uint(0); ; shift += 7 {
8479 if shift >= 64 {
8480 return ErrIntOverflowScheduler
8481 }
8482 if iNdEx >= l {
8483 return io.ErrUnexpectedEOF
8484 }
8485 b := dAtA[iNdEx]
8486 iNdEx++
8487 wire |= (uint64(b) & 0x7F) << shift
8488 if b < 0x80 {
8489 break
8490 }
8491 }
8492 fieldNum := int32(wire >> 3)
8493 wireType := int(wire & 0x7)
8494 if wireType == 4 {
8495 return fmt.Errorf("proto: Shutdown: wiretype end group for non-group")
8496 }
8497 if fieldNum <= 0 {
8498 return fmt.Errorf("proto: Shutdown: illegal tag %d (wire type %d)", fieldNum, wire)
8499 }
8500 switch fieldNum {
8501 case 1:
8502 if wireType != 2 {
8503 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorID", wireType)
8504 }
8505 var msglen int
8506 for shift := uint(0); ; shift += 7 {
8507 if shift >= 64 {
8508 return ErrIntOverflowScheduler
8509 }
8510 if iNdEx >= l {
8511 return io.ErrUnexpectedEOF
8512 }
8513 b := dAtA[iNdEx]
8514 iNdEx++
8515 msglen |= (int(b) & 0x7F) << shift
8516 if b < 0x80 {
8517 break
8518 }
8519 }
8520 if msglen < 0 {
8521 return ErrInvalidLengthScheduler
8522 }
8523 postIndex := iNdEx + msglen
8524 if postIndex > l {
8525 return io.ErrUnexpectedEOF
8526 }
8527 if err := m.ExecutorID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8528 return err
8529 }
8530 iNdEx = postIndex
8531 hasFields[0] |= uint64(0x00000001)
8532 case 2:
8533 if wireType != 2 {
8534 return fmt.Errorf("proto: wrong wireType = %d for field AgentID", wireType)
8535 }
8536 var msglen int
8537 for shift := uint(0); ; shift += 7 {
8538 if shift >= 64 {
8539 return ErrIntOverflowScheduler
8540 }
8541 if iNdEx >= l {
8542 return io.ErrUnexpectedEOF
8543 }
8544 b := dAtA[iNdEx]
8545 iNdEx++
8546 msglen |= (int(b) & 0x7F) << shift
8547 if b < 0x80 {
8548 break
8549 }
8550 }
8551 if msglen < 0 {
8552 return ErrInvalidLengthScheduler
8553 }
8554 postIndex := iNdEx + msglen
8555 if postIndex > l {
8556 return io.ErrUnexpectedEOF
8557 }
8558 if err := m.AgentID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8559 return err
8560 }
8561 iNdEx = postIndex
8562 hasFields[0] |= uint64(0x00000002)
8563 default:
8564 iNdEx = preIndex
8565 skippy, err := skipScheduler(dAtA[iNdEx:])
8566 if err != nil {
8567 return err
8568 }
8569 if skippy < 0 {
8570 return ErrInvalidLengthScheduler
8571 }
8572 if (iNdEx + skippy) > l {
8573 return io.ErrUnexpectedEOF
8574 }
8575 iNdEx += skippy
8576 }
8577 }
8578 if hasFields[0]&uint64(0x00000001) == 0 {
8579 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
8580 }
8581 if hasFields[0]&uint64(0x00000002) == 0 {
8582 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("agent_id")
8583 }
8584
8585 if iNdEx > l {
8586 return io.ErrUnexpectedEOF
8587 }
8588 return nil
8589 }
8590 func (m *Call_Acknowledge) Unmarshal(dAtA []byte) error {
8591 var hasFields [1]uint64
8592 l := len(dAtA)
8593 iNdEx := 0
8594 for iNdEx < l {
8595 preIndex := iNdEx
8596 var wire uint64
8597 for shift := uint(0); ; shift += 7 {
8598 if shift >= 64 {
8599 return ErrIntOverflowScheduler
8600 }
8601 if iNdEx >= l {
8602 return io.ErrUnexpectedEOF
8603 }
8604 b := dAtA[iNdEx]
8605 iNdEx++
8606 wire |= (uint64(b) & 0x7F) << shift
8607 if b < 0x80 {
8608 break
8609 }
8610 }
8611 fieldNum := int32(wire >> 3)
8612 wireType := int(wire & 0x7)
8613 if wireType == 4 {
8614 return fmt.Errorf("proto: Acknowledge: wiretype end group for non-group")
8615 }
8616 if fieldNum <= 0 {
8617 return fmt.Errorf("proto: Acknowledge: illegal tag %d (wire type %d)", fieldNum, wire)
8618 }
8619 switch fieldNum {
8620 case 1:
8621 if wireType != 2 {
8622 return fmt.Errorf("proto: wrong wireType = %d for field AgentID", wireType)
8623 }
8624 var msglen int
8625 for shift := uint(0); ; shift += 7 {
8626 if shift >= 64 {
8627 return ErrIntOverflowScheduler
8628 }
8629 if iNdEx >= l {
8630 return io.ErrUnexpectedEOF
8631 }
8632 b := dAtA[iNdEx]
8633 iNdEx++
8634 msglen |= (int(b) & 0x7F) << shift
8635 if b < 0x80 {
8636 break
8637 }
8638 }
8639 if msglen < 0 {
8640 return ErrInvalidLengthScheduler
8641 }
8642 postIndex := iNdEx + msglen
8643 if postIndex > l {
8644 return io.ErrUnexpectedEOF
8645 }
8646 if err := m.AgentID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8647 return err
8648 }
8649 iNdEx = postIndex
8650 hasFields[0] |= uint64(0x00000001)
8651 case 2:
8652 if wireType != 2 {
8653 return fmt.Errorf("proto: wrong wireType = %d for field TaskID", wireType)
8654 }
8655 var msglen int
8656 for shift := uint(0); ; shift += 7 {
8657 if shift >= 64 {
8658 return ErrIntOverflowScheduler
8659 }
8660 if iNdEx >= l {
8661 return io.ErrUnexpectedEOF
8662 }
8663 b := dAtA[iNdEx]
8664 iNdEx++
8665 msglen |= (int(b) & 0x7F) << shift
8666 if b < 0x80 {
8667 break
8668 }
8669 }
8670 if msglen < 0 {
8671 return ErrInvalidLengthScheduler
8672 }
8673 postIndex := iNdEx + msglen
8674 if postIndex > l {
8675 return io.ErrUnexpectedEOF
8676 }
8677 if err := m.TaskID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8678 return err
8679 }
8680 iNdEx = postIndex
8681 hasFields[0] |= uint64(0x00000002)
8682 case 3:
8683 if wireType != 2 {
8684 return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
8685 }
8686 var byteLen int
8687 for shift := uint(0); ; shift += 7 {
8688 if shift >= 64 {
8689 return ErrIntOverflowScheduler
8690 }
8691 if iNdEx >= l {
8692 return io.ErrUnexpectedEOF
8693 }
8694 b := dAtA[iNdEx]
8695 iNdEx++
8696 byteLen |= (int(b) & 0x7F) << shift
8697 if b < 0x80 {
8698 break
8699 }
8700 }
8701 if byteLen < 0 {
8702 return ErrInvalidLengthScheduler
8703 }
8704 postIndex := iNdEx + byteLen
8705 if postIndex > l {
8706 return io.ErrUnexpectedEOF
8707 }
8708 m.UUID = append(m.UUID[:0], dAtA[iNdEx:postIndex]...)
8709 if m.UUID == nil {
8710 m.UUID = []byte{}
8711 }
8712 iNdEx = postIndex
8713 hasFields[0] |= uint64(0x00000004)
8714 default:
8715 iNdEx = preIndex
8716 skippy, err := skipScheduler(dAtA[iNdEx:])
8717 if err != nil {
8718 return err
8719 }
8720 if skippy < 0 {
8721 return ErrInvalidLengthScheduler
8722 }
8723 if (iNdEx + skippy) > l {
8724 return io.ErrUnexpectedEOF
8725 }
8726 iNdEx += skippy
8727 }
8728 }
8729 if hasFields[0]&uint64(0x00000001) == 0 {
8730 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("agent_id")
8731 }
8732 if hasFields[0]&uint64(0x00000002) == 0 {
8733 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
8734 }
8735 if hasFields[0]&uint64(0x00000004) == 0 {
8736 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
8737 }
8738
8739 if iNdEx > l {
8740 return io.ErrUnexpectedEOF
8741 }
8742 return nil
8743 }
8744 func (m *Call_Reconcile) Unmarshal(dAtA []byte) error {
8745 l := len(dAtA)
8746 iNdEx := 0
8747 for iNdEx < l {
8748 preIndex := iNdEx
8749 var wire uint64
8750 for shift := uint(0); ; shift += 7 {
8751 if shift >= 64 {
8752 return ErrIntOverflowScheduler
8753 }
8754 if iNdEx >= l {
8755 return io.ErrUnexpectedEOF
8756 }
8757 b := dAtA[iNdEx]
8758 iNdEx++
8759 wire |= (uint64(b) & 0x7F) << shift
8760 if b < 0x80 {
8761 break
8762 }
8763 }
8764 fieldNum := int32(wire >> 3)
8765 wireType := int(wire & 0x7)
8766 if wireType == 4 {
8767 return fmt.Errorf("proto: Reconcile: wiretype end group for non-group")
8768 }
8769 if fieldNum <= 0 {
8770 return fmt.Errorf("proto: Reconcile: illegal tag %d (wire type %d)", fieldNum, wire)
8771 }
8772 switch fieldNum {
8773 case 1:
8774 if wireType != 2 {
8775 return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType)
8776 }
8777 var msglen int
8778 for shift := uint(0); ; shift += 7 {
8779 if shift >= 64 {
8780 return ErrIntOverflowScheduler
8781 }
8782 if iNdEx >= l {
8783 return io.ErrUnexpectedEOF
8784 }
8785 b := dAtA[iNdEx]
8786 iNdEx++
8787 msglen |= (int(b) & 0x7F) << shift
8788 if b < 0x80 {
8789 break
8790 }
8791 }
8792 if msglen < 0 {
8793 return ErrInvalidLengthScheduler
8794 }
8795 postIndex := iNdEx + msglen
8796 if postIndex > l {
8797 return io.ErrUnexpectedEOF
8798 }
8799 m.Tasks = append(m.Tasks, Call_Reconcile_Task{})
8800 if err := m.Tasks[len(m.Tasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8801 return err
8802 }
8803 iNdEx = postIndex
8804 default:
8805 iNdEx = preIndex
8806 skippy, err := skipScheduler(dAtA[iNdEx:])
8807 if err != nil {
8808 return err
8809 }
8810 if skippy < 0 {
8811 return ErrInvalidLengthScheduler
8812 }
8813 if (iNdEx + skippy) > l {
8814 return io.ErrUnexpectedEOF
8815 }
8816 iNdEx += skippy
8817 }
8818 }
8819
8820 if iNdEx > l {
8821 return io.ErrUnexpectedEOF
8822 }
8823 return nil
8824 }
8825 func (m *Call_Reconcile_Task) Unmarshal(dAtA []byte) error {
8826 var hasFields [1]uint64
8827 l := len(dAtA)
8828 iNdEx := 0
8829 for iNdEx < l {
8830 preIndex := iNdEx
8831 var wire uint64
8832 for shift := uint(0); ; shift += 7 {
8833 if shift >= 64 {
8834 return ErrIntOverflowScheduler
8835 }
8836 if iNdEx >= l {
8837 return io.ErrUnexpectedEOF
8838 }
8839 b := dAtA[iNdEx]
8840 iNdEx++
8841 wire |= (uint64(b) & 0x7F) << shift
8842 if b < 0x80 {
8843 break
8844 }
8845 }
8846 fieldNum := int32(wire >> 3)
8847 wireType := int(wire & 0x7)
8848 if wireType == 4 {
8849 return fmt.Errorf("proto: Task: wiretype end group for non-group")
8850 }
8851 if fieldNum <= 0 {
8852 return fmt.Errorf("proto: Task: illegal tag %d (wire type %d)", fieldNum, wire)
8853 }
8854 switch fieldNum {
8855 case 1:
8856 if wireType != 2 {
8857 return fmt.Errorf("proto: wrong wireType = %d for field TaskID", wireType)
8858 }
8859 var msglen int
8860 for shift := uint(0); ; shift += 7 {
8861 if shift >= 64 {
8862 return ErrIntOverflowScheduler
8863 }
8864 if iNdEx >= l {
8865 return io.ErrUnexpectedEOF
8866 }
8867 b := dAtA[iNdEx]
8868 iNdEx++
8869 msglen |= (int(b) & 0x7F) << shift
8870 if b < 0x80 {
8871 break
8872 }
8873 }
8874 if msglen < 0 {
8875 return ErrInvalidLengthScheduler
8876 }
8877 postIndex := iNdEx + msglen
8878 if postIndex > l {
8879 return io.ErrUnexpectedEOF
8880 }
8881 if err := m.TaskID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8882 return err
8883 }
8884 iNdEx = postIndex
8885 hasFields[0] |= uint64(0x00000001)
8886 case 2:
8887 if wireType != 2 {
8888 return fmt.Errorf("proto: wrong wireType = %d for field AgentID", wireType)
8889 }
8890 var msglen int
8891 for shift := uint(0); ; shift += 7 {
8892 if shift >= 64 {
8893 return ErrIntOverflowScheduler
8894 }
8895 if iNdEx >= l {
8896 return io.ErrUnexpectedEOF
8897 }
8898 b := dAtA[iNdEx]
8899 iNdEx++
8900 msglen |= (int(b) & 0x7F) << shift
8901 if b < 0x80 {
8902 break
8903 }
8904 }
8905 if msglen < 0 {
8906 return ErrInvalidLengthScheduler
8907 }
8908 postIndex := iNdEx + msglen
8909 if postIndex > l {
8910 return io.ErrUnexpectedEOF
8911 }
8912 if m.AgentID == nil {
8913 m.AgentID = &mesos.AgentID{}
8914 }
8915 if err := m.AgentID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8916 return err
8917 }
8918 iNdEx = postIndex
8919 default:
8920 iNdEx = preIndex
8921 skippy, err := skipScheduler(dAtA[iNdEx:])
8922 if err != nil {
8923 return err
8924 }
8925 if skippy < 0 {
8926 return ErrInvalidLengthScheduler
8927 }
8928 if (iNdEx + skippy) > l {
8929 return io.ErrUnexpectedEOF
8930 }
8931 iNdEx += skippy
8932 }
8933 }
8934 if hasFields[0]&uint64(0x00000001) == 0 {
8935 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
8936 }
8937
8938 if iNdEx > l {
8939 return io.ErrUnexpectedEOF
8940 }
8941 return nil
8942 }
8943 func (m *Call_Message) Unmarshal(dAtA []byte) error {
8944 var hasFields [1]uint64
8945 l := len(dAtA)
8946 iNdEx := 0
8947 for iNdEx < l {
8948 preIndex := iNdEx
8949 var wire uint64
8950 for shift := uint(0); ; shift += 7 {
8951 if shift >= 64 {
8952 return ErrIntOverflowScheduler
8953 }
8954 if iNdEx >= l {
8955 return io.ErrUnexpectedEOF
8956 }
8957 b := dAtA[iNdEx]
8958 iNdEx++
8959 wire |= (uint64(b) & 0x7F) << shift
8960 if b < 0x80 {
8961 break
8962 }
8963 }
8964 fieldNum := int32(wire >> 3)
8965 wireType := int(wire & 0x7)
8966 if wireType == 4 {
8967 return fmt.Errorf("proto: Message: wiretype end group for non-group")
8968 }
8969 if fieldNum <= 0 {
8970 return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
8971 }
8972 switch fieldNum {
8973 case 1:
8974 if wireType != 2 {
8975 return fmt.Errorf("proto: wrong wireType = %d for field AgentID", wireType)
8976 }
8977 var msglen int
8978 for shift := uint(0); ; shift += 7 {
8979 if shift >= 64 {
8980 return ErrIntOverflowScheduler
8981 }
8982 if iNdEx >= l {
8983 return io.ErrUnexpectedEOF
8984 }
8985 b := dAtA[iNdEx]
8986 iNdEx++
8987 msglen |= (int(b) & 0x7F) << shift
8988 if b < 0x80 {
8989 break
8990 }
8991 }
8992 if msglen < 0 {
8993 return ErrInvalidLengthScheduler
8994 }
8995 postIndex := iNdEx + msglen
8996 if postIndex > l {
8997 return io.ErrUnexpectedEOF
8998 }
8999 if err := m.AgentID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9000 return err
9001 }
9002 iNdEx = postIndex
9003 hasFields[0] |= uint64(0x00000001)
9004 case 2:
9005 if wireType != 2 {
9006 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorID", wireType)
9007 }
9008 var msglen int
9009 for shift := uint(0); ; shift += 7 {
9010 if shift >= 64 {
9011 return ErrIntOverflowScheduler
9012 }
9013 if iNdEx >= l {
9014 return io.ErrUnexpectedEOF
9015 }
9016 b := dAtA[iNdEx]
9017 iNdEx++
9018 msglen |= (int(b) & 0x7F) << shift
9019 if b < 0x80 {
9020 break
9021 }
9022 }
9023 if msglen < 0 {
9024 return ErrInvalidLengthScheduler
9025 }
9026 postIndex := iNdEx + msglen
9027 if postIndex > l {
9028 return io.ErrUnexpectedEOF
9029 }
9030 if err := m.ExecutorID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9031 return err
9032 }
9033 iNdEx = postIndex
9034 hasFields[0] |= uint64(0x00000002)
9035 case 3:
9036 if wireType != 2 {
9037 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
9038 }
9039 var byteLen int
9040 for shift := uint(0); ; shift += 7 {
9041 if shift >= 64 {
9042 return ErrIntOverflowScheduler
9043 }
9044 if iNdEx >= l {
9045 return io.ErrUnexpectedEOF
9046 }
9047 b := dAtA[iNdEx]
9048 iNdEx++
9049 byteLen |= (int(b) & 0x7F) << shift
9050 if b < 0x80 {
9051 break
9052 }
9053 }
9054 if byteLen < 0 {
9055 return ErrInvalidLengthScheduler
9056 }
9057 postIndex := iNdEx + byteLen
9058 if postIndex > l {
9059 return io.ErrUnexpectedEOF
9060 }
9061 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
9062 if m.Data == nil {
9063 m.Data = []byte{}
9064 }
9065 iNdEx = postIndex
9066 hasFields[0] |= uint64(0x00000004)
9067 default:
9068 iNdEx = preIndex
9069 skippy, err := skipScheduler(dAtA[iNdEx:])
9070 if err != nil {
9071 return err
9072 }
9073 if skippy < 0 {
9074 return ErrInvalidLengthScheduler
9075 }
9076 if (iNdEx + skippy) > l {
9077 return io.ErrUnexpectedEOF
9078 }
9079 iNdEx += skippy
9080 }
9081 }
9082 if hasFields[0]&uint64(0x00000001) == 0 {
9083 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("agent_id")
9084 }
9085 if hasFields[0]&uint64(0x00000002) == 0 {
9086 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
9087 }
9088 if hasFields[0]&uint64(0x00000004) == 0 {
9089 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
9090 }
9091
9092 if iNdEx > l {
9093 return io.ErrUnexpectedEOF
9094 }
9095 return nil
9096 }
9097 func (m *Call_Request) Unmarshal(dAtA []byte) error {
9098 l := len(dAtA)
9099 iNdEx := 0
9100 for iNdEx < l {
9101 preIndex := iNdEx
9102 var wire uint64
9103 for shift := uint(0); ; shift += 7 {
9104 if shift >= 64 {
9105 return ErrIntOverflowScheduler
9106 }
9107 if iNdEx >= l {
9108 return io.ErrUnexpectedEOF
9109 }
9110 b := dAtA[iNdEx]
9111 iNdEx++
9112 wire |= (uint64(b) & 0x7F) << shift
9113 if b < 0x80 {
9114 break
9115 }
9116 }
9117 fieldNum := int32(wire >> 3)
9118 wireType := int(wire & 0x7)
9119 if wireType == 4 {
9120 return fmt.Errorf("proto: Request: wiretype end group for non-group")
9121 }
9122 if fieldNum <= 0 {
9123 return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
9124 }
9125 switch fieldNum {
9126 case 1:
9127 if wireType != 2 {
9128 return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType)
9129 }
9130 var msglen int
9131 for shift := uint(0); ; shift += 7 {
9132 if shift >= 64 {
9133 return ErrIntOverflowScheduler
9134 }
9135 if iNdEx >= l {
9136 return io.ErrUnexpectedEOF
9137 }
9138 b := dAtA[iNdEx]
9139 iNdEx++
9140 msglen |= (int(b) & 0x7F) << shift
9141 if b < 0x80 {
9142 break
9143 }
9144 }
9145 if msglen < 0 {
9146 return ErrInvalidLengthScheduler
9147 }
9148 postIndex := iNdEx + msglen
9149 if postIndex > l {
9150 return io.ErrUnexpectedEOF
9151 }
9152 m.Requests = append(m.Requests, mesos.Request{})
9153 if err := m.Requests[len(m.Requests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9154 return err
9155 }
9156 iNdEx = postIndex
9157 default:
9158 iNdEx = preIndex
9159 skippy, err := skipScheduler(dAtA[iNdEx:])
9160 if err != nil {
9161 return err
9162 }
9163 if skippy < 0 {
9164 return ErrInvalidLengthScheduler
9165 }
9166 if (iNdEx + skippy) > l {
9167 return io.ErrUnexpectedEOF
9168 }
9169 iNdEx += skippy
9170 }
9171 }
9172
9173 if iNdEx > l {
9174 return io.ErrUnexpectedEOF
9175 }
9176 return nil
9177 }
9178 func (m *Call_Suppress) Unmarshal(dAtA []byte) error {
9179 l := len(dAtA)
9180 iNdEx := 0
9181 for iNdEx < l {
9182 preIndex := iNdEx
9183 var wire uint64
9184 for shift := uint(0); ; shift += 7 {
9185 if shift >= 64 {
9186 return ErrIntOverflowScheduler
9187 }
9188 if iNdEx >= l {
9189 return io.ErrUnexpectedEOF
9190 }
9191 b := dAtA[iNdEx]
9192 iNdEx++
9193 wire |= (uint64(b) & 0x7F) << shift
9194 if b < 0x80 {
9195 break
9196 }
9197 }
9198 fieldNum := int32(wire >> 3)
9199 wireType := int(wire & 0x7)
9200 if wireType == 4 {
9201 return fmt.Errorf("proto: Suppress: wiretype end group for non-group")
9202 }
9203 if fieldNum <= 0 {
9204 return fmt.Errorf("proto: Suppress: illegal tag %d (wire type %d)", fieldNum, wire)
9205 }
9206 switch fieldNum {
9207 case 1:
9208 if wireType != 2 {
9209 return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType)
9210 }
9211 var stringLen uint64
9212 for shift := uint(0); ; shift += 7 {
9213 if shift >= 64 {
9214 return ErrIntOverflowScheduler
9215 }
9216 if iNdEx >= l {
9217 return io.ErrUnexpectedEOF
9218 }
9219 b := dAtA[iNdEx]
9220 iNdEx++
9221 stringLen |= (uint64(b) & 0x7F) << shift
9222 if b < 0x80 {
9223 break
9224 }
9225 }
9226 intStringLen := int(stringLen)
9227 if intStringLen < 0 {
9228 return ErrInvalidLengthScheduler
9229 }
9230 postIndex := iNdEx + intStringLen
9231 if postIndex > l {
9232 return io.ErrUnexpectedEOF
9233 }
9234 m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex]))
9235 iNdEx = postIndex
9236 default:
9237 iNdEx = preIndex
9238 skippy, err := skipScheduler(dAtA[iNdEx:])
9239 if err != nil {
9240 return err
9241 }
9242 if skippy < 0 {
9243 return ErrInvalidLengthScheduler
9244 }
9245 if (iNdEx + skippy) > l {
9246 return io.ErrUnexpectedEOF
9247 }
9248 iNdEx += skippy
9249 }
9250 }
9251
9252 if iNdEx > l {
9253 return io.ErrUnexpectedEOF
9254 }
9255 return nil
9256 }
9257 func skipScheduler(dAtA []byte) (n int, err error) {
9258 l := len(dAtA)
9259 iNdEx := 0
9260 for iNdEx < l {
9261 var wire uint64
9262 for shift := uint(0); ; shift += 7 {
9263 if shift >= 64 {
9264 return 0, ErrIntOverflowScheduler
9265 }
9266 if iNdEx >= l {
9267 return 0, io.ErrUnexpectedEOF
9268 }
9269 b := dAtA[iNdEx]
9270 iNdEx++
9271 wire |= (uint64(b) & 0x7F) << shift
9272 if b < 0x80 {
9273 break
9274 }
9275 }
9276 wireType := int(wire & 0x7)
9277 switch wireType {
9278 case 0:
9279 for shift := uint(0); ; shift += 7 {
9280 if shift >= 64 {
9281 return 0, ErrIntOverflowScheduler
9282 }
9283 if iNdEx >= l {
9284 return 0, io.ErrUnexpectedEOF
9285 }
9286 iNdEx++
9287 if dAtA[iNdEx-1] < 0x80 {
9288 break
9289 }
9290 }
9291 return iNdEx, nil
9292 case 1:
9293 iNdEx += 8
9294 return iNdEx, nil
9295 case 2:
9296 var length int
9297 for shift := uint(0); ; shift += 7 {
9298 if shift >= 64 {
9299 return 0, ErrIntOverflowScheduler
9300 }
9301 if iNdEx >= l {
9302 return 0, io.ErrUnexpectedEOF
9303 }
9304 b := dAtA[iNdEx]
9305 iNdEx++
9306 length |= (int(b) & 0x7F) << shift
9307 if b < 0x80 {
9308 break
9309 }
9310 }
9311 iNdEx += length
9312 if length < 0 {
9313 return 0, ErrInvalidLengthScheduler
9314 }
9315 return iNdEx, nil
9316 case 3:
9317 for {
9318 var innerWire uint64
9319 var start int = iNdEx
9320 for shift := uint(0); ; shift += 7 {
9321 if shift >= 64 {
9322 return 0, ErrIntOverflowScheduler
9323 }
9324 if iNdEx >= l {
9325 return 0, io.ErrUnexpectedEOF
9326 }
9327 b := dAtA[iNdEx]
9328 iNdEx++
9329 innerWire |= (uint64(b) & 0x7F) << shift
9330 if b < 0x80 {
9331 break
9332 }
9333 }
9334 innerWireType := int(innerWire & 0x7)
9335 if innerWireType == 4 {
9336 break
9337 }
9338 next, err := skipScheduler(dAtA[start:])
9339 if err != nil {
9340 return 0, err
9341 }
9342 iNdEx = start + next
9343 }
9344 return iNdEx, nil
9345 case 4:
9346 return iNdEx, nil
9347 case 5:
9348 iNdEx += 4
9349 return iNdEx, nil
9350 default:
9351 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
9352 }
9353 }
9354 panic("unreachable")
9355 }
9356
9357 var (
9358 ErrInvalidLengthScheduler = fmt.Errorf("proto: negative length found during unmarshaling")
9359 ErrIntOverflowScheduler = fmt.Errorf("proto: integer overflow")
9360 )
9361
9362 func init() { proto.RegisterFile("scheduler/scheduler.proto", fileDescriptorScheduler) }
9363
9364 var fileDescriptorScheduler = []byte{
9365 // 1676 bytes of a gzipped FileDescriptorProto
9366 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0x4d, 0x6c, 0x23, 0x49,
9367 0x15, 0x4e, 0x39, 0xfe, 0x7d, 0x1d, 0x3b, 0xbd, 0x95, 0x99, 0xe0, 0x69, 0x86, 0x4e, 0x76, 0xb4,
9368 0x12, 0xd9, 0x95, 0xd6, 0x59, 0xac, 0xd9, 0x5d, 0xd8, 0x5d, 0xa4, 0xf5, 0x4f, 0x67, 0xb6, 0x35,
9369 0x99, 0x24, 0x5b, 0xb6, 0x07, 0x09, 0x09, 0x4c, 0xc7, 0x5d, 0xf6, 0xb4, 0xd2, 0x71, 0x9b, 0xee,
9370 0x76, 0x86, 0xb9, 0x71, 0xe4, 0x84, 0x38, 0xc0, 0x11, 0x01, 0xe2, 0x82, 0xb8, 0x20, 0x6e, 0x1c,
9371 0xb9, 0x80, 0xf6, 0xb8, 0xdc, 0x38, 0xa0, 0x88, 0x78, 0x2f, 0x1c, 0x57, 0x9c, 0x38, 0xa2, 0xfa,
9372 0xe9, 0x76, 0xfb, 0x17, 0x65, 0x47, 0x02, 0x71, 0xb1, 0xba, 0x5e, 0x7d, 0xdf, 0x7b, 0xaf, 0x5e,
9373 0xbd, 0x7a, 0xef, 0x19, 0xee, 0x05, 0xbd, 0x67, 0xd4, 0x1e, 0xbb, 0xd4, 0x3f, 0x8c, 0xbf, 0x2a,
9374 0x23, 0xdf, 0x0b, 0x3d, 0xbc, 0x7d, 0x49, 0x03, 0x2f, 0xa8, 0xc4, 0x62, 0xed, 0xad, 0x81, 0x13,
9375 0x3e, 0x1b, 0x9f, 0x57, 0x7a, 0xde, 0xe5, 0x21, 0xdf, 0x13, 0xbf, 0x6f, 0x0e, 0xbc, 0x43, 0x6b,
9376 0xe4, 0x1c, 0x5e, 0x7d, 0xed, 0xd0, 0x75, 0xce, 0x85, 0x4c, 0xa8, 0xd0, 0xde, 0x4c, 0x30, 0x06,
9377 0xde, 0xc0, 0x3b, 0xe4, 0xe2, 0xf3, 0x71, 0x9f, 0xaf, 0xf8, 0x82, 0x7f, 0x09, 0xf8, 0x83, 0xbf,
9378 0x15, 0x21, 0x63, 0x5c, 0xd1, 0x61, 0x88, 0xdf, 0x86, 0x74, 0xf8, 0x62, 0x44, 0xcb, 0x68, 0x1f,
9379 0x1d, 0x94, 0xaa, 0x5f, 0xae, 0xcc, 0xb9, 0x52, 0xe1, 0xa8, 0x4a, 0xfb, 0xc5, 0x88, 0xd6, 0xd3,
9380 0x9f, 0x5c, 0xef, 0x6d, 0x10, 0x0e, 0xc7, 0x35, 0x80, 0x60, 0x7c, 0x1e, 0xf4, 0x7c, 0xe7, 0x9c,
9381 0xda, 0xe5, 0xd4, 0x3e, 0x3a, 0x50, 0xaa, 0xaf, 0xae, 0x20, 0xb7, 0x62, 0x20, 0x49, 0x90, 0xf0,
9382 0xdb, 0x90, 0xf5, 0xfa, 0x7d, 0xea, 0x07, 0xe5, 0x4d, 0x4e, 0xff, 0xca, 0x0a, 0xfa, 0x29, 0x07,
9383 0x11, 0x09, 0xc6, 0x5f, 0x87, 0x9c, 0x4f, 0x83, 0x9e, 0x33, 0xb4, 0xcb, 0x69, 0xce, 0xd3, 0x57,
9384 0xf0, 0x88, 0x40, 0x91, 0x08, 0xce, 0x0c, 0x8e, 0x47, 0xb6, 0x15, 0xd2, 0x72, 0x66, 0xad, 0xc1,
9385 0x0e, 0x07, 0x11, 0x09, 0x66, 0x06, 0x2f, 0x69, 0x10, 0x58, 0x03, 0x5a, 0xce, 0xae, 0x35, 0xf8,
9386 0x44, 0xa0, 0x48, 0x04, 0x67, 0xcc, 0xbe, 0xe5, 0xb8, 0x63, 0x9f, 0x96, 0x73, 0x6b, 0x99, 0x47,
9387 0x02, 0x45, 0x22, 0x38, 0xae, 0x42, 0x86, 0xfa, 0xbe, 0xe7, 0x97, 0xf3, 0x9c, 0x77, 0x7f, 0x05,
9388 0xcf, 0x60, 0x18, 0x22, 0xa0, 0xf8, 0x31, 0x94, 0x9c, 0xe1, 0x15, 0xf5, 0x03, 0xda, 0x95, 0x71,
9389 0x2d, 0x70, 0xf2, 0x6b, 0x2b, 0xc8, 0xa6, 0x00, 0xcb, 0xf0, 0x16, 0x9d, 0xe4, 0x12, 0x7f, 0x17,
9390 0xee, 0xca, 0xb0, 0x75, 0x67, 0x94, 0x96, 0x81, 0xeb, 0x7c, 0x63, 0x7d, 0xcc, 0x93, 0xaa, 0xc9,
9391 0x8e, 0xbf, 0x28, 0xd4, 0xfe, 0x8c, 0x00, 0xa6, 0x79, 0x81, 0x8f, 0x60, 0xab, 0xef, 0x5b, 0x97,
9392 0xf4, 0xb9, 0xe7, 0x5f, 0x74, 0x1d, 0xbb, 0x8c, 0xf6, 0x53, 0x07, 0x4a, 0x15, 0x4b, 0x2b, 0x47,
9393 0xd1, 0x96, 0xd9, 0xac, 0x6f, 0x4f, 0xae, 0xf7, 0x94, 0x84, 0x80, 0x28, 0x31, 0xd1, 0xb4, 0xf1,
9394 0x07, 0xa0, 0x3d, 0xa3, 0x96, 0x1f, 0x9e, 0x53, 0x2b, 0xec, 0x3a, 0xc3, 0x90, 0xfa, 0x57, 0x96,
9395 0xdb, 0x0d, 0x68, 0xcf, 0x1b, 0xda, 0x01, 0x4f, 0x53, 0x44, 0xca, 0x31, 0xc2, 0x94, 0x80, 0x96,
9396 0xd8, 0xc7, 0x55, 0x50, 0x2e, 0xad, 0x20, 0xa4, 0x7e, 0xd7, 0x19, 0xf6, 0x3d, 0x99, 0x96, 0xaf,
9397 0x48, 0x27, 0x9e, 0xf0, 0x1d, 0x73, 0xd8, 0xf7, 0x08, 0x5c, 0xc6, 0xdf, 0xda, 0x43, 0xc8, 0xca,
9398 0x90, 0xbd, 0x11, 0xe7, 0x33, 0xda, 0xdf, 0x3c, 0x50, 0xaa, 0x5b, 0x92, 0xc8, 0xb7, 0xe5, 0xe3,
9399 0x91, 0x08, 0xed, 0x63, 0x28, 0xce, 0x84, 0x1f, 0x7f, 0xb8, 0x70, 0x79, 0x42, 0xc9, 0x8e, 0x54,
9400 0x92, 0x44, 0x4b, 0x5d, 0xb3, 0x37, 0xa6, 0x19, 0x90, 0x93, 0xd1, 0xc7, 0xef, 0x41, 0x9e, 0x2b,
9401 0x99, 0x46, 0xb2, 0x94, 0xf4, 0x85, 0x45, 0x91, 0x69, 0x98, 0x5c, 0xef, 0xe5, 0xa4, 0x80, 0xe4,
9402 0x38, 0xc1, 0xb4, 0xb5, 0x01, 0xec, 0x2c, 0xb9, 0x44, 0x7c, 0x06, 0xea, 0x8c, 0x7f, 0xab, 0x55,
9403 0xef, 0x4a, 0xd5, 0xa5, 0x24, 0xdf, 0x6c, 0x92, 0x52, 0xd2, 0x5d, 0xd3, 0xd6, 0xbe, 0x01, 0x59,
9404 0xf1, 0xd0, 0xf0, 0x21, 0x64, 0x83, 0xd0, 0x0a, 0xc7, 0x81, 0xd4, 0x18, 0x45, 0xbc, 0x6d, 0x05,
9405 0x17, 0x2d, 0xbe, 0x11, 0x45, 0x4f, 0xc0, 0xb4, 0x5f, 0x21, 0xc8, 0xc9, 0xc7, 0xc6, 0xce, 0x6a,
9406 0x0d, 0xe8, 0x30, 0x5c, 0x74, 0xa8, 0xc6, 0xc4, 0xc9, 0xb3, 0x4a, 0x01, 0xc9, 0x71, 0x82, 0xc9,
9407 0xb2, 0x4e, 0xa1, 0x3f, 0xa0, 0xbd, 0x71, 0xe8, 0xf1, 0xf3, 0xa4, 0x66, 0xac, 0x1b, 0x72, 0xc7,
9408 0x6c, 0xd6, 0xb1, 0xd4, 0x00, 0x53, 0x19, 0x81, 0x88, 0x69, 0xda, 0x18, 0x43, 0xda, 0xb6, 0x42,
9409 0xab, 0xbc, 0xb9, 0x9f, 0x3a, 0xd8, 0x22, 0xfc, 0x5b, 0xfb, 0x39, 0x82, 0x9c, 0x7c, 0xd6, 0xf8,
9410 0x9d, 0x19, 0x1f, 0xd1, 0x12, 0x1f, 0x95, 0xa5, 0xfe, 0xd5, 0xe7, 0xfd, 0x43, 0xcb, 0xfd, 0x2b,
9411 0xad, 0xf1, 0x6d, 0x37, 0x0e, 0x2e, 0x4b, 0xe7, 0x4c, 0x1c, 0xc3, 0xaf, 0x42, 0x86, 0x57, 0x0f,
9412 0xac, 0x4f, 0xcb, 0x1b, 0x8b, 0x5f, 0x41, 0xc6, 0x3a, 0x12, 0x3e, 0xf8, 0x3d, 0x82, 0x34, 0x2b,
9413 0xff, 0x58, 0x81, 0x5c, 0xe7, 0xe4, 0xf1, 0xc9, 0xe9, 0xb7, 0x4e, 0xd4, 0x0d, 0x5c, 0x02, 0x68,
9414 0x75, 0xea, 0xad, 0x06, 0x31, 0xeb, 0x46, 0x53, 0x45, 0x18, 0x20, 0x7b, 0x7a, 0x74, 0x64, 0x90,
9415 0x96, 0x9a, 0xc2, 0x18, 0x4a, 0xe6, 0xc9, 0x53, 0x83, 0xb4, 0x8c, 0xae, 0x94, 0x15, 0x18, 0x99,
9416 0x18, 0xad, 0x86, 0x79, 0xd2, 0x54, 0x37, 0xf1, 0x3d, 0xb8, 0x2b, 0x17, 0xdd, 0x19, 0xa0, 0x0a,
9417 0x4c, 0x4f, 0xe7, 0xac, 0x59, 0x6b, 0x1b, 0x6a, 0x9a, 0x71, 0x9e, 0x18, 0xad, 0x56, 0xed, 0x91,
9418 0xa1, 0x66, 0xd8, 0xe2, 0xa8, 0x66, 0x1e, 0x77, 0x88, 0xa1, 0x66, 0x71, 0x01, 0x32, 0x06, 0x21,
9419 0xa7, 0x44, 0xcd, 0xe1, 0x22, 0x14, 0x3e, 0x32, 0x6a, 0xa4, 0x5d, 0x37, 0x6a, 0x6d, 0x35, 0xaf,
9420 0xa5, 0x7f, 0xf4, 0x6b, 0x1d, 0x3d, 0xf8, 0xcb, 0x2e, 0xa4, 0x1b, 0x96, 0xeb, 0x2e, 0xa9, 0x2b,
9421 0xe8, 0x0b, 0xd5, 0x95, 0x87, 0xb2, 0x4b, 0xa6, 0x78, 0x97, 0xd4, 0x16, 0xaa, 0x1f, 0x33, 0xb6,
9422 0xd8, 0x24, 0xbf, 0x09, 0x85, 0xb8, 0xdf, 0xc9, 0x6a, 0xb2, 0xb7, 0x9c, 0x1a, 0x97, 0x42, 0x32,
9423 0x65, 0xe0, 0x87, 0x90, 0xb5, 0x7a, 0x3d, 0x3a, 0x0a, 0x65, 0xa3, 0xbb, 0xbf, 0x9c, 0x5b, 0xe3,
9424 0x18, 0x22, 0xb1, 0xf8, 0x5d, 0xc8, 0xd9, 0xb4, 0xe7, 0x3a, 0xc3, 0xd5, 0x6d, 0x8e, 0xd3, 0x9a,
9425 0x02, 0x44, 0x22, 0x34, 0xae, 0x40, 0xfa, 0xc2, 0x71, 0x5d, 0xd9, 0xe4, 0x56, 0x9c, 0xf1, 0xb1,
9426 0xe3, 0xba, 0x84, 0xe3, 0xd8, 0xcb, 0x0b, 0x9e, 0x8d, 0x43, 0xdb, 0x7b, 0x3e, 0x5c, 0xd9, 0xde,
9427 0xc4, 0xe1, 0x24, 0x8a, 0xc4, 0x78, 0xdc, 0x00, 0xc5, 0xea, 0x5d, 0x0c, 0xbd, 0xe7, 0x2e, 0xb5,
9428 0x07, 0x54, 0x76, 0xb9, 0x57, 0x57, 0x9d, 0x2f, 0x06, 0x92, 0x24, 0x8b, 0x85, 0xd7, 0x67, 0x95,
9429 0xbb, 0xe7, 0xb8, 0x54, 0xf6, 0xba, 0x15, 0xe1, 0x25, 0x11, 0x8c, 0x4c, 0x19, 0x2c, 0x50, 0x51,
9430 0xe2, 0xc3, 0xba, 0x40, 0x2d, 0xb4, 0xf5, 0x77, 0xd9, 0x04, 0xf2, 0xfd, 0x31, 0x0d, 0xc2, 0xb2,
9431 0xb2, 0x8e, 0x48, 0x04, 0x88, 0x44, 0x68, 0xfc, 0x1d, 0xb8, 0x2b, 0x2e, 0xa9, 0x3b, 0x57, 0xeb,
9432 0x8b, 0x5c, 0xcd, 0xeb, 0xeb, 0xee, 0x77, 0xb6, 0x5b, 0xef, 0x58, 0x8b, 0x42, 0xfc, 0x3d, 0xd8,
9433 0x95, 0x77, 0x39, 0xaf, 0xbf, 0xb4, 0xa2, 0x69, 0x27, 0x13, 0x61, 0xd6, 0xc0, 0x1d, 0x7b, 0x89,
9434 0x94, 0x65, 0xa4, 0x4f, 0xaf, 0x9c, 0x2b, 0x5a, 0xde, 0x5e, 0x97, 0x91, 0x84, 0x63, 0x88, 0xc4,
9435 0xf2, 0x44, 0x19, 0x8f, 0x46, 0x3e, 0x0d, 0x82, 0xb2, 0xba, 0x36, 0x51, 0x24, 0x8a, 0xc4, 0x78,
9436 0x2d, 0x80, 0x42, 0xfc, 0x36, 0xf0, 0xfb, 0x50, 0x4a, 0xbc, 0x66, 0xd6, 0xa2, 0x45, 0xc5, 0xbf,
9437 0xb3, 0xf0, 0x9e, 0x59, 0x97, 0x2e, 0xf6, 0x93, 0x4b, 0xfc, 0x3a, 0xa8, 0x91, 0x56, 0x6a, 0x77,
9438 0x7d, 0xcf, 0xa5, 0x6c, 0x20, 0xd8, 0x3c, 0x28, 0x90, 0xed, 0xa9, 0x9c, 0x30, 0xb1, 0xf6, 0x3b,
9439 0x04, 0x59, 0x11, 0x75, 0x96, 0x63, 0x51, 0xbf, 0x8b, 0x5a, 0xf2, 0x7c, 0xc3, 0x53, 0x65, 0x77,
9440 0xc8, 0x4b, 0x41, 0x40, 0xf2, 0xb2, 0x99, 0x06, 0xf8, 0x03, 0x00, 0x6f, 0x44, 0x7d, 0x2b, 0x74,
9441 0xbc, 0xa1, 0x30, 0xa7, 0x54, 0x77, 0x93, 0xfc, 0xca, 0x69, 0xb4, 0x2d, 0x2b, 0x47, 0x02, 0x8f,
9442 0x0f, 0x20, 0xd7, 0x77, 0xdc, 0x70, 0x3a, 0x22, 0x47, 0xa6, 0x8f, 0x84, 0x94, 0x44, 0xdb, 0x9a,
9443 0x0f, 0x39, 0x79, 0x8d, 0x2f, 0xeb, 0x71, 0xc2, 0x66, 0x6a, 0xbd, 0xcd, 0x9f, 0x22, 0xd8, 0x59,
9444 0x92, 0x9b, 0xb8, 0x05, 0xaf, 0xcc, 0x8f, 0x0a, 0xab, 0x1c, 0xf9, 0x92, 0x74, 0x64, 0x7b, 0x76,
9445 0x56, 0x08, 0xc8, 0xf6, 0xec, 0xb0, 0x70, 0x1b, 0xb7, 0x7e, 0x86, 0xe0, 0xce, 0xb2, 0x94, 0xfe,
9446 0x5f, 0xfb, 0xa5, 0x43, 0x56, 0xbc, 0x0b, 0x7c, 0x07, 0x32, 0x22, 0xfd, 0x10, 0x4f, 0x3f, 0xb1,
9447 0xd0, 0x7e, 0x8b, 0x20, 0xcd, 0xaa, 0x2b, 0x7e, 0x07, 0x72, 0xa1, 0x15, 0x24, 0xc6, 0xe0, 0x62,
9448 0x62, 0x1e, 0x62, 0xdd, 0x5e, 0x3a, 0x97, 0x15, 0x6b, 0x92, 0x65, 0x68, 0xd3, 0x9e, 0x99, 0x32,
9449 0x52, 0xb7, 0x98, 0x32, 0xaa, 0xa0, 0xb0, 0x7a, 0xde, 0x1d, 0x79, 0xae, 0xd3, 0x7b, 0x31, 0x37,
9450 0xf5, 0x32, 0x8f, 0xce, 0xf8, 0x06, 0x81, 0x8b, 0xf8, 0x5b, 0xfb, 0x31, 0x82, 0x7c, 0x54, 0xd6,
9451 0xe7, 0xc7, 0x28, 0xf4, 0x45, 0xc7, 0xa8, 0xf7, 0x66, 0x0e, 0x70, 0xab, 0x51, 0x4e, 0xfb, 0x05,
9452 0x02, 0x25, 0xd1, 0x28, 0x5e, 0x6a, 0x2c, 0x4c, 0x5c, 0x40, 0xea, 0x36, 0x17, 0x70, 0x1f, 0xd2,
9453 0xe3, 0xb1, 0x63, 0x8b, 0x31, 0xb0, 0x9e, 0x9f, 0x5c, 0xef, 0xa5, 0x3b, 0x1d, 0xb3, 0x49, 0xb8,
9454 0x54, 0xfb, 0x13, 0x82, 0x42, 0xdc, 0x87, 0xf0, 0x87, 0x90, 0x61, 0xac, 0x28, 0x01, 0x5f, 0xfb,
9455 0x0f, 0x7d, 0x8b, 0x9b, 0x96, 0x15, 0x42, 0x10, 0xb5, 0x2b, 0x48, 0x33, 0xe1, 0x7f, 0x3b, 0x5d,
9456 0xfe, 0x2f, 0x86, 0xef, 0xf7, 0xd9, 0x7f, 0x21, 0xd1, 0x73, 0xdf, 0x82, 0xbc, 0x6c, 0xbf, 0xf3,
9457 0x8f, 0x5d, 0x22, 0x64, 0x54, 0x63, 0x94, 0xb6, 0x0f, 0xf9, 0xa8, 0x11, 0x2d, 0x7f, 0xaa, 0x0f,
9458 0xfe, 0xb9, 0x74, 0x24, 0x2e, 0x42, 0x21, 0x1e, 0x89, 0x55, 0x84, 0xb7, 0x20, 0xdf, 0x36, 0x6a,
9459 0xa4, 0xc9, 0x36, 0x53, 0x6c, 0xae, 0xad, 0x35, 0x1a, 0xc6, 0x59, 0x5b, 0xdd, 0x64, 0xac, 0xa6,
9460 0xd1, 0x38, 0x36, 0x4f, 0xd8, 0x90, 0x7b, 0x0f, 0xee, 0x8a, 0x8d, 0xee, 0xdc, 0xcc, 0x5c, 0xc4,
9461 0x1a, 0xec, 0x4a, 0xdc, 0xfc, 0x5e, 0x89, 0xe9, 0x23, 0xc6, 0x53, 0xf3, 0x29, 0x1b, 0x8d, 0xf3,
9462 0x90, 0x7e, 0x6c, 0x1e, 0x1f, 0xab, 0x59, 0x66, 0xb3, 0xf5, 0x51, 0xa7, 0xcd, 0x6d, 0xe6, 0xf0,
9463 0x36, 0x28, 0xb5, 0x06, 0xf3, 0xee, 0xd8, 0x68, 0x3e, 0x32, 0xd4, 0x3c, 0xf3, 0x90, 0x18, 0x8d,
9464 0xd3, 0x93, 0x86, 0x79, 0x6c, 0x88, 0x99, 0x3c, 0x9a, 0xaf, 0x41, 0x0c, 0xe8, 0x1f, 0x77, 0x8c,
9465 0x56, 0x5b, 0x55, 0xb8, 0x9e, 0xce, 0xd9, 0x19, 0x31, 0x5a, 0x2d, 0x75, 0x4b, 0xcc, 0xd4, 0xf5,
9466 0x47, 0x9f, 0xde, 0xe8, 0x1b, 0x7f, 0xbd, 0xd1, 0x37, 0xfe, 0x7e, 0xa3, 0xa3, 0xcf, 0x6f, 0x74,
9467 0xf4, 0xaf, 0x1b, 0x1d, 0xfd, 0x70, 0xa2, 0xa3, 0xdf, 0x4c, 0x74, 0xf4, 0x87, 0x89, 0x8e, 0xfe,
9468 0x38, 0xd1, 0xd1, 0x27, 0x13, 0x1d, 0x7d, 0x3a, 0xd1, 0xd1, 0x3f, 0x26, 0xfa, 0xc6, 0xe7, 0x13,
9469 0x1d, 0xfd, 0xe4, 0x33, 0x7d, 0xe3, 0x97, 0x9f, 0xe9, 0xe8, 0xdb, 0x85, 0x38, 0xb3, 0xff, 0x1d,
9470 0x00, 0x00, 0xff, 0xff, 0x30, 0xfb, 0x2a, 0xca, 0x09, 0x13, 0x00, 0x00,
9471 }